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

open program from select option.

Former Member
0 Likes
454

Hi Friends..

if iam giving one program name in select option,i want to open that program

for that purpose how can i writ coding..

Thanks

Gowrishankar

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
435

Hi Gowri sankar,

Try with SUBMIT command. It is used to call a program.

3 REPLIES 3
Read only

Former Member
0 Likes
435

Hi,

Use SUBMIT command to call a report or prgram.

See documentation for SUBMIT.

Regards,

Hari krishna.

Read only

Former Member
0 Likes
435

hi,

REPORT STARTER NO STANDARD PAGE HEADING.

DATA: NAME(8) VALUE 'SAPMZTS1',

WID TYPE I VALUE 80,

LEN TYPE I VALUE 0.

SET PF-STATUS 'SELECT'.

WRITE: 'Select a report and its list format:',

/ '----


'.

SKIP.

WRITE: 'Report ', NAME INPUT ON,

/ 'Line size ', WID INPUT ON,

/ 'Page length', LEN INPUT ON.

AT USER-COMMAND.

CASE SY-UCOMM.

WHEN 'SELE'.

READ LINE: 4 FIELD VALUE NAME,

5 FIELD VALUE WID,

6 FIELD VALUE LEN.

SUBMIT (NAME) LINE-SIZE WID LINE-COUNT LEN AND RETURN.

ENDCASE.

You can use this program to start programs with user-defined list formatting. On the basic list, the user can enter a report name and the desired list width and length by overwriting the default values:

In the AT USER-COMMAND event, the system reads the values and starts the specified executable program using SUBMIT. If the REPORT statement in the called program has no LINE-SIZE or LINE-COUNT specification of its own, its lists are displayed using the values WID and LEN. At the end of the called program, you can change the input values on the basic list and start a new program.

<b>Reward useful points</b>

siva

Read only

Former Member
0 Likes
436

Hi Gowri sankar,

Try with SUBMIT command. It is used to call a program.