cancel
Showing results for 
Search instead for 
Did you mean: 

Inbound Purchase Order Creation

Former Member
0 Kudos

Dear All,

I am trying to create a purchase order using PORDCR04 through XI, IDOC is getting generated but it is not generating one of the item segment and it is in status 51.

The Error shows as follows:

Function modules invoked in wrong sequence

Message no. ME159

Diagnosis

The function modules for fully-automatic PO generation have been invoked in the wrong sequence. The correct sequence is as follows:

1. ME_REFRESH_PO once

2. ME_CREATE_PO_HEADER once

3. ME_CREATE_PO_ITEM n times

4. ME_POST_PO once

If this sequence is not adhered to, data inconsistencies may arise.

kindly advise how to solve this error

Message was edited by: markkandan shanmugasundaram

Accepted Solutions (0)

Answers (2)

Answers (2)

prabhu_s2
Active Contributor
0 Kudos

Check the sequence of segments in the IDoc. It shud be in synce as in the IDoc type

agasthuri_doss
Active Contributor
0 Kudos

Hi,

The error status : states that Application document cannot be posted, Kindly check the incoming data adheres to the functional module you are using. check the segments data with the FM, It will help you to resolve the issue. Like missing some mandatory values.. integer instead of numberic. might be more decimal points.

Regards

Agasthuri Doss