cancel
Showing results for 
Search instead for 
Did you mean: 

HOW TO CLOSE OPEN PO WITH MULTIPLE ASSET ACCOUNT ASSIGNMENT

prakash_parikh
Participant
0 Kudos

HE MM EXPERTS,

Purchase order for multiple account assignment A (asset) is created. Purchase order have multiple Account Assignment Distribution=1. on quantity basis, Partial Inv=1 Distributed in Sequence with same G/L account but different asset for machinery. To close open PO Z report using BDC is created. All open PO can be closed except multiple account assignment. As BDC tries to reduce PO quantity to GR quantity but then can not delete BALANCE QUANTITY OF ACCOUNT ASSIGNMENT CATEGORY So giving an error "Sum of quanties "X" larger than total quantity". Meaning BDC is using ME22 & reducing quantity but for this scenario not able to work. We tried BAP_CHANGE_PO but still not workable.

Manually if I reduce delivery quantity as GR & then delete additional quantity in account assignment category, it can work.So how automatically BAPI or BDC should work? I do not know much ABAP but our ABAP could not do it. Second solution is that if manually I locked item level PO can be closed so how any program can do even though there is open item in the PO.

Also manually I can put delete indicator but again giving same error "Sum of quanties "X" larger than total quantity". So how to close mass PO for multiple account assignment? MASS Tcode also failed with same error.

Appreciate some help & solution to deal with some program if anyone knows.

Thanks for time.

Prakash P.

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member197616
Active Contributor
0 Kudos

hi,

please first check the GRIR account at MR11 and then see what is the difference and inform business accordingly and maximum you try close those differences and then try close PO .with BDC / BAPI. or push a deletion indicator into table EKPO .

Regards

prakash_parikh
Participant
0 Kudos

I have resolved with ABAPer to use ME21N with BAPI_CHANGE Thanks for time.Closed.

former_member629447
Participant
0 Kudos

Hi, I have a similar requirement. Please help to elaborate on the solution if possible. Possibly request your Abap Colleague for this. Thanks!

prakash_parikh
Participant
0 Kudos

Thanks Diana, ABAP is trying to first delete account assignment category & later open item quantity in delivery. I shall request hm to use above two steps & will notify the result. Thanks for your time. Regards Prakash

diana_dai
Active Participant
0 Kudos

Hello Prakash,

As you mentioned that it is possible to manually reduce delivery quantity as GR & then delete additional quantity in account assignment category, so you can try to use BAPI_PO_CHANGE to process the same in two steps:

step 1 : use BAPI_PO_CHANGE to change the delivery quantity, then execute BAPI_TRANSACTION_COMMIT.

step 2: use BAPI_PO_CHANGE to delete PO item, then xecute BAPI_TRANSACTION_COMMIT.

Best regards,

Diana