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

Idoc Extension

Former Member
0 Likes
2,976

hi,

i am new to ALE/IDOC.Can u guys guide me in ALE/IDOC.I have a question:

i came across a idoc extension scenario-in tcode VF02(change billing document), material description doesn't appear.so for this basic idoc type INVOIC02 was extended to include this field-material description.

My query is what will happen in this scenario.how the outbound idoc and inbound idoc will be triggered.

hi,

i am new to ALE/IDOC.Can u guys guide me in ALE/IDOC.I have a question:

i came across a idoc extension scenario-in tcode VF02(change billing document), material description doesn't appear.so for this basic idoc type INVOIC02 was extended to include this field-material description.

My query is what will happen in this scenario.how the outbound idoc and inbound idoc will be triggered.

11 REPLIES 11
Read only

Former Member
0 Likes
2,155

hi,

i hope there is no confusion because u r new to IDOCs, flow the idoc extension steps it is easy to over come u r problem.

if any queries or there let know

~linganna

Read only

Former Member
0 Likes
2,155

Hi,

The outbound and inbound IDocs will be triggerred in a nomal manner as it happens with any ALE scenario. Additionally you will have the extended segment(material description in your case) in the generated outbound and inbound IDocs.

~Bineah.

Read only

Former Member
0 Likes
2,155

Hi,

The following are the steps to extend a standard IDOC.

1) Create a new segment with the required fields using T.code WE31. Now release the segment.

2) Create the IDOC extension( staring with "Z" ) using T.code WE30 by selecting the radio button extension, provide the linked Basic Type eg NVOIC02 in your case.

Now select the standard segment to which you want to add the new fields. After selecting, click on the create Button and give the name of the custom segment( That you have created with the new fields). Provide the min and max occurrences.

3) Link basic type, message type and extension type in WE82

4) You have to use this extension in the partner profile entry along with the Basic type , otherwise these fields will not be visible in the IDoc.

Regards,

Asit Purbey

Read only

0 Likes
2,155

hi,

what will be the effect by this idoc .will this idoc will update any standard table and include material description . what coding will have to be done .will i have will have to code in process code function module or in a user exit for the tocde vf02 or a standalone program.

Read only

0 Likes
2,155

Hi Amit,

you have to do identify sutiable user exits in outbound side and inbound side.In outbound side you will write the code to populate value in custom segment and in oubound side you have to write code in user exit to populate the values from idoc segment to the database table.

Please check the following link demonstrating process for custom fields. Please check my post in this link.

Regards

Vinod

Read only

0 Likes
2,155

hi,

one more thing is it necessary for me to write code in user exit.can't i trigger the idoc by a standalone program.

in my case i have to add material description in VF02 tcode.as it would be an enhancement that why i will have to code in a user exit for triggering the idoc.is this the reason or something else.

what does trigering of idoc by standalone program,message control and change pointers mean.

can any body help me out with this query.

Read only

0 Likes
2,155

Hi Amit,

Since you want to add addition segment to idoc, u have to use suitable user exits to populate data in segments and from segments to databas table.Also yu need to include an append structure in the standard table to incorporate additonal field. You can use stand alone programs to transfer data from one system to another but still you have to use user exits or BADIs to enhace the standard code.

You can transfer data from one system to another using idocs infollowingways.

Stand alone programs - can be used to transfer master as well as transactional data

Change pointers - Used to transfer Master data like MATMAS, DEBMAS, CREMAS, BOMMAT etc

Message control - used in case of Transactional data like INVOICE, DESADV, SHPMNT, ORDERS, ORDRSP ETC.

Regards

Vinod

Read only

0 Likes
2,155

hi,

last doubt and i may sound very silly,sorry for that in advance.

i am not clear with the message control and standalone programs for triggering of idoc.

what all r the function modules which r to be used and whats the logic which is to be taken care while coding(data fetch,passing it to the idoc etc).

can u tell me in brief how to test whether the idoc has been generated and exception handling .

Read only

0 Likes
2,155

Hi,

For your query, "can u tell me in brief how to test whether the idoc has been generated "......let me tell you...

When you execute the standalone program (BD10 / BD12 / BD14) in foreground, once the IDocs are generated, you will get a pop-up message informing the number of master IDocs and communication IDocs created. Now note down the system time and you can view the Idocs generated in WE02 by giving the time duration and message type. In WE02, you can view only the outbound IDocs generated at the outbound system. Similarly give the time duration at the inbound system and view the IDocs in WE02.

Alternatively, you can view the outbound IDocs and its corresponding inbound IDocs at the same time at the outbound system itself by using transaction BD87(Status monitor for ALE messages). You would have to click on the button, "Trace IDocs" at the application toolbar which will show you the outbound IDoc number, Status, Corresponding inbound IDoc number, Status, Message type, Status Text, Partner No, Created On, Created At, Basic type, extension and segments in the same screen at the sender itself. By using BD87, you need not log on to the receiver to view the corresponding inbound IDocs.

When the standalone programs are executed in background (i.e, by releasing a background job), time duration to check for the IDocs generated could be obtained from the joblog. And the IDocs can be viewed through WE02 or traced through BD87.

~ Bineah.

Read only

0 Likes
2,155

Hi amit,

To under stand the Message control first u should know the out put determination(NACE Tcode) by using output determination like

1) EDI process

2) ALE process

3) Fax process

this things will be determined in out put determination . base on out put determination only Message control will work. so we need to define Partner profiles(we20) and Port(we21) .

so whenever so orders and purchase orders are changed the message control will work.

let me know any queries

~linganna

Read only

Former Member
0 Likes
2,155

Hi,

Standalone Programs are used for data transfer from one system to the other.Incase of Master Data, data is replicated(ie) the data would be present in the sending system and this would have to be sent to the receiving system. During transfer of master data the database table would only be updated and not changed. Standard programs like BD10(Material), BD12( Customer) and BD14(Vendor).

Thanks

Krithika