2020 Jun 22 10:40 AM
Can anyone help me writing the submit statement which has to consider the input of 3 selection screens
2020 Jun 23 5:42 AM
1) ABAP documentation
Please have a look at the documentation ABAP Submit Syntax, especially the part about the selection-screen parameters ABAP SUBMIT - selscreen_parameters Syntax:
The ones marked with (*) are the ones relevant for your case.
2) Pattern-Function WITH expr_syntax
If you use the PATTERN (CTRL+F6) function, choose "Other Pattern: SUBMIT" and type in your Report, it will give you a template for option (4) SUBMIT WITH expr_syntax1 WITH expr_snytax2 ...:
The pattern will include all selection-screen parameters and select options from your report programm.
Just keep the ones that are relevant for you. The parameters are unique and it doesnt matter from which 'tab' of the selection screen they come from, they are internally always available, even though you might have to switch tabs to access all of them.
SUBMIT zyourreport
WITH param1 ...
with param2 ...
with ...
with selopt1 ...
with selopt2 ...
with ...
3) Syntax WITH expr_syntax
Parameters are set with the equal sign (=) and the passed object has to be compatible to the parameter of the selection screen.
Select-Options can be either set as single values with an operator or as range tables.
SUBMIT zyourreport
WITH param1 = pval1
WITH selopt1 EQ sval1
WITH selopt2 GT sval2 SIGN 'E'
WITH selopt3 NOT BETWEEN sval3 AND sval4
WITH selopt4 IN srange.4) Syntax WITH SELECTION-TABLE rspar
DATA rspar TYPE TABLE OF rsparams.
APPEND VALUE #( selname = 'PARAM1' kind = 'P' low = pval1 ) TO rspar.
APPEND VALUE #( selname = 'SELOPT4' kind = 'S' sign = 'I' option = 'EQ' low = sval4a ) TO rspar.
APPEND VALUE #( selname = 'SELOPT4' kind = 'S' sign = 'I' option = 'EQ' low = sval4b ) TO rspar.
SUBMIT zyourreport
WITH SELECTION-TABLE rspar.5) Other issues
If you still have issues, please be more specific about your problem. What have you achieved so far? Show some coding or screenshots to support your case. Right now, your problem is not very specific and easily dealt with showing you the ABAP documentation.
Can anyone help me writing the submit statement which has to consider the input of 3 selection screens
2020 Jun 22 10:53 AM
If I answer your question literally, I could answer that you simply have to pass each of the parameters using WITH, you don't have to consider in what selection screen(s) it's positioned. But I guess you have a specific issue, which is ... ???
2020 Jun 22 11:03 AM
Actually The input screen has 3 tabs with many select options, in this scenario I need the submit statement
2020 Jun 22 11:18 AM
2020 Jun 22 11:59 AM
srividya421,
As sandra.rossi rightly suggested the keyword SUBMIT WITH should be enough for this requirement.
You need not worry about the tabs present because each selection screen element is unique here. Am not sure whether they are with PARAMETERS or SELECT OPTION but you get all the information you need in the below link.
Regards!
2020 Jun 23 5:42 AM
1) ABAP documentation
Please have a look at the documentation ABAP Submit Syntax, especially the part about the selection-screen parameters ABAP SUBMIT - selscreen_parameters Syntax:
The ones marked with (*) are the ones relevant for your case.
2) Pattern-Function WITH expr_syntax
If you use the PATTERN (CTRL+F6) function, choose "Other Pattern: SUBMIT" and type in your Report, it will give you a template for option (4) SUBMIT WITH expr_syntax1 WITH expr_snytax2 ...:
The pattern will include all selection-screen parameters and select options from your report programm.
Just keep the ones that are relevant for you. The parameters are unique and it doesnt matter from which 'tab' of the selection screen they come from, they are internally always available, even though you might have to switch tabs to access all of them.
SUBMIT zyourreport
WITH param1 ...
with param2 ...
with ...
with selopt1 ...
with selopt2 ...
with ...
3) Syntax WITH expr_syntax
Parameters are set with the equal sign (=) and the passed object has to be compatible to the parameter of the selection screen.
Select-Options can be either set as single values with an operator or as range tables.
SUBMIT zyourreport
WITH param1 = pval1
WITH selopt1 EQ sval1
WITH selopt2 GT sval2 SIGN 'E'
WITH selopt3 NOT BETWEEN sval3 AND sval4
WITH selopt4 IN srange.4) Syntax WITH SELECTION-TABLE rspar
DATA rspar TYPE TABLE OF rsparams.
APPEND VALUE #( selname = 'PARAM1' kind = 'P' low = pval1 ) TO rspar.
APPEND VALUE #( selname = 'SELOPT4' kind = 'S' sign = 'I' option = 'EQ' low = sval4a ) TO rspar.
APPEND VALUE #( selname = 'SELOPT4' kind = 'S' sign = 'I' option = 'EQ' low = sval4b ) TO rspar.
SUBMIT zyourreport
WITH SELECTION-TABLE rspar.5) Other issues
If you still have issues, please be more specific about your problem. What have you achieved so far? Show some coding or screenshots to support your case. Right now, your problem is not very specific and easily dealt with showing you the ABAP documentation.
2020 Sep 06 6:48 AM
srividya421, you accept the answer and unaccepted it again. Please post your issue if there are still problems occuring.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |