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

custom idocs

Former Member
0 Likes
685

hi all,

sorry for repeating question. my requirement is to create a program, which when executed, creates a custom idoc ( time sheet idoc type ) , using a custom outbound function module.

In the selection screen of the program, include

a)personnel number (range)

b)date

When this program is executed, idoc must be created with the time data of the given personnel numbers.

if u have any code or at least information regarding it send to me to [email protected]

any suggestions are highly appreciated.

its very urgent................

thanks in regards,

Suresh.A

hi all,

sorry for repeating question. my requirement is to create a program, which when executed, creates a custom idoc ( time sheet idoc type ) , using a custom outbound function module.

In the selection screen of the program, include

a)personnel number (range)

b)date

When this program is executed, idoc must be created with the time data of the given personnel numbers.

if u have any code or at least information regarding it send to me to [email protected]

any suggestions are highly appreciated.

its very urgent................

thanks in regards,

Suresh.A

4 REPLIES 4
Read only

Former Member
0 Likes
649

Hi,

You should follow the following steps 1 by 1.

• WE30 - IDOC type creation

• WE31 - Create segment

• WE81 - Message type creation

• WE82 - Link IDOC type to Message type

• SE37 - Create Inbound Function Module

• BD51 - Maintain entry for Function Module

• WE57 - Maintain

• BD57 - Link Function Module, IDOC type and Message type

• WE42 – Create Inbound Process Code

• BD67 - Link Process code to Function Module

• WE20 - Create Partner Profile

• BD64 - Display Distribution Model

• WE02 - IDoc List, Display all Inbound/Outbound IDocs

• WE14 - Outbound Processing of IDoc’s

• BD20 - Inbound Processing of IDoc’s

1st Step: Create a Segment ( WE31)

Segment is a structure for passing data in IDoc. It actually contains the IDoc data, just like the DDIC table/structure. Segment is created with all the required fields. Then Save it. But, to actually use this Segment, you have to Release the Segment, otherwise u can’t use the Segment, by menu, EDIT--> Set Release.

Now, if you want to do some change to this Segment, u cant, unless & until u Cancel the Release, by Edit--> Cancel Release.

2nd Step: Create IDOC Type ( WE30 )

After creating the Segment, now we have to create the IDoc Type. IDOC Type is like an envelop of a letter, which contains the data inside it, & also some more information like address. IDoc type can be Basic Or Extended.

Basic IDoc Type: Using some SAP existing IDOC type (ex. MATMAS) or Custom IDOC type.

Extension IDOC Type: When we need some fields extra to an existing IDOC type, then we can extend that Basic Idoc Type by another Segment. This is called Extended idoc type

3rd Step: Create Message Type (WE81)

Message Type is like the Postman for sending the Letter.

4th Step: Attach Message Type to the IDOC Type (WE82)

5th Step: Create a Function Module (SE37)

Write the Processing logic in a Function Module.

6th Step: Mention the IDOC Type, i.e, 0/1/2 (BD51)

7th Step: Assign the Message Type, IDOC Type & Function Module (WE57)

8th Step: Create a Custom Process Code (WE42)

9th Step: Attach the Function Module to the Process Code (BD67)

10th Step: Execute Inbound IDOC’ s (WE19)

Example Function Module: IDOC_INPUT_ORDERS (Standard FM to create Sales Order).

Go thru this link.

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

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

Idoc's

http://www.thespot4sap.com/Articles/SAP_ALE_IDOCS.asp

http://help.sap.com/saphelp_nw04/helpdata/en/12/83e03c19758e71e10000000a114084/content.htm (change pointer)

http://www.erphome.net/pdf/tech/J07.pdf#search=%22ALE%20Change%20pointers%22

http://www.saptechnical.com/articles/ALE/IDOCExtension/IDOCExtension.htm

<b>Reward points</b>

Regards

Read only

0 Likes
649

hi,

thanks for your reply and i wanna what code should i write in function module for calling a custom idoc if u have any sample code please send to me for this mail id or tell me are there any predefined Fm's for time sheet idoc type [[email protected]]

thanks & regrads,

Suresh.A

Read only

Former Member
0 Likes
649

answered by myself

Read only

0 Likes
649

hi suresh

i need your help in creating custom IDOC

if u have any examples send it accrossit tome.

here i need to create new idoc

i can able to create segment, message and linking these two things

but i need ur help in developing function module

and linking those FM to that IDOC.

with example

thanks & Regards

Ravikumar.G