‎2008 Mar 18 8:38 AM
Hi,
My requirement is 2 open display a report when a particular function is called.
Scenario:
I have a function module Z_FM to which a program name is passed along with a line no.
My requirement is to open a new session and display the report that was passed to Z_FM programatically and i also have to move the cursor to the line specified in the import parameters of Z_FM.
Please advise me on how to pcoeed.
I thought of using "CALL TRANSACTION" "LEAVE TO TRANSACTION" but they are not helpful.
Thanks,
Vignesh
‎2008 Mar 18 9:07 AM
HI,
U can use the FM EDITOR_PROGRAM in the display mode.
Check it.
....Patil
‎2008 Mar 18 8:43 AM
‎2008 Mar 18 8:46 AM
Hi,
Use SUBMIT statement and RETURN statement to come back exactly to the place where this program was called.
Reward if helpful.
Regards,
Ramya
‎2008 Mar 18 8:46 AM
‎2008 Mar 18 8:56 AM
Hi,
since you want to move the cursor, its not possible to use submit statment.
i would suggest you to go for BDC recording. First confirm whether you want to go in display mode or in change mode?
Please find the same BDC recording.
Program | Screen | Field Name | Field Value
SAPLWBABAP | 0100 | X
BDC_OKCODE | =SHOP "Display mode
RS38M-PROGRAMM | Z_TEST " program name
RS38M-FUNC_EDIT | X
SAPLS38E | 0400 | X
BDC_SUBSCR | SAPLEDITOR_START 6420EDITORSUBSCREEN
RSTXP-TDFIRST | 5 " instead of 5 replace with the line no
‎2008 Mar 18 9:07 AM
HI,
U can use the FM EDITOR_PROGRAM in the display mode.
Check it.
....Patil