How can i trigger a standard program that has selection screen from my custom program. Please note that i have to pass the selection screen values also to the standard program from my customer program.
Also note that, the solution should not say i need to create a variant in standard program.
Tom Matys replied
DATA: wa_rspar TYPE rsparams.
DATA: t_rspar LIKE TABLE OF wa_rspar.
(I loaded idoc info previously to it)
wa_rspar-selname = 'P_IDOC'.
wa_rspar-kind = 'P'.
wa_rspar-sign = 'I'.
wa_rspar-option = 'EQ'.
wa_rspar-low = wa_docnum-docnum.
APPEND wa_rspar TO t_rspar.
SUBMIT PROGRAMNAME WITH SELECTION-TABLE t_rspar AND RETURN
EXPORTING LIST TO MEMORY.