Skip to Content
avatar image
-1
Former Member

How to change delivery date when save the PO?

Hello,

I need help.

I want to change delivery date when I save PO. I`m using BADI

ME_PROCESS_PO_CUST method CHECK but here the value of delivery date = EEIND isnt change. I tried PROCESS_SCHEDULE method, here it is posible but system doesn´t stop when you are save the PO.

Please, anyoen knows where can I do that??

thanks in advance

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Aug 28, 2017 at 01:02 PM

    Did you actually loop at the items and schedules in your implementation of the CHECK method to update schedule?

    items = im_header->get_items( ).
    LOOP AT items ASSIGNING <item>.
      schedules = <item>-item->get_schedules( ).
      LOOP AT schedules ASSIGNING <schedule>.
        <schedule>-schedule->get_data( ).
        " only use set_data if you actually change a value (no infinite loop)
        <schedule>-schedule->set_data( ).
      ENDLOOP.
    ENDLOOP.
    Add comment
    10|10000 characters needed characters exceeded