cancel
Showing results for 
Search instead for 
Did you mean: 

Importing Idocs dynamically

Former Member
0 Kudos

Hi friends,

I want to write a function module which will import the Idoc .the idoc name will be passed as parameter to function module.

Plz help, i dnt hav much idea about writting ABAP code.

Thanks,

Shweta

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

HI,

You can't import the IDOC structure from R/3 as dynamically withusing any FM.

In XI the IDOC you will be importing is based on the software componenets. and you will be importing it via Integration Builder Wizard or with IDX2 t-code,

Thanks

swarup

Former Member
0 Kudos

Hi Swetha,

Use the Function Builder to create a new function module.

Create the segments as global data in your function group. The function module must transfer the application data from the application tables to the corresponding segments.

Activate the function module: In the initial screen of the Function Builder select

pls do chk this links

http://help.sap.com/saphelp_nw04/helpdata/en/dc/6b7dbd43d711d1893e0000e8323c4f/frameset.htm

http://help.sap.com/saphelp_nw04/helpdata/en/dc/6b7df143d711d1893e0000e8323c4f/frameset.htm

if found worth pls do the req

Thanx

Sampath

Former Member
0 Kudos

Hi Swetha,

There are many standard FM for triggering IDOCS .Pls look into those standard FM .You will get maximum help from it.

Pls Find the links below also it would be usefull.

http://www.allsaplinks.com/idocbasicsunderstanding.html

http://www.allsaplinks.com/idoc.html

http://www.allsaplinks.com/idoc_sample.html

To Create Idoc we need to follow these steps:

Create Segment ( WE31)

Create Idoc Type ( WE30 )

Create Message Type ( WE81 )

Assign Idoc Type to Message Type ( WE82 )

Creating a Segment

Go to transaction code WE31

Enter the name for your segment type and click on the Create icon

Type the short text

Enter the variable names and data elements

Save it and go back

Go to Edit -> Set Release

Follow steps to create more number of segments

Create IDOC Type

Go to transaction code WE30

Enter the Object Name, select Basic type and click Create icon

Select the create new option and enter a description for your basic IDOC type and press enter

Select the IDOC Name and click Create icon

The system prompts us to enter a segment type and its attributes

Choose the appropriate values and press Enter

The system transfers the name of the segment type to the IDOC editor.

Follow these steps to add more number of segments to Parent or as Parent-child relation

Save it and go back

Go to Edit -> Set release

Create Message Type

Go to transaction code WE81

Change the details from Display mode to Change mode

After selection, the system will give this message ?The table is cross-client (see Help for further info)?. Press Enter

Click New Entries to create new Message Type

Fill details

Save it and go back

Assign Message Type to IDoc Type

Go to transaction code WE82

Change the details from Display mode to Change mode

After selection, the system will give this message ?The table is cross-client (see Help for further info)?. Press Enter.

Click New Entries to create new Message Type.

Fill details

Save it and go back

Check below link. It will give the step by step procedure for IDOC creation.

http://www.supinfo-projects.com/cn/2005/idocs_en/2/

ALE/ IDOC

http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm

http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc

http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419

http://www.netweaverguru.com/EDI/HTML/IDocBook.htm

http://www.sapgenie.com/sapedi/index.htm

http://www.sappoint.com/abap/ale.pdf

http://www.sappoint.com/abap/ale2.pdf

http://www.sapgenie.com/sapedi/idoc_abap.htm

http://www.sapgenie.com/sapedi/index.htm

http://www.allsaplinks.com/idoc_sample.html

http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm

http://http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm

Happy Learning!

Regards,

Sharath

Former Member
0 Kudos

Hi,

Is that Importing of IDOC structures you are talking about...

I don't think..there is something in ABAP which will import IDOCS into Xi dynamically..

we need to go to the namespace..>imported objects..>right click and say import IDOC..then give your application svr details and import the idoc...

This is how we import idocs into Xi...

Thanks,

Vijaya