‎2010 Aug 06 7:27 AM
Hi,
I am trying to change delivery priority at item level in shipping tab, but It returns no data changed.
l_item-po_item = t_items-ebelp.
APPEND l_item TO t_item.
l_itemx-po_item = t_items-ebelp.
l_itemx-po_itemx = 'X'.
APPEND l_itemx TO t_itemx.
l_itemship-po_item = t_items-ebelp.
l_itemship-dlv_prio = p_lprio.
APPEND l_itemship TO t_itemship.
l_itemshipx-po_item = t_items-ebelp.
l_itemshipx-dlv_prio = 'X'.
l_itemshipx-po_itemx = 'X'.
APPEND l_itemshipx TO t_itemshipx.
REFRESH t_return.
CALL FUNCTION 'BAPI_PO_CHANGE'
EXPORTING
purchaseorder = t_items-ebeln
TABLES
return = t_return
poitem = t_item
poitemx = t_itemx
poshipping = t_itemship
poshippingx = t_itemshipx.
READ TABLE t_return INTO l_return
WITH KEY type = 'E'.
IF sy-subrc = 0.
w_status = 'F'.
w_msgtx = l_return-message.
ELSE.
w_status = 'S'.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
CONCATENATE t_items-ebeln
' Updated successfully.'
INTO w_msgtx.
ENDIF.It returns S 06 022 No data changed
Even I am trying to test independently, through SE37, but it returns the same message,
Does I do something for updating shipping tab information through BAPI?
‎2010 Aug 06 7:49 AM
Hi Dolly,
First check wt is the Delivery Priority value for the PO item that you are trying to change.
You are getting this message bcoz the value of Delivery Priority that you are passing to the BAPI is same as the existing value.
Regards
Balu
‎2010 Aug 06 8:25 AM
try to delete these words
poitem = t_item
poitemx = t_itemxRegards,
Fisher
‎2010 Aug 16 10:32 PM
Is there anyone find the solution for this problem? I am facing the same problem. Thanks!
‎2011 Jan 14 6:33 PM
‎2011 Oct 18 12:46 PM
Hi Dolly,
I am having the same problem. Did you find a solution?
Thanks in advance and best regards,
Eduardo
‎2013 Sep 02 3:09 PM
‎2014 Mar 26 8:48 PM
Hi all, please check SAP note 1810992 - BAPI_PO_CHANGE - cannot change shipping data (1521283, for former versions).
It solves the problem.
Regards,
Eduardo