Process Codes - IDoc

Could someone give me a brief explanation about IDoc Process Codes in the Partner Profiles.
What is its Purpose, Impact etc...
Also and most importantly, how do we distinguish which one to use for which IDoc? Who's responsibility is it to find this information, the Business or the XI team?

>
> Then why the need for any other process code ????
Normally customizations in the processing of the Idoc is needed for clients. In these cases you write the report and then create a trsnmaction code ( think the t code is we 41 / 42 not sure though) and then use this in Partner Profile.
Have also seen cases when BAPI has been used. My understanding was that BAPI is used when a similar RFC exists .
Eg: BANK_CREATE Idoc has a similar BAPI called BAPI_BANK_CREATE and I remember us using BAPI for the inbound processing!
Am not a functional person at all, but just what I have understood of things.
Maybe Barry can validate it for me as well.
Regards
Bhavesh

Similar Messages

  • Process Code - Idocs

    Hi all!
        In Outbound parameters of partner profile we r mentioning the process code.
       Can u pls tell me why? i feel bcoz..... suppose we r purchasing from vendor in outbound parameters i am mentioning the process code.
    Now in the inbound processing of the vendor the vendor will access our process code via RFC to generate Idoc  and Vice Versa.
       Pls Tell me i am right or wrong.
    Looking for your reply very eagarly.
    Thanks
    Rahul.

    Rahul,
    Process codes are used in both Outbound & Inbound processing.
    Outbound: The main purpose of the process code is, there is an FM which is attached behind the process code and that FM will populate all the segments with the necessary data.
    For example: I have an Sales order and I need to send an order confirmation. So you define your partner profiles in WE20, provide the necessary message type and double click on that you can see the message control and your output type, process code ..etc
    Similarly is the case with Inbound, say you receive an Idoc from another system and the same data needs to be posted into your system, then you do the similar setting for Partner profiles, but in case of Inbound, you will not have any Message control, but an process code is directly defined here. There is an FM which is tied to this process code and the data is posted based on the FM.
    Hope it is clear.
    Thanks,
    Suresh Ganti

  • With the Z process code IDOC going to status 64

    Hello Everyone,
    I have created the Z process code for a custom function module via finishing the steps in BD51, WE57 and WE42.
    But when I used this Z process code in my inbound idoc, my IDOC are going to the status 64.
    Any inputs please?
    Thanks,
    Pooja

    Hi,
    Which FM you are calling to post the IDOCs? If you are using IDOC_INBOUND_WRITE_TO_DB or IDOC_INBOUND_ASYNCHRONOUS IDOCs will be posted in 64 status ONLY.
    Please call "IDOC_WRITE_START_INBOUND" to post the IDOCs immediately.
    Regards,
    Ganga

  • Custom Process Code - IDOCS

    Hi Guys!
       This Question is similar to my previous post i want to know whats the reason, when we go for custom process code development for standard idocs & message types, any way sap has provided that.
      Is there any nessacary to devlop that, any way we want to develop, whats the real reason.
      Can u give details.
      Second, when we develop our custom process code we give our z development class name & transport request is there any other objects of ALE we store in them & transport the same.
      Thanks.

    Hi Rahul,
         A. The segments which i have used are listed below.                                                                               
    EDI_Z50               EDI IDOC, invoice header, standard data                   
            EDI_Z3                 EDI IDoc type: purchase orders etc.: header, partner info 
            <b>ZEDI_Z51          EDI IDOC, invoice line items, standard data               </b>
            EDI_Z55                EDI IDoc type: totals, conditions                         
            EDI_Z52                EDI IDOC, invoice totals, standard data                   
            EDI_Z53                EDI IDOC, invoice totals, taxes                                                                               
    The bolded one is the customised segment, as i have mentioned early,in which we have used Additional fields for debit and credit memo.
    B. You mean, you need the coding of the functional module.
    C. Regarding process code, you can just, link your FM to Process code in we42 for Inbound .
    Enhancements in the sense, extended the exsisting IDoc and related information?
    You can mail me on [email protected] I can send you an document for that.
    Thanks
    Manju

  • Execute more than 1 function from process code IDOC

    Hello,
    Is it possible to execute more than 1 function via process code of an IDOC?
    I am talking about inbound IDOC.
    Sara

    Hi Sara,
    What is the exact requirement.
    Regards,
    Madhu.

  • AIB_IDOC_CREATE Process Code IDoc PORDCH02

    Hi all,
    I am trying to send a purchase order changes by IDoc PORDCH02 and I have the following error: "IDoc type PORDCH02 cannot be processed by  AIB_IDOC_CREATE".
    Please could you tell me which Process Code that it can be used?
    Thanks in advance,
    Marta

    Hi ,
          Look for the userexit where you get the list of segments and you can find out at which place you have insert or add the segment .
    Then after finding the exit ,create a Z inlcude add your code there and Include the Z include in the exit or you can also use Enhancement Point ( if ECC 6.0 ).
    Please reward if useful.

  • 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

  • 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,
    Raj

    hi,
    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

  • 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 help

    HI,
    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

  • 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: henry

    Hi 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

  • Custom process code and FM for custom IDoc...

    Hello Experts,
    I created a custom IDoc based from ARTMAS05 IDoc. This is because we only need 3 segments and
    the standard idoc(Artmas05) contains so many segments that we need.
    Now, will I create a custom process code and FM for this? how do I go about this?
    Thank you guys and take care!

    Hello,
                 Here are the Steps that we need to be following while creating a Custom Process Code with Custom Function Module. ( Since the Segments to be handled are very Less, I am recommending that you go for a Custom Function Module).
    1. Go to SE37 Create a Function Module. Please ensure to Create it with the IMPORT / EXPORT /TABLES parameters exactly in the way that they exist in any Standard SAP Inbound FM (Refer to IDOC_INPUT_ORDERS for example).
    2. Once our FM is Ready (Need not be Complete with the Code to go ahead with the Process Code Creation) and Active, the next Step is to Create an Entry in the Transaction Code BD51 where we will register the Function Module.
    3. Next, we'll have to go to T-Code WE57 where we'll have to make an entry for the Function Module with the IDoc Type & Message Type.
    4. Finally, go to WE42 and Create a New Process Code and assign the Function Module and the Message Type.
    NOTE 1 : The Process Code is, as we know, Client Dependent. So, once you create a Process Code, we need to have it migrated to the Testing Environment to Start & Carry Out Testing.
    NOTE 2: If Step 2 & 3 are missing, then we'll not be able to assign the Function Module in WE42 while Creating Process Code.
    Hope it was helpful.
    Thanks and Regards,
    Venkata Phani Prasad K

  • 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 PM

    Hi 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.

  • PO Rejection - ORDSP Idoc Errors in ECC with different process codes

    Hi All,
    We were testing the Scenario where the Supplier rejects a PO line item as part of the PO Collaboration. On rejecting the PO in SNC, it trigerred an ROC XML with AcceptanceStatusCode == RE. The same was passed on from XML to Idoc in the IDoc segment E1EDP01, field ACTION = "003".
    However, such ORDSP Idocs was failing on the ECC side during Inbound processing with the following errors:
    1. Acknowledgment for PO item 4400000XXX 00010 contains quantity variance: Message no. ME794
    2. Price unit 0 from IDoc differs from unit of purchase order 1: Message no. ME729
    3. Order price unit differs from unit EA from purchase order: Message no. ME728
    4. Order units differ : Message no. ME791
    5. Material number differs from that of ordered material : Message no. ME790
    Note : We dont get these errors for a normal confirmation. It happens only with Rejection.
    The deletion indciator could not be set in the ECC PO line item even after manually correcting the above errors in the Idoc and posting it.
    Then based on this SDN Post: [PO rejection in SNC does not update the items in MM with ORDRSP;, we changed the WE20 settings. i.e., for ORDSP Idoc changed the Process code from ORDR to ORDR_SUS. After this change, the the above errors were eliminated and the the rejection data was also updated on the ECC PO by setting a deletion indicator. But we are having the following issues:
    1. Though both the confirmation & rejection data are getting transferred successfully, the Idocs remain in status 52 (Application document not fully posted).
    2. The message in the status record is "Rejection of PO item 4400000XXX 00010 with reason: Message no. ME749
    3. Came across these 2 related SAP Notes:
       a. #1087422 : But this is not applicable as the note states that this error will occur only if we delete the PO line item before hand in ECC.
    b. # 66192 : This note suggets a custom solution. But actually all the info from the ORDSP Idoc are getting processed successfully (Rejection & Confirmation send in the same Idoc). Only the status of the Idoc (Status = 52) is concerning us.
    Looking forward for inputs / suggetions from those who have used the Rejection functionality in SNC without custom development.
    Regards,
    Bharath

    Hi Bharath
    Rejections is handled like that only, can you please check whether note 1529579 is helpful
    It is standard behavior, as it expects other segments to fill, but never the less the PO will be updated properly, its only problem
    with the status of the idoc....nothing wrong in the data updation. The above note should be handy.
    Regards
    Vinod

  • IDOC BETMAS01 process code

    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
    Krishna

    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
    Krishna

Maybe you are looking for

  • Slow start up and Shut Down since upgrading to Mountain Lion - Etrecheck Result query

    Hello, I have recently upgraded my operating system from Snow Leopard to the latest Mountain Lion from the app store. My Macbook Pro (early 2010) is now experiencing slow start up times (more than 1 minute) and slow shut down (more than 45 seconds).

  • Javascript history.back() doesnt fire in AIR html app

    I'm working on air app (html/ajax/javascript). I need to make a navigation feature, like a browser back and forward button in a page with iframe, all pages are on same domain. I have the following scenario: Adobe AIR (version 2.7.1) app that loads (a

  • Trading material procurement with CIN

    Hi Friends, Can any one explain how the trading materials can be purchased? what registers will update? Regards, Anand

  • Workflow for MIR7

    Hi, our business process requires some of the inoices to go through a senior managers approval before they get posted using MIRO. So is there a workflow that can be triggered as soon as the Payables park the invoice document in MIR7 , which will send

  • No tengo llamadas salientes ni entrantes desde mi ...

    Ya tengo configurada la PBX pero no estoy seguro de los puertos y servicios que se deban abrir en la LAN. Que puertos y servicios se deben abrir . y como puedo probarlos? saludos Javier