Application Development and Automation 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: 
Read only

Not display spool with submit program

Former Member
0 Likes
814

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.

4 REPLIES 4
Read only

Former Member
0 Likes
661

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.

Read only

Former Member
0 Likes
661

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

Read only

Former Member
0 Likes
661

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

Read only

Former Member
0 Likes
661

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.