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

Calling multiple Upload Programs from one selection screen

Former Member
0 Likes
716

Hello Experts,

There are multiple upload programs i have developed for each module. My requirement is I have ONE sleelction screen with Company code and the file path...depending on the file path, say if it is for MM module, then that particlar program has to be executed. How I can achieve this? Please advice

Thanks is advance,

Chintu

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
665

HI

I suppose you have file path F4 help on the selection screen of your program. You can make use of FM FILE_GET_NAME_AND_LOGICAL_PATH to separate file path parameters if required.

Based on the values of file path in start of selection call SUBMIT Report command.

e.g.

if file path = XXXX.

SUBMIT RBDSEMAT

WITH MATSEL IN MATSEL WITH

MESTYP = MESTYP WITH

LOGSYS = LOGSYS.

endif.

Regards

Sachin

5 REPLIES 5
Read only

Former Member
0 Likes
666

HI

I suppose you have file path F4 help on the selection screen of your program. You can make use of FM FILE_GET_NAME_AND_LOGICAL_PATH to separate file path parameters if required.

Based on the values of file path in start of selection call SUBMIT Report command.

e.g.

if file path = XXXX.

SUBMIT RBDSEMAT

WITH MATSEL IN MATSEL WITH

MESTYP = MESTYP WITH

LOGSYS = LOGSYS.

endif.

Regards

Sachin

Read only

Former Member
0 Likes
665

Hi,

you can create a custom transaction with one screen containing to I/O fields for company code and module.

in the pai depending on the Value entered. call the program for the same.

regards,

Sakshi

Read only

Former Member
0 Likes
665

Hi,

My suggestion is that you can have radio button in the selection screen for identifying the program.

Then based on the selection you can trigger the specific program.

With Regards,

Sumodh.P

Read only

Former Member
0 Likes
665

HI,

I wolud like to add to what sachin has said , tats the solution . But there must be some segrigation in the naming of the file so tat u can identify the file is of which module . Instead of hardcoding u can maintain in a Z table like

Module Program name

MM -- ZMMUPLOAD

so after identifing the Module from the file name u can get the program name maintained in the table , so further if any new module is added then u will have to maintain in table only , u dnt have to change the program. this will reduce ur coding part.

Hopes this helps .

Regards,

Madhukar Shetty

Read only

Former Member
0 Likes
665

assigned points