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:
“Companies may require a different GR/IR clearing account for specific Stock Transport Order (STO) scenarios (such as certain plants or materials) to improve financial tracking and reconciliation.”
Steps: CMOD – > Create a project on customer exit enhancement – LMR1M002
Exit FM : EXIT_SAPLKONT_011
Include: ZXM08U18
Implement the below code
^^* Fetch PO Type and Vendor
SELECT SINGLE bsart, lifnr FROM ekko
INTO ( @lv_potype, @lv_lifnr )
WHERE ebeln = @i_wrxmod-ebeln.
"Add the conditions and Update
IF sy-subrc = 0 AND lv_potype = 'ZASD' AND lv_lifnr+0(3) = 'ZSD'.
e_konto_modif = 'Z2'. "Update KOMOK Value Account Modification
ENDIF.
SAP Solution Architect | 16+ Years' Experience in SAP | Sharing Practical SAP Knowledge | Engineering Graduate with Expertise in SAP Architecture
https://fiowelt.com