Application Development 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: 

Submit and Return

Former Member
0 Kudos

Hi Gurus,

Scenario is

I have selection screen in Report A ..based on this selection screen , I will get some records..some of these values i need to submit into report B using range tables...Report B is used to updated some tables and it will give a report..after calling (submit)report B..I do not want display the list of Report B... I want to come back to Report A and I will display the list of Report A....How to achieve this...

Regards,

8 REPLIES 8

Former Member
0 Kudos

RANGES : r_doc FOR edidc-docnum.

r_doc-sign = 'I'.

r_doc-option = 'EQ'.

r_doc-low = rs_selfield-value.

APPEND r_doc.

CLEAR seltab_wa.

SUBMIT rseidoc2 WITH SELECTION-TABLE seltab

VIA SELECTION-SCREEN

WITH docnum IN r_doc AND RETURN.

MarcinPciak
Active Contributor
0 Kudos

Use


SUBMIT reportB ... EXPORTING LIST TO MEMORY and return.

This will suppress list ouput. You can still access it using LIST_FROM_MEMORY fm.

Regards

Marcin

0 Kudos

Hi Marcin ,

Below code i have writen...but the report B is displaying.... i do want that...


SUBMIT zpaymntpost USING SELECTION-SCREEN '1000'
                                    WITH s_tnumb IN i_r_tktnum
                                    WITH s_bukrs IN i_r_bukrs AND RETURN.

if i write code like this...its giving syntax error...could u please help me....


SUBMIT zpaymntpost USING SELECTION-SCREEN '1000'
                                    WITH s_tnumb IN i_r_tktnum
                                    WITH s_bukrs IN i_r_bukrs AND RETURN
exporting list to memory and return.

Regards,

0 Kudos

Don't use double RETURN. Use the submit as originally and just add exporting list to memory .

Also, do you have list output or ALV one? This one will work only for the former one.

Regards

Marcin

0 Kudos

I tried both the ways...both are giving syntax erros....


SUBMIT /ams/famfc_cust_paymntpost USING SELECTION-SCREEN '1000'
                                    WITH s_tnumb IN i_r_tktnum
                                    WITH s_bukrs IN i_r_bukrs AND RETURN
                                    exporting list to memory.


SUBMIT /ams/famfc_cust_paymntpost USING SELECTION-SCREEN '1000'
                                    WITH s_tnumb IN i_r_tktnum
                                    WITH s_bukrs IN i_r_bukrs  exporting list to memory AND RETURN.


0 Kudos

I tried both the ways...both are giving syntax erros....

which says?

0 Kudos

EXPORTING keyword displaying as red color... I m not sure of the sytax..can u help me

0 Kudos

My Friend,

The red color only indicates the error, but it doesn't tell us nothing about the error itself. There has to be a message also which will help you to identify the problem. From this position what I can suggest you is:

- ensure you can call the report normally (without exporting... addtion)

- ensure reportB is having a list output, not a ALV one (or any other GUI control)

- try to substitute the using selection-screen with


submit reportb.... VIA SELECTION-SCREEN  

... if you want to show that screen, or just skip the using selection screen at all (system will call default one)

- ensure you are passing selection screen parameters correctly (names are as expected)

- once all the above is correct, then apply EXPORTING LIST TO MEMORY addtion and retry

Regards

Marcin