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

idocs

Former Member
0 Likes
716

Hi,

i am working on my first object in interfaces which is an outbound idoc.

please tell me the basic steps to start with lik which function modules to use

which all transaction to use

what coding is required

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
686

Have a look at below link. It will help you to understand the same.

http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVEDI/CAEDI.pdf

Also have a look at below link.

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

I hope it helps.

Best Regards,

Vibha

*Please mark all the helpful answers

4 REPLIES 4
Read only

Former Member
0 Likes
687

Have a look at below link. It will help you to understand the same.

http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVEDI/CAEDI.pdf

Also have a look at below link.

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

I hope it helps.

Best Regards,

Vibha

*Please mark all the helpful answers

Read only

gopi_narendra
Active Contributor
0 Likes
686

1. Create a basic IDoc type (transaction we30) and the segment type (transaction we31). And release the segment type and IDoc type.

2. Create a message type (we81).

3. Assign basic IDoc type to message type (we82).

4. create logic systems for source and target systems

 Assign clients to logical system names

 create RFC destinations

 create distribution model(if required)

5. Create a report : (Outbound process)

 select the data from Z table into an internal table

 populate the control record ( EDIDC )

 populate data record ( EDIDD ) with Z table entries selected

 call the function module IDOC_DISTRIBUTE by passing control record data , data record and status record (EDIDS) and RUN THE PROGRAM TO create an outbound IDoc

6. Create a Function Module : (Inbound process)

 create a function module and make it remote enabled

 create a process code ( we42) and assign function module to process code

 Read the IDoc data and segregate into the internal table and then finally update the Z table that you want to update.

These are the basic things related

the transaciton used is <b>SALE</b>

Regards

- Gopi

Read only

Former Member
0 Likes
686

Hi,

Outbound IDoc...

1. Find the Message type and IDoc Type

2. if require add enhancement using WE30 and WE31

3. you can get the Process codes from WE41

4. you need to Create the Partner Profiles using WE20

5. You need to Create the Distribution Model using BD64

6. find the User exits if any and there you need to code , by Creating the Project in CMOD.

Regards

Vijay