Doubt in IDOC's - Process Codes
Hi,
Currently i am working on an object related to IDOC generation. This is my first object in IDOC's. I am doing it from the scratch including creation of segments, IDOC type, message type, process codes...
In this process, I am developing a function module that should be assigned to the process code. My doubt here is, is there any standard interface to the function module that we have to assign to the process code?
I am also giving the flow which i will be using in developing the Function module. Please go through it and kindly let me know if I am doing it in the right way or not?
1. Extract data from data base based on the entry in NAST
2. Filling IDOC DATA & Control records
3. Calling the FM MASTER_IDOC_DISTRIBUTE to generate the IDOC
Please suggest me whether i am doing it in the correct way or not?
Thanks in Advance,
Best Regards,
Phani
Hi,
For outbound u need to attach ur FM to the process code in WE41 tcode..I think u r using message control method for ur requirement.please look at the configurations for outbound using message control method.we use we41 (outbound process code) and we use this in the message control tab in the partner profiles.
The transaction codes that are required for this method are
We81
We30
We31
We82
We21
We20
Bd64
Nace
Me22n (purchase order), va02 (sales order) etc.
Ex: purchase order.
Message type: ORDERS
Idoc type: ORDERS05
Outbound process code for purchase order: me10
Regards,
Nagaraj
Similar Messages
-
Doubt in IDOC Regarding Process codes
Please check the link
http://idocs.de/www5/books/IDocBook/cook_A5.pdf
In page no: 32 (Topic: 8.5 Assigning a processing function ) ,FM is assigned directly to Message type and Idoc type combination.
But in the next page, Process code is created for that FM and Asigned that process code to message type and Idoc type combination.
What's the differece.
Another thing is in which transaction we assign Process codes to Message type and Idoc type Combinations
Above tutorial looks like old version. In my system Transactions are looking different ,than they are in Tutorial. I am working in version 5.0. If possible, Please provide me perfect material.Hi
Process code always points to a Function module
Means it calls the fun module
In We41/42 you creata process code and assigns to a Message type
so means that Process Code, Idoc Type and Message type are interlinked
Even you can check in WE20 partner profile
in the Outbound
double click on the Message type and press message control , it shows the process code attached
and double click on the process code it shows the fun module attached to it.
Reward points if useful
Regards
Anji -
Please provide the Message type ,IDOC TYPE , PROCESS CODE for Edi 990 ,214
Hi friends,
Please provide the Message type ,IDOC TYPE , PROCESS CODE for Edi 990 (Response to a Load Tender)., 214 (Shipment Status )
For shipement status i got trxstc01 for idoc type .. but its only before 4.6 version ..for 4.7 its not there .. please give the alternate for that ...
Thanks in Advance ....
If any one is provide exact answer i will give Max marks ..
Edited by: ajay KOLLA on Aug 6, 2009 8:04 AMHi,
Have you resolved this issue. If yes, can you please let me know. Im actually looking for same for EDI 867 (guess it is for summary report and need to know message type, Idoc type associated with this).
Rgds
Sudhanshu -
Message type ,IDOC TYPE , PROCESS CODE for Edi 990
Hi ,
Please provide the Message type ,IDOC TYPE , PROCESS CODE for Edi 990 (Response to a Load Tender).
Thanks in Advance.
Ajay KollaHi
Pls check the below links
1. http://www.erpgenie.com/sap/sapedi/ansi.htm
2. http://www.erpgenie.com/sap-technical/ale-edi-b2b/master-data-message-types-idoc-types
Hope this may helps you.
Regards
Sirigiri -
IDOCs - Simple doubt in INBOUND DELVRY. IDOC-DELVRY03, Process code isDELV?
Hello Experts,
Our SAP system receives the Inbound IDOC for Delivery from Gentran.
Further details are,
Process code: DELV
IDOC type: DELVRY03
Message type: SHPCON
Message code: TOC
Parther profile: Account # of Ship To party
So, my requirement is that,
If this Inbound Delivery IDOC contans the Message Code as TOC, I need to insert/add my logic
so, let me know that,
1) Request u that, let me know How to go ahead, becoz am new IDOCs, like, Is I need to look for the any Usre Exit? I mean, At Wht point I need to add my code in this whole process?
thank you
Edited by: Srinivas on Jun 29, 2008 11:15 PMHi Srinivas,
Use the below user exit for creating a STO order.
CALL CUSTOMER-FUNCTION '003'
EXPORTING
IDOC_CONTROL = IDOC_CONTRL
IDOC_DATA = IDOC_DATA[]
DELIVERY_HEAD = S_KOKO
DELIVERY_ITEM = T_KOPO[]
PACKING_HEAD = T_VSEK[]
PACKING_ITEM = T_VSEP[]
PROCESSING_STATUS = F_STAT
IMPORTING
WARNING_IGNORE = F_FLAG
CHANGING
PROCESSING_PROTOCOL = T_PROT[]
EXCEPTIONS
OTHERS = 0.
Because by the time you get to this point, the delivery document is created. I believe you need to create the STO order only once the delivery document is created.
Thanks,
Mahesh. -
Hai Friends
I created new CUstom idoc for BETMAS01.
Please give response to the following topics.
1)What is the process code or TCODE of BETMAS01 (Site master).
1)How to raise the outbound idoc automatically when the site data was created?.
Advance Thanks to all.
WIth regards
KrishnaHai Friends
I created new CUstom idoc for BETMAS01.
Please give response to the following topics.
1)What is the process code or TCODE of BETMAS01 (Site master).
1)How to raise the outbound idoc automatically when the site data was created?.
Advance Thanks to all.
WIth regards
Krishna -
Functiopn module associated with basic type of idoc without process code
can i know the function module assciated with basic type of idoc if i do not know the process code for the same
hi saurabh,
download.oracle.com/docs/cd/B10464_05/integrate.904/b10299/intro.htm
CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'
EXPORTING
master_idoc_control = wa_edidc
TABLES
communication_idoc_control = it_edidc
master_idoc_data = it_edidd
EXCEPTIONS
ERROR_IN_IDOC_CONTROL = 1
ERROR_WRITING_IDOC_STATUS = 2
ERROR_IN_IDOC_DATA = 3
SENDING_LOGICAL_SYSTEM_UNKNOWN = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF.
ENDIF.
ENDMETHOD.
i think this will help u
regards,
sindhu. -
HRMD_A Inbound Idoc with process Code:HRMD not updated in SAP
Dear friends,
I'm facing a problem with Personnel data creation in SAP (this is not a SAP HR system).
I have a data file with Personnel data, in WE19, I use idoc_input_hrmd to process the data (with basic type: hrmd_a06). Idoc has been created with status '53'. However, when I check in SAP, t-code PA30 with the Personnel number, the record does not exist. Checked infotype tables PA0000, PA0001, PA0002 and PA0003 as well, no luck.
I wonder where does the data go? Is it sitting somewhere in the system and waiting to be processed?
Please help!!!!!Hi
Authorizations might be one of the reason.
So IDOC transfered but no records to be writeen to DB.
regards
vijay -
XI-- IDOC scenario, how to link process code with function module
Hi Forum,
I have a XI--->IDOC (R/3) scenario,
where i m creating a IDOC in XI and sending it to R/3,
i have done all settings to send the IDOC from XI to the R/3,
i also have the function module to process that IDOC in R/3,
the problem is:
I want to know in details (step by step) how to make a Idoc Inbound process code, link it with the function module and use the process code in the Partner Profile in R/3,
pls helpHI,
FOr this u need to go to transaction WE41 for inbound and WE40 for outbound there u assign the function module.
Now u go to WE20 transaction for partner profile and u can assign the proces code to the inbound message.
Go to the below help for more information:
http://help.sap.com/saphelp_nw04/helpdata/en/72/c18ee5546a11d182cc0000e829fbfe/frameset.htm
Inbound process code:
http://help.sap.com/saphelp_nw04/helpdata/en/72/c18ee5546a11d182cc0000e829fbfe/frameset.htm
Thnx
Chirag -
Process code for extended idoc
Hi,
If we are creating an extended idoc, do we have to assign a new process code to it ?
Or will the process code and the associated function module for the basic type work as well for the extended idoc ?Process code will come in to picture when you deal with IDOCS .. you need to assign a code which internally will have a Function module or a Include, that will have entire code to run your bussiness for an IDOC or EDI or ALE.
Process Code is a different name for specific purposes like function module. IDocs are written in this process.
Outbound Process Code - if you are using outbound processing under Message Control, the IDoc is generated in the IDoc Interface. The process code names the relevant function module
Inbound Process Code - names the function module or workflow which reads the IDoc data and transfers the data to the application document.
http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b7d6243d711d1893e0000e8323c4f/content.htm
Enter transaction WE30 (ALE->Extension-> IDOC types->Maintain Idoc type)
Type in your name of the extended IDOC type (usually starting with 'Z') and click on the Basic IDoc type, click the create icon.
Click on Create new and enter a description and press enter.
Click on ZIDOCTYPE01 and then on the Create icon.
Enter ZIDOCTYPE as the segment type, click on Segment Editor.
Enter a description for your segment type and create.
Enter a description for your segment, enter each field required in your IDoc and press enter to validate.
Save and generate, press back
To release the segment choose Goto, Release from the menu.
Check the box on the line of your segment.
Save, back and enter.
Your Idoc type structure should be displayed with your new segment.
Save and back.
To release the Idoc type choose Extras, Release type from the menu and Yes.
Reward points if useful. -
Hi All ,
I know the purpose of process code which will post the data in the idoc into database.But my query is after creating function module why cant we directly link that FM in partner profile.I mean ofcourse we dont have such option, but why they introduced this proces code concept.Any special purpose???
Regards,
Rakesh.Hi Rakesh,
Process codes will process the data existing in Idoc type.Process code are two.
1. Out bound process code -> IDOC_OUTUT_IDOCTYPE
2. Inbound process code-> IDOC_INPUT_IDOCTYPE.
Based on Outbound and Inbound function modules data will process.
Thanks
Prakash -
IDOC Inbound Processing and updating DN
Hi,
I'm unfamiliar to inbound processing (i just understand the basics). I've dealt with outbound processing and user exits associated with that.
I have a specific client requirement: an Inbound IDOC is to be processed and update a delivery note. Some field of some segment within this inbound idoc will carry some information which I need to extract and update a field in the Delivery Note with. How could I do this?
Inbound message type is DESADV. Does my requirement need user exit programming or can I set up some kind of a batch job process?
Thanks in advance,
RisadHI,
For processing inbound idoc one process code attached in the partner profile. From this process code you can find out the function module attached to it.
Inside function module use can check for exit or badi to modify DN or write your custom logic. If you already have the test data you can check it from we19. Here you need to select standard inbound.
Thanks
Subhankar -
File 2 IDoc ----- Process Codes
Hi Frnds,
I done one scenario between File 2 IDOC.
I am updating file system data in MATMAS IDOC.
Scenario working prperly, But i am unable to se the results in MATAMAS IDOC.
File adapater picking up tha data it sent IDOC.
how to see the Up dated data in to MATMAS,
Which process codes i need to execute
can any one help me out...
Regards,
Rajhi,
these are the process codes.
Step 1)
Goto SM59.
Create new RFC destination of type 3(Abap connection).
Give a suitable name and description.
Give the Ip address of the R3 system.
Give the system number.
Give the gateway host name and gateway service (3300 + system number).
Go to the logon security tab.
Give the lang, client, username and password.
Test connection and remote logon.
Step 2)
Goto IDX1.
Create a new port.
Give the port name.
Give the client number for the R3 system.
Select the created Rfc Destination.
Step 3)
Goto IDX2
Create a new Meta data.
Give the Idoc type.
Select the created port.
Steps for R3.
Step 1)
Goto SM59.
Create new RFC destination of type 3(Abap connection).
Give a suitable name and description.
Give the Ip address of the XI system.
Give the system number.
Give the gateway host name and gateway service (3300 + system number).
Go to the logon security tab.
Give the lang, client, username and password.
Test connection and remote logon.
Step 2)
Goto WE21.
Create a port under transactional RFC.(R3->XI)
Designate the RFC destination created in prev step.
Step 3)
Goto SALE.
Basic settings->Logical Systems->Define logical system.
Create two logical systems(one for XI and the other for R3)
Basic settings->Logical Systems->Assign logical system.
Assign the R3 logical system to respective client.
Step 4)
Goto WE20.
Partner type LS.
Create two partner profile(one for XI the other for R3).
Give the outbound or inbound message type based on the direction.
Step 5)
Goto WE19
Give the basic type and execute.
fill in the required fields.
Goto IDOC->edit control records.
Give the following values.(Receiver port,partner no.,part type and sender Partner no. and type)
Click outbound processing.
Step 6)
Go to SM58
if there are any messages then there is some error in execution.
Goto WE02.
Check the status of the IDOC.
Goto WE47.
TO decode the status code.
Step 7)
Not mandatory.
Goto BD64.
Click on Create model view.
Add message type.
BD87 to check the status of IDOC.
In case if not authorized then go to the target system and check in SU53, see for the missing object
and assign it to the user.
SAP r3
sm59(status check)(no message)
WE02(status check)
WE05(status check)
BD87(status check)
WE42 process code
WE47 status info.
Thanks,
Vijaya -
Message type, Idoc type and process code in ALE/Idoc
Each Idoc version(creams01 or cremas03) will have seperate process codes in Inbound process?
Whether Message type triggers the process code or the Idoctype/idoc triggers the process code in Inbound process?
regards
Message was edited by: henryHi Henry,
About your question as how should you assign seperate process code for the same message type ( with different IDoc Type )-
In We42, the message type can be assigned to the processing code. But here you will find that along with message type there are two more fields - Message Code & Message Function.
You can use any one these to serve your purpose.
e.g. you can assign
-process code P1 to message type M with Message code 1
-process code P2 to message type M with Message code 2
Further these process types can be configured to call separate FMs.
Now depending on IDOC types your external system should populate the message type as well as Message code so that accordingly process code will be determined at the time of inbound processing.
I hope it's clear & correct
Thanks,
Ram -
What is a process code in ale idoc
what is a process code in ale idoc,what is the purpose of Process code.
Hi,
Let me tell some scenario then u would be able to understand what a process code is-------
In ALE ie, the data requested system is receiver and the data already presented system is sender ie, from where we are having the data,
here in sender side----
we need a program to tranfer required data into idoc--( idoc is just a data container ) in sender side this program logic is in a function module it is configured in we41.
ie this will transfer the data from database to idoc----in sender side it is a process code
and in receiver side after receiving the data we have to post it in database again program needed it is also ie the required code is also in function module it is configured in we42
it is about receiver side f.m or simply process code
okkkkkkkkkkkk
Maybe you are looking for
-
Calculate tax in Vendor Down Payment
Hi, While posting down payment to my service vendor including service tax amount in F-48 after tick the calculate tax also, it is not asking for tax code and it is not showing service tax seperately. Only vendor a/c and bank a/c's are simulating. Ple
-
Create playback controls for Timeline in sync with audio?
Hi All, Technically, I've combined two questions into one. Firstly, can someone offer some insight on how to create playback controls for an Edge animation so the user can essentially "scrub" the timeline or navigate to a specific point on the timeli
-
(10.1.3.0.4) Help System does not start
For some reason my help system does not start when selecting from the menu. "Table of contents" or "index" options do nothing. It use to work fine. Conext sensitive help works okay by pressing F1. Any ideas?
-
Problem with frequent locked apple ID. Afraid of trojan/virus/etc.
-
How to Remove Business Partner Address using DI Server
Hello, I need to remove Business Partner Addresses using DI Server, the example in the SDK only mentions the remove of the entire business partner, but I need to delete only one of the business partner addresses, how can it be done?