Application Development 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: 

process code for extended idoc

Former Member
0 Kudos

Hi,

If we are creating an extended idoc, do we have to assign a new process code to it ?

Or will the process code and the associated function module for the basic type work as well for the extended idoc ?

5 REPLIES 5

Former Member
0 Kudos

Process code will come in to picture when you deal with IDOCS .. you need to assign a code which internally will have a Function module or a Include, that will have entire code to run your bussiness for an IDOC or EDI or ALE.

Process Code is a different name for specific purposes like function module. IDocs are written in this process.

Outbound Process Code - if you are using outbound processing under Message Control, the IDoc is generated in the IDoc Interface. The process code names the relevant function module

Inbound Process Code - names the function module or workflow which reads the IDoc data and transfers the data to the application document.

http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b7d6243d711d1893e0000e8323c4f/content.htm

Enter transaction WE30 (ALE->Extension-> IDOC types->Maintain Idoc type)

Type in your name of the extended IDOC type (usually starting with 'Z') and click on the Basic IDoc type, click the create icon.

Click on Create new and enter a description and press enter.

Click on ZIDOCTYPE01 and then on the Create icon.

Enter ZIDOCTYPE as the segment type, click on Segment Editor.

Enter a description for your segment type and create.

Enter a description for your segment, enter each field required in your IDoc and press enter to validate.

Save and generate, press back

To release the segment choose Goto, Release from the menu.

Check the box on the line of your segment.

Save, back and enter.

Your Idoc type structure should be displayed with your new segment.

Save and back.

To release the Idoc type choose Extras, Release type from the menu and Yes.

Reward points if useful.

0 Kudos

hi sravan,

but my question is whether we have to assign a new process code for an extended idoc or the same one that has been allocated to the basic idoc

regards,

john

0 Kudos

we need to create new process code only because u have to populate some other fields also na, if exit is available then u can use same process code. using exit we can populate other fields

Madhavi

0 Kudos

yes, we are using an exit. But it is used here only to validate the idoc segment fileds, after they are populated using the z program.

My question is, what will ensure that the values in the new fields of the extended idoc gets fed to the daabase ?.

According to me, the process code for the basic type idoc is not sufficient.

Do we have to write a new function module altogether, and attach a process code to it for the extended idoc ?

0 Kudos

Hi,

You can add your code in the exts present in the idoc.

in addition to the validations we cna add our own code to fill this additional segments.

but at the end it depends on what exactly you want to do.

bye

sasi