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: 

IDOC CREATION

Former Member
0 Kudos

Hi,

This is joy.....

Can any one please clear my confusion on idoc creation....

1.After i create the structure of an idoc using we31,we30,we81,we82 and associate a function module

next wot are the steps....?

2.this is my mail id

jyotirmoy_db@yahoo.co.in

ph: 9962241708

if any body know s please contact me asap.

joy

8 REPLIES 8

Former Member
0 Kudos

0 Kudos

thanks vaskar

Former Member
0 Kudos

Hi,

Follow the steps below:

1. WE31 -


> to add segments to the basic idoc type and release the segment

2. WE30 -


> extending the basic idoc type with the new segments and release the idoc type.

3.WE82 -


> assiging the message type to extended idoc type.

4. WE57 -


> assigning the msg type and ext idoc type to FM.

5. Change the FM to pull the data and pass the data into segments thru we41 or we42.

Regards

Kannaiah

Former Member
0 Kudos

Hi,

for a outbound IDOC:

1) Define a Port (WE21)

2) Define a logical destination (SALE)

3) Mantain a distribution model (SALE)

4) Define a Output Type (NACE)

5) Define Procedure for your output type (NACE)

6) Define Outbound process code (WE41)

6) Define a logical message for your outbound process code (WE41)

7) Asign your message type to the IDOC-Type (WE82)

😎 Define a Partner profile (WE20)

WE02, BD87 to monitor the outgoing IDOCS..

I hope this help a little bit..

Regards,

Gianpietro

Former Member
0 Kudos

follow this steps also.

Create function module with the following

1 ) Parameters in function Module

Import :

INPUT_METHOD LIKE BDWFAP_PAR-INPUTMETHD

MASS_PROCESSING LIKE BDWFAP_PAR-MASS_PROC

Export :

WORKFLOW_RESULT LIKE BDWFAP_PAR-RESULT

APPLICATION_VARIABLE LIKE BDWFAP_PAR-APPL_VAR

IN_UPDATE_TASK LIKE BDWFAP_PAR-UPDATETASK

CALL_TRANSACTION_DONE LIKE BDWFAP_PAR-CALLTRANS

Tables:

IDOC_CONTRL LIKE EDIDC

IDOC_DATA LIKE EDIDD

IDOC_STATUS LIKE BDIDOCSTAT

RETURN_VARIABLES LIKE BDWFRETVAR

SERIALIZATION_INFO LIKE BDI_SER

Exception:

WRONG_FUNCTION_CALLED Wrong function module for message

NOTE : these import,export and table parameters can be get from any standard IDOC F.M

2) The function module gets created when you enter the above specified import, export, tables and exception. Then in the source code tab of function module write the required code for processing the IDOC.

3)Once the function module is created add Idoc type and related data using the transaction WE 57.

4)Go to transaction WE 57 add function module name and type as ‘F’ . Also add the basic type and Message type in the transaction and then save and close

5)Go to transaction BD 51 add the function module and the input type as 0 or 1 or 2. this identifies the type of processing of the IDOC

For PROCESS CODE

6)Now we have to create a Process code for the above using Transaction WE 42.

Go to transaction WE 42 click on Change display button.

7) Once you are in the change mode enter Process code, Description for the Process code and in the identification enter the function Module name also click radio buttons processing with ALE and processing by function module and save the trasaction.

8)Once you the save the WE 42 transaction, you get a green/yellow button next to the function module click on that it takes you to a new window.

9)Drop down the arrow next to the function module you should be able to find the function module which you have created, now save you have your process code created. Now test the IDOC

Summary for customizing idoc and F.M.

Points:

WE 31: Create Segments(Fields)

WE 30: Create IDOC Type( attach segments to the IDOC type.

WE 81: Create Message Type.

WE 82: Assign Message type to IDOC type

Create Function Module

WE 57: Add function Module Details

BD 51: Add function Module & Corresponding input

WE 42: Create Process code

reward if useful.

0 Kudos

Hey Man thanks....it was really usefull.....

But I have another query

Are the above steps are final or,

You didnt tell about the Report which I have to write.....in SE38

Former Member
0 Kudos

1.what is process code in an IDOC CREATION?

2.Why do we need to associate process code and function module?

2.Can we perform the whole IDOC creation manually by using transactions or we need to write an abap report in SE38 seperately? if so why?

3.What does this report do?

4.i need to discuss in details......can any one contact me plz

india-chennai 9962241708

0 Kudos

Hi,

There are two ways of sending idocs.1. Directly thru application (incase of Master applications) and 2. Thrus message control (in case of transactional application data PO and Sales Order and delivery).

For message control we need to generate idoc through output type.

Regards

Kannaiah