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

use parameter from submit program

Former Member
0 Likes
519

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
Read only

Former Member
0 Likes
493

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

Read only

0 Likes
493

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

Read only

Former Member
0 Likes
493

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.