Localization of the Purchase Requisition for Brazil
Hi,
Good news is always good to be shared. This is not exactly NF-e topic related, however It´s a great to write about it.
Purchase requisition was localized for Material Management process.
SAP note is 1836886. Inside the Note, you will be able to find all the information regarding the topic and technical information as well.
Solution
This note delivers the localization of the Purchase Requisition with brazilian fields for all the relevant transactions (ME51N, ME52N, ME53N and ME54N). The fields are to be displayed in tab Brazil and the data shall be transfered to the Purchase Order, when it is created with reference to a Purchase Requisition. Added fields to the Purchase Requisition:
J_1BMATUSE – Usage of the material
J_1BOWNPRO – Produced in-house
J_1BMATORG – Origin of the material
J_1BINDUST – Material CFOP category
J_1BNBM – Brazilian NCM Code
List of Affected Objects
Function Group MEGUI
LMEGUICON -> Constants
LMEGUICI1 -> Implementation includes repository
LMEGUITOP -> Top include
LMEGUICF5 -> lcl_req_3326_view_mm (definition) <- Screen behaviour
LMEGUICK5 -> lcl_req_3326_view_mm (implementation)
FM MEGUI_BUILD_REQ_ITEM_PLUGIN -> Screen creation/instantiation
Function group MEREQ
LMEREQF01 -> lcl_r_j_1b (definition) <- Fields behaviour & Gets and Sets (definition)
LMEREQF64 -> lcl_r_j_1b (implementation)
LMEREQF05 -> Field rules -> Gets and Sets (implementation)
LMEREQF04 -> lcl_r_material_general (method copy_from_material_master) <- load material data from master data
LMEREQF45 -> lcl_r_bwtar (implementation) SAPLMEREQ -> Function Pool
Function Group MEMFS
LMEMFSF17 -> Metafile definition Communication between PR and PO
MM06ETOP_GLOBAL_DATA -> Purchase Order global include (new global structure)
LMEPOF42 -> (form MEPO_ITEM_FILL_J_1B) -> Update the global structure
LMEPOF7H -> (form MEPO_ITEM_FILL_READ_BANFN) -> Update FM call interface
BAPIs
CL_J_1B_ME_BAPI_PR
-> J_1B_ME_BAPI_PR_IBS <- BAdI implementation
-> IF_EX_ME_BAPI_PR_CREATE_01 <- interface
-> CONSTRUCTOR
-> EXTENSIONIN <- method
-> EXTENSIONOUT <- method
Enhancement Spot
ME_BAPI_PR_IBS -> Spot
And finally the manual steps to be performed to apply this solution.
Enjoy it!
Gustavo