‎2010 May 06 8:04 AM
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
‎2010 May 06 8:10 AM
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
‎2010 May 06 8:11 AM
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
‎2010 May 06 8:12 AM
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
‎2010 May 06 8:12 AM
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
‎2010 May 06 8:13 AM
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
‎2010 May 06 10:29 AM
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
‎2010 May 06 11:42 AM
Very basic question, F1 or ABAP online help will answer it.
Thread locked.
Thomas