cancel
Showing results for 
Search instead for 
Did you mean: 

How to park the PO incase of budget error using BAPI_CREATE_PO1

former_member569532
Participant
0 Kudos

Hi Experts,

We have requirement to park the PO incase budget exceeded error.I am to park the PO if I create manually.But BAPI_CREATE_PO1 is not allowing the park the PO.Kindly any one advise how to resolve this issue.

Thanks & Regards,

Anusha

raymond_giuseppi
Active Contributor
0 Kudos

To answer to an answer, use the comment option on the answer provided...

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member569532
Participant
0 Kudos

PARK_UNCOMPLETE = X

MEMORY_UNCOMPLETE = X

former_member569532
Participant
0 Kudos

Hi Raymond,

Thank your for your reply.I am able to solve this issue using( SAP Note 0002781794 BAPI_PO_CREATE1: Unable to park a PO with Budget exceeded error).

raymond_giuseppi
Active Contributor
0 Kudos

Which values did you pass in PARK_UNCOMPLETE and MEMORY_UNCOMPLETE of the actual BAPI which I assume to be BAPI_PO_CREATE1?

raymond_giuseppi
Active Contributor
0 Kudos

You MUST first implement a BAdI so that that purchase orders on hold are not commitments-relevant and so are allowed to be parked.

Check: are you allowed to park with ME21N and same data (insufficient budget)

  • 'ME_COMMTMNT_PO_RELEV'
  • 'ME_COMMTMNT_PO_REL_C'
  IF NOT im_header-memory IS INITIAL.
    is_relevant = ' '. " mmpur_no.
  ELSE.
    is_relevant = 'X'. " mmpur_yes.
  ENDIF.
former_member569532
Participant
0 Kudos

Hi Raymond,

Thank you for your answer.I am able to park the po manually incase of budget error.I am unable to park by using BAPI_PO_CREATE1.

I want to park the document directly while creating.I am not on putting on hold before Park.I am able to hold the PO using this BAPI only park is not possible.

I am getting the below messages.

E BAPI 001 No instance of object type PurchaseOrder has been created. External reference:

I BP 622 Availability control:

E BP 629 Item 001 A00001 /221500 payment budget exceeded

I have even tried implementing BADI.Still I am unable to park.

Kindly advise.

Thanks & Regards,

Anusha

raymond_giuseppi
Active Contributor
0 Kudos

Try implementing both BAdIs, If I remember good, one was for online transaction and one for BAPI, also during debug when calling BAPI did you reach the BAdI implementation?

former_member569532
Participant
0 Kudos

Hi Raymond,

I have implemented ME_COMMTMNT_PO_REL_C' BADI.Other BADI is reserved for SAP.This BADI is getting called when I am trying to park the PO.

Thanks,

Anusha

raymond_giuseppi
Active Contributor
0 Kudos

Is SAP implementation already active?

Did you clear the is_relevant parameter, could you post your code, during debug what were the values of header-memory and header-memorytype fields ?

(Also if your version is not up-to-date, you should write it)