Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Submit program with parameters

Hello,

I use the commande SUBMIT to call a program from another like this:

DATA: t_param TYPE TABLE OF rsparams,

            s_param TYPE rsparams.

       s_param-selname = 'P_VALUE'.

       s_param-kind = 'P'.

       s_param-low  = 'TEST'

       APPEND s_param TO t_param.

       SUBMIT ybctr_prog WITH SELECTION-TABLE t_param AND RETURN.


Now I want to pass some other parameters (my own variables, not SELECT OPTIONS or PARAMETERS  just normal values) from the first program to the other.


If this requirement is possible to achieve this way, please tell me how, if not, please give me tips on how to achieve it.


Thanks in advance.

Tags:
Former Member
replied

You should add more parameters on the selection screen with NO-DISPLAY addition and use them while submitting the data.

If you have to pass the data in a table, You can use IMPORT/EXPORT to memory ID to pass the additional data.

Something like this:

REPORT znp_np_1.

data: v_Data type i.

v_Data = '123'.

export v_data = v_data to MEMORY id 'ZTEST'.

SUBMIT ztest_np_submit and RETURN.

write:'done'.



REPORT  ztest_np_submit.

  data: v_data type i.

START-OF-SELECTION.

  IMPORT v_Data from MEMORY id 'ZTEST'.

  writev_Data.

Regards,
Naimesh Patel

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question