Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

query in idocs

Former Member
0 Likes
549

hi

I have tried to read a lot of material on idocs, and idoc creation . I still have one basic question which is still not clear to me.

For every standard message type , is there a standard program for populating and creating idocs ( i mean building the control and data records and then calling fm. master_idoc ** ) ? If so do we ever need to create a program for creating/ populating idocs ( If there is NO idoc extension , and no custom segment that needs to be populated ) .

I came across a scenario where there is no idoc extension still they are creating a stand alone program to extract data from standard tables and then creating the idocs . Does that mean that the mapping can be different even for standard segments ? otherwise why are we doing that ?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
462

Hello,

Some times, it so happens that the Kind of Data to be sent does not have a Standard Selection Program or the basic Type itself does not suit for the Requirement.

For example, if Pricing Data is to be sent to a 3rd Party system, then the Standard IDoc Type cannot be completely used. Instead, people opt for creating a Custom IDoc Type and Custom Selection Program (Could be a Report) to Send across the Information. In this Case, we'll not have any Extension as the Basic IDoc Type itself is a kind of its own.

Another example which I worked on was that the Customer wanted a Report for Displaying all the Production Orders in an ALV Report. When the User selects one or more Production Orders and clicks on the SEND button on the Application Tool Bar, all the Production Order information should be sent as IDocs to the 3rd Party System for Labeling purpose.

Hope it was clear.

Thanks and Regards,

Venkat Phani Prasad Konduri

3 REPLIES 3
Read only

Former Member
0 Likes
463

Hello,

Some times, it so happens that the Kind of Data to be sent does not have a Standard Selection Program or the basic Type itself does not suit for the Requirement.

For example, if Pricing Data is to be sent to a 3rd Party system, then the Standard IDoc Type cannot be completely used. Instead, people opt for creating a Custom IDoc Type and Custom Selection Program (Could be a Report) to Send across the Information. In this Case, we'll not have any Extension as the Basic IDoc Type itself is a kind of its own.

Another example which I worked on was that the Customer wanted a Report for Displaying all the Production Orders in an ALV Report. When the User selects one or more Production Orders and clicks on the SEND button on the Application Tool Bar, all the Production Order information should be sent as IDocs to the 3rd Party System for Labeling purpose.

Hope it was clear.

Thanks and Regards,

Venkat Phani Prasad Konduri

Read only

Former Member
0 Likes
462

Sai

If you are building bespoke idocs then you need to build all logic from extracting data from sap tables and then mapping if any, next step involves populating the data and control segments and then finally creating idoc(using master_idoc)

hope this helps you,

cheers

chetanya

Read only

Former Member
0 Likes
462

thank u for the replies.