Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_PO_CHANGE for changing Confirmations Data

Former Member
0 Likes
4,831

Hi,

Has anyone used "BAPI_PO_CHANGE" for changing the Confirmations data of an existing PO?

I am trying to use the BAPI for this purpose, but even though there are no errors, I am getting an information message saying "The order was not changed".

If anyone has has encountered this problem/found a solution for the problem, please help me out on this.

Thanks in advance.

Regards,

Keerthi

Hi,

Has anyone used "BAPI_PO_CHANGE" for changing the Confirmations data of an existing PO?

I am trying to use the BAPI for this purpose, but even though there are no errors, I am getting an information message saying "The order was not changed".

If anyone has has encountered this problem/found a solution for the problem, please help me out on this.

Thanks in advance.

Regards,

Keerthi

6 REPLIES 6
Read only

Former Member
0 Likes
2,320

Hi,

Try like below:


data: po_no like BAPIMEPOHEADER-PO_NUMBER.
data: ret like BAPIRET2 occurs 0 with header line.
data: conf like BAPIEKES occurs 0 with header line.
data: poitm like BAPIMEPOITEM occurs 0 with header line.
data: poitmx like BAPIMEPOITEMx occurs 0 with header line.

po_no = '4500000000'.
Clear poitm.
Refresh poitm.
poitm-po_item = '00010'.
poitm-ACKN_REQD = 'X'.
poitm-CONF_CTRL = '0001'.
append poitm.

Clear poitm.
poitmx-po_item = 'X'.
poitmx-ACKN_REQD = 'X'.
poitmx-CONF_CTRL = 'X'.
append poitmx.

Clear conf.
Refresh conf[].
conf-PO_ITEM = '00010'.
conf-CONF_TYPE = 'AB'.
conf-DELIV_DATE = '20080619'.
conf-QUANTITY = '10'.
append conf.

CALL FUNCTION 'BAPI_PO_CHANGE'
EXPORTING
PURCHASEORDER = '4500000000'

TABLES
RETURN = ret
POITEM = poitm[]
POITEMX = poitmx

POTEXTHEADER = text_tab 
POCONFIRMATION = conf

Use BAPI commit after the BAPI call

Regards,

Himanshu

Read only

0 Likes
2,320

Hi Himanshu,

I have done exactly the same way as mentioned.

But still the Table is not getting updated.

There are no error messages with it.

I even get an information message saying "Order Changed".

Any other solutions?

Thanks,

Keerthi

Read only

0 Likes
2,320

Hi,

Did you try passing commit work statement after calling the BAPI ?

Regards,

Vik

Read only

0 Likes
2,320

Keerthivasan,

Were you able to get BAPI_PO_CHANGE to work for changing PO confirmations? I am using the code that was provided to you and it's not updating PO although the message is stating that it was changed. Do you have any ideas?

Thanks,

Svetlana.

Read only

0 Likes
2,320

Hi Svetlana,

Apparently this BAPI cannot be used to update the Confirmations tab.

I was not able to use this for my purpose.

I had to settle for "ME_CONFIRMATION_UPDATE".

But you need to be careful with this if you are going to be using this BAPI.

This is because this performs direct update on EKES table.

So you need to manually populate the necessary fields in the structure.

PS: Please award points if suggestions are helpful in resolving problems.

Regards,

Keerthi

Read only

Former Member
0 Likes
2,320

Hello to all,

that is just for documentation. SAP answerd the problem in OSS-304243 but this message is not accessable if you don't have powerful OSS-Users.

This SAP-note might be interesting: 197958

****************************************************************************************************************************

OSS-Message 652796 8.8.2011

BAPI_PO_CHANGE

We can not process confirmations by using the parameter poconfirmation.

The Baps reports always S 06 022 - no data changed.

In the SDN there are some hints telling that the BAPI_PO_CHANGE does notsupport processing of confirmations. More detailled infos should be in

the OSS-Message 0000304243 but this message is not accessable for us.

Can you confirm that the BAPI_PO_CHANGE does not support adding

confirmations? We debugged the BAPI and there is no code for updating

confirmations found.

Best regards

Bernhard Lascy

****************************************************************************************************************************

09.08.2011 - 10:43:07 CET - Antwort von SAP

Dear Bernhard,

I regret to inform you that the functionality you request is not

implemented in the R/3 standard system.

Unfortunately it is not possible to change/load confirmations with the

function module BAPI_PO_CREATE/BAPI_PO_CHANGE. Table POCONFIRMATION in

BAPI interface is relevant for Display/List Vendor Confirmation in BAPI,not for update/insert Vendor confirmation in PO.

Furthermore, we recommends that you use Idocs for automatically

entering confirmations. The Message type to use is ORDRSP.

You may read more about this topic in the online documentation.

Please see also following attached note for your reference.

456127 FAQ: Electronic Data Interchange (EDI) in purchasing

Best regards,

Pavel Olysar

Support Consultant

Global Support - Logistics