Kishore Thutaram
SAP Solution Architect | 16+ Years' Experience in SAP | Sharing Practical SAP Knowledge | Engineering Graduate with Expertise in SAP Architecture
https://fiowelt.comBusiness Scenario:
“Update the PO Item schedule line date based on a condition- purchasing document type”
Steps: SE19 – Implement the BADI ME_PROCESS_PO_CUST
Method : PROCESS_ITEM
Implement the below code
“Read header and Schedule line data from BADI signature
FINAL(ls_po_header) = im_item->get_header( )->get_data( ).
DATA(lt_schedule) = im_item->get_schedules( ).
IF ls_po_header-bsart EQ ‘ZSTS’ OR
ls_po_header-bsart EQ ‘ZSTM’. “Condition on PO type
LOOP AT lt_schedule ASSIGNING FIELD-SYMBOL().
DATA(ls_schedule_data) = ->get_data( ).
ls_schedule_data-uzeit = ‘000000’.
ls_schedule_data-EEIND – sy-datum + 7.
-schedule->set_data( im_data = ls_schedule_data ).
ENDLOOP.
ENDIF.
SAP Solution Architect | 16+ Years' Experience in SAP | Sharing Practical SAP Knowledge | Engineering Graduate with Expertise in SAP Architecture
https://fiowelt.com