Application Development and Automation 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: 
Read only

Displaying a program

Former Member
0 Likes
694

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

1 ACCEPTED SOLUTION
Read only

santhosh_patil
Contributor
0 Likes
671

HI,

U can use the FM EDITOR_PROGRAM in the display mode.

Check it.

....Patil

5 REPLIES 5
Read only

Former Member
0 Likes
671

use statement SUBMIT <PROGRAMNAME> AND RETURN.

Read only

Former Member
0 Likes
671

Hi,

Use SUBMIT statement and RETURN statement to come back exactly to the place where this program was called.

Reward if helpful.

Regards,

Ramya

Read only

Former Member
0 Likes
671

hi,

u can use SUBMIT <PROGRAM NAME>

Read only

Former Member
0 Likes
671

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

Read only

santhosh_patil
Contributor
0 Likes
672

HI,

U can use the FM EDITOR_PROGRAM in the display mode.

Check it.

....Patil