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

Update Termination Error while creating Delivery

Former Member
0 Likes
2,880

Hello Experts,

I am trying to create delivery with reference to Standard Order when I click on SAVE I am getting message that delivery is being created. But when I am trying to open the same delivery in change mode I am getting Update termination Error saying delivery not created.

So what I tried doing is while creating delivery I have given Picked quantity and done with PGI then i am able to save the Delivery successfully and table LIKP is also updated. But this is not always that I can do. In my production system, without doing PGI I should able to save Delivery.

Please could anybody help me on this ..is there any SAP notes?

PS: My system is upgraded from ECC 6.0  Ehp2 to ECC 6.0 Ehp7.

Many Thanks in advance.

Priyanka J.

8 REPLIES 8
Read only

Former Member
0 Likes
1,793

Hi,

please check in SM13 which update module fails.

Regards,

Klaus

Read only

kiran_k8
Active Contributor
0 Likes
1,793

Priyanka,

As Klaus said SM13 give us the info on update termination and also lets us debugg that particular module.

K.Kiran.

Read only

Former Member
0 Likes
1,793

Hello Kiran, Hello Klaus,

Below are the details;

Function Module    RV_DELIVERIES_SAVE

Status             Update was terminated

Report             LV50UF0L

Row                50

Error details   Class: 00     Number:671

Internal session terminated with a runtime error POSTING_ILLEGAL_STATE

MENT (see ST22)

Read only

0 Likes
1,793

Hi Priyanka

Where have you written the code to create delivery please provide the details. It should actually be running when sales order has been saved and lock has been released. Do you have any commit work etc /..?

Nabheet

Read only

kiran_k8
Active Contributor
0 Likes
1,793

Priyanka,

check this link

But still go to SM13 choose your log and explore the options provided for debugging.

K.Kiran.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,793

Look in the generated dump thru ST22. POSTING_ILLEGAL_STATEMENT is usually triggered by wrongly coded BAdI/Exit that execute in update task some prohibitted statement (e.g. COMMIT WORK).

If the dump does not relate to a customer development, then look for OSS notes or raise an OSS message (http://service.sap.com/incident) for recent versions.

Regards,

Raymond

Read only

Former Member
0 Likes
1,793

Thank you All!!

Issue is resolved, it was due to wrong code done in User exit.

Read only

0 Likes
1,793

Priyanka,

If you are opening a thread as a Question do make it a point to provide the details of what caused the error and how it was resolved rather than closing it as "issue resolved".That will benefit everyone in the forum when they are going through the thread.

K.Kiran.