18
1.How can we trace the trfcs? Hi Using SM58 Transaction, we can trace the TRFCs Correct me if I am wrong Thnx Krish 2. how many views have you met with MATMAS ? MATMAS is standard Message Type, and basic Idoc types assiocated with the same is MATMAS01,MATMAS02,MATMAS03.These are type of version given by SAP. 3. what is function module for idoc genrtions mater_idoc_distribute/FM MASTER_IDOC_DISTRIBUTE 4. how will u handle the situation in a report using function module to generate a IDOC how will u handle the error IDOC in same report . 5. how many type of records in Idoc? IDoc have a 3 types of Records 1.Control Record 2.data Record 3.status record 3 TYPES 1.CONTROL RECORD (HOLDS THE ADDRESS) 2.DATA RECORD (HOLDS DATA NOTHING BUT IDOC)

Idoc Questions

Embed Size (px)

Citation preview

Page 1: Idoc Questions

1.How can we trace the trfcs?

Hi

Using SM58 Transaction, we can trace the TRFCs

Correct me if I am wrong

Thnx Krish2. how many views have you met with MATMAS ?

MATMAS is standard Message Type, and basic Idoc types assiocated with the same is MATMAS01,MATMAS02,MATMAS03.These are type of version given by SAP. 

3. what is function module for idoc genrtions

mater_idoc_distribute/FM MASTER_IDOC_DISTRIBUTE

4. how will u handle the situation in a report using function module to generate a IDOC how will u handle the error IDOC in same report .

5. how many type of records in Idoc?

IDoc have a 3 types of Records1.Control Record2.data Record 3.status record

3 TYPES1.CONTROL RECORD (HOLDS THE ADDRESS)

2.DATA RECORD (HOLDS DATA NOTHING BUT IDOC)

3.STATUS RECORD ( HOLDS STATUS I.E ERROR OR SUCCESS)

6. i have a material change material description how to trigger idoc?

Execute Tx Code BD10 and mention Respective Message Type, IDOC type and Receiving System Logical System name

Page 2: Idoc Questions

go to sm37.and give the needed details.

7. A program is generating an outbound IDOC and ther is some error in the data (say an outbound IDOC for Sales Order has been generated and the Material Number has not been properly formatted so that it can be accepted by the receiving system). How shall we handle this error from the program who is generating the outbound IDOC

Go to we 18 / we 19 and click on the glossory by giving the idoc number now go to the the conn eted sales ordr in ecc and see as to waht is the corect MTNR and give it in the idoc lable feld and save . Now go to BD87 and re rerun the idoc and the right idoc will be generated for thesame

or

Content of segment can be changed if it is not in correctformat. To change the content go to WE05 and go to Data record ,youcan find a rectangle type symbol justleft to segment name.double click on it . go to menubar and data record ->changethen change the data and reprocess it.

8. Without using the distribution model, can we send data from one system to another system by using ALE?

no we con't send.because When ever we try to send an IDOC it checks with distribution model and is there any filtering is defind or not, if it is defined then checks with filter data and then it checks with reciver and messagetype.Or

yes, we can always send idoc using FM MASTERIDOC_DISTRIBUTE.

9. What is the main difference between ALE/IDOC and BAPI ?

ALE/IDocs are used for asynchronous information interchange.while BAPIs are used for synchronous information interchangeor

Page 3: Idoc Questions

For EDI transfer of data is from IDOC to flat file,whereas for ALE & BAPI it is memory to memory transfer.For EDI to be implemented a subsystem is required to convert IDOC in flat file and vica versa.System should be EDI enabled.

10. what is the table for trfc port

THE TRFC PORT DATA ARE STORED IN TABLE- ARFCDATA. ARFCDATAIS A TABLE NAME IN THIS TABLE AVAILABLE ALL SENDING TRFCDATA LIKE SENDING IDOCS ARE AVAILABLE.Or

THE TRFC POST DATA ARE STORED IN DATA BASE TABLE ARFCSDATAAND ARFCSSTATE

Or

TidDatabaseConnectionString' this is the type of port forprocessing idoc's.

DIFFERENT TYPES OF PORTS

1.TRFC --> IDOCS/ALE2.XML --> JAVA3.FILE PORT --> IDOCS4.INTERNET --> WEB APPLICATIONS................Or11. Why we need to create RFC destination from PI to R/3?

pi(process integration) itself acts as middleware forcreating connection between A2A OR B2B SCENARIOS.pi providessinle point of integration.

12. how to debug IDOC manually? if i want to extend the standard IDOC say MATMAS, where i have to write code for extension?

When extension is created for MATMAS,check the FM attached to that idoc in the configurationwe57or

for errors u need to check for the status codes and cming todebug u can debug our the assingned function module i.eidoc_input_matmas05 or z(fun module) in case of custom and

Page 4: Idoc Questions

while processing in bd87 the complete idoc can be processedby selecting the option available.

13. can we, generate i doc for more than 1 vendor.i.e can we generate idoc for more than 1 po order

14. what is meant by idoc filtering?

Individual segments can be deleted from the IDoc before dispatch by selecting Functions for the IDoc processing -> Settings for filtering in ALE Customizing. The appropriate setting depends on the sending and receiving logical R/3 System.

Or

I Doc filtering is nothing but wipout unwnted idoc's that ar not required to recevingpartner.

Let us suppose some message type iam sending from my central datbase sever to 5 no's application severs let it take as some plants in my company code .

