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 from third party system problem

Former Member
0 Likes
1,324

Hi.. A file is coming from third party system. I want to receive that idoc and create a employee in SAP. How to create RFC destination and other steps plz suggest me....

4 REPLIES 4
Read only

PeterJonker
Active Contributor
Read only

Former Member
0 Likes
1,019

If a third party system is sending a file and you want to receive it in terms of IDoc you will need a translator program. Check this link for details

http://help.sap.com/saphelp_banking80sp07/helpdata/en/0b/2a6531507d11d18ee90000e8366fc2/content.htm?...

Read only

0 Likes
1,019

You can also explore function module "EDI_DATA_INCOMING" which works with "FILE PORT (WE21)"

As per docmentation in SE37: The function module is used in the test program for IDoc inbound processing.
Usage example:

data: complete_filename like edi_path-pthnam,
portname like edipo-port.

* Assign values to an actual parameter
complete_filename = '/usr/sap/C11/SYS/idoc/idocs.inb'.
portname = 'EDIPORT'.
* Call FM
call function 'EDI_DATA_INCOMING'
exporting
pathname = complete_filename
port = portname
exceptions
others = 1.

Read only

Former Member
0 Likes
1,019

Hi Ravi,

Create :

Segment Creation WE31

Basic IDOC Type Creation WE30

Message Type Creation WE81

Assign Message Type To Basic IDOC Type WE82

Assign FM to Logical Message WE57

Define I/P method for Inbound FM BD51

Create Process Code WE42

Configuring Process codes for Inbound Idocs in SAP - Supplier Relationship Management - SCN Wiki

Now for this IDoc

Define partner profile and port in WE20 and WE21.

Its a long process better would be a flat file upload.

Regards