05-25-2010 1:43 PM
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.
05-25-2010 2:09 PM
05-25-2010 2:12 PM
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.
05-25-2010 2:18 PM
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
05-25-2010 2:22 PM
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.
05-25-2010 2:27 PM
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
05-25-2010 2:30 PM
Hi,
i dont have alv grid mine is a module pool/program.
I tried to use call screen but it doesnt work.
Thanks,
Nikhil.
05-25-2010 2:44 PM
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
04-16-2014 2:03 PM
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.