The master idoc will contains the data pertaining to the five plants.

in thia case for plant No1 date is not reqiured pertaining to all the remaining plants i.e 2 3 4 5.

in this case while creting the distribution model whe have to mention the filter key's

Then when ever the master IDOC passe through ALE service layer it will check;s for filter key' values s for a receiver and it will wash out's the all the idoc's otherthan the values and cretes the communication IDOC.

alwys communication Idoc is the subset of Master Idoc.

Or

Page 5: Idoc Questions

basically idoc is data container .i placed some data in idoc .iam sending idoc to 2 systems .if u want to place some restrictions to that idoc .u can use filter

14. y we need SSF_FUNCTION_MODULE IN SMARTFORMS?

When a smart form is activated, a FM name is generated, andit could be different in Dev, Cons and prd systems. For thatreason, we use the SSF_FUNCTION_MODULE name, to get the nameof the FM at run time, and use for further processing.

15. Hi to all.Let me know please 'IN real time What is actual role of an abaper in ALE-IDOCS and also wt abaper do in case of CHANGE POINTERS.

IN REAL TIME MAINLY WE WORK ON EXTENDED IDOC. WE WILL GO FORTHE CAHNGE POINTER IF THERE IS ANY CHANGE IN THE EXITINGDATA NOT THE NEW DATA.IF WE CHAGE THE DATA (EX-CUSTOMERADDRESS)AND EXECUTE BD21 THEN CAHNGW POINTER WILL WORK.IF WECREATE A NEW CUSTOEMR THEN CAHNGE POINTER WILL NOT WORKOr

change pointers technique is used when u want to send onlychanges that are occured to the data in the database.to dothis 3 tcodes are needed.BD61BD50BD21 (or) execute RBDMIDOC

Or

change pointers technique is used when u want to send onlychanges that are occured to the data in the database.to dothis 3 tcodes are needed.BD61(for activated change pointer)BD50(for activated message type )bd52(for activated field,if required)

Page 6: Idoc Questions

execute bd21(RBDMIDOC) all changed records are automatic send to the receiver system

17. what are the roles and responsibilities of a technical consultant will be assigned in idoc development in real time? in case of a)IDOC EXTENSION b)sending TRANSACTIONAL IDOC c)CHANGE POINTERS

CHANGE POINTERS:ACTIVATION OF CHANGEPOINTERS FOR MESSAGE TYPES.

CREATION OF IDOCS FR CHANGE POINTERS.

CHANGE POINTERS CONCEPT IS BASED ON CHANGE DOCUMENT TECHNIQUE,WHICH KEEPS A TRACK ON ALL THE CHANGES MADE TO KEEP DOCUMENTS SUCH AS MATERIALMASTERS,CUSTOMERMASTER,VENDORMASTER.ALL THE CHANGES CREATIONS DONE TO THOSE DOCUMENTS ARE STORED IN CHANGE DOCUMENT HEADER TABLE.TABLE NAME:CDHDROr

Any thing can be assigned.

1. working on custom IDOC,2. Extension IDOC3. Reduce data from the Message type4. Change pointers........etc

IDOC Filtration

By Jaya Vani Bheemarasetti, YASH Technologies

A Business Scenario:

Consider a company that has 10 plants manufacturing the material MAT01. The material master data is maintained in the central SAP system for all 10 plants. The material MAT01 has an MRP view for each plant. If we distribute this material with MRP views, including the ones for other plants. When the number of materials exchanged between the systems is large and very frequent, this approach can be an unnecessary waste of network resources and can be undesirable from a business point of view.

The technique of filtering at the IDoc level enables to send a subset of data that is relevant for a receiving system. The system provides several filter objects for each message type to filter data.

Page 7: Idoc Questions

We have to choose the appropriate filter for our business needs and add it to our distribution model. 

Maintain the Following Configurations:

Step 1 : Port Definition: T.code WE21.

 Step 2: Partner Profile: T.code WE20

Page 8: Idoc Questions

 

Double click on the Message Type MATMAS and enter Message type, Receiver port,

Pack size, basic type and select the radio button “Transfer IDOC immed. “ 

Page 9: Idoc Questions

 

Step 3: Distribution Model View: T.code BD64

 

There are no filtering objects attached to the Distribution model. 

The actual process is whenever a mater IDoc is created, the IDoc consults the distribution model and determines whether any filter objects are specified for a receiver. If so, the value in the filter

Page 10: Idoc Questions

object is compared to values in the master IDoc’s data record. If the values do not match, the data record is dropped. 

To test the scenario, go to BD10 to send a material and here give the Message type and Partner system Logical name and execute. 

Here is the IDoc generated before applying filtering object. 

 

For IDOC Filtration we have to search for a suitable filtering object in transaction BD59.

Page 11: Idoc Questions

There are many predefined filtering objects available for standard message types. Here we have to give the Segment name and filed name that we want to drop. 

The filtering objects we maintained in BD59 for a message type will be in the Distribution model.

Double click on the ‘No filter set’ in our distribution model, a screen will appear like below. 

Page 12: Idoc Questions

 

Create a filter group using ‘Create filter group’ button. By default all the filter objects will appear. Double click on any of the filter objects and give values as shown below.

 

Page 13: Idoc Questions

 

Page 14: Idoc Questions

In Distribution Model we can see Data Filter Active

 

Below is the IDoc generated after applying filter object for ‘Plant’.

Page 15: Idoc Questions