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: 

ALE Idoc s

ashok_kumar24
Contributor
0 Kudos

Hi sap experts

I am working on ALE Idoc Interfaces.

-Client1 Sender

-Client2 Reciever

I am able to send IDOCs MATMAS from Client1 to Client2.

My requirement is to

1) Send an outbound IDOC data(MATMAS) to a flat file on client1(SENDER).

2) Upload the flat file as an IDOC on the inbound sytem

which is Client2(RECIEVER).

Can anyone send me the procedure for the above.

Thanks and Regards

AK

1 ACCEPTED SOLUTION

ferry_lianto
Active Contributor
0 Kudos

Hi Ashok,

1) Send an outbound IDOC data(MATMAS) to a flat file on client1(SENDER).

- Create File Port (WE21) for outbound file.

- Maintain Distribution Model (BD64) for sender ->receiver system.

- Create Partner Profile (WE20) for logical system.

- You can use this program RBDSEMAT (t/code BD10) to generate IDoc MATMAS file(s).

_ Then you can FTP the file(s) to receiver system.

2) Upload the flat file as an IDOC on the inbound sytem

which is Client2(RECIEVER).

If your receiver system is SAP.

- Create File Port (WE21) for inbound file.

- Maintain Distribution Model (BD64) for receiver -> sender system.

- Create Partner Profile (WE20) for logical system.

- You can use this program RSEINB00 to upload IDoc MATMAS file(s).

- If you setup partner profile to trigger by background job then you need to run this program RBDAPP01 to post the IDoc(s) to application.

If your receiver system is NOT SAP then you need a middleware to map these IDoc control record, segment and data.

Hope this will help and let me know if you need further assistant.

Regards,

Ferry Lianto

Please reward points if helpful.

8 REPLIES 8

Former Member
0 Kudos

Hi,

Refer this threads:

rgds,

latheesh

Former Member
0 Kudos

Ashok,

There are a lof of step for do it.

the main steps are:

Setup your partners in (WE20);

Setup your distribution model in (BD64) for MATMAS;

Its should be in (client 1 and client 2);

look for IDOC in http://help.sap.com

regards,

Alexandre

ferry_lianto
Active Contributor
0 Kudos

Hi Ashok,

1) Send an outbound IDOC data(MATMAS) to a flat file on client1(SENDER).

- Create File Port (WE21) for outbound file.

- Maintain Distribution Model (BD64) for sender ->receiver system.

- Create Partner Profile (WE20) for logical system.

- You can use this program RBDSEMAT (t/code BD10) to generate IDoc MATMAS file(s).

_ Then you can FTP the file(s) to receiver system.

2) Upload the flat file as an IDOC on the inbound sytem

which is Client2(RECIEVER).

If your receiver system is SAP.

- Create File Port (WE21) for inbound file.

- Maintain Distribution Model (BD64) for receiver -> sender system.

- Create Partner Profile (WE20) for logical system.

- You can use this program RSEINB00 to upload IDoc MATMAS file(s).

- If you setup partner profile to trigger by background job then you need to run this program RBDAPP01 to post the IDoc(s) to application.

If your receiver system is NOT SAP then you need a middleware to map these IDoc control record, segment and data.

Hope this will help and let me know if you need further assistant.

Regards,

Ferry Lianto

Please reward points if helpful.

0 Kudos

Hi

Your solution was helpful. Is there a way by which i can transfer my outgoing IDOC into a flat file on my local system. I have created a File port where i have specified my destination directory.

Now i want to assign this port to my outgoing IDOC so that a flat file is created on my local system

Do i have to write a custom program to save my idoc as a flat file..

Do u have any sample code so that i can edit my outgoing idoc and convert it into a flat file.

Can you mail the required procedure to my mail id narra.ashokkumar@gmail.com

Thanks and Regards

AK

0 Kudos

If you point to a file port in your partner profiles that will be taken care. But the file will be written on the application server and not on your desktop.

Regards,

Ravi

Manohar2u
Active Contributor
0 Kudos

Hi Ashok,

For your requirement you need to create a file port where you want to write these idocs.

And a program should be written to read the file from application server for processing in the receiving system.

Generally you need to have a middleware to map the data from file to idoc, but you can also do from custom program by reading from appl. server :-).

Cheers

Manohar

Former Member
0 Kudos

Hai Ashok

Go through the following Steps

ALE IDOC

Sending System(Outbound ALE Process)

Tcode SALE ? for

a) Define Logical System

b) Assign Client to Logical System

Tcode SM59-RFC Destination

Tcode BD64 ? Create Model View

Tcode BD82 ? Generate partner Profiles & Create Ports

