We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

Re: [sap-dev] dynpro_send_in_background

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Reply from crepmaster on Feb 13 at 1:11 AM
Solved the issue by adding " and return" after the submit .

---------------Original Message---------------
From: ebongue andre
Sent: Wednesday, February 12, 2014 1:19 PM
Subject: dynpro_send_in_background

Hy expert, I'm facing this error with all the background task.
1) sy-batch is sap_all,
2) the method do not call rfc

Got this error:
The current ABAP program "SAPLKKBL" had to be terminated because it has
come across a statement that unfortunately cannot be executed.
Current screen: "SAPMSSY0 " 0120.
Additional system information:
"currently running as cpic server"

When I run the wf in foreground ( assign the task to an agent) I do not have issue.
What am I missing?
This is the method:

DATA: it_zsd_lack_we TYPE STANDARD TABLE OF zsd_lack_we,
wa_zsd_lack_we TYPE zsd_lack_we,
wa_edpar TYPE edpar.
CONSTANTS: c_we(2) TYPE c VALUE 'WE',
c_kschl TYPE kschl VALUE 'ZEDF',
c_nacha TYPE na_nacha VALUE '6',
c_nsort TYPE na_sorv3 VALUE '01',
c_vermo TYPE na_vermo_new VALUE '2'.

DATA: ra_vbeln TYPE TABLE OF selopt,
wa_vbeln TYPE selopt.

DATA: wa_wi_id TYPE tt_wi_id.

REFRESH: ra_vbeln, it_zsd_lack_we.
wa_vbeln-option = 'EQ'.
wa_vbeln-sign = 'I'.

SELECT * FROM zsd_lack_we INTO TABLE it_zsd_lack_we
WHERE parvw = c_we.
LOOP AT it_zsd_lack_we INTO wa_zsd_lack_we.
SELECT SINGLE * FROM edpar INTO wa_edpar
WHERE kunnr = wa_zsd_lack_we-kunnr
AND parvw = c_we.
IF sy-subrc = 0.
wa_vbeln-low = wa_zsd_lack_we-vbeln.
APPEND wa_vbeln TO ra_vbeln.
MOVE wa_zsd_lack_we-id TO wa_wi_id-wi_id.
APPEND wa_wi_id TO e_wi_id.
ENDIF.
ENDLOOP.
IF NOT ra_vbeln[] IS INITIAL.
SUBMIT sd70av3a
WITH rg_kschl = c_kschl
WITH rg_nacha = c_nacha
WITH pm_nsort = c_nsort
WITH pm_vermo = c_vermo
WITH rg_vbeln IN ra_vbeln .
COMMIT WORK.
ENDIF.

 
Reply to this email to post your response.
 
__.____._
Manage Settings | Unsubscribe | Create FAQ | Send Feedback
  
Copyright © 2014 Ziff Davis, Inc. and message author.
Ziff Davis, Inc. 28 E 28th Street New York, NY 10016
crepmaster  

achievements
 
Mark as helpful
View this online
Ask a new question
 
In the Spotlight
Have a technical question? Need to find IT solutions? Ask your peers in the Toolbox for IT community.

_.____.__

0 comments:

Post a Comment

T r a n s l a t e to your language