Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all 8332 articles
Browse latest View live

how can i make an output/input field disabled (in screen painter)

$
0
0

hi,

i have on my screen painter  2 Radio_Buttons and an input field, so i want to make this field disabled when the second radio_button is not initial so

how can i make this output/input field  disabled (in screen painter).


Performance issue with BKPF and BSIS tables

$
0
0

Hi - I have written query like below.

 

SELECT bkpf~bukrs bkpf~belnr bkpf~gjahr

           bkpf~bldat bkpf~budat bkpf~monat

           bkpf~awtyp bkpf~awkey bkpf~blart

           bsis~buzei bsis~buzid bsis~shkzg

           bsis~dmbtr bsis~hkont bsis~bschl

           bsis~werks bsis~xref3 FROM bkpf INNER JOIN bsis

        ON bkpf~bukrs = bsis~bukrs

       AND bkpf~belnr = bsis~belnr

       AND bkpf~gjahr = bsis~gjahr

      INTO CORRESPONDING FIELDS OF TABLE gt_bkpf_gr

     WHERE bkpf~bukrs EQ '1000'

       AND bkpf~bldat IN s_bldat

       AND bkpf~budat IN s_budat

       AND bkpf~blart EQ 'AB'

       AND bkpf~glvor EQ 'ABCD'

       AND bkpf~xreversal EQ space

       AND bsis~hkont IN s_hkont

       AND bsis~buzid EQ 'P'

       AND bsis~werks IN s_werks

       AND bsis~dmbtr IN s_dmbtr.

 

gt_bkpf_gr is a Hash table. here we are always passing the Company code(BUKRS),posting date(s_budat),and G/L account(s_hkont).

For 73 entries it is taking 13 mins.Is there anyway to redesign the above query such that it will improve the performance.

A new enhancement is required to add a new field as “Operation location” in the MD04 output screen for 0534 Plant only.

$
0
0

Hi abapers,

 

my Requirement is When we execute the MD04 Report (Stock/requirements List), we want a new button as “Operation location” in the Layout header.

 

 

Once the User selects the Operation location, a new column with the expected values to be displayed at item level.

i.e., once you click on the above fields on the layout, then the respective column should appear and upon reclick it should vanish from the screen. for clearance pl check screen shots

Function Key problem in GUI Screen

$
0
0

Hi,

I am trying to add a button in an existing GUI screen (earlier copied from standard GUI status). When I am trying to add a button in the application toolbar, its showing me the following error.

 

Function code &REJ has not been assigned to a function key 

                                                              

     Message no. EC181                             

When I am trying to create a button for the same scenario in IDES its working properly...

 

Please let me know what to do.

 

Thanks in advance.

Regards,

ravi.

PA0581 : Field 'Whether METRO' not updating: HR_INFOTYPE_OPERATION

$
0
0

Hi Experts ,

 

I am trying to insert employee HRA details using the standard FM HR_INFOTYPE_OPERATION . My issue is that the METRO field of P0581 structure

is not updating when passed value equals to '1' ( METRO = '1' and NON-METRO = ' ' ). All other fields of the infotype are updating correctly .

I even tried passing hardcoded value in debug mode , but the value remained NON-METRO (blank) . Has anyone faced such issue ?

Kindly suggest .

 

Regards

Abhishek

PA0580 - Commit Issue in inserting entries using HR_INFOTYPE_OPERATION

$
0
0

Hi Experts ,

 

I am facing a dump when trying to insert records for 0580 infotype using the FM HR_INFOTYPE_OPERATION. I am populating 4 currency fields like GRSAL ,PFTAX with amounts for an employee and calling the FM , However on executing , I get a short dump on Commit in the standard program .

However , the same code works fine for other Infotypes like 0581 etc . Please suggest .

 

Regards

Abhishek

Consolidate Sales Documents in une Invoice Documents by Field Z

$
0
0

