Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

call transaction ls24 not working

former_member333737
Active Participant
0 Kudos

Hello Experts,

I am working on module pool where I have made two pushbuttons for LS24 Transaction and md04 transaction

My issue is that for ls24 when I do call transaction for it it works but when i want to come back in the program it goes to call session but for md04 it works properly.

Let me know whats the issue with ls24 tcode.

Thanks and Regrds,

Nikhil.

8 REPLIES 8

former_member196079
Active Contributor
0 Kudos

Hi

whats the code you use for call the transaction??

regards

Marco

0 Kudos

Hi Marco,

WHEN 'LS24'.
      CLEAR ITAB.
      READ TABLE ITAB WITH KEY SEL = 'X'.
      READ TABLE ITAB INDEX TAB_LINE.
      IF SY-SUBRC = 0.
        SET PARAMETER ID 'LGN' FIELD  '190'.
        SET PARAMETER ID 'MAT' FIELD ITAB-MATNR.
        SET PARAMETER ID 'WRK' FIELD ITAB-IWERKS.

      ENDIF.
      IF ITAB-MATNR NE ''.
        CALL TRANSACTION 'LS24'. "AND SKIP FIRST SCREEN.  
      ENDIF.

Thanks,

Nikhil.

former_member196079
Active Contributor
0 Kudos

hi

i have tried with CALL TRANSACTION 'LS24' but it work..

when i exit from the transaction i return on the report......

let me know better your issue....when you come back from the transaction you not return on the report is right??

marco

0 Kudos

Hi,

Yes you are right.

I am running transaction say ZTEST where I have 10 entries in my table control when I select 1st entry for call transaction ls24 it enters into the call transaction when I go back it should again to the screen say 0100 but instead of it goes out of the program.

Thanks,

Nikhil.

0 Kudos

But you have an alvgrid??so when you press a cell you call the transaction??

after call transaction try to use the call screen....

regards

Marco

0 Kudos

Hi,

i dont have alv grid mine is a module pool/program.

I tried to use call screen but it doesnt work.

Thanks,

Nikhil.

0 Kudos

Hi

try to check what happen after the transaction call...so try to set a break-point after call transaction..

another thing....if you enter more the one screen of transaction can be that you must press the red button (X) for exit to the transaction..

regards

Marco

Former Member

Hi,

this is a bug from the standard. Below a way to avoid it with creating a new session during the call transaction:

Create a Remote-Enabled Module in SE37.

The source code, for instance:

and the calling of the MF, in your main program:

MESSAGE 'A new window will be open' TYPE 'I'.
   CALL FUNCTION 'ZFM_CALL_LS24_IN_NEW_WINDOW'
             STARTING NEW TASK 'NEW_SESSION'
             DESTINATION 'NONE'
             EXPORTING
               lgn   = 'SER'
               matnr = ls_output-matnr
               werks = ls_output-werks.


       

Hope it's helpful.

Rachid.