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
870

i created a service purchase order with a service item and i want change the quantity in service line item 10.i have used BAPI_PO_CHANGE it is not working .how to pass table parameters to POSERVICES

Could you please help me?

Thanks in Advance,

Best Regards

Asish

i created a service purchase order with a service item and i want change the quantity in service line item 10.i have used BAPI_PO_CHANGE it is not working .how to pass table parameters to POSERVICES

Could you please help me?

Thanks in Advance,

Best Regards

Asish

5 REPLIES 5
Read only

Former Member
0 Likes
816

Hi,

Check below link, it may be helpful.

[POSERVICES|]

Thanks,

Asit Purbey.

Read only

former_member206396
Active Participant
0 Likes
816

Hi,

You cannot use BAPI for changing the service line items. it won't support for changing...

Services and limits

Changes to existing items cannot be carried out with the Change

method. It is only possible to create new items.

Read only

dhirendra_pandit
Active Participant
0 Likes
816

Hi,

Make the Internal table of stucture type BAPIESLLC.

Assign the values of each required fields and pass it to the BAPI function module.

Read only

Former Member
0 Likes
816

the BAPI 'BAPI_PO_CHANGE' not wrok in SE37 for this you need to create program and test it.

Parameter: POITEM

PO_ITEM = 00001

CONF_CTRL = 0001

QUANTITY = '1200'

Parameter: POITEMX

PO_ITEM = 00001

PO_ITEMX = X

CONF_CTRL = X

QUANTITY = X

CALL FUNCTION 'BAPI_PO_CHANGE'

EXPORTING

purchaseorder = ebeln

TABLES

return = lt_return

poitem =

poitemx =

IF sy-subrc EQ 0.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' .

endif.

Read only

0 Likes
816

Hi Experts,

Was this issue ever resolved? I am facing the same situation where I have to change the gross price of each of the services. Can this bapi do that? I used the code below but was unable to change the price.

PARAMETERS: p_ebeln LIKE ekko-ebeln.

DATA: t_poitem LIKE bapimepoitem OCCURS 0 WITH HEADER LINE.
DATA: t_poitemx LIKE bapimepoitemx OCCURS 0 WITH HEADER LINE.
DATA: t_return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
DATA: t_cond LIKE bapimepocond OCCURS 0 WITH HEADER LINE.
DATA: t_condx LIKE bapimepocondx OCCURS 0 WITH HEADER LINE.

* For changing the gross price
t_cond-itm_number = '00010'.
t_cond-cond_type = 'PB00'.
t_cond-cond_value = '999.00'.
t_cond-currency = 'USD'.
t_cond-change_id = 'U'.
APPEND t_cond.

t_condx-itm_number = '00010'.
t_condx-itm_numberx = 'X'.
t_condx-cond_type = 'X'.
t_condx-cond_value = 'X'.
t_condx-currency = 'X'.
t_cond-change_id = 'X'.
APPEND t_condx.

CALL FUNCTION 'BAPI_PO_CHANGE'
  EXPORTING
    purchaseorder = p_ebeln
  TABLES
    return        = t_return
    poitem        = t_poitem
    poitemx       = t_poitemx
    pocond        = t_cond
    pocondx       = t_condx.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
  EXPORTING
    wait = 'X'.

BREAK-POINT.