Application Development 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: 

Submit statement

Former Member
0 Kudos

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

satsrockford
Active Participant
0 Kudos

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

satsrockford
Active Participant
0 Kudos

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

0 Kudos

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

0 Kudos

Try using as

SUBMIT program_name VIA SELECTION-SCREEN

WITH s_sel1-low = 123

WITH s-sel1-high = 456

Regards,

Saurabh.

0 Kudos

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

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

Former Member
0 Kudos

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.

0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.