[adToAppearHere] Your business wants to change/correct the Sales Office data, even if it is not allowed in standard change mode in transaction IW32. See the screenshot, it is disabled. Should you really change the sales…
Client wanted to mass correct the maintenance plan category. But it was not editable even in change mode in T-code. So, they called for their trusted companion, the ABAPer.. 🙂 We can achieve this using…
BADI MRM_ITEM_CUSTFIELDS can be used to enhance the standard MIRO detail screen and add the new custom Tab and custom fields in MIRO line items screen. [adToAppearHere] BADI implementation steps and configuration of custom subscreen:…
BAPI_PO_CHANGE is used for re-pricing the Purchase Order. The calculation type CALCTYPE should be set to ‘B’ (meaning ‘Carry out new pricing’) and PRICEDATE should be set to ‘3’ (meaning ‘Current Date’). Code snippet
li_bapiitem TYPE STANDARD TABLE OF bapimepoitem,
li_bapiitemx TYPE STANDARD TABLE OF bapimepoitemx.
lk_bapiitem-po_item = -ebelp.
lk_bapiitem-calctype = 'B'. " Reprice it
lk_bapiitem-pricedate = '3'. " Reprice it based on current date
APPEND lk_bapiitem TO li_bapiitem.
lk_bapiitemx-po_item = -ebelp.
lk_bapiitemx-calctype = ‘X’.
lk_bapiitemx-pricedate = ‘X’.
lk_bapiitemx-po_itemx = ‘X’.
APPEND lk_bapiitemx TO li_bapiitemx.
* Change condition price using BAPI_PO_CHANGE
CALL FUNCTION 'BAPI_PO_CHANGE'
purchaseorder = -ebeln " PO number
return = li_return " For return messages
poitem = li_bapiitem " PO Line item
poitemx = li_bapiitemx. " PO Item data change parameter.
In this post, I would show how to add custom fields in the standard SAP MIRO header screen using BADI ‘BADI_FDCB_SUBBAS01’. Allowance and Vendor Invoice IDoc number are the two custom fields added in MIRO…
Sometime the VOFM routines need to be manually activated in other systems (say quality system, volume testing system etc) by executing program RV80HGEN. In order to bypass this manual activation step, a better approach is…
SAP has provided function module ‘RKD_WORD_WRAP‘ to wrap Character type variables. But we cannot use this FM to wrap String type variables. Either you need to transfer the string type data into a character type…
In one of our development, we had to update Purchasing Group of vendor using BDC calling transaction MK02. We came across a strange issue, i.e., the change document header (CDHDR) and change document item (CDPOS)…