2014 Jan 24 11:36 AM
Hello Friends,
I am calling a report from a program using SUBMIT , and that report has selection screen for input. When i run that report directly it is working good and can get output, but when i call that report using SUBMIT it is giving error. Like when i debugged after going into SUBMIT statement , Selection screen not showing up, the cursor is going into some function and coming to Start of selection directly. Please friends help me out.
Thanks & Regards,
2014 Jan 24 11:43 AM
Hi Kittu,
try adding the folllowing code
SUBMIT VIA SELECTION-SCREEN 'REPORT00'
Regards,
Ashish Kumar
Hello Friends,
I am calling a report from a program using SUBMIT , and that report has selection screen for input. When i run that report directly it is working good and can get output, but when i call that report using SUBMIT it is giving error. Like when i debugged after going into SUBMIT statement , Selection screen not showing up, the cursor is going into some function and coming to Start of selection directly. Please friends help me out.
Thanks & Regards,
2014 Jan 24 11:43 AM
Hi Kittu,
try adding the folllowing code
SUBMIT VIA SELECTION-SCREEN 'REPORT00'
Regards,
Ashish Kumar
2014 Jan 24 11:53 AM
Hi,
You should use VIA SELECTION-SCREEN.
SUBMIT <REPORT> VIA SELECTION-SCREEN WITH <SEL-FIELD> = <VALUE>.
-Vijay
2014 Jan 24 11:58 AM
Hi Kittu,
When you are submitting a program always use the screen names not the selection screen names.
let me give an example,
Suppose my Z report have to submit to t-code FBL5N(rfitemar-report name)
FREE MEMORY.
SUBMIT rfitemar WITH dd_kunnr IN s_kunnr
WITH dd_bukrs IN s_bukrs
EXPORTING LIST TO MEMORY AND RETURN.
Here dd_kunnr and dd_bukrs are screen field names not the selection screen field names.
Try this and let me know if you are still facing the issuee.
Thank you,
K Prabhu Kiran.
2014 Jan 24 12:00 PM
Hello Kittu,
Using the structure and the selection screen data to the internal table and follow the following syntax.
DATA: lt_rspar_tab TYPE STANDARD TABLE OF rsparams,
wa_rspar LIKE LINE OF lt_rspar_tab.
example code used for VL74
LOOP AT lt_lieferung INTO ls_lieferung.
wa_rspar-selname = 'RG_VBELN'.
wa_rspar-kind = 'S'.
wa_rspar-sign = 'I'.
wa_rspar-option = 'EQ'.
wa_rspar-low = ls_lieferung-VBELN.
APPEND wa_rspar TO lt_rspar_tab.
CLEAR wa_rspar.
ENDLOOP.
SUBMIT SD70AV2A VIA SELECTION-SCREEN with SELECTION-TABLE lt_rspar_tab
AND RETURN.
2014 Jan 24 12:01 PM
2014 Jan 24 12:38 PM
Thanks to everyone for showing concern and replying back to me , yes after adding via i can access Selection screen through SUBMIT but when i dint use VIA i can access another report. So it is not mandatory correct, so when should i use via and when should i not.
Thanks again to every one..