Application Development 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: 

use parameter from submit program

Former Member
0 Kudos

hi

all

please suggest me a way to use the program varibles of a submit program in the main program

thanks

in advance

3 REPLIES 3

Former Member
0 Kudos

Could please give us a more detailed spec of what you want?!

0 Kudos

You can pass parameters from main program to the submitted program using the WITH extension.

Parameters: p_check(1) type c.


submit zreport 
         with  p_VAR = P_CHECK
               and return.

Here P_VAR is a parameter in the submitted program(ZREPORT)

REgards,

Rich HEilman

Former Member
0 Kudos

Here is an Example:

SUBMIT rsnast00 WITH s_kappl = 'V2'

WITH s_objky = it_likp-vbeln

WITH s_kschl = 'SHOR'

WITH s_nacha = '6'

AND RETURN.