PI  AAE = IDOC control data to ECC

Hi All,
I am using the JAVA IDOC receiver adapter to send idoc's to CRM as a test to just send idocs
Need help on the control records.
Things done
1. Passing data manually.
2. Idoc begin =1 and all segments = 1
3. Created Logical system in WE20 in CRM and created partner profile with inbound parameters.
4. Checked business system in ID and it reflects the logical system ; albiet same as the one created in ECC.
5. Created a dummy partner profile in ECC to act as XI sender
Now, can tyou please guide me how to fill the fields in EDIDC_40?
<EDI_DC40 SEGMENT="1">
         <TABNAM>EDI_DC40</TABNAM>
         <MANDT>100</MANDT>
         <DOCNUM>Should i give?</DOCNUM>
         <DOCREL>1</DOCREL>
         <STATUS>1</STATUS>
         <DIRECT>2</DIRECT>
         <OUTMOD>1</OUTMOD>
         <EXPRSS>1</EXPRSS>
         <TEST>1</TEST>
         <IDOCTYP>CRMXIF_ORDER_SAVE_M01</IDOCTYP>
         <CIMTYP>1</CIMTYP>
         <MESTYP>CRMXIF_ORDER_SAVE_M</MESTYP>
         <MESCOD>1</MESCOD>
         <MESFCT>1</MESFCT>
         <STD>1</STD>
         <STDVRS>1</STDVRS>
         <STDMES>1</STDMES>
         <SNDPOR>SAPXX1 ( DOne as part of document available- XX1 SID of pi)</SNDPOR>
         <SNDPRT>LS</SNDPRT>
         <SNDPFC>1</SNDPFC>
         <SNDPRN>XX1CLNT001 ( dUMMY CREATED IN CRM</SNDPRN>
         <SNDSAD>1</SNDSAD>
         <SNDLAD>1</SNDLAD>
         <RCVPOR>SAPXX1_SBX ( Port created in CRM)</RCVPOR>
         <RCVPRT>LS</RCVPRT>
         <RCVPFC>1</RCVPFC>
         <RCVPRN>CX1CLNT100 ( Partner profile created and inbound parameter assigned; also reflecting in the business system)</RCVPRN>
         <RCVSAD>1</RCVSAD>
         <RCVLAD>1</RCVLAD>
         <CREDAT>20140303<CREDAT/>
         <CRETIM>191016<CRETIM/>
         <REFINT/>1<REFINT/>
         <REFGRP>1<REFGRP/>
         <REFMES><REFMES/>
         <ARCKEY>1<ARCKEY/>
         <SERIAL>1<SERIAL/>
      </EDI_DC40>
I ahve something urgent to be delivered and need your help very badly

Hi All,
Exception caught by adapter framework: Sender Partner Number is not available
This is the error i get when i try to process my idoc for the receiver AAE IDOC adapter
Which value do i put in here and here is the config i have made.
1. WE20 in ECC with inbound parameters.
2. Logical system field in SLD filled for the business system i am using.
3. ICO config with Sender and receiver business components checked with the respective business systems.
4. I have also noticed that the sender business system in ID , where you check for adapter specific attributes is blank even though i have provided a logical system in SLD for the BS.Tried Clear SLD cache but still not reflecting. COULD THIS BE THE PROBLEM?
Kindly help as even if it fails i have to send over an idoc as part of my POC and i am dead late .

Similar Messages

  • Determination Idoc Control data - Outbound

    Hi Guru's
    I would like to know how to get the idoc control data, like receiver port and receiver partner. For example:
    I have an ABAP program which collects the IDOC data at the end I want to send out the IDOC, but what is the best way to determine the receiver information? Or how does it work in relation with partner profiles?
    Best regards,
    Guido Koopmann

    You don't need to specify all of the information - your distribution model will take care of it.  Do something like this snippet of code for the control record for output-based processing:
    * Populate the control record
      gs_ctrlout = gs_ctrlin.
      CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET'
        IMPORTING
          own_logical_system             = lv_logsys
        EXCEPTIONS
          own_logical_system_not_defined = 1
          OTHERS                         = 2.
      IF sy-subrc EQ 0.
        gs_ctrlout-sndprt = 'LS'.
        gs_ctrlout-sndprn = lv_logsys.
      ELSE.
      ENDIF.
      gs_ctrlout-serial(8)   = sy-datum.
      gs_ctrlout-serial+8(6) = sy-uzeit.
    If you have a standalone program, before calling MASTER_IDOC_DISTRIBUTE, you just need to fill the message type and IDOC type in the control record.

  • Get wrong IDoc control data

    Hi, experts, I create a extension base on baisc type SISDEL01 for delivery.  And I have add the control data in WE82. But now i found when i get idoc control data, the field of extension has no value. Could somebody give me some advices? Thanks.

    Hi Rick
    After released the IDOC did you re imported?. Are you able to use the extended structure in PI?.
    Check this as well
    XI IDoc  control record data source?
    Thanks
    Gaurav

  • RE: IDOC CONTROL DATA FOR ISU_IDOC_INPUT_ISU_EL40

    HI,
    CAN ANY BODY PLEASE TELL ME CONTROL DATA FOR ISU_IDOC_INPUT_ISU_EL40
    THANKS,
    Sarang

    Hi raj,
    i want to pass data to standard function module which genrates idoc.
    function module name is ISU_IDOC_INPUT_ISU_EL40.
    now i want to pass control data to IDOC_CONTRL parameter.
    my itab consist of 4 fields.
    first field is passed to one segment and remaining fields are passed to other segment.
    So I want to know how to pass data to different segments and what should be the control data(like partner type etc.)
    waiting for ur reply
    Thanks,
    Sarang

  • Regarding IDOC control data

    Hi All,
    Please let me there is any function module available for getting control record information if I pass message type to the function module.
    Regards
    Mahesh

    Hi Mahesh,
    There is no such function module available in SAP to get you the control record when you give the Message Type as input.
    The simple reason is that you might be using the same message type for both inbound and outbound and for many business partners, so you cann't get the control record details that way.
    If you wanted to know the basic type associated with that message type then you can use WE82 transaction for getting the corresponding basic type for that message type.
    Thanks,
    Mahesh.

  • Hi In ALE ,IDOC  HOW  CONTROL DATA IS TRANSFERRED

    Hi Experts,
                          Hi In ALE ,IDOC  HOW  CONTROL DATA IS TRANSFERRED .
    Thanks & Regards
    Bhaskar Rao.M

    Hi Bhaskar Rao,
    Good Check out the following documentation.
    /people/kevin.wilson2/blog/2006/11/13/ale-scenario-development-guide
    http://searchsap.techtarget.com/tip/0,289483,sid21_gci1230385,00.html
    Some good links on ALE/IDOC
    ALE/ IDOC
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://www.sappoint.com/abap/ale.pdf
    http://www.sappoint.com/abap/ale2.pdf
    http://www.sapgenie.com/sapedi/idoc_abap.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm
    http://www.allsaplinks.com/idoc_sample.html
    http://www.sappoint.com/abap.html
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://www.allsaplinks.com/idoc_sample.html
    ALE/ IDOC/ XML
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://www.thespot4sap.com/Articles/SAP_XML_Business_Integration.asp
    http://help.sap.com/saphelp_srm30/helpdata/en/72/0fe1385bed2815e10000000a114084/content.htm
    IDOC Convertion
    /people/kevin.wilson2/blog/2005/12/07/changing-fields-in-an-idoc-segment
    Please check this online document for ALE and IDoc.
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDALEIO/BCMIDALEIO.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDALEPRO/BCMIDALEPRO.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFAALEQS/CABFAALEQS.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVEDISC/CAEDISCAP_STC.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVEDI/CAEDI.pdf
    Also check this links for additional information.
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    Good Luck and thanks
    AK

  • Some question on IDOC (Control Record/Data Record/Status Record)

    Dear all,
    I am new in this area, and would like to enquire some question on this topic.
    When I view a IDOC via WE02, each of the IDOC record will consist of Control Record/Data Record/Status Record).
    Questions:
    I notice that the data records consists of many segment (i.e. E1EDK01, etc) which are use to store application data.
    1 - My question is do I have to manually create all these segment and do a mapping to my application field one by one (i.e. that is when I want to create a brand new message type from scratch)?
    2 - If question no. 1 is Yes, how to do it, what are the transaction code to create it? can you show me the step by step.
    3 - I don't have to create the Control record and the status record for my new message type right ? because those field value will automatically pull out from partner profile and system status message, am I correct?
    Thanks.
    Tuff

    Hi Tuff,
    As everything in SAP, with IDOCs too there are
    1) Standard IDOCs
    2) Standard IDOCs(Extending - Enhancement to an IDOC, to accomodate for custom values)
    3) Custom IDOCs
    And every IDOC has,
    Control record - EDIDC Structure - This mostly reflects the partner profile information, along with few more details which are used for IDOC extension, Sequencing etc
    Data Records - EDID4 Structure - These records contain the actual business data of the document in concern. So for ORDERS05 it would contain order details, INVOIC02 - Invoice details so on...
    Status Records - These records capture the status of an IDOC from the time it is received/sent from your system and a corresponding business document is created/changed. So this will have messages like "IDOC sent to the port OK" etc which are status from the communication layer(ALE) to application specific messages like "Sales Order XXX created" or "Invalid Material" etc.
    You would have noticed something called as Process code in the partner profile, this is associated with a FM(or work flow task etc) which has the business logic coded in.
    So in case of an Inbound IDOC, the sending system updates the IDOC - Control and Data records, and sends it to the receiving system. On the receiving system the IDOC's control record is validated against the partner profiles set, if an entry is found then using the process code it finds the associated FM which will decode the data from the IDOC data records as per the IDOC type and then use it to post data into SAP (VIA BDC, Batch Input, BAPI etc).
    And all this while the Status records are being updated accordingly.
    So with the above context will try to answer your questions,
    1 - My question is do I have to manually create all these segment and do a mapping to my application field one by one (i.e. that is when I want to create a brand new message type from scratch)?
    In case of a custom IDOC, yes you will have  to.
    In case of a standard IDOC, you wouldn't have you just have set up the necessary configuration (Partner Profile, Process code etc)
    In case of a standard IDOC extended to accommodate for some custom values(for which there are no fields in standard IDOC - Let us say you have added some new fields on VA01) - In this case you can still use the standard Process code and Standard FM associated with it, SAP provides several Function exits in these FM's which you can leverage to add your custom logic.
    2 - If question no. 1 is Yes, how to do it, what are the transaction code to create it? can you show me the step by step.
    There are several documents available on the net and on SDN detailing step by step approach for all the above three cases,
    just search for step by step guide for IDOCS - sap.
    3 - I don't have to create the Control record and the status record for my new message type right ? because those field value will automatically pull out from partner profile and system status message, am I correct?
    Again it depends, in case of using a standard IDOC you wouldn't have to. But in case you have some customizations/enhancements then you might have to.
    For Ex: updating the control record accordingly for indicating that you have extended the standard IDOC. Or append custom messages to the status record as per the business logic.
    Try out the examples you find on the net and post any specific questions you might have.
    Regards,
    Chen

  • How to transfer data from ECC to CRM via IDocs (Clfmas01),

    Hi all,
    how to transfer data from ECC to CRM via IDocs (Clfmas01), that to material master data from ECC to Production master data in CRM.    
    Need Information regarding, how to upload file to CRM from ECC, through, IDocs......Plz help me...
    Edited by: khaja fareed on Jan 11, 2010 12:44 PM

    First of all push ECC data in to GTS server through T.code:/N/SAPSLL/MENU_LEGALR3. First click on Master data tab there enter customer/vendor number then execute.
    2-Go to document tab there enter Sales order no/PO number then execute it.
    Then go to GTS server in compliance management module you can get all the information.
    Regards
    Sitanshu Panigrahi

  • Idoc is recieved on port but only control data

    Hi all,
    I hav created a program to send data on file port. Idoc gives status 03. but we we see data on recieving port (when file is generated)then data is abent only control data is recieved . No data records are there.I'm using FM EDI_OUTPUT_NEW to send data
    If I send that idoc again directly running The  FM EDI_OUTPUT_NEW then then conrol data and data records are recieved successfully.
    Plz help me
    Regards
    Richa

    Hi!
    The data section is missing mostly in that case, if all the data fields within it is empty. IDoc sending is skipping empty fields.
    In WE19, I think you entered all data within the fields.
    Check your sender program, you might accidentally clear the IDoc data strucure before the MASTER_IDOC_DISTRIBUTE fm call.
    Regards
    Tamá

  • SapErrorMessage=Inconsistent IDocs passed: Data records or control records

    Dear Friends
    I am not a basis guy but am doing that work, since we don't have any basis admin in our company. One of our clients using our server in the lab is doing some testing of sending IDOCs from one server to another and are getting the following error message
    SapErrorMessage=Inconsistent IDocs passed: Data records or control records missing..
    AdapterErrorMessage=Error occurred while calling function module "INBOUND_IDOC_PROCESS" in R/3
    Is there any log files or some thing that I can see to get more info on this problem. I don't know where the log files related to this kind of problems get stored. Any feedback will be highly appreciated.
    Thanks
    Ram

    Hi,
    thanks all for your help, great progress has been made!
    There was no idoc record in sap as the document had not made it that far
    A large part of the problem was my lack of understanding of sap versioning. My previous understanding was that you had a major version of the document: ORDERS01, ..., ORDERS05 and each of these have a version that relates to the software version, e.g. 47, 62, 64 etc.. which appears in the control record.
    So I apparently have:
    ORDERS05   64    V2
    ORDERS05   64    V3
    Can anyone explain this versioning model?
    I would assume that V3 is the newer version but ...
    thanks and regards
    m

  • 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

  • Error while loading data from ECC to BI

    Hi BW Experts,
    while loading data from ECC 6.0 to BI  i got error in details tab of the infopackage as datapackage 1  arrived in bw processing not yet finished.
    Could any one help me out?
    Thanks

    Amar,
       please check the source system job status. If its successfully completed then we can expect data load sucess in BW side.
    to check source system status: RSMO> select related load>in Menu Environment-->Job overview in source system.
    once this over check the TRFC or IDocs struck
    if TRFC, chk in TCode-SM58 or from environment select TRFC from source/data warhouse.
    if you are finding TRFcs are in stuck just select and run manually to complete.
    M

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

  • IDoc meta data not getting imported

    Hello
    I am trying to get IDoc meta-data using transaction IDX2. I have configued RFC destinations of type R3 in both the systems (ECC and XI). Also I have created port using transaction IDX1.
    When tried to import MATMAS04 using the defined port it gives Information box displaying "I::000" and nothing happens. The information box does'nt contain any message.
    Anybody faced this problem with IDoc?
    Thanks in advance.
    Regards
    Rajeev

    Hi,
    actually it was authorization problem which I noticed when I checked the short dump in ECC.
    anyways thanks for the reply.
    Regards
    Rajeev

  • Passing Idoc Control Record information  to JMS header

    Hi All,
    We have a requirement where we need to pass the 'MESCOD' and 'MESFCT" in the EDIDC_40 - Control record for the idoc to the Header of a JMS message.
    Basically we are trying to pass IDOC Control segment to the JMS header.
    I was looking at the options we have in the JMS adapter, and i am not sure how can this be achieved.
    Would appreciate any info on how this can be done.
    Thanks,
    Karthik

    Hi Karthik,
    As suggested by Ravi, you can hardcode this values in XI mapping before pushing data to JMS.
    Otherway round would be...check for User Exit where you can populate EDIDC_40 with MESCOD and MESFCT.
    Nilesh

Maybe you are looking for

  • Different  font colors in the same text area.

    i need to have a text area where i can setText with different colors. eg red if an error message, rest to be black. the only way to set text color i know is using setforegound color which will do the only documents, but i need to set font color per s

  • Finding days in a specific month

    Hi All, I need help in writing a query to retrieve all days in a specific month using sysdate. For eaxmple SELECT trunc(to_date(sysdate, 'DD-MONTH-RRRR') FROM DUAL WHERE sysdate between FIRST_DAY AND LAST_DAY;

  • Balances Carryforward issue

    Dear Experts, We have done carryforward balances in FAGLGVTR for all GL accounts for the year 2008 to 2009. Now the issue is that two accounts balance has not been transfered. when I checked in the log I can see the two accounts balances carryforward

  • Aperture Split View Problem

    The vertical photos in the split view bar at the bottom have all switched from being displayed normally to being rotated and showing squashed and distorted. I have tried to close and re-open Aperture, and I have also restarted the computer.  The pict

  • Reference record in another record

    Hi, I have two packages each having one record. Is it possible to reference the record of the second package in the record of the first package ? For example: create or replace pkg1 is type rec1 is record ( col11 integer, col12 ref pk2.col21 end pkg1