cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_PO_CREATE1 - It did not change The PO Number In the EBAN TABLE.

Claytoncbj
Participant
0 Kudos

Hi!

We have an abap program that gets a PO created with 5 items and it deletes the items using "BAPI_PO_CHANGE".

After it creates a new PO with the same "Purchase Requisition" by "BAPI_PO_CREATE1".

However one of the items does not update the PO number in "Purchase Requisition".

Does anyone know what might have happened?

Thanks!

Accepted Solutions (0)

Answers (3)

Answers (3)

nomssi
Active Contributor

the standard only relies on table EKET field BANFN. Is this entry correctly updated?

JNN

Claytoncbj
Participant
0 Kudos

Hi!

Yes.

Thank you!

JL23
Active Contributor
0 Kudos

Please read OSS note 2503955 - When and how EBAN-EBELN updated

Claytoncbj
Participant
0 Kudos

Hi!

Thank you for your help but this problem it was created by BAPI and it is working for 99% the POs.

Do you know a program to fix the PO number '2100002392' in the purchase requisition ?

Thank you!

JL23
Active Contributor
0 Kudos

No - you may have to contact SAP Support

Claytoncbj
Participant
0 Kudos

Ok.

Thank you!

vinita_kasliwal
Active Contributor
0 Kudos

Hi Clayton
Its not clear whats happening

Do you mean a different PO number is created from the same PR and for the problematic line item a new PO is created and updated to the PR?

It looks like that from your screenshot isnt that correct behaviour?

Can you check whats different in that PO line item as compared to the others and possibly debug the BAPI ?

Regards

Vinita

Claytoncbj
Participant
0 Kudos

Hi Vinita!

The process:

1 - The "BAPI_PO_CREATE1" receive data from "PI" and it is created a temporary PO "2100002392".

2 - The ABAP execute to delete the PO "2100002392" and after by The "BAPI_PO_CREATE1" it is created another PO "4500458810" .

This process has been used for 1 year and it has not had this error.

I debuged in QA but it has not had problem.

Thank you.