‎2008 Aug 19 11:22 AM
Hi,
In the function, I need to submit a program simulating the CJAL transaction. My code :
SUBMIT RCJ_SEND_PROJECT_ALE
WITH KOKRS = CONTROLLING_AREA
WITH PSPID = PROJECT_ID
WITH RECSYST = COUNTRY_TARGET
AND RETURN.
The pb is this program display a spool for one project but I don't want display spool, this function must be transparent for the user.
‎2008 Aug 19 11:25 AM
SUBMIT RCJ_SEND_PROJECT_ALE
WITH KOKRS = CONTROLLING_AREA
WITH PSPID = PROJECT_ID
WITH RECSYST = COUNTRY_TARGET
AND RETURN.
Above statement just schedules the job and comes back, so the spool is been generated.
Try.....
SUBMIT RCJ_SEND_PROJECT_ALE
WITH KOKRS = CONTROLLING_AREA
WITH PSPID = PROJECT_ID
WITH RECSYST = COUNTRY_TARGET.
‎2008 Aug 19 11:30 AM
U CAN WRITE YOUR CODE LIKE THAT
form user_command using p_gt_ucomm like sy-ucomm
p_gt_selfield type slis_selfield.
data ls_bsid like line of ibsid.
read table ibsid index p_gt_selfield-tabindex into ls_bsid.
submit zficustledg_det via selection-screen
with s_kunnr = ls_bsid-kunnr
with s_saknr = ls_bsid-saknr
with s_vkorg = ls_bsid-vkorg
with s_sgtxt = ls_bsid-sgtxt
with s_name = ls_bsid-name1
with s_butxt = ls_bsid-butxt
and return.
endform. " user_command
if useful then give point
‎2008 Aug 19 1:36 PM
Remove AND RETURN don't change anything.
I just want that the spool don't display. In fact, I submit program in a loop.
LOOP AT T_PROJECT.
SUBMIT RCJ_SEND_PROJECT_ALE
WITH KOKRS = CONTROLLING_AREA
WITH PSPID = PROJECT_ID
WITH RECSYST = COUNTRY_TARGET
AND RETURN.
ENDLOOP.
So, the program RCJ_SEND_PROJECT_ALE musn't be interrupted by spool.
Edited by: Xavier Couloumies on Aug 19, 2008 2:36 PM
Edited by: Xavier Couloumies on Aug 19, 2008 2:37 PM
‎2008 Aug 19 2:55 PM
I found!
I need to add EXPORTING LIST TO MEMORY after submit.
SUBMIT RCJ_SEND_PROJECT_ALE EXPORTING LIST TO MEMORY
WITH KOKRS = CONTROLLING_AREA
WITH PSPID = PROJECT_ID
WITH RECSYST = COUNTRY_TARGET
AND RETURN.