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

Report through submit not going to selection screen.

Former Member
0 Likes
3,603

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,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,103

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,

6 REPLIES 6
Read only

Former Member
0 Likes
2,104

Hi Kittu,

try adding the folllowing code

SUBMIT VIA SELECTION-SCREEN 'REPORT00'

Regards,

Ashish Kumar

Read only

VijayaKrishnaG
Active Contributor
0 Likes
2,103

Hi,

You should use VIA SELECTION-SCREEN.

SUBMIT <REPORT> VIA SELECTION-SCREEN WITH <SEL-FIELD> = <VALUE>.

-Vijay

Read only

Former Member
0 Likes
2,103

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.

Read only

Former Member
0 Likes
2,103

Hello Kittu,

Using the structure and the selection screen data to the internal table and follow the following syntax.

  DATAlt_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.

Read only

Sijin_Chandran
Active Contributor
0 Likes
2,103

Please paste the error details along with the Screen shot of your SUBMIT query.

Read only

Former Member
0 Likes
2,103

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..