Posting IDOC from MQ

Hi,
I have a scenario in which I have to Post an IDOC from MQ (MQ to IDOC scenario).
I am getting an error in the communication channel  :
Transform: failed to execute the transformation: com.sap.aii.messaging.adapter.trans.TransformException: Error converting Message: java.lang.Exception: ERROR converting document line no. 1 according to structure Header:java.lang.Exception: Consistency error: field(s) missing - specify lastFieldsOptional parameter to allow this; nested exception caused by: java.lang.Exception: ERROR converting document line no. 1 according to structure Header:java.lang.Exception: Consistency error: field(s) missing - specify lastFieldsOptional parameter to allow this
What is the solution to this problem?
Thanks,
Vikas

It seems you are using Content conversion on Sender JMS adapter side.
Some fields must be missing  in your Source file.
You need to specify the lastFieldsOptional parameter in Content Conversion.

Similar Messages

  • Help Required to post IDOC from R/3 to XI

    Hello,
    I need help to post IDOC from R/3 to XI
    My XI System --- E11 on client 001
    My R/3 System -- IXS on client 812
    In R/3
    1. I use Tx SM59 to make RFC Dest --- E11CLNT001  (Client will be 001 Pointing to my XI System )
    2. I use TX WE21 to make Port -- A00020  which is using above RFC Dest
    3. I use TX WE20 to make Partner Profile -- RECE ( IDOC Outbound Parameter-  MATMAS which is using above Port)
    In XI
    1. I use TX SM59 to make RFC Dest --- E11812 (Client will be 812 Pointing to my R/3 System )
    2. I use TX IDX1 to make Port --- SAPB6M (Client will be 812 and RFC Dest -- E11812 )
    3. I use TX WE20 to make Partner Profile  -- B6MTEST  ( IDOC Inboubnd Parameter-  MATMAS )
    While Posting data from R/3
    Recipient Port --- A00020 
    Recipient Partner No -- RECE
    Recipient Partner Type --- LS
    Sender Port --- SAPB6M
    Sender  Partner Number  -- B6MTEST 
    Sender  Partner Type --- LS
    I am getting error " Could not post IDOC to R/3".
    Please let me know where are my setting are incorrect
    Regards

    In R/3
    1. I use Tx SM59 to make RFC Dest --- E11CLNT001 (Client will be 001 Pointing to my XI System )
    2. I use TX WE21 to make Port -- A00020 which is using above RFC Dest ( THIS PORT NAME SHOULD BE IN THE FORMAT SAPSID, A00020 (is it you SAPSID, else it will throw error)
    3. I use TX WE20 to make Partner Profile -- RECE ( IDOC Outbound Parameter- MATMAS which is using above Port)
    In XI
    1. I use TX SM59 to make RFC Dest --- E11812 (Client will be 812 Pointing to my R/3 System )
    2. I use TX IDX1 to make Port --- SAPB6M (Client will be 812 and RFC Dest -- E11812 )  ( THIS PORT NAME SHOULD BE IN THE FORMAT SAPSID, A00020 (is it you SAPSID, else it will throw error)
    3. I use TX WE20 to make Partner Profile -- B6MTEST ( IDOC Inboubnd Parameter- MATMAS ) ( Not require in SAP XI)
    chenage the PORT NAME IN R/3 it should work.

  • While Posting IDOC  from XI to R/3 Message Type needs to be changed

    We are doing mapping IN XI. For one condition we want Message Type to be ORDERS and for one condition we want Message Type to be ORDERSCHG
    when posting IDOC from XI to R/3.
    Pls revert anybody asap.
    Regards

    Hi,
    >>>>It means I need to create two Interface Mappings for the same message mapping and then I can use the Interface Determination . Am I right.
    no, you need two message mapping
    and two interface mappings
    file - orders.orders05
    file - ordrchg.order05
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • How to post idoc from r/3 to xi

    hi experts i have one doubt abt posting idoc from r/3 to xi
    how to post
    for vendor master idoc
    for sales order idoc
    for purchase order idoc
    for delivery idoc
             is there any inbuilt posting prgms r there or we have to write the prms.
    please clear me
    regards
    babu

    to add more...
    Befor posting IDOCS into XI..we need to do ALE SETTINGS...as fallows..
    <b>ALE settings.</b>
    <u><b>SAP XI</b></u><b>1) RFC Destination (SM59)</b>
    a) Choose create.
    b) Specify the name of the RFC destination
    c) Select connection type as 3 and save
    d) In the technical settings tab enter the details SAP SID/URL and system number#.
    e) Enter the Gateway host as same details above SID/URL.
    f) Gateway service is 3300+system number#.
    g) In the Logon /Security tab, enter the client user & Password details of Destination system.
    <b>h) Test the connection and remote logon.
    2) Create Port (IDX1)</b>
    a) Select create new button
    b) Enter the port name as SAP+SID (The starting char should be SAP)
    c) Enter the destination client.
    d) Enter the RFC Destination created in SAP R/3 towards other system.
    e) Save
    <b>3) Load Meta Data for IDOC (IDX2)</b>
    a) Create new
    b) IDOC Message Type
    c) Enter port created in IDX1.
    <u><b>SAP R/3</b></u>
    <b>1) RFC Destination (SM59)</b>
    a) Choose create.
    b) Specify the name of the RFC destination
    c) Select connection type as 3 and save
    d) In the technical settings tab enter the details SAP SID/URL and system number#.
    e) Enter the Gateway host as same details above SID/URL.
    f) Gateway service is 3300+system number#.
    g) In the Logon /Security tab, enter the client user & Password details of Destination system.
    h) Test the connection and remote logon.
    <b>2) Create Port (We21)</b>
    a) First Select Transactional RFC and then click create button
    b) Enter the destination port name as SAP+SID (The starting char should be SAP)
    c) Enter the destination client.
    d) Enter the RFC Destination created in SAP R/3 towards other system.
    e) Save
    <b>3) Create Partner Profile (WE20)</b>
    a) Create New
    b) Create the Partner no. name as same the logical system name of the destination system.
    c) Select Partner type LS
    d) Enter details for Type: US/USER, Agent, and Lang.
    e) Click on the + button to select the message type.
    f) Select Partner no. and LS which ever create above.
    g) Select Message type
    h) Select Process code related to the Message type.
    I) save.
    <u><b>In SLD – System Landscape Directory</b></u>
    TS for R/3 (Logical system):-Assign the client name created in R/3 as Logical system Name.
    Ts for Third Party (Logical system):-
    BS for SAP R/3 (Logical system):- Assign the client name created in R/3 as Logical system Name.
    BS for Third Party (Logical system):-Enter the XI logical system name.
    <b>In Transaction SALE</b>
    Define and Assign the logical system name.
    <b>and coming to the posting, u can go with WE19</b>

  • What authorization required to post idoc from XI via RFC?

    Hi all,
    I need to post idoc to SAP R/3 system from XI. I have done all the steps correctly. While creating RFC in XI system to connect to the R/3 system, intially I gave my R/3 username and password and tested teh connection. Everything was working fine but when I actually ran the scenario, IDOC was not getting posted in the R/3. But there was no error anywhere.
    fianlly after debugging I fould it might be the issue of authorization the the R/3 user i used in the RFC. I then assigned SAP_ALL authorization to my user and posted the iodc again and it started working fine.
    Can anyone please tell me what are th exact authorizations/role i need to assign to the r/3 used to use it in RFC and successfully posting the idoc? I dont want to use SAP_ALL authorization in my production environemnt.
    Please help.
    Regards,
    Yash

    Hi,
    Even i had faced this problem. Whenever I tried to send IDOCs, i used to get an error in SM58, " No authorization to send IDOC of type DEBMDM".
    When i got SAP_ALL it worked. However I raised a note with SAP asking for an alternative and this is the reply gave me.
    You can get good information on this topic in your online help files.
    The following is taken from the document "General Security Measures
    (ALE)":
    Use the transaction SALE to maintain the ALE configuration, to include setting up the distribution model and setting up ALE user authorizations and profiles. Note the following:
    - Be restrictive when assigning the ALE authorizations.
    The authorization profile B_ALE_ALL contains the following
    authorization objects that are needed for ALE:
    Authorizations for ALE
    Authorization Description
    B_ALE_CGRP ALE Customizing Distribution: Group Activities
    B_ALE_LSYS ALE/EDI: Maintaining logical systems
    B_ALE_MAST ALE/EDI: Distributing master data
    B_ALE_MODL ALE/EDI: Maintaining customer distribution model
    B_ALE_RECV ALE/EDI: Receiving IDocs via RFC
    B_ALE_REDU ALE/EDI: Generating messages (ex. reduction)
    S_PROGRAM ABAP: Program run checks
    S_TABU_DIS Table Maintenance (using standard tools such as SM30)
    Protect external users and passwords.
    For example, for a non-SAP system to send IDocs to a SAP System using transactional RFC, it must also send a SAP user ID and password.
    In most cases, the user and password are stored outside of the SAP System. Make sure that this information is not accessible to external systems or programs. (How you can do this is dependent on the system that you have; therefore, you need to refer to the documentation for the system where the information is stored.)
    However, I feel assigining the profile S_IDOC_ALL should also be enough. Just try and see.
    Regards,
    Merrilly

  • "An IdocException occurred" while posting Idocs from SAP ECC to SAP PI AEX

    Hi all,
    While sending Idocs from SAP ECC to SAP PI 7.4 AEX, we are experiencing this issue at SAP ECC-SM58
    Only a particular Idoc type is having this issue.
    Below are the checks done before posting this query:
    1. Pushed other Idocs from the SAP ECC to PI and all were getting exchanged successfully.
    2. Reloaded the meta data in PI for  the particular Idoc type in issue.
    3. Checked the RFC destinations in SAP ECC, RFC connection test is also working fine.
    4. Unicode option enabled in the SAP ECC RFC destination pointing to PI-AEX
    5. Restarted the inboundRA service in PI AEX.
    Is there anything still missing. What could be root cause of this issue.
    If anyone has encountered it before, pleases share the resolution.
    Thank you
    Younus

    Hi Amit,
    Thanks for the reply. Log viewer doesn't provide much help on the error.
    The error desc says
    "JRA]serverExceptionOccurred. Server XI_IDOC_DEFAULT_SID, Managed_Application_Thread_58, connectionId=5-ip address|sapgw20|XI_IDOC_DEFAULT_SID, Exception: com.sap.conn.jco.JCoException: (104) JCO_ERROR_SYSTEM_FAILURE: An IDocException occurred"
    regards,
    Younus

  • Posting idocs from R/3 to xi

    dear all,
    i want to do one scenario of posting INVOIC idocs from R/3 to XI. I have gone thru some of the blogs posted in SDN but didn't find any step by step guide for doing it.
    Can anybody send me the link or sme document for the above said scenario.
    Warm regards,
    N.Jain

    Sent/Receive IDOC:
    you need to do the following:
    In XI
    SM59 - R3 connection pointing to R3
    IDX1 - define the port with the above dest.
    In R3
    SM59 - R3 connection pointing to XI
    WE21 - define the port with the above dest.
    WE20 - Partner profile type outbound/Inbound
    Further ref:
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/sapR3%28Idocs%29ToXI--Steps+Summarized&
    Configuration steps required for posting idoc's(XI) -
    /people/ravikumar.allampallam/blog/2005/02/23/configuration-steps-required-for-posting-idocsxi
    ALE configuration for pushing idocs from SAP to XI -
    /people/swaroopa.vishwanath/blog/2007/01/22/ale-configuration-for-pushing-idocs-from-sap-to-xi
    For a IDOC -> File, ref:
    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters

  • How to post Idocs FROM BW to R/3?

    Hi,
    what I need to do is:
    1. read a cube.
    2. create an Idoc from the record I read.
    3. post the idoc back to R/3.
    Do you know how can I send the Idoc directly to R/3 FROM BW?
    Thanks,
    Itay

    Hi Andrzej,
    I created the following fm in R/3 to be called from BW:
    FUNCTION z_read_table.
    ""local Interface:
    *"  IMPORTING
    *"     VALUE(IP_TABNAME) TYPE  TABNAME
    *"  EXPORTING
    *"     VALUE(EP_TAB) TYPE  ZBP0_TAB
      DATA: it_table    TYPE REF TO data,
            l_line      TYPE zbp0_struc.
      FIELD-SYMBOLS: <it_tab> TYPE STANDARD TABLE,
                     <ls_tab> TYPE ANY.
    create internal table
      CREATE DATA it_table
             TYPE STANDARD TABLE OF (ip_tabname).
      ASSIGN it_table->* TO <it_tab>.
    read data
      SELECT * INTO TABLE <it_tab> FROM (ip_tabname).
    assign data
      LOOP AT <it_tab> ASSIGNING <ls_tab>.
        CALL FUNCTION 'SO_STRUCT_TO_CHAR'
          EXPORTING
            ip_struct = <ls_tab>
          IMPORTING
            ep_string = l_line.
        APPEND l_line TO ep_tab.
      ENDLOOP.
    ENDFUNCTION.
    In BW I am calling it with
    CALL FUNCTION Z_READ_TABLE destination 'DEST'
    IMPORTING ip_tabname = 'ZTABLE'
    EXPORTING ep_tab = itab.
    Hope this helps!
    regards
    Siggi

  • Posting IDOCs from Proxies.

    I would like to know if there is a way to post an SAP inbound IDOC from a proxy?
    have any of you worked on such scenarios? If so what are the steps involved?
    Thank You
    Arvind R

    Hi Arvind,
    I am not sure why do you want to do that but if you are able to generate IDOC headers using the data in the proxy, yes, then you can send/post an IDOC using proxy.
    Award if helpful,
    Sarath.

  • Post Idoc from SAP to Thirdparty using XI

    Dear Friends,
      My requirement is sending the Idoc from SAP to Thirdparty system,but Thirdparty system also receive the Idoc format only.
    so IDoc to Idoc scenario but SAP to Thirdparty system it is possible or not.
    please tell me how ?
    Regards,
    Shalini Shah

    You can use SAP Business Connector(BC) to convert IDOC to IDOC-XML at the third party legacy system.
    With Business Connector see the below links
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b4f3755a-0401-0010-b6b3-9b65bb7d4503http://www.thespot4sap.com/Articles/SAP_XML_Business_Integration.asp
    http://www.erpgenie.com/mysap/bus_connector.htm
    WAS - Business Connector
    business connector documentation
    SAP Business Connector
    Business connector
    Will Business Connector 4.6 be affected by new  Daylight savings changes
    Business connector
    More info on XI can be found at https://service.sap.com/xi
    and webAS on http://help.sap.com/saphelp_nw04/helpdata/en/f3/e20f3adfd0a706e10000000a114084/frameset.htm
    Check this also-
    http://help.sap.com/saphelp_nw2004s/helpdata/en/6f/1bd5c2a85b11d6b28500508b5d5211/frameset.htm

  • Error when posting  Idocs From XI to SAP by Partner Profile

    Hi all.
    i have a problem. all my inbound IDocs in R3 use PP(Partner Profile) LS_XID.
    but i need to send IDoc MATMAS by a diferent PP (LS_MATERIALS).
    So, i added a new BS in transaction BD54.
    In transaction BD64 re-desing the Distribution Model as follow
    SL_130 (R3 DES)
    > LS_MATERIALS (XI)
                |> MATMAS.
    In transaction WE20 define the new PP LS_MATERIAL. In inbound table add the MATMAS IDoc. Later imust delete de MATMAS IDoc from LS_XID list. same as transaction BD64.
    My problem is when send the MATMAS to R3. it is still using PP SL_XID, so IDoc get status 56 (EDI: Partner Profile Inbound not Available) in R3.
    Why?? Any IDea??
    Thanks & Regards
    Rodrigo.

    Hi,
    Please check the Logical system,Business system, configurations ,please see the below links
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cdded790-0201-0010-6db8-beb9bb2b2660
    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters
    /people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
    /people/ravikumar.allampallam/blog/2005/06/24/convert-any-flat-file-to-any-idoc-java-mapping
    Regards
    Chilla..

  • Problems with posting iDocs from MDM in SAP R3

    Hi,
    I am an MDM consultant, with limited knowledge about SAP R3.
    We send material master data from MDM, via PI to R3 using iDocs.
    We are having problems with posting MATMAS, and it seems the problems are with updating already existing materials.
    In BD87 we get the following warnings:
    The field MARA-ERVOE is not ready for input and was therefore not initialized
    The field MARA-ERVOL is not ready for input and was therefore not initialized
    The field MARA-FERTH is not ready for input and was therefore not initialized
    The field MARA-KZGVH is not ready for input and was therefore not initialized
    The field MARA-XCHPF is not ready for input and was therefore not initialized
    With the last message being:
    No changes made
    I have checked the MDM syndicator, and none of these idoc-fields are linked to the MDM repository.
    So they are syndicated blank.
    If we try to resend the material, it is again stopped and in BD87 I see the same messages.
    Please help me understanding how to solve these issues.
    Thanks,
    Thomas

    Hi,
    Please refer the below threads which talks about the similar problem
    http://scn.sap.com/thread/3180116
    http://scn.sap.com/thread/1374222
    Generally the basic view of the material to be created first. Then the sales, purchasing and other views to be created.
    There are few fields in the other views which gets values from the basic data view.
    Regards,
    Antony

  • Posting Idoc from XML port to FTP

    Hello Experts,
    I have a business case, where the xml generated from and xml port has to be posted on to an FTP. Presently we are doing it manually by getting the xml from CG3Y T-Code and posting it on to FTP manually. Is there any way for posting the Idoc.xml directly on to the FTP, without our intreaction?
    Can this be done by customizing the ALE config,s? Or we need to wirte an ABAP code?
    Another concern is that every time, I generate an IDoc, the previous IDoc is over written. Can this process, changed so that the previous dosent get overwritten insted it creates a new xml, every time we tigger and Idoc.
    Thanks,
    Suma

    Hi Suma,
    To FTP the IDoc.xml you can use shell script which will FTP the IDocs to the FTP server. This shell script can be scheduled on the application server at OS level to be executed at a given frequency (say every 10 mins).
    The other way of doing this is maintain the shell script details in the Outbound Trigger of the XML File port and set the radio button in partner profile to Start Subsystem in Outbound parameters tab. This will make the shell script to be executed after the IDoc is written to the XML File port.
    If you are not intersted in writing shell scripting, you can directly use the HTTP xml port. This is very easy to use and you can have tight integration. When ever an Idoc is triggerd this will direclty send it accross the HTTP server and from you can make use of it. On any tomcat you can create a HTTP server. If you are using Websphere product as integraion then, it is directly proived by IBM. I suggest you to go for the HTTP rahter doing it on XML Port.
    You have a disadvantage for XML port that ever time you generate an Idoc it will be over written. So there is chance that you may miss some of the Idoc's.
    Thanks,
    Srikanth

  • How to post idoc ORDERS05 from ABAP standalone program to the same R3 syst?

    Hi Masterminds,
    I need to post IDoc from ECC to same R/3 system. For that i need to develop a standalone program which will post Idoc 'ORDERS05'.
    I had the following data:
    E1EDKA1                         - PARTN
    E1EDK02; QUALF = 001        - BELNR
    E1EDP19; QUALF = 003     - IDTNR
    E1EDP02; QUALF = 997        - BELNR
    E1EDP01     MENGE               - Space
    E1EDP02; QUALF = 999        - BELNR
    E1EDK01     BSART               - Space
    E1EDP19; QUALF = 002        - IDTNR
    E1EDP01     ABGRU              - Space
    E1EDKA1     PARVW              - Space
    Please provide me details how to write the program and what necessary steps do i need to follow.
    Thanks......

    Hi,
    Do ALE settings and Fill two tables of type EDIDD and structure of type  EDIDC
    and pass it to function module 
    CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'
        EXPORTING
          MASTER_IDOC_CONTROL                  = P_WA_EDIDC
      OBJ_TYPE                                              = ''
      CHNUM                                                   = ''
        TABLES
          COMMUNICATION_IDOC_CONTROL           = P_I_EDIDC
          MASTER_IDOC_DATA                                = P_I_EDIDD
       EXCEPTIONS
         ERROR_IN_IDOC_CONTROL                        = 1
         ERROR_WRITING_IDOC_STATUS               = 2
         ERROR_IN_IDOC_DATA                              = 3
         SENDING_LOGICAL_SYSTEM_UNKNOWN       = 4
         OTHERS                                                            = 5.

  • Unable to send an idoc from SAP R/3 to XI

    Hi,
    We are trying to send Z_CREMAS_SUSMM.CREMAS03 idoc from R/3 system to XI using IDOC adapter.
    We have done the following steps.
    On  SAP R/3 system:
    1.created a RFc Destination which points to the XI system using transaction SM59
    2.created a port in which we have selected  this RFC Destination   using tansaction WE21
    3.logical system for R/3  with transacion BD54
    4.In WE20 transaction,we have configured the PartnerProfile by adding the IDOC message type to the outbound Parameters of XI Logical system.
    On XI Sytem:
    1.Created RFC destination
    2.Created a Port
    3.Loaded metadata
    While trying to Post IDOc from SAP R/3,it is throwing an error"External segment name E2LFA1M001 cannot be interpreted"
    and "Basic type CREMAS03 does not exist" on XI side.
    Can anyone please provide a solution to this?

    HI Jagruthi,
    Have you loaded the metadata into the XI system by using IDX2?
    If it is done then try to delete once and do once again.
    And also delete the IDoc from IR and reimport the IDoc and activate it once again.
    Regards
    Goli Sridhar

