2010 May 24 11:35 AM
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,
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
2010 May 24 11:49 AM
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.
2010 May 24 11:52 AM
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
2010 May 24 12:10 PM
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,
2010 May 24 12:15 PM
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
2010 May 24 12:46 PM
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.
2010 May 24 12:49 PM
I tried both the ways...both are giving syntax erros....
which says?
2010 May 24 12:53 PM
EXPORTING keyword displaying as red color... I m not sure of the sytax..can u help me
2010 May 24 1:06 PM
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
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |