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

Inbound IDOC Generation

Former Member
0 Likes
2,347

Hi All,

I want to generate an inbound IDOC from a text file, how do i go about this? The text file is NOT in the idoc format. I can't use master_idoc_distribute since its for outbound idocs. What other function module can i use to generate inbound idocs? Please provide codes if you have.

thanks,

kenny

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,282

Hi Kenny,

You can use LSMW IDOC method.

I have a ppt on this, that uses the LSMW to covert a text file into IDOC and process it.

Please give me ur Email Id, I will forward the same to you.

Also, please reward points if it helps you.

Regards,

Amit Mishra

Hi All,

I want to generate an inbound IDOC from a text file, how do i go about this? The text file is NOT in the idoc format. I can't use master_idoc_distribute since its for outbound idocs. What other function module can i use to generate inbound idocs? Please provide codes if you have.

thanks,

kenny

24 REPLIES 24
Read only

Former Member
0 Likes
2,282

You can use LSMW for inbound idoc generation from text file.

With Regards,

nelson

Read only

Former Member
0 Likes
2,283

Hi Kenny,

You can use LSMW IDOC method.

I have a ppt on this, that uses the LSMW to covert a text file into IDOC and process it.

Please give me ur Email Id, I will forward the same to you.

Also, please reward points if it helps you.

Regards,

Amit Mishra

Read only

0 Likes
2,282

Hi Amit,

Thanks for the reply. please send it to [email protected]. Also can you tell me how to do this by custom abap? please give me codes if you have.

thanks,

kenny

Read only

0 Likes
2,282

Hi Kenny,

I have already sent you the doc. Please check and revert back incase you have any query.

Also, reward some points if it helps.

Regards,

Amit Mishra

Read only

0 Likes
2,282

Hi Amit,

Can you please send it to me the ppt and my email adress is [email protected] in advance and I appreciate your help.

SE

Read only

0 Likes
2,282

Hi Amit,

I havent received the ppt yet. Please send it again to [email protected].

Thanks,

kenny

Read only

0 Likes
2,282

Hi Reddy,

I have sent it to you, please check and revert back.

Regards,

Amit Mishra

Read only

0 Likes
2,282

Hi Kenny,

I have already sent you the ppt, Incase you did not receive it provide me with your alternate email id I will send the same to your alternate email id.

Regards,

Amit Mishra

Read only

0 Likes
2,282

hi amit,

please send it to [email protected]

thanks,

kenny

Read only

0 Likes
2,282

Hi Kenny,

Please check it on [email protected] and revert back. I have sent it.

Regards,

Amit Mishra

Read only

0 Likes
2,282

Hi Kenny ,

I have sent you a document illustrating the steps to create the inboud idoc generation on your email id .

And Priya I have forwarded the docs to you too.

Regards,

Kunal.

Message was edited by: Kunal Kumar

Read only

0 Likes
2,282

hi kunal and amit,

canu forward the same docs to me at [email protected]

sorry kunal but i didnt receive ur mail canu resend it.

OR KENNY CAN U FORWARD THE SAME DOCS TO THE ABOVE ID.

thanks,

priya.

Message was edited by: Priya

Read only

0 Likes
2,282

To Priya and all,

I haven't received anything either from Kunal or from Amit. Kindly resend it to [email protected] or [email protected].

thanks so much.

best regards,

kenny

Read only

0 Likes
2,282

Hi Amit,

Im so sorry but I haven't received anything from you yet. I already received the code from ferry though.

Thanks,

Kenny

Read only

0 Likes
2,282

Hi Kunal,

I haven't received anything from you. Please resend it.

Thanks so much,

kenny

Read only

0 Likes
2,282

Hi Kenny,

I have already sent it to you, I don't know why you did not receive it.

Ok, I will try to send it again.

Regards,

Amit Mishra

Read only

0 Likes
2,282

hi Kunal,

I now have the same requirement....pls could you also forward the document illustrating the steps to create the inboud idoc generation....

Email: [email protected]

thanks & regards,

SubbaKrishna

Read only

0 Likes
2,282

Hello Mr.Amit,

The solution suggested by you is very interesting, can u please send that ppt to my ID also.

My ID : [email protected]

Thanks,

Bharadwaja R

Read only

0 Likes
2,282

Hello Amit,

Your suggestion for the solution is very interesting.

Can you please send that ppt to my ID also.

My ID : [email protected]

Thanks in advance.

Regards,

Bharadwaj

Read only

Former Member
0 Likes
2,282

Hi Kenny,

For IDoc inbound interface, they usually have a middelware to transform the input data into IDoc format.

For example, SAP has XI (Exchange Interface) as middleware system.

For your case, you can use LSMW as mentioned earlier by Nelson for IDoc data mapping and processing. Other alternative, you can write custom ABAP program to map and generate IDoc file. Once the IDoc file is available then you can use standard SAP program <b>RSEINB00</b> to upload the file and generate IDoc(s).

Please use IDoc testing tool (WE19) to simulate the mapping process. It is an excellent tool.

Hope this will give you an idea.

Regards,

Ferry Lianto

Read only

0 Likes
2,282

Hi Ferry,

If I choose to do it by writing custom abap, how do i go about it? what FM should i use? Please provide codes if you have.

thanks,

kenny

Read only

Former Member
0 Likes
2,282

Hi Kenny,

Please check your email for sample codes.

Regards,

Ferry Lianto

Please reward point if helpful.

Read only

Former Member
0 Likes
2,282

hi Keeny,

Please forward that PPT to my mail ID [email protected].

It seems very useful and ur help will b appriciated.

Thank u in advance.

Rgds

giri

Read only

Former Member
0 Likes
2,282

Hai Kenny

Go through the following Steps

Try with the follwoing steps

Sending System(Outbound ALE Process)

Tcode SALE „³ 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 „³ 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

Thanks & regards

Sreenivas

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

1 Communication Idoc generated for Message Type

this is your IDOC

Thanks & Regards

Sreenivasulu P