Skip to Content
avatar image
Former Member

Inbound Purchase Order Creation

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Nov 07, 2006 at 11:48 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 07, 2006 at 11:56 AM

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

    Add comment
    10|10000 characters needed characters exceeded