Hi experts, I have a request.

 

  I wonder if you can do this:

 

  When an order is generated are filled a Z fields in the additional data B, and when a bill for the VF04 is generated you want to search orders created previous mind that are not billed by the area of sales, customer and a Z-field order.

 

  Let's say a customer has two sales documents, and that the two documents the value of '102325' in the ZZCBL field in the additional fields B, and that has the same area of sales, and you want that at the time of billing, the two documents are consolidated into one with all their positions. I print documents in a SmartForm.

Link between IBIB and IBSP

$
0
0

Hello,

 

is there a Link between the tables IBIB and IBSP? On which fields?

Or is any other table between them?

 

Thanks in Advance!


'At selection screen output' need guidence

$
0
0

Dear friends,

 

Doing some selection screen, not able to find the logic.

 

screen.GIF

 

When I select the checkbox, then result must show only Alternate material tab.

 

any help.

 

regards,

sudarshan

Extend context menu of ABAP Editor in SE80

$
0
0

Is it possible to extend the context menu of the SE80 ABAP editor, such that I could highlight a certain piece of code, right click on it and have a custom context menu entry for e.g. sending the code snippet to a report (prepared variant) like AFX_CODE_SCANNER ?

Or does anyone here have experience with the SAP GUI Scripting and can tell me whether above mentioned idea is implementable with that?

Question on sap queries created

$
0
0

Hello,

 

I had created an infoset and using this infoset I had created a query . Now I want the output field sequence to be controlled. Is there any way that I can control the output columns order. Like for suppose I have columns a b c d the default way which SAP is proposing.

 

I want the output in columns b d  c a , could you please suggest on this.

 

Thanks,

RG

Work process restarted session terminated error

$
0
0

Hi All,

 

Iam trying to execute a code

 

LOOP AT <fs_outtab> INTO <fs_line>.

          DO .

            ASSIGN COMPONENT sy-index OF STRUCTURE <fs_line>  TO <fs>.

            IF sy-subrc <> 0.

              EXIT.

            ELSE.

              lv_data = <fs>.

 

 

              CONCATENATE lv_string lv_data  INTO lv_string SEPARATED BY ','.

            ENDIF.

          ENDDO.

 

 

*          CONCATENATE lv_string lv_text INTO lv_text  IN CHARACTER MODE SEPARATED BY ','. .

          TRANSFER lv_string TO lv_filepath.

          Clear: lv_string ,lv_data.

           ENDLOOP.

 

After the TRANSFER statement i get an message .

 

SAP system message.

Work process restarted session terminated

 

Is the issue is with the code ?????

Should I choose Loop or Select statement for an efficient run?

$
0
0

Hi experts,

 

I have two tables tab1 and tab2 with two common fields tab1key1 = tab2key1 and tab1key2 = tab2key2 . My goal is to find out all entries that are in tab1 and but not in tab2.

How can I achieve this in an efficient run?

Please some simple code examples.

 

Thanks

Populate condition type(KOMV-KSCHL) column on sales order line item

$
0
0

Hello All,

 

We are trying to populate CnTy column on sales order line item. I have tried to use implicit enhancement within form KOEIN_ERMITTELN_N46. However, the condition values for each line gets over written by the last value populated in field KOMV-KSCHL and thus all line items carry the same condition type values.

 

If anyone has done it before or suggestion to resolve it, please share.

 

Thank you!

Parallel processing - time between each RFC call

$
0
0

Hi,

 

I am working in a program using parallel processing and the time between the function module calls are being around 4 seconds.

Example:

 

WHILE....

 

MESSAGE 1

 

CALL FUNCTION 'ZZZZ' STARTING NEW TASK 'task' DESTINATION IN GROUP 'group'

     PERFORMING 'form' ON END OF TASK.

.

.

.

MESSAGE 2

 

ENDWHILE.

 

The time between message 1 and message 2 varies in seconds but never less than 3 seconds. The return code of the function call has been always 0 and there is no problem with lack of resources.

 

I implemented another test program in a different environment and I am calling a dummy function module 15 times in parallel, all of the calls were triggered in the same second.

 

Someone has experienced something like this?

 

Thanks,

Felipe


Copy Spool Order. with Delete date filled

$
0
0

Hello team.

 