Maybe you are looking for

  • Confusion about get/set method not working

    Hi Hopefully someone can point out the elementary mistake I have made in my code. I have created a get/set method to hold a value"total" so that I can then get it to display it further down my code in an HTML page. I am setting the value as I can che

  • Updating my script to add in the Name of the VM in VMM

    Hello, I run the following script from our VMM server and it's working well in that it gives me the location of the folder where the VM lives and whether or not the VM is fixed or dynamic (or a checkpoint). But what's missing is I want to add in the

  • Problem - Alerts on iPhone when event/reminder is created in iCal

    Preamble: MBP 2011 (early) on latest update of Lion Subscription to iCloud (recently updated from MobileMe) iPhone4 iOS5 Here's the scenario: I create an event or reminder in iCal (on MBP) and set the alert settings to 'message' or 'message with soun

  • Problem to see photos in APEX loaded in Forms 9i

    I have a table employees with field "Photo" BLOB. This table was filled from Forms 9i using WEBUTIL. Now, i´m using APEX 3.1 to access photo but not view image. I have a application Apex 3.1 to upload the news records and photos from Employees, and i

  • Checkboxes saved in cells

    Hi! I want to make a practicing log for my rehearsals in Excel. I want the opportunity to practice at least three times during a day and each time I practice during a day I want to save what I have practiced and for how long. For instance I can have