‎2007 Jun 20 8:29 AM
Hi All,
I am using SUBMIT and return in my program. But the program which is called is using the ALV display. So how to skip this display and return back to my calling program.
Regards,
Sathish Reddy.
‎2007 Jun 20 8:35 AM
when u use SUBMIT and Return , it wont display any output ?
u have to use LIST EXPORT to Memory inaddition
first check the syntax of ur call ?
press F1 on Submit in Se38 editor then u wll come to know .
Regards
Peram
‎2007 Jun 20 8:35 AM
Hi
You have to press the BACK button on the ALV display Menu to comback to the calling program.then only it will come.
Reward points for useful Answers
Regards
Anji
‎2007 Jun 20 8:37 AM
Instead of displaying a list on the screen, you can store it in ABAP memory using the
EXPORTING LIST TO MEMORY addition in the SUBMIT statement:
SUBMIT... AND RETURN
EXPORTING LIST TO MEMORY.
Regards
‎2007 Jun 20 8:37 AM
Hi Sathish,
<b>Try the following.
*Submit report and return to current program afterwards
SUBMIT zreport AND RETURN.
*Submit report via its own selection screen
SUBMIT zreport VIA SELECTION-SCREEN.
*Submit report using selection screen variant
SUBMIT zreport USING SELECTION-SET 'VARIANT1'.
*Submit report but export resultant list to memory, rather than
*it being displayed on screen
SUBMIT zreport EXPORTING LIST TO MEMORY.
Once report has finished and control has returned to calling
program,</b>
Thanks and Good Luck
Ashok
‎2007 Jun 20 8:47 AM
Hi,
*Example Code
DATA BEGIN OF itab_list OCCURS 0.
INCLUDE STRUCTURE abaplist.
DATA END OF itab_list.
DATA: BEGIN OF vlist OCCURS 0,
filler1(01) TYPE c,
field1(06) TYPE c,
filler(08) TYPE c,
field2(10) TYPE c,
filler3(01) TYPE c,
field3(10) TYPE c,
filler4(01) TYPE c,
field4(3) TYPE c,
filler5(02) TYPE c,
field5(15) TYPE c,
filler6(02) TYPE c,
field6(30) TYPE c,
filler7(43) TYPE c,
field7(10) TYPE c,
END OF vlist.
SUBMIT zreport EXPORTING LIST TO MEMORY and RETURN.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = itab_list
EXCEPTIONS
not_found = 4
OTHERS = 8.
CALL FUNCTION 'LIST_TO_ASCI'
EXPORTING
list_index = -1
TABLES
listasci = vlist
listobject = itab_list
EXCEPTIONS
empty_list = 1
list_index_invalid = 2
OTHERS = 3.
IF sy-subrc NE '0'.
WRITE:/ 'LIST_TO_ASCI error !! ', sy-subrc.
ENDIF.Regards
Sudheer