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
818

Hi Experts,

I have one query while submitting values to program.

I have multiple parameters in report & I wanted to use submit statement.

Consider I have 3 fields as parameter i.e. P_F1, P_F2 & P_F3.

I am writing as

SUBMIT ZABC WITH P_F1 = LV_F1

AND P_F2 = LV_F2

AND P_F3 = LV_F3

AND RETURN.

But I am getting here as systax error.

Can anybody will suggest me how I can fix it?

Regards,

Neha

7 REPLIES 7
Read only

Former Member
0 Likes
784

HI Neha,


SUBMIT  ZABC WITH P_F1 = LV_F1
WITH P_F2 = LV_F2
WITH  P_F3 = LV_F3
AND RETURN.

will work.

for help refer

http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dba51a35c111d1829f0000e829fbfe/content.htm

Regards,

Raghava Channooru

Read only

Former Member
0 Likes
784

Try below code

SUBMIT ZABC WITH P_F1 eq LV_F1
                        with P_F2 eq LV_F2
                        with P_F3 eq LV_F3
AND RETURN.

Regards

Vinod

Read only

aabhas_wilmar
Contributor
0 Likes
784

Hi Neha,

Please use the proper syntax:

SUBMIT ZABC WITH P_F1 = LV_F1
                                 WITH P_F2 = LV_F2
                                 WITH P_F3 = LV_F3
                         AND RETURN

.

(You don't need AND for multiple parameters) Consider F1 help for syntax reference.

Cheers,

Aabhas

Read only

Former Member
0 Likes
784

Hi Neha,

The correct syntax for SUBMIT statement is as follows :-

SUBMIT Prog_name WITH p_1 EQ 1

WITH p_2 EQ 2

WITH p_3 EQ 3

AND RETURN.

and not as you have given.

Please check and revert in case you still face any issues.

Thanks,

Daya

Read only

Former Member
0 Likes
784

Hi,

Please refine your submit statement with the following call....

changes in the statement is for eaach parameter you need to put WITH addition instead of AND... please see the statement below and change your statement accordingly

SUBMIT ZABC WITH P_F1 = LV_F1
                        WITH P_F2 = LV_F2
                        WITH P_F3 = LV_F3
                         AND RETURN.

Regards,

Sid

Read only

Former Member
0 Likes
784

Hi Neha,

Please try this code.

REPORT  ZAB.

    SUBMIT ZABC USING SELECTION-SETS OF PROGRAM 'ZAB'  
          WITH P_F1 = LV_F1
          AND P_F2 = LV_F2
          AND P_F3 = LV_F3
          AND RETURN EXPORTING LIST TO MEMORY.

Thanks,

Rahul

Read only

ThomasZloch
Active Contributor
0 Likes
784

Very basic question, F1 or ABAP online help will answer it.

Thread locked.

Thomas