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

CAlling a program through submit statement

Former Member
0 Likes
431

Hi,

how to fill selection screen of called program from values of calling program through submit.

3 REPLIES 3
Read only

Former Member
0 Likes
409

Hello,

YOu can do like this.


  SUBMIT  Z48R_PROJEKTSTATUS WITH SO_PROJ IN SO_PROJ
                             WITH SO_PSP IN SO_PSP
                             WITH SO_WWSTO IN SO_WWSTO
                             WITH SO_WWGFG IN SO_WWGFG
                             WITH SO_ISTAT IN SO_ISTAT
                             WITH SO_ESTAT IN SO_ESTAT
                             EXPORTING LIST TO MEMORY
                             AND RETURN.

Cheers,

Vasanth

Read only

Former Member
0 Likes
409

Hi,

check this

given clearly in SAP keyword help

submit <report name> WITH SELECTION-TABLE rspar

Effect

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.

Read only

0 Likes
409

Hi,

the values in the calling program is collected in internal table through select queries,these values should be passed to called program