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 returns no data changed?

Former Member
0 Likes
2,957

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?

7 REPLIES 7
Read only

Former Member
0 Likes
1,724

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

Read only

Former Member
0 Likes
1,724

try to delete these words

poitem        = t_item
poitemx       = t_itemx

Regards,

Fisher

Read only

Former Member
0 Likes
1,724

Is there anyone find the solution for this problem? I am facing the same problem. Thanks!

Read only

Former Member
0 Likes
1,724

Got it

Read only

Former Member
0 Likes
1,724

Hi Dolly,

I am having the same problem. Did you find a solution?

Thanks in advance and best regards,

Eduardo

Read only

0 Likes
1,724

Hi Dolly,

   Can you please reply how did u get it

Read only

0 Likes
1,724

Hi all, please check SAP note 1810992 - BAPI_PO_CHANGE - cannot change shipping data (1521283, for former versions).

It solves the problem.

Regards,

Eduardo