Enterprise Resource
Planning Portal

 

Advertise | Founder BLOG

ERPGenie.COM ABAP Tips and Tricks Database

THE ultimate
ERP website

 

Forums | Vote for us |

Google    Other Search Options

Home arrow Tips and Tricks arrow IDocs / BDocs
IDocs / BDocs
Change pointers for a custom message type PDF Print E-mail
User Rating: / 1
Written by Henrik Frank   
Tuesday, 24 February 2009
 Scenario: We want to crerate a custom message type for idoc type MATMAS03, activate change pointers for the message type and use a distribution model to filter and distribute the idoc.


1. WE81 Create new message type  ZMATMAS_SIMATIC

2. WE82 make connection between IDOC type MATMAS03 and message type  ZMATMAS_SIMATIC

3. BD59 Create the field that we will use to filter the idoc in the distribution model    

We will use plant (WERKS) and material type (MTKLAS)  to filter the idocs:



Note: You can take a look at the standard message type MATMAS to find ALE object type and Segm. type

4. BD64 Create distribution model.

Press button Create model view to create a new distrbution model 



Press select the new model and press button Add message type to add the new message type and the sender and receiver systems

Your distribution model should now look like this



Under the message type ZMATMAS_SIMATIC choose the filter and add the fields from step 3 and the filter cirterias.
We only want to distribute IDOC where plant = 1002 and material type is HALB or ROH.



You are now finished with the distribution model


5. BD60 To be able to use changepointers for the new message type, it must have a reference to the original message type MATMAS. You make this referecne in BD60.

6. BD52 In this transaction you set up the fields that triggers a change. Note that it is not possible to copy the fields from and existing message type (For example from MATMAS). However, you can use an existing message type in BD52 to find out  Object and table name for the fields.

In the example below we only wants to trigger a change pointer when the material text changes.



7. You should now be ready to test that the change pointer works for the new transaction.

  • Make a change to the material text for a material in plant 1002 of material type HALB or ROH
  • Run transaction BD21 or ABAP program RBDMIDOC for message type ZMATMAS_SIMATIC
  • Check that an outboudn IDOC has been  created (Transaction WE02)
 
IDoc Structure PDF Print E-mail
User Rating: / 1
Written by Anon.   
Thursday, 02 August 2007
IDOC type and IDOC. An Intermediate Document (IDOC) type represents the structure of the data associated with a message type (DEBMAS02 for message type DEBMAS — Customer Master, and WMMBID02 for message type WMMBXY— Goods Movements), while an IDOC is an object containing the data of a particular message type. IDOCs are data containers with intelligence built in. Each IDOC contains one and only one business object. For example, an IDOC of type SHPMNT01, message type SHPMNT, will contain data only of one Shipment Document. Generally, the architecture of an IDOC is independent of the message type by virtue of ALE’s ability to redefine it for any message type.
Read more...
 
Changing data in MATMAS IDoc PDF Print E-mail
User Rating: / 1
Written by Kevin Wilson   
Tuesday, 17 July 2007

Use the following BAdIs to change data in the MATMAS IDoc:

  • BADI_MATMAS_ALE_CR   Change Data in MATMAS IDoc When Generating an IDoc
  • BADI_MATMAS_ALE_IN   Change Data in MATMAS IDoc Before Posting

 

 
IDoc linkage tables PDF Print E-mail
User Rating: / 2
Written by Goodwin Yee   
Monday, 25 June 2007

Links are written in the ALE and IDoc environment which result in entries in the IDOCREL and SRRELROLES tables. These links are required for IDoc monitoring for the document trace and for the ALE audit.
The business objects in a link are stored in the SRRELROLES table. The business objects are assigned a role type which specifies the role played by the business objects in the links.
The following link model is based on the links in the IDOCREL table:

Read more...
 
Inbound & Outbound IDoc user exits PDF Print E-mail
User Rating: / 19
Written by Kevin Wilson   
Monday, 09 April 2007
A comprehensive list of IDoc user exits split into inbound and outbound interfaces.
Last Updated ( Monday, 09 April 2007 )
Read more...
 
Diagrammatic view of IDoc status flow PDF Print E-mail
User Rating: / 4
Written by Kevin Wilson   
Thursday, 08 March 2007
2 diagrams displaying the flow of inbound and outbound IDoc statuses.
Last Updated ( Thursday, 08 March 2007 )
Read more...
 

Google Search

Google Ads