I have a problem. In the SP01 we send the spool order to other user.

 

Thats its correct. The problem is when Run the Job to delete the Old spools. this last spool order is deleted.

 

This is because when use the SP01 to send the order to other user is no filled the field TSP01-RQDELTIME.

 

Then I need Red the spool and copy this spool order to other User and copy the value RQDELTIME.

 

 

Do you know some FM to do it?

 

Best Regards

Settings to move an Idocs Status from '03' to '12'

$
0
0

Hi All,

 

I would like to know whether there are any settings to move an Idocs status from '03' to '12' without any programs(Manually changing the status with the help of programs) or any background jobs.

 

Please kindly let me know.

 

Thanks in advance,

Divya.

ABAP4 syntax errors

$
0
0

SAP Community Network

hello guys,

 

i have a some crazy errors in my program in sap 4.6C version .

 

i'm  trying to  adapt a code from a different program ( a more recent version ) to the old version 4.6C im working at it right now .

 

but i have lot of synax errors that i can't solve some of them,

 

if anyone have ideas or can help me ,please dont hesitate to message me or answer me .

 

PS: im new in SAP /ABAP

 

thanks a lot .

 

 

 

the error is : The text literal "'<script type=" is longer than 255 characters. Please check whether it ends with a quotation mark.

 

 

the code is:

 

*    Appending the description div and the script to make it dynamic

    APPEND '<script type="text/javascript">$(".col-sm-3")

.hover(function(e){title = $(this).attr("title");$("#desc").

html("<span>" + title + "</span>");$(this).removeAttr("title");},

function(e){$("span", "#desc").html("DESCRIPTION");' TO lt_html.

  

APPEND '$(this).attr("title",title);});</script><div id="desc"

class="row" style="color:black;padding:5px;margin-left:74px;border: 1px

dashed black;margin-top:440px;width:78%;background-color:

#dcdcdc;font-size:18px;">DESCRIPTION</div>' TO lt_html.

 

 

 

    APPEND '</div></div>' TO lt_html.

    APPEND '</body>' TO lt_html.

    APPEND '</html>' TO lt_html.

When should data be locked in FILE transaction?

$
0
0

Transaction FILE is used to maintain logical path / file names and it's a cross-client customizing. I've noticed a rather odd thing in it. We have two DEV clients: one allows cross-client customizing changes and the other doesn't. I ran FILE in the client where the changes were not allowed, got a bunch of messages and transaction opened in display (sic!) mode. This part is perfectly fine.

 

Then I ran a test and realized a change was needed. So I logged into the other DEV client, where changes were allowed, and ran FILE transaction. Much to my surprise, I got a message that the data is locked by <my user ID>. After checking for other open sessions, I realized that when this transaction is opened in display mode, it locks the data. In this situation it's, essentially, a deadlock, because I cannot possibly change the data where it's locked because of the client setting. But in the client meant for changes I can't change it either because it's locked.

 

I tried this in an EHP6 system, you might be able to see this too in any QA system - locks are visible in SM12. As soon as you go to FILE, the locks appear, even if you are in display mode:

image.jpg

I checked some other configuration transactions out of curiosity and found no locks applied in other cases.

 

Trying to be a "good SAP citizen", I opened a low incident on this. But so far AGS a) claimed they can't recreate the issue b) accused me of trying to open the transaction for changes in two sessions (not the case) c) claimed the behavior in display mode is "as designed" (no further explanation as to what's the purpose of such design).

 

Well, maybe I'm the crazy one, so thought I'd ask here. Does anyone see why would FILE transaction need to apply a lock in display mode? This seems to go against the basic transaction design principles IMHO.

 

Thank you!

SM30 Unique Index dump

$
0
0

Hi ,

 

I have created one ztable with two columns. I want unique records in both columns. As we know ,  table can have one primary key , i have set first column as primary key . For second column , i have  created unique key . But when i enter duplicate record for second column , it is throwing dump of duplicate record . Is there any way to handle this dump .

 

 

Regards

Jagjit Singh Saini

Viewing all 8332 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>