09-20-2007 8:32 AM
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
09-20-2007 8:36 AM
Hi,
Check the following link:
http://www.sapbrainsonline.com/TUTORIALS/TECHNICAL/IDOC_tutorial.html
Regards,
Bhaskar
09-20-2007 8:43 AM
09-20-2007 8:44 AM
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
09-20-2007 8:46 AM
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
09-20-2007 8:52 AM
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.
09-20-2007 10:33 AM
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
09-20-2007 8:54 AM
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
09-20-2007 9:00 AM
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