‎2010 Oct 11 11:52 AM
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
‎2010 Oct 11 11:57 AM
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
‎2010 Oct 11 11:57 AM
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
‎2010 Oct 11 12:01 PM
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
‎2010 Oct 11 12:09 PM
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
‎2010 Oct 11 12:09 PM
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
‎2010 Oct 12 8:36 AM