4/17/2021 0 Comments Sap Change Pointer Matmas Full
In order to configure Change Pointer mechanism, we need to develop and do the settings as described in the following steps taking Vendor Master as an example.IDOC Basic Type: The basic element of any IDOC is Basic Type.We can create a new BASIC TYPE or extend the standard BASIC TYPE using the transaction WE30, WE31.
Create IDOC segment ZMMPUDOCK using WE31 having custom fields as per the requirement Create IDOC extension ZCREMAS05 using WE30 for standard basic type CREMAS05 3. IDOC Message Type: Create a new message type through the tcode WE81 Assign the message type created through WE81 to the desired BASIC TYPE using the transaction WE82 4. Activate Change Pointers GenerallyMessage Type: Activate the change pointers generally using t-code BD61. Activate the change pointer for above message type using t-code BD50 5. Assign Change Items to Message Type: Assign the table LFA1 and the corresponding filed as per the requirement to above created message type using t-code:BD52 6. Business Object Repository: The program that needs to be called when change pointers triggers an event is developed in BOR using t-code SWO1 Create one method RUNBD21 and two events CREATE and CHANGE as shown in the following figure. In the program ZCHGPOINT.RUNBD21, call an method of class in which function module will be called to process and outbound IDOC passing the parameter MESSAGE TYPE In ZCLBD21ZCLBD21TEST put the below logic select single idocfbname from tbdme into lvidocfbname where mestyp MESSAGETYPE created above call function lvidocfbname exporting messagetype MESSAGETYPE created above exceptions errorcode1. Link Change Document object and BOR: The BOR created in above step will be required to be linked Vendor change document object KRED using SWEC Similarly make an entry for CHANGE event of BOR ZCHGPOINT 8. Workflow Task: Create an customized task in order to link it to BOR above created. Standard Task is created using t-code PFTC In the trigeering events table mention the CREATE and CHANGE event of BOR ZCHGPOINT 9. Create Function Module The processing logic required to generate outbound IDOC needs to be implemented in this FM. Fetch change pointers record from table BDCP for the corresponding message type using the FM CHANGEPOINTERSREAD with parameters as MESSAGETYPE Import parameter MESSAGETYPE CREATIONDATEHIGH Import parameter CREATIONDATEHIGH CREATIONTIMEHIGH Import parameter CREATIONTIMEHIGH READNOTPROCESSEDPOINTERS X b. For all the records fetched in step a ) check if BDCP-tabname LFA1 THEN collect vendor number LIFNR BDCP-tabkey3(10) c. Thus in above step we can get vendor number for which any field is being changed through XK01XK02 and the correspoing change pointer is triggered. Sap Change Pointer Matmas Update All ProcessedNow populate segment ZCREMAS05 as per the requirement and post the IDOC using MASTERIDOCDISTRIBUTE or STANDARD master idoc BAPI e, Call the FM CHANGEPOINTERSSTATUSWRITE to update all processed change pointer id 10. Configure Message type with Function Module: The message type created ZMMVECREMAS01 needs to be linked with FM created ZFMTRIGGERIDOC Conclusion By completing the above configuration steps we will able to trigger outbound IDOC whenever there is change in particular field value through standard transaction. Sap Change Pointer Matmas How To Find AAdd Custom button to a standard screen, where there is no Screen exit; VI02 How To find a BTE (Business Transaction Event) - Technical way How to Easy. Create a Search Help by code and fill more than one field in screen Customer Name Addition to FBL5N Report Using BTE IMPLEMENTATION FOR EXPORTIMPORT USING ABAP OOPs Concept Activating Generic Object Services Toolbar in SAP Objects Introducing the Enhancement Framework: The Cool New Way to Enhance Your ABAP Systems Collective reject from ME28 (Approve Purchase Documents) Enhancement for Version Long Text in ME21n22n23n Is Kernel BADI really faster than Classic BADI How to find BAdIs with a Function Module Enhancing Material Master MFBF Disable Quantity Field - Assembly Backflush. Static Enhancement vs Dynamic Enhancement Enhance SAP standard transaction screen which does not have screen exits or screen Badis Introducing the Enhancement Framework: The Cool New Way to Enhance Your ABAP Systems.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |