‎2005 Dec 26 6:44 AM
Friends,
I'm using a SUBMIT statement( using EXPORTING LIST TO MEMORY AND RETURN option) and the called program is an ALV report.
When the calling program is executed, the ALV output of the called program is displayed first and upon clicking "back" button, the output of calling program is displayed.
Is there any way to avoid the ALV output of the called program
Thanx
Cheers,
Rajeev
‎2005 Dec 26 7:04 AM
Hi Rajeev,
The one u r using is correct Just check once again ur coding u will get the one u required
<b>submit ysubmit_export and return exporting list to memory
with pa_carr eq sflight-carrid
with so_conn eq sflight-connid.</b>
or else just see this sample u will get
CAlling program
REPORT ZSFLIGHT .
tables : sflight.
data :number_of_flights type i.
data : wa_sflight type sflight.
parameters :pa_carr like sflight-carrid.
SO_CONN LIKE sflight-cONNid.
set pf-status 'SUBMIT'.
write:/ 'FOR HANDLING SUBMIT TO CALL REP PROGS',sy-lsind.
if sflight-carrid is initial or sflight-connid is initial.
sflight-carrid = 'AA'.
sflight-connid = '064'.
endif.
at user-command.
case sy-ucomm.
when 'SUB3'.
********PASSES PARAMTERS INTERNALLY & DISP LIST AND BACK TO CALLIN *
*PROGRAM CALLING PROGRAM EPORTS NO OF RECORDS RETRIEVED
***AND THIS PRG IMPORTS THAT
submit ysubmit_export and return exporting list to memory
with pa_carr eq sflight-carrid
with so_conn eq sflight-connid.
endcase.
import anyone to number_of_flights from memory id 'MID1'.
*import read_number to WA_SFLIGHT from memory id 'BC415'.
if sy-subrc = 0.
message s001(zerrmesg) with number_of_flights.
else.
message s002(zerrmesg).
endif.
*
write:/ 'THE NO OF RECS COUNT IMPORTED IS ',number_of_flights.
*wa_sflight
.
*get parameter id 'CAR' field sflight-carrid.
get parameter id 'CON' FIELD SFLIGHT-connid.
if sflight-carrid is initial or sflight-connid is initial.
sflight-carrid = 'AA'.
sflight-connid = '0400'.
endif.
***the called program is
REPORT YSUBMIT_EXPORT .
data: wa_sflight type sflight,
counter type i.
*DATA : ITAB LIKE SFLIGHT OCCURS 25 WITH HEADER LINE.
parameters: pa_carr type spfli-carrid.
select-options so_conn for wa_sflight-connid.
start-of-selection.
if pa_carr is initial.
skip 1.
write: / 'Called' color col_heading.
write: / text-002 color col_normal.
skip 3.
write: /3 text-003 color col_key, 20 sy-uname color col_positive.
write: /3 text-004 color col_key, 20 sy-datum color col_positive.
write: /3 text-005 color col_key, 20 sy-uzeit color col_positive.
else.
format color col_heading.
write: /3 'Called',
9 text-011,
17 text-012,
30 text-013,
40 text-014,
45 text-015,
55 text-016.
format color col_normal.
select * from sflight into wa_sflight
where carrid = pa_carr
and connid in so_conn.
write: /3 wa_sflight-carrid,
9 wa_sflight-connid,
17 wa_sflight-fldate,
30(10) wa_sflight-price currency wa_sflight-currency,
40 wa_sflight-currency,
45 wa_sflight-seatsmax,
55 wa_sflight-seatsocc.
endselect.
endif.
WA_SFLIGHT = ITAB.
counter = sy-dbcnt.
*************EXPORTING THE NO OF RECS TO ABAP MEMORY
export anyone from counter to memory id 'MID1'.
Regards,
Sridhar Reddy k
Message was edited by: sridhar reddy kondam
‎2005 Dec 26 7:34 AM
Hi Rajeev,
1. Can u tell us the program name.
( i had also faced same problem)
Regards,
Amit M.
‎2005 Dec 26 7:35 AM
Hi,
Try to use this function module,
RZL_SUBMIT.
If this solves your problem ,please award suitable points and close the thread.
Regards,
Irfan Hussain
‎2005 Dec 26 8:07 AM
Hi Sridhar,
My called program has an ALV output. Pls let me know if your code works in this condition. If its an abap list without ALV it's working.
Cheers,
Rajeev
‎2005 Dec 26 8:31 AM
hi can you show the code how you are calling the submit.
similar thing i did, it is not displaying...
regards
vijay
‎2005 Dec 26 8:45 AM
you cannot use sumbit exporting list to memory and return for ALV GRIDs , but if its a ALV list you can use submit.
Regards
Raja