Changing IDOC control record by XSL Mapping

Hi,
I am using scenario: legacy -> XI -> R/3.
In the first step I am mapping XML -> IDOC. I have to map the field "SERIAL" in idoc control record in EDI_DC40 (idoc control record structure) with a constant. When I view the message in XI monitor. I cannot see the change and that field is not visible as before.
Any suggestions would be highly appreciated !
Regards,
Faiq

Hi,
If you have set the Apply Control Record Values from Payload indicator in the receiver IDoc adapter, the following fields are filled from the IDoc-XML payload:
MESCOD
   MESCFT
   TEST
   EXPRSS
   STD
   STDVRS
   STDMES
   SNDSAD
   SNDLAD
   RCVSAD
   RCVLAD
   REFINT
   REFGRP
   REFMES
   STATUS
   DIRECT
   OUTMOD
   CREDAT
   CRETIM
You can change the contents of only above  fields by using a mapping and getting it replected in the SAP System.
Regards,
Bhavesh

Similar Messages

  • Changing IDOC Control Record for EDI inbound Orders Creatiion

    Hi,
         When I try to process the Inbound orders Idocs file through the GENTRAN EDI System.IDOC's were errored out, because of the Partner function was not defined for the Customer ( Legacy ) ( Type KU ) in the SAP.
            Is there any user exit/badi/Configuration to change the Legacy Partner(Customer) to the SAP Partner(Customer) mapping and update the IDOC Control record with the SAP Partner. I am calling EDI_DATA_INCOMING Function module and IDOC_INPUT_ORDERS.IDOCs errored out with Message EO-332 ( Partner function not defined ). 
    Advance Thanks,
    Balaji.

    It's been a long time since I have done any IDOC processing. 
    Go to SE37 and enter the function module IDOC_INPUT_ORDERS.  Display the source code.  Search for "CALL CUSTOMER".  You should see several "CALL CUSTOMER-FUNCTION" lines.  These are enhancements where you can manipulate the IDOC data.  If you locate the correct one (where the data is read from the IDOC but not yet validated), you should be able to map the partner function value.  Double-clicking on the number in quotes will bring you to an "EXIT_" function module.  A "ZX" INCLUDE program is referenced.  If you haven't used the exit yet, double-clicking on the ZX INCLUDE will create it.  The values passed into the function module are available in the INCLUDE.
    Ideally, you should create a project in transaction CMOD that references the chosen enhancement.  This way you can activate/deactivate without commenting/uncommenting the code in the INCLUDE.

  • User Exit  for Inbound Process - Changing IDOC control record

    Hi,
    I want to utilize the identification field (under details tab) of the IDOC Control Record. What is the suitable user exit for inbound process that i can use to change the IDOC control record?

    It's been a long time since I have done any IDOC processing. 
    Go to SE37 and enter the function module IDOC_INPUT_ORDERS.  Display the source code.  Search for "CALL CUSTOMER".  You should see several "CALL CUSTOMER-FUNCTION" lines.  These are enhancements where you can manipulate the IDOC data.  If you locate the correct one (where the data is read from the IDOC but not yet validated), you should be able to map the partner function value.  Double-clicking on the number in quotes will bring you to an "EXIT_" function module.  A "ZX" INCLUDE program is referenced.  If you haven't used the exit yet, double-clicking on the ZX INCLUDE will create it.  The values passed into the function module are available in the INCLUDE.
    Ideally, you should create a project in transaction CMOD that references the chosen enhancement.  This way you can activate/deactivate without commenting/uncommenting the code in the INCLUDE.

  • Change IDOC Control Record in Receiver system

    Hi Guys,
    I want to change the inbound IDOC control record,is there any BADI or F.M available ?
    My scenario : XI to SAP and its a custom application.
    Regards,
    Rajesh.

    hi Rajesh,
    You can refer this wiki link , this will help you out in your problem
    https://wiki.sdn.sap.com/wiki/display/ABAP/IDOC+Steps
    Regards
    Saurabh Goel

  • Idoc control record DIRECT field mapping

    Hello,
    I have a file to idoc scenario where the receiver system is an external one.
    I have the necessity to set in the outbound idoc control record DIRECT = 1.
    The XI system is XI 3.0 SP 19 and I've set up the mapping of the idoc control record in the message mapping and selected Apply Control Record Values from Payload and Take receiver from Payload in the Receiver Communication Channel but the idoc is still generated with DIRECT = 2.
    In the documentation the field DIRECT is listed as one that will be filled using the message mapping if Apply Control Record Values from Payload is selected.
    How can I generate an idoc with DIRECT = 1?
    Regards,
    Elisa

    Hello Punit,
    I know that logically the right value should be 2 but the request of the receiver system is to have it as 1.
    They only elaborate the idoc they receive with DIRECT = 1 (outbound).
    In SAP documentation the field is listed as one that can be mapping with the message mapping but the idoc adapter is ignoring the mapping even when the Apply Control Record Values from Payload is selected.
    Regards,
    Elisa

  • How to change IDoc control record

    Hi all,
    How to change the control record of the ORDERS (purchase order) outbound IDoc? The partner type and partner number is always the logical system. I want to change it to other partner type, e.g. KU.
    Is there any user exits availalbe?
    Thanks!
    Regards,
    Hui

    Hi,
    <b>Option-1</b>
    User user-exit<b> EXIT_SAPLEINM_001</b> of <b>enhancement MM06E001</b> to change the control record.
    But make sure that whatever control record you put here, there should be a corresponding partner profile exist in partner profile ( WE20 ).
    <b>Option-2</b>
    You are saying that you are always getting 'LS'. This is  because the output type is only configured with partner function 'LS'. We are using Purchase order idoc and we generate our all idocs for partner type 'KU'.
    To do this, follow these steps.
    - go to transaction <b>NACT</b>
    - enter application 'EF' and select 'maintain'.
    - select the output type you are using in PO for EDI.
    - with this output type selected, select "partner functtions" from left hald side options.
    - Hit "new entries" button on the top
    - create an entry with, MEDIUN = 6 (EDI) ; Funct = VN ( vendor )
    - Save your settings and come out
    - Now on WE20, remove the partner profile you have created under partner type 'LS' and instead create a same partner profile for your vendor under partner type "KU".
    Now it is upto you to decide, either to user the user-exit i have mentioned to change the control records OR create a outout config and partner profile for "KU".
    Let me know if you have any question.
    Regards,
    RS

  • BADI/Exit: Changing IDoc Control Record

    HI,
    do you know a way to modify the IDoc Control Record for MASTERDATA IDocs like CREMAS/DEBMAS/ etc ?
    there are a lot of IDOC Badis and Exit´s but without changing the EDIDC.
    any ideas ?
    Regards,
    Gordon

    Hi Gordon,
    Did you find an answer to your question? I have the same issue and am looking for a BADI or user-exit that will allow me to change the IDOC control record.
    Thanks,
    Uma

  • Why control records disable in mapping for idoc communication?

    Hi, In the mapping we disable conrol records in file to idoc ...why is their any specific reason..>? plz respond me soon..accurate question reward more..thanq

    Hey,
    EDI_DC40 contains the data about control records.
    Before the message leaves the Integration Server, the message header contains values that are exported and used later to complete the IDoc control record.
    Adapter populates it runtime.
    Correct me if i am wrong
    <b>Cheers,
    *RAJ*
    *REWARD POINTS IF FOUND USEFULL*</b>

  • IDOC control record mapping - Sender Partner number defaulted to log. sys.

    My PI scenario is file to IDOC scenario.
    I have ticked "apply values from payload" checkbox, so Sender Partner Number is being defaulted to logical system assigned to my business system.
    Logical system name has to be unique in PI. My understanding is that I can not have more than 1 business system with  the same logical system assigned to it.
    In SAP, I need to have idocs, coming from different businees systems through PI, set to have the same sender partner number,
    which is not possible when "apply values from payload = 'X' and messages are coming from different business systems.
    Calling all PI Gurus, have you got a workaround ?

    Hi,
    Idoc will be processed in SAP ECC based on the sender details (snprn,sndpor,sndpfc...) of idoc control record..
    instead of different partners name sending in the sender details of control record ...pass the value of the PI logical system name in SNDPRN.... (use only one and this is common for all partners...) any how data records of idoc will have the needed partner details...
    In SAP ECC you need to have this logical system ...to process the received idocs..
    thats it... Hope you got
    Regards
    Rajesh

  • Populating MESFCT and MESCOD in IDOC control record through XI.

    Hi Experts,
    I want to map only MESFCT and MESCOD fields to IDOC control record as i see help.sap.com and all forums this part in XI is very confusing, as mentioned in the below thread i disabled all the mandatory fields(which are in red color)  in the EDI_DC40 and mapped MEDCOD and MESFCT with constants and in IDOC receiver adapter (Communication channel) i have checked the option (Apply Control Record values from Payload) , now i can see both the values MEDCOD and MESFCT  in XI payload, however I'm unable to see them in the target (ECC 6.0) system
    Threads Used:
    /people/sravya.talanki2/blog/2005/12/02/manipulating-idoc-control-records-from-payload
    /people/michal.krawczyk2/blog/2005/09/01/xi-idoc-adapter--edidc40--demystified
    SAP Note : 728792
    Target System
    WE09
    IDOC control record structure.
    Under Typinfo tab:
    Message Varient : <Still Empty>
    Message Function : <Still Empty> not populated from XI payload.
    Any guess ??? will there be any configurations required from ECC point of view to populate these values from XI payload.
    Thanks in advance
    Kelli.

    You mentioned that the payload values are visible post mapping during runtime so ,
    Try to edit the IDoc adapter once again and ensure that
    you have set the Apply Control Record Values from Payload indicator in the receiver IDoc adapter
    Activate the adapter and try again.

  • First record is not an IDOC control record - Error

    When I am trying to import orders in my test system through RSEINB00 , it is giving me this error "First record is not an IDOC control record"
    But if I manually do it through test tool , it post successfully.
    I tried different files which have been posted into production client successfully but still the same error.
    It was working just fine until yesterday. Today I modified one file and ran it and it gave me the error. Now its giving me the error in all the file i try.
    Any clues ??

    Hi,
    Please check the partner profile (WE20) and IDoc ports (WE21) setup, perhaps someone changed them by mistake.
    Also please check the IDoc file content whether there is IDoc control record (EDIDC) information or not.
    Regards,
    Ferry Lianto

  • How to overwrite IDoc Control Record - DOCREL

    Hi Gurus,
    Is there a way to overwrite the DOCREL field when IDoc is generated in XI? XI always send '700' but i need it to have value '46B' so it will be processed properly by the receiving system.
    My scenario is, XI is picking up a flat file in AL11 and converts it to INVOIC02 IDoc. The IDoc is being sent to a Biztalk server.
    Thanks!
    Eo

    If you want to have a control on the IDoc control records, handle them in the mapping and set the option in the IDoc adapter
    Apply Control Record Values from Payload - http://help.sap.com/saphelp_nw04/helpdata/en/96/791c42375d5033e10000000a155106/frameset.htm

  • Inbound Idoc - control record settings

    Hi,
    we have a JDBC to Idoc scenario. We get data from JDBC interface (outbound), map some fields and send it to a receiver SAP system as an Idoc (inbound). We did a similar scenario before and PI filled out automatically the control record settings. So in our mapping to the idoc XML format the must fieds in the control records are set to constant="pi dummy entry".
    It worked for the former scenario well. For this new scenario it doesn't! When i monitor the payload, SNDPOR as example is set with our dummy value of the mapping ("pi dummy entry").
    specials:
    - CC checkbox "Apply Control Values from Payload" is NOT set!
    - The destination SAP Business System is configured as a Party in Integration Directory (not such configurations in SLD)
    - We use PI 7.0
    Any suggestions?
    Thanks in advance
    Michael

    Hi Michael,
    >>So the control record will not be send. I was expecting, that PI the control record data according to the configuration fills. Maybe this is a wrong assumption.
    Yes you need to disable the control record in message mapping, because you want PI to make it at run time based on the configuration done in PI.  So apart from disabling it you need to do some more settings.
    If you have used parties in SAP PI, then select the
    1.Apply control records in IDOC communication channel
    2. Update the Identifier tab in the IDoc receiver channel with the correct information for sender/receiver
    now when you see the IDoc Outbound (in SOap Header) then you will see the correct sender and receiver details.
    Regards
    Suraj

  • User Exit to change idoc control structure

    Hi everybody.
    Does In a inbound idoc process exist any userexit to modify the control structure of the idoc????
    Thanks

    Hi ,
    I dont think you can change the control record of any IDOC .
    If you look at an example Function module MASTERIDOC_CREATE_CREMAS , used to create Vendor IDOCS ,
    the call customer-function has only the idoc data record as tables parameter .

  • What is sender port in idoc control record!

    Dear all
    In idoc control records it is showing two ports  Receiver port and sender port.receiver port we cen configured in WE21.
    where we configured senderport!
    how it is updated in control records!
    Thanks & Regards
    raj

    When you generate the outbound idoc you provide info for Receipent
      "control record
      idoc_control-idoctp = 'ACC_GL_POSTING01'.
      idoc_control-doctyp = 'ACC_GL_POSTING01'.
      idoc_control-mestyp = 'ACC_GL_POSTING'.
      idoc_control-rcvprt = 'LS'.           "Partner Type of Receiver
      idoc_control-rcvprn = 'WCP100'.       "Partner Number of Recipient
      idoc_control-rcvpor = 'WCP100'.        "Partner Port of Recipient
      idoc_control-direct = '1'.             "outbound idoc
    When you receive and inbound idoc you nedd to provided similar info but for Sender
    Port for Sender is just like port for Receipent. Both you check in WE21.
    Edited by: Marcin Pciak on Oct 17, 2008 9:47 AM

