Application Development 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: 

Is there a BAPI to do PO confirmation

Former Member
0 Kudos

Please let me know if there is a BAPI available for doing PO line item confirmation againest inbound delivery.

11 REPLIES 11

Former Member
0 Kudos

Hi,

Use the BAPI BAPI_PO_CHANGE for the confirmation

Pls check the links for the sample code -

http://www.sap-img.com/abap/sample-abap-code-on-bapi-po-change.htm

Check the SDN for more on this.

Hope this solves your issue.

Regards

Lekha

0 Kudos

I tried bapi_po_change, but it doest work for confirmations

0 Kudos

Hi Vinay,

Have you checked these threads?

Cheers,

Custodio

@zcust01

dave_price
Participant
0 Kudos

ME_PO_CONFIRM

former_member209119
Active Participant
0 Kudos

Hi Vinay,

Please check the below link. It has useful information which can help you out to solve your problem.

http://scn.sap.com/thread/1359136

raymond_giuseppi
Active Contributor
0 Kudos

Did you check this knowledge base article at 1775915  - Cannot create Confirmations with BAPI_PO_CREATE and BAPI_PO_CHANGE. This article explains that there is no BAPI for this and suggests some solutions

  • IDOC : message type ORDRSP
  • BDC : old non-enjoy ME22 transaction
  • SOA : message PurchaseOrderERPConfirmationRequest
  • FM : ME_PO_CONFIRM (ECC 6 Ehp 2 and later)

Regards,

Raymond

Former Member
0 Kudos

Hi,

a

Please try the FM: 'ME_CONFIRMATION_UPDATE'. It has been used in one of the objects and it works !

Thanks,

Nitin

0 Kudos

ME_CONFIRMATION_UPDATE is an update function module, never use those nor suggest their usage, those FM are called by SAP standard after end of checks and with other update FM to update the database, so calling those FM is similar to usage OPEN-SQL statements to update the database...

Regards,

Raymond

0 Kudos

Hello,

I used ME_CONFIRMATION_UPDATE to insert new line in EKES. It worked but the issue is, I did no pass ETENS(Seq. no.) while inserting and now this field is initial in the EKES. Now, I'm getting dump in ME23N = BIT_OFFSET_NOT_POSITIVE at below code. I tried updating & deleting this record from EKES using the same FM but before it goes to update/delete, it performs below check and gets DUMP.

How can I fix it now? I mean, How to delete this entry or update the value from 0000 to 0001. Please Help.

------------------------------------------------------

* set bitmask by providing ETENS

*--------------------------------------------------------------------*

METHOD set_etens.

* define local data object  

DATA lv_byte TYPE x LENGTH 1.  

SET BIT iv_etens OF me->mv_bitmask.    ==>> DUMP at this line because iv_etens = 0000 which is less than 1

IF sy-subrc EQ 0.       RETURN.     ENDIF.  

DO.    

CONCATENATE me->mv_bitmask lv_byte             INTO me->mv_bitmask IN BYTE MODE."unicode    

SET BIT iv_etens OF me->mv_bitmask.    

CHECK sy-subrc IS INITIAL.       EXIT.                        "from do  

ENDDO.   ENDMETHOD.                 

"set_etens ---------------------------------------------------------------------- >

- Sonal

0 Kudos

Hi Sonal,

You can delete it in Debugg mode.

Execute the function module ME_CONFIRMATION_UPDATE in sequence with BAPI_TRANSACTION_COMMIT.

In function module you have table XEKES, YEKES structures. Use  and fill YEKES for the exact data record present in database, fill XEKES sturctures with exact line item number and with new data try to execute it and commit the transaction. It updates table as well as PO confirmation tab too.

Regards,

Siva

0 Kudos

Well, never call update task FM... ... late answer...