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 statement

Former Member
0 Likes
1,129

Hi,

I have used the set parameter command for a particular field after that have to use submit statement.How to pass the values which I have declared in the set paramater to submit stmt.Please help.

1 ACCEPTED SOLUTION
Read only

satsrockford
Active Participant
0 Likes
1,086

Hi,

Have a look at this sample program .

REPORT zvenkat_head1.

TABLES :mara.

DATA: BEGIN OF i_mara OCCURS 0,

matnr TYPE mara-matnr,

END OF i_mara.

RANGES :ms_matnr FOR mara-matnr.

START-OF-SELECTION.

SELECT matnr

FROM mara

INTO TABLE i_mara

UP TO 10 ROWS

WHERE mtart = 'Y211'.

LOOP AT i_mara .

WRITE 😕 i_mara-matnr.

ms_matnr-low = i_mara-matnr.

ms_matnr-option = 'EQ'.

ms_matnr-sign = 'I'.

APPEND ms_matnr.

CLEAR ms_matnr.

ENDLOOP.

AT LINE-SELECTION.

SUBMIT rmmvrz00

WITH ms_matnr IN ms_matnr

VIA SELECTION-SCREEN.

I hope that it helps u .

Thanks,

Satish

8 REPLIES 8
Read only

satsrockford
Active Participant
0 Likes
1,087

Hi,

Have a look at this sample program .

REPORT zvenkat_head1.

TABLES :mara.

DATA: BEGIN OF i_mara OCCURS 0,

matnr TYPE mara-matnr,

END OF i_mara.

RANGES :ms_matnr FOR mara-matnr.

START-OF-SELECTION.

SELECT matnr

FROM mara

INTO TABLE i_mara

UP TO 10 ROWS

WHERE mtart = 'Y211'.

LOOP AT i_mara .

WRITE 😕 i_mara-matnr.

ms_matnr-low = i_mara-matnr.

ms_matnr-option = 'EQ'.

ms_matnr-sign = 'I'.

APPEND ms_matnr.

CLEAR ms_matnr.

ENDLOOP.

AT LINE-SELECTION.

SUBMIT rmmvrz00

WITH ms_matnr IN ms_matnr

VIA SELECTION-SCREEN.

I hope that it helps u .

Thanks,

Satish

Read only

0 Likes
1,086

How to declare for high and low values in the submit stmt.

Read only

0 Likes
1,086

Try using as

SUBMIT program_name VIA SELECTION-SCREEN

WITH s_sel1-low = 123

WITH s-sel1-high = 456

Regards,

Saurabh.

Read only

0 Likes
1,086

Or else create a variant in the program and call as :

SUBMIT 'program_name' USING SELECTION-SET 'Variant'.

Read only

Former Member
0 Likes
1,086

Hi,

If i understood it correctly generally to pass values to the parameters of the program to which we are using submit we use as:

SUBMIT program_name VIA SELECTION-SCREEN

WITH p_para1 = text-001

WITH p_para2 = text-002

WITH p_para3 = text-003.

Hope it helps.

Saurabh.

Read only

0 Likes
1,086

p_para1/2/3 are the parameters in the selection screen of the program called by SUBMIT.

Read only

Former Member
0 Likes
1,086

If I am not wrong, you have used SET PARAMETER ID. If so you will have to SET the parameter id in the calling program and GET that parameter value (using statement GET PARAMETER ID )in the called program.

Read only

Former Member
0 Likes
1,086

hi,

You use SET PARAMETER while you call the transaction by using CALL TRANSACTION.

SET PARAMETER not need to pass values to another program. There is WITH option in SUBMIT statement.