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 a report without showing the selection-screen

Former Member
23,417

hey guys,

i want to submit a report(rep2) from my report.(rep1)

rep2 has selection-screen.(it also has ldb associated).

i am apssing all the data for selection-screen(of rep2) using an itab.

but now i dont want selection-screen of rep2 to be displayed when rep1 is executed.

how to go about?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
10,525

Hello,

You can avoid showing the selection screen with the addition "NO DISPLAY" in the submit statement.

Thanks,

sowmya

15 REPLIES 15
Read only

Former Member
0 Likes
10,525

Dear ,

Use parameter id to pass fields for selection screen and then use as

Call Transaction 'Tcode' and skip first screen.

Hope this will work for you.

Regards,

Vijay

Read only

JoffyJohn
Active Contributor
0 Likes
10,525

take out the via selection -screen addtion in the submit statement, then selection screen will not be

displayed.

Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
10,525

Submit rep2 via selection-screen.

Read only

Former Member
0 Likes
10,525

SUBMIT Z15KR500_NEW WITH C_RANGE IN U_RANGE AND RETURN.

RANGES: U_RANGE FOR ZRANGE2-FIELD.

zrange2 is a structure with mandt and field as fields field is char32 field.

Read only

Former Member
0 Likes
10,526

Hello,

You can avoid showing the selection screen with the addition "NO DISPLAY" in the submit statement.

Thanks,

sowmya

Read only

0 Likes
10,525

r u sure their is NO-DISPLAY variant for SUBMIT?

pls give me the code.

Read only

0 Likes
10,525

Hi Kumar,

All you need is this:


SUBMIT rep2 WITH SELECTION-TABLE itab. 

Itab must be of type RSPARAMS and must hold information about all selection screen parameters.

Selection screen by default here is suppressed (executed in background). If you want to bring it to fronend you simple add VIA SELECTION-SCREEN addition at the end of above statement.

Regards

Marcin

Read only

0 Likes
10,525

yea right,thats what should happen.

i think there are some validation events on selection-screen of rep2 that are making the selectionscreen appear.

thanks for the info,i will check and come back.

Read only

0 Likes
10,525

Yes, if the screen pops up even you instructed it not to, notice if on the status bar you receive any error message. It can be, as you say, some validation not fullfilled. Ensure you are passing all mandatory fields in your itab.

Regards

Marcin

Read only

0 Likes
10,525

yea i commented all at selec screen events.

it went away

Read only

Former Member
0 Likes
10,525

Dear Kumar,

you can use the below specified variants

SUBMIT <REPORT NAME>

1. ... USING SELECTION-SET vari

2. ... WITH p op f SIGN s

3. ... WITH p BETWEEN f1 AND f2 SIGN s

4. ... WITH p NOT BETWEEN f1 AND f2 SIGN s

5. ... WITH p IN sel

6. ... WITH SELECTION-TABLE seltab

7. ... WITH FREE SELECTIONS texpr

Eg.,

CLEAR paramtrs.
    REFRESH paramtrs.

    PERFORM append_selection_table USING :
                  'SO_NUM' 'P' 'EQ' 123456
                  'ITEM'   'P' 'EQ'  abcdef,
                  'POS'    'P' 'EQ'  10.
    SUBMIT <abc>  WITH SELECTION-TABLE paramtrs AND RETURN.

FORM append_selection_table USING fname ftype fopre fvalue.
  MOVE : fname  TO paramtrs-selname,
         ftype  TO paramtrs-kind,
         fopre  TO paramtrs-option,
         fvalue TO paramtrs-low.
  APPEND paramtrs.

ENDFORM.

where SO_NUM, ITEM AND POS are the report abc's input selection screen.

Read only

Former Member
0 Likes
10,525

Create a selection table with type rsparams.

Fill Your selection screen entries inside this.

then call SUBMIT rep2 WITH SELECTION-TABLE (SELECTION TABLE NAME) AND RETURN.

Read only

Former Member
10,525

Hi,

Use MODE define.

Try this code:-

PARAMETERS MODE NO-DISPLAY DEFAULT 'X'.


    SUBMIT rep2 USING SELECTION-SETS OF PROGRAM 'rep1'  
          WITH pypernr IN  pypernr            " variable
          WITH mode = mode
    AND RETURN EXPORTING LIST TO MEMORY.

Read only

0 Likes
10,525

It worked Thank you , and mode is not required to skip selection screen.

Solution is: submit <report> with selection table <table> and return exporting list to memory.

Read only

Former Member