2009 Mar 28 6:46 AM
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
2009 Mar 30 6:14 AM
2009 Mar 30 12:55 PM
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.
2009 Apr 20 9:52 AM
Hi,
Make the Internal table of stucture type BAPIESLLC.
Assign the values of each required fields and pass it to the BAPI function module.
2009 Apr 20 10:00 AM
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.
2010 Dec 09 5:21 PM
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.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |