ā2006 Dec 21 2:26 AM
Hi,
Im creating a new output type in NACE(V7-Transport) and one of my process is to update the delivery(VL02N), its work using CALL TRANSACTION but I got abap dump, the errors is Runtime Errors POSTING_ILLEGAL_STATEMENT and the comments is Statement "CALL TRANSACTION" is not allowed in this form.
Hi,
Im creating a new output type in NACE(V7-Transport) and one of my process is to update the delivery(VL02N), its work using CALL TRANSACTION but I got abap dump, the errors is Runtime Errors POSTING_ILLEGAL_STATEMENT and the comments is Statement "CALL TRANSACTION" is not allowed in this form.
ā2006 Dec 21 4:44 AM
ā2006 Dec 21 5:40 AM
ā2006 Dec 22 4:09 AM
Hi everyone,
I tried for these two FM and I faced same problems. The FMs are CALL FUNCTION 'WS_DELIVERY_UPDATE' and CALL FUNCTION 'BAPI_LIKP_PROCESS_MSG_DIRECT'. The problem is no COMMIT WORK statement in my coding. Anybody can help?
ā2006 Dec 22 6:11 AM
Check logs in ST22 & SM21....It seems your code is somehow doing COMMIT which is not allowed since program is running in background task.
ā2006 Dec 22 6:52 AM
Dear Sanjay,
I checked at ST22 and see the abap dump, the message is Invalid COMMIT WORK in an update function module.. So COMMIT WORK statement cant do in FM. Any ideas to solve this?
ā2006 Dec 22 7:06 AM
Did u check the FM CUD0_GET_CONFIGURATION
and FM NAST_PROTOCOL_UPDATE to update the output
check if this helps ..
regards,
vijay
ā2006 Dec 22 7:15 AM
Hi.,,
If you are using a 4.7 version,
Standard BAPI is available to change the outbound delivery document.
Check this :- <b>BAPI_OUTB_DELIVERY_CHANGE</b>
ā2006 Dec 22 8:28 AM
ā2006 Dec 22 8:40 AM
There is one GN_DELIVERY_CREATE also and you need to use NO_COMMIT
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |