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 along with one input parameter

Former Member
0 Likes
682

Hi

actually i have two programs A and B.

i am calling B using SUMBIT, from program A.

but for B program there is one input parameter,

what i need is, B program should execute with SUBMIT as well as input field.

thanks in advance

vEnu

Hi

actually i have two programs A and B.

i am calling B using SUMBIT, from program A.

but for B program there is one input parameter,

what i need is, B program should execute with SUBMIT as well as input field.

thanks in advance

vEnu

5 REPLIES 5
Read only

VikasB
Active Participant
0 Likes
645

use SUBMIT 'B' WITH <field> and RETURN

regards,

vikas

Read only

Former Member
0 Likes
645

Hi Vikas,

thankz for quick reply

but its not working,

can u send in detail

i used like this : submit B with kunnr and return.

thanks,

vEnu.

Read only

0 Likes
645

Use :

SUBMIT 'B' WITH field = value <b>VIA SELECTION-SCREEN </b> AND RETURN.

You could give the NO-DISPLAY attribute to the transmitted aprameter to prevent changing.

Regards

Read only

former_member386202
Active Contributor
0 Likes
645

Hi,

Refer this

Program accessed

REPORT report1.

DATA text TYPE c LENGTH 10.

SELECTION-SCREEN BEGIN OF SCREEN 1100.

SELECT-OPTIONS: selcrit1 FOR text,

selcrit2 FOR text.

SELECTION-SCREEN END OF SCREEN 1100.

...

Calling program

REPORT report2.

DATA: text TYPE c LENGTH 10,

rspar_tab TYPE TABLE OF rsparams,

rspar_line LIKE LINE OF rspar_tab,

range_tab LIKE RANGE OF text,

range_line LIKE LINE OF range_tab.

...

rspar_line-selname = 'SELCRIT1'.

rspar_line-kind = 'S'.

rspar_line-sign = 'I'.

rspar_line-option = 'EQ'.

rspar_line-low = 'ABAP'.

APPEND rspar_line TO rspar_tab.

range_line-sign = 'E'.

range_line-option = 'EQ'.

range_line-low = 'H'.

APPEND range_line TO range_tab.

range_line-sign = 'E'.

range_line-option = 'EQ'.

range_line-low = 'K'.

APPEND range_line TO range_tab.

SUBMIT report1 USING SELECTION-SCREEN '1100'

WITH SELECTION-TABLE rspar_tab

WITH selcrit2 BETWEEN 'H' AND 'K'

WITH selcrit2 IN range_tab

AND RETURN.

Regards,

Prashant

Read only

Former Member
0 Likes
645

got it,

solution is

SUBMIT B WITH PARAMETER_B = 'VALUE'.

here paremeter_b is the paremeter for the program B.