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 Configurations

Former Member
0 Likes
1,950

Hi,

I have a doubt in the configurations for setting up an interface between systems using ALE/EDI.

For a given message type and basic idoc type, we will be setting up the function module that needs to be executed for an inbound idoc in transaction WE57.

Also, in partner profile setup, using transaction WE20, we will be specifiying the inbound message types that will be received from a particular partner. Here, however, we specify message type vs. process code. Now, for the process code itself, we can specify eitther a function module or workflow task in transaction WE42.

For eg. consider the below setup:

WE20:

LS - ZTESTSYS

Incoming Mess Type - ZTESTMESS , Proc Code - ZTEST

WE42:

Proc Code - ZTEST

Identification - TS12345678(some standard task)

WE57:

FM - ZPROCESSINCOMING

Mess Type - ZTESTMESS

Basic Type - ZBASIC

My question is how does the system determine how to process the incoming idoc? Whether task or FM?

Hi,

I have a doubt in the configurations for setting up an interface between systems using ALE/EDI.

For a given message type and basic idoc type, we will be setting up the function module that needs to be executed for an inbound idoc in transaction WE57.

Also, in partner profile setup, using transaction WE20, we will be specifiying the inbound message types that will be received from a particular partner. Here, however, we specify message type vs. process code. Now, for the process code itself, we can specify eitther a function module or workflow task in transaction WE42.

For eg. consider the below setup:

WE20:

LS - ZTESTSYS

Incoming Mess Type - ZTESTMESS , Proc Code - ZTEST

WE42:

Proc Code - ZTEST

Identification - TS12345678(some standard task)

WE57:

FM - ZPROCESSINCOMING

Mess Type - ZTESTMESS

Basic Type - ZBASIC

My question is how does the system determine how to process the incoming idoc? Whether task or FM?

12 REPLIES 12
Read only

Former Member
0 Likes
1,837

Hi,

While creating the process code in WE42, we select the readio button "Processing by Task" or "Processing by function module".

Thanks,

Asit Purbey.

Read only

0 Likes
1,837

Hi Asit,

Thanks for your reply.

But this doesnt answer my query. I m not asking about the 'steps' to follow to set up the pre-requisite configurations. Its more a query on how the system determines the FM module to be used.

Lets forget about workflows for now. Consider this setup:

WE20:

LS - ZTESTSYS

Incoming Mess Type - ZTESTMESS , Proc Code - ZTEST

WE42:

Proc Code - ZTEST

Identification - ZPROCESSINCOMING1

WE57:

FM - ZPROCESSINCOMING2

Mess Type - ZTESTMESS

Basic Type - ZBASIC

Now, when my ystem receives an idoc of type ZBASIC and message ZTESTMESS, which function module will process it? ZPROCESSINCOMING1 or ZPROCESSINCOMING2?

Read only

0 Likes
1,837

Adarsh,

Its based on process code. Fm assigned against process code will be taken as reference.

Regards

Ram

Read only

0 Likes
1,837

Hi,

Thanks for your reply.

What is the use of the setup that is done in WE57? At what stage is it used?

Ask it because, the system has all the required data to process an inbound idoc from all other configurations - partner profile, message type and process code from WE20, the FM/task to process idoc from WE42.

So, is WE57 actually redundant?

Thanks,

Adarsh

Read only

0 Likes
1,837

Hi,

I suggest, you create one process code in WE42 then you will come to know the importance of WE57. Process code is nothing but a alias of processing function module. While creating the process code you need a processing function module to link with this process code. And this function module will appear in F4 help in WE42 only if it is available in WE57.

Thanks,

Asit Purbey.

Read only

0 Likes
1,837

Adarsh,

No need of WE57 settings. For inbound process maintaining Process code ( we42 ) is enough. I don't know why you are going for WE57.

Ram

Read only

0 Likes
1,837

HI

when you create a process code in we42. under processing type we have 3 radio buttons.out of 3 you should select the Processing by function modlue.then system knows and expects FM will come in Identification field.

Main thing here when click on F4 help in the identification,it will not show the FM in that list untill you made chagnes in BD51 and WE57.Configuration settings in these two codes must and should.

in BD51.

click on new entries.

enter your FM name and in Input field give 1 for individual input.save and come back

now go to WE57.

click on new entires

give the FM name which is given in BD51 and

Function Type : Function Module

enter ur basic type and message type below.

Basic IDoc type :

Message type :

these 4 entries should be entered in WE 57 save and come back.

now go to we42 click on the identification F4 help.now you can see the FM which u have created in BD51.

write your own code in the FM according to your requirement.

Thanks

Kiran Jagana

Read only

0 Likes
1,837

Hi,

I understand that for my custom FM to show up in WE42s dropdown list, it should first be setup in BD51 and WE57.

Thanks for the info.

However, my original query still remains. What is the use of WE57? Is it only used as a sort-of F4 help in WE42?

Thanks & Regards,

Adarsh Hatwar

Read only

0 Likes
1,837

Hi , this is the one .

And the second thing is actually like this is he place where ur linking the inbound idoc , message type and FM,

For eg:

SEE in this case

ZSD_IDOC_INPUT_ORDCHG F Function module ORDERS05 ZSDORDERS05 ZORDCHG

In this case system identifies that when he process the extendede idoc type ZSDORDERS05 whose basic type is ORDERS05 and mesage type is ORDCHG he has to use the fm ZSD_IDOC_INPUT_ORDCHG to process order change idoc.

So this is also the use of we57.

Hope it clears .

Regrds

Read only

0 Likes
1,837

HI

WE57 is used for link the our FM(which contains the code to receive the idoc from receiver system to our system) to Message type and IDoc type.

after these settings only we can receive the idoc from receiver system and staus will be 53.

points should be satisfactory

KIran

Read only

Former Member
0 Likes
1,837

When u craete a Process code at that time u select a option from the three radio buttons ,

if u selct the option ,

processing by fm, then systme know this and expects a fm to enter in the identification,

which helps to perocess the idoc.

As per ur second question why u want a entry in we 57 ,

because ur fm that u want to assign to the process code wil appear in the list box only when

u make a entry in we57 and bd51.

So u need to make a entry .

Rajendra

Read only

Former Member
0 Likes
1,837

In my opinion we57 is used during outbound process .