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

Any BAPI for VL02N

Former Member
0 Likes
2,028

Hi,

I’m 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,

I’m 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.

9 REPLIES 9
Read only

Former Member
0 Likes
1,357

Why not use BAPI_LIKP_PROCESS_MSG_DIRECT?

Gareth

Read only

0 Likes
1,357

Dear Gareth Ellem,

Any example of coding for this FM?

Read only

0 Likes
1,357

Hi everyone,

I tried for these two FM and I faced same problems. The FM’s 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?

Read only

0 Likes
1,357

Check logs in ST22 & SM21....It seems your code is somehow doing COMMIT which is not allowed since program is running in background task.

Read only

0 Likes
1,357

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 can’t do in FM. Any ideas to solve this?

Read only

Former Member
0 Likes
1,357

Did u check the FM CUD0_GET_CONFIGURATION

and FM NAST_PROTOCOL_UPDATE to update the output

check if this helps ..

regards,

vijay

Read only

Former Member
0 Likes
1,357

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>

Read only

0 Likes
1,357

Hi Hari Krishna,

Do you have any example of coding?

tq

Read only

0 Likes
1,357

There is one GN_DELIVERY_CREATE also and you need to use NO_COMMIT