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

submit keyword using

Former Member
0 Likes
511

i have a require ment like this .

from my program i am calling sap program /SAPAPO/TS_PLOB_MAINTAIN.

it is having selection screen after giving in put it will show another screen both screens i have to pass the data from my current program.

with out displying those selectionscreens i have to execute that sap program .

how it is possible.

if it is possible tell me wht is the code for this.

thanks in advance.

3 REPLIES 3
Read only

Former Member
0 Likes
480

try submit programname

with parameter1 = val1

with parameter2 = val2

and return.

Read only

0 Likes
480

it is havin two screen how can i submit to secon screen

Read only

0 Likes
480

As long as the fields that need data have different names, I think you can still pass them the values this way even though they are on different screens. You can also try using

SUBMIT program WITH SELECTION-TABLE rspar.

where according to help

"If you specify this addition, parameters and selection criteria on the selection screen are supplied from an internal table rspar. You must specify an internal table with the row type RSPARAMS for rspar. The structured data type RSPARAMS is defined in the ABAP Dictionary and has the following components, all of which are data type CHAR:

SELNAME (length 8),

KIND (length 1),

SIGN (length 1),

OPTION (length 2),

LOW (length 45),

HIGH (length 45).

To supply parameters and selection criteria for the selection screen with specific values, the lines in the internal table rspar must contain the following values:

SELNAME must contain the name of a parameter or selection criterion for the selection screen in block capitals

KIND must contain the type of selection screen component (P for parameters, S for selection criteria)

SIGN, OPTION, LOW, and HIGH must contain the values specified for the selection table columns that have the same names as the selection criteria; in the case of parameters, the value must be specified in LOW and all other components are ignored.

If the name of a selection criterion is repeated in rspar, this defines a selection table containing several lines and passes it on to the selection criterion. If parameter names occur several times, the last value is passed on to the parameter.

The contents of the parameters or selection tables for the current program can be entered in the table by the function module RS_REFRESH_FROM_SELECTOPTIONS. "

Or you can try creating a variant (though I don't know if this will work with multiple screens) and use

SUBMIT program USING SELECTION-SET variant.

Add AND RETURN to the end of your statement if you want to come back to your program for further processing after using the called program. I hope this helps.

- April King