Tcode BD64 ? Distribute the Model view

Message Type MATMAS

Tcode BD10 ? Send Material Data

Tcode WE05 ? Idoc List for watching any Errors

Receiving System(Inbound ALE )

Tcode SALE ? for

a) Define Logical System

b) Assign Client to Logical System

Tcode SM59-RFC Destination

Tcode BD64 ? Check for Model view whether it has distributed or not

Tcode BD82 -- Generate partner Profiles & Create Ports

Tcode BD11 Getting Material Data

Tcode WE05 ? Idoc List for inbound status codes

ALE IDOC Steps

Sending System(Outbound ALE Process)

Tcode SALE ?3 for

a) Define Logical System

b) Assign Client to Logical System

Tcode SM59-RFC Destination

Tcode BD64 !V Create Model View

Tcode BD82 !V Generate partner Profiles & Create Ports

Tcode BD64 !V Distribute the Model view

This is Receiving system Settings

Receiving System(Inbound ALE )

Tcode SALE ?3 for

a) Define Logical System

b) Assign Client to Logical System

Tcode SM59-RFC Destination

Tcode BD64 !V Check for Model view whether it has distributed or not

Tcode BD82 -- Generate partner Profiles & Create Ports

Tcode BD11 Getting Material Data

Tcode WE05 !V Idoc List for inbound status codes

Message Type MATMAS

Tcode BD10 !V Send Material Data

Tcode WE05 !V Idoc List for watching any Errors

1)a Goto Tcode SALE

Click on Sending & Receiving Systems-->Select Logical Systems

Here Define Logical Systems---> Click on Execute Button

go for new entries

1) System Name : ERP000

Description : Sending System

2) System Name : ERP800

Description : Receiving System

press Enter & Save

it will ask Request

if you want new request create new Request orpress continue for transfering the objects

B) goto Tcode SALE

Select Assign Client to Logical Systems-->Execute

000--> Double click on this

Give the following Information

Client : ERP 000

City :

Logical System

Currency

Client role

Save this Data

Step 2) For RFC Creation

Goto Tcode SM59-->Select R/3 Connects

Click on Create Button

RFC Destination Name should be same as partner's logical system name and case sensitive to create the ports automatically while generating the partner profiles

give the information for required fields

RFC Destination : ERP800

Connection type: 3

Description

Target Host : ERP000

System No:000

lan : EN

Client : 800

User : Login User Name

Password:

save this & Test it & RemortLogin

3)

Goto Tcode BD64 -- click on Change mode button

click on create moduleview

short text : xxxxxxxxxxxxxx

Technical Neme : MODEL_ALV

save this & Press ok

select your just created modelview Name :'MODEL_ALV'.

goto add message type

Model Name : MODEL_ALV

sender : ERP000

Receiver : ERP800

Message type :MATMAS

save & Press Enter

4) Goto Tcode BD82

Give Model View : MODEL_ALV

Partner system : ERP800

execute this by press F8 Button

it will gives you sending system port No :A000000015(Like)

5) Goto Tcode BD64

seelct the modelview

goto >edit>modelview-->distribute

press ok & Press enter

6)goto Tcode : BD10 for Material sending

Material : mat_001

Message Type : MATMAS

Logical System : ERP800

and Execute

7)goto Tcode : BD11 for Material Receiving

Material : mat_001

Message Type : MATMAS

and Execute --> 1 request idoc created for message type Matmas

press enter

Here Master Idoc set for Messge type MATMAS-->press Enter

1 Communication Idoc generated for Message Type

this is your IDOC

Change Pointers

I know how to change the description of a material using ALE Change Pointers.

I will give the following few steps

1) Tcode BD61---> check the change pointers activated check box

save and goback.

2) Tcode BD50---> check the MATMAS check box save and comeback.

3) Tcode BD51---> goto IDOC_INPUT_MATMAS01 select the checkbox save and comeback.

4) Tcode BD52---> give message type : matmas press ok button.

select all what ever you want and delete remaining fields.

save & come back.

5) 5) go to Tcode MM02 select one material and try to change the description and save it

it will effects the target systems material desciption will also changes

6) goto Tcode SE38 give program Name is : RBDMIDOC and Execute

give Message type : MATMAS and Executte

Thanks & regards

Sreenivasulu P

Former Member
0 Kudos

hi Experts..

I want the steps to convert the flat file to SAP thru ALE, The Flat file is in EDI format (ANSIX12) 830,862 is the two Flat files..

This file should be converted as IDOC and it should be passed to our inbound..

urgent Please help me..

if possible means Please send to this

mail id: bals_chinna@yahoo.co.in

Advance Thanks ..,