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 Setup

Former Member
0 Likes
1,626

Dear Experts,

I need to do a IDOC setup for inbound IDOCS in SAP ERP.

After doing all the steps I think I have, I use We19 to do get an IDOC using an existing one and modifying the sender and receiver. I try to find the Functional module for inbound idocs which I dont seem to.What steps I have to do to ensure this that when I use my new defined message type linked to the Functional Module.

After I execute the IDOC I get a message EDI: Receiver port in control record is invalid.

I have maintained the partner profile (We20)also with new logical system which is sender (outside of SAP) to the SAP which es already defined as a port.

EDI: Partner profile not available

Need your help

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,499

Hi Andy,

check the ALE settings again:

Here is a quick guide for you:

First of all you need two logical systems, one will act as sender and other as reciever .

1)Define logical systems through BD54.

2) Assign clients to logical systems (SCC4)

3) Create RFC Destination (SM59)

4) create port(we21)

5) Create Partner profile

If all these steps are done then go to BD64, there

1) Create Model view

2) Mention your sender and Reciever for that Model (logical systems)

3) Mention The message type

4) Distribute your model view through Environment -> Distribute

If model view is distributed sucessfully that means messages can flow sucessfully between two systems. To ensure your your model view is distributed sucessfully, take special care while setting up partner profiles in sending and recieving system.

Now please ensure that you have not missed any step and all steps are carried out sucessfully.

Regards

Vinod

12 REPLIES 12
Read only

Former Member
0 Likes
1,499

You have to use Partner Type LS Partner Function Partner Role LS in WE20 Transaction.

IF we02 shows Idocs like LS/LS/MATMAS.

Thanks,

Mathivanan.G

Read only

Former Member
0 Likes
1,499

Hi Andy,

Try using FM IDOC_INBOUND_ASYNCHRONOUS and READ_IDOC_INBOUND_OUTBOUND.

These may help you.

Thanks

RaviKanth.

Read only

0 Likes
1,499

Can you explain me how and wheer I could assign the FM to the IDOC and Message type??

Read only

0 Likes
1,499

Hi Andy,

Use WE57 to assign FM to idoc and logical message type...

Read only

0 Likes
1,499

Hi,

can you explain me the steps?

As I have done the necessary setup through BD67, we42, we67...

I am missing some impt. steps. As when I try to process an IDOC WE19 through my new defined mesage type. I try to choose inbound FM it doesnt show me my IDOC type when I have processed it as also not the FM which I have defined through WE67.

Thanks

Read only

0 Likes
1,499

Hi Andy ,

You require a process code and partner profile in addition for inbound processing .

Define a process code in WE42 . Link this to your custom FM . Check the processing type Processing by Function module in it .

Then maintain partner profile . Give the proces code now created in ur message type . Check the icon Trigger immedietly.

Read only

0 Likes
1,499

The message I get through We19 is that the partner profile is not maintained.

I maintained the system Logical which is my inbound system SAP and also defined in the WE20

this system and added the message type in the inbound parameter. The sending system is PI which is also maintained but is not sending any messages yet but I have maintained it still.

I get a mesage Partner profile is not maintained...

Waht should I maintain yet?

I have in the defined partner profile in the inbound parameter added my message type with processing codes etc.

I still seem to miss something thats why I cant process the IDOC or??

Partner profile is not maintained...??

Why this message still??

Thanks

Read only

manubhutani
Active Contributor
0 Likes
1,499

In control record of idoc, check the sender system name

and go to we20 -> there in LS tab you should have a partner profile created with that name.

and in i/b tab of this partne profile , you have to maintain your message type

further in it, you have to give the process code, to which a function module is attached

let me know if you have any doubt.

Regards

Read only

Former Member
0 Likes
1,500

Hi Andy,

check the ALE settings again:

Here is a quick guide for you:

First of all you need two logical systems, one will act as sender and other as reciever .

1)Define logical systems through BD54.

2) Assign clients to logical systems (SCC4)

3) Create RFC Destination (SM59)

4) create port(we21)

5) Create Partner profile

If all these steps are done then go to BD64, there

1) Create Model view

2) Mention your sender and Reciever for that Model (logical systems)

3) Mention The message type

4) Distribute your model view through Environment -> Distribute

If model view is distributed sucessfully that means messages can flow sucessfully between two systems. To ensure your your model view is distributed sucessfully, take special care while setting up partner profiles in sending and recieving system.

Now please ensure that you have not missed any step and all steps are carried out sucessfully.

Regards

Vinod

Read only

0 Likes
1,499

hello Vinaod,

thanks for the steps descriptions.

I had a question on that the sender system is not yet ready or connected and is XI.

So is it necessary for me to yet to teh Distribution Model ?

Also I did this step and I got a message saying no authorisation fro XI when I from the SAP tried to run the distribution model.

Besides, after simulating an inbound IDOC through WE19 I get a message EDI Partner Profile not maintained. Although I have maiintained it.

Thanks for your help.

Andy

Read only

0 Likes
1,499

Hi Andy,

you need not create a distribution model as your system is a receiver system but ensure these settings you should have done to receive the idoc:

Creating Logical system

Rfc Destination to connect to xi system

Port ( create port and assign the RFC destination created in earlier step)

Partner profile ( here in partner profile , in inbound parameters add the process code for your message type)

set up the partner profile correctly .if everthing is ok then idoc should not fail at least in status 56

Regards

Vinod

Read only

0 Likes
1,499

Hi,

that means in the distribution model I must use XI as the sender system and SAP as a receiver.

Then maintain the Partner profile wherein SAP is already defined as a logical system but the system which send the message is Non SAP over XI to SAP should also be defined.

When I try We19 I use my message type there and then try to process it through the FM inbound.

The pop up doesnt show me for my defined FM and link to the Message type I maintained through the transaction we57.

Also I dont see teh correct basic type I defined for the message type.

So I dont know what I have missed doing here.

Thanks