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

Former Member
0 Likes
320

Hi guys,

any one worked on this bapi i want to change 'Acc Assignement Recipient field'.

what is the minimum data required to pass in bapi to change feild BAPIMEPOACCOUNT-GR_RCPT of bapi .

am also passing BAPIMEPOACCOUNTX-GR_RCPT = x .

can any on send me the sample code also need to change one customer exit field ekko-invoice_resp (BAPI_TE_MEPOHEADER-INVOICE_RESP ) please putup some input on this also need to update this field also.

please help me in this .

thx in advance .

1 REPLY 1
Read only

Former Member
0 Likes
281

Hi,

Here is some sample code..hope this helps..

DATA: wa_poheader LIKE BAPIMEPOHEADER,

wa_poheaderx LIKE BAPIMEPOHEADERX,

t_poitem LIKE BAPIMEPOITEM OCCURS 0 WITH HEADER LINE,

t_poitemx LIKE BAPIMEPOITEMX OCCURS 0 WITH HEADER LINE,

t_poaccount LIKE BAPIMEPOACCOUNT OCCURS 0 WITH HEADER LINE,

t_poaccountx LIKE BAPIMEPOACCOUNTX OCCURS 0 WITH HEADER LINE,

t_return LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE.

wa_poheader-po_number = '0000000001'.

wa_poheaderx-po_number = 'X'.

t_poitem-po_item = '00010'.

APPEND t_poitem.

t_poitemx-po_item = '00010'.

t_poitemx-po_itemx = 'X'.

APPEND t_poitemx.

t_poaccount-po_item = '00010'.

t_poaccount-gr_rcpt = '<Your Value Here>'.

APPEND t_poaccount.

t_poaccountx-po_item = '00010'.

t_poaccountx-gr_rcpt = 'X'.

APPEND t_poaccountx.

CALL FUNCTION 'BAPI_PO_CHANGE'

EXPORTING

purchaseorder = '0000000001'

POHEADER = wa_poheader

POHEADERX = wa_poheaderx

  • POADDRVENDOR =

  • TESTRUN =

  • MEMORY_UNCOMPLETE =

  • MEMORY_COMPLETE =

  • IMPORTING

  • EXPHEADER =

TABLES

RETURN = t_return[]

POITEM = t_poitem[]

POITEMX = t_poitemx[]

  • POADDRDELIVERY =

  • POSCHEDULE =

  • POSCHEDULEX =

POACCOUNT = t_poaccount[]

  • POACCOUNTPROFITSEGMENT =

POACCOUNTX = t_poaccountx[]

  • POCONDHEADER =

  • POCONDHEADERX =

  • POCOND =

  • POCONDX =

  • POLIMITS =

  • POCONTRACTLIMITS =

  • POSERVICES =

  • POSRVACCESSVALUES =

  • POSERVICESTEXT =

  • EXTENSIONIN =

  • EXTENSIONOUT =

  • POTEXTHEADER =

  • POTEXTITEM =

  • POPARTNER =

.

Sri