Problem calling a program using 'SUBMIT ... AND RETURN'
Soady, Phil
phil.soady at sap.com
Mon May 3 20:59:14 EDT 2004
Lesson...
any background step should not call anything that causes dialog.
If you call a dialog based tool you must call it using batch input in
background mode... as specified below.
Alternative, call a BAPI if available.
avoid batch input if possible.
Phil Soady
Senior Consultant
Business Technologies
SAP Australia
M +61 (0) 412 213 079
E phil.soady at sap.com
-----Original Message-----
From: SAP Workflow [mailto:Owner-SAP-WUG at MITVMA.MIT.EDU] On Behalf Of Kouw, FA - SPLXE
Sent: Monday,3 May 2004 9:41 PM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Problem calling a program using 'SUBMIT ... AND RETURN'
Hi,
Just want to share something we experienced, maybe this helps you in the
future:
* when calling a program from a background task/method using 'SUBMIT
... AND RETURN' the workflow step remained in status 'In process'.
This is caused by the following: when the program is executed in
the foreground the program displays 2 message boxes, stating the
result of the program. No further user interaction is needed
(except selecting the OK-button). When running in the background
these message boxes cause the step to remain in status 'In
process'. The solution was to call the program using a "CALL
TRANSACTION 'xxxx' USING BDCDATA MODE 'N' MESSAGES INTO ITAB"
statement (using BDCDATA for skipping the message boxes).
Regards,
Fred Kouw
Please visit http://www.klm-em.com for information about KLM Engineering & Maintenance products and services.
**********************************************************************
This e-mail and any attachment may contain confidential and privileged
material intended for the addressee only. If you are not the addressee, you
are notified that no part of the e-mail or any attachment may be disclosed,
copied or distributed, and that any other action related to this e-mail or
attachment is strictly prohibited, and may be unlawful. If you have received
this e-mail by error, please notify the sender immediately by return e-mail,
and delete this message. Koninklijke Luchtvaart Maatschappij NV (KLM), its
subsidiaries and/or its employees shall not be liable for the incorrect or
incomplete transmission of this e-mail or any attachments, nor responsible
for any delay in receipt.
**********************************************************************
_____________________________________________________________________________________________
This outbound message from KPN has been checked for all known viruses by KPN IV-Scan, powered by MessageLabs.
For further information visit: http://www.veiliginternet.nl
_____________________________________________________________________________________________
More information about the SAP-WUG
mailing list