Maybe you are looking for

  • Oracle 8.1.5 for NT installation Windows XP proffessional

    Oracle 8.1.5 for NT is installed on windows XP Proffessional. Installation time SID = ORCL815. Oracle TNSListner service and oracle webAssistant service are started. But oracle serviceORCL815 status is showing as starting when startup type is Automat

  • How to connect external trigger PCIe1427

    Hi, We are working with PCIe 1427 frame grabber and a IR camera with Cameralink Standard. Our camera has got asynchronous reset at CC3, so we have given external trigger 2 in NI MAX and successfully able to grab the video. But we need to implement th

  • Create frames using JSP tags

    I am trying to create two frames in my JSP page . However it just displays a blank page on execution. I am using following code to create frames: <hbj:content id="myContext" >       <hbj:document>      <hbj:documentHead>          <frameset cols="100,

  • Mobile Safari crashes on launch on both my iPad and iPhone.

    Since yesterday, Mobile Safari on my iPad AND my iPhone crashes upon launch.  If I try to access Safari from settings, the devices hang indefinitely.  I have tried restoring from a known good backup, but the problem persists.  Does anyone have ANY id

  • What is the best setting for previews in aperture for creating DVDs ?

    Hi, I would like to send clients DVDs of the photo shoots by dragging over the preview jpegs into iDVD. Not having a clue about the quality I should set for the previews [ in aperture preferences] could any one give some idea what preview size `I sho