Skip to Content
avatar image
Former Member

GATP: Missing account assignment in planned order incase of location substitution

Hi Experts,

Need your opinion in following issue: I am creating an order with an item say "ITM1" at location "LOC1". My ATP check is done on "ITM1" and I have implemented rule based availability check. Based on certain stock condition, my rule will substitute "LOC1" with "LOC2". The account assignment category for "ITM1" at "LOC2" is defined as "E" whereas the same for "ITM1" at "LOC1" is defined as blank.

When I create the sales order with the above scenario, my planned order that is generated is missing account assignment number. The planned order gets created for product & LOC2 which has Accnt assignment category as "E". But the planned order is inheriting the accnt. assignment from the parent item.

For this scenario I came across an user exit "EXIT_/SAPAPO/SAPLATPT_001", where we can pass ACCID in the export parameters for ATP segment, so that account id is inherited by the substitution.

To full proof my assumption, at runtime during ATP check, at the user-exit point, I am passing value for ACCID in the exporting structure ES_ATPSGM. Value for ACCID, I am getting by running FM "GUID_CREATE" to get internal number and passing the same number to ACCID. Even while I do so, the planned order still does not get the account assignment.

As per SAP documentation for this enhancement, passing value for ACCID should do the trick, but it is not doing so. Am I missing something here, please put some light into this.

Documentation as per SAP for this enhancement:->

"APOAT001: Setting the ATP Segment


If a version (batch) of a product exists in several locations, you can
set the ATP segment (organizational unit: product / location / account
/ sublocation / product version) so that the version of the
requested product is "inherited" by the substitution."

Thanks, Ray

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers