IDOC AAE sender adapter

Dear all,
I have a question about the IDOC AAE adapter on a PI 7.31 java only system with an ERP --IDoc--> PI --File--> FTP scenario
In my scenario I would need to change IDOC DC40 Segment information before the IDOC is being processed in the PI pipeline. Unforutnately I cannot change the header information directly on the sending system.
The processing on PI will fail due to the faulty DC40 settings, therefore I would like to correct the Segment before PI is processing the file.
I thought about using the PutPayloadValue bean to replace values in the IDOC XML structure but this does not seem to work. If I call the bean before "CallSapAdapter" in the module chain, this will result in the following error: "while trying to invoke the method org.w3c.dom.Node.appendChild(org.w3c.dom.Node) of an object loaded from local variable 'template_parent". Is this because the idoc xml is generated on the PI only after the CalSapAdater step and not already on the ERP? Or might it be due to miss-configuration? (I did not provide a namespace in the module settings of the bean as the IDoc XML structure has no namespace)
What other options would I have on PI to edit the DC40 segment before the pipeline processing?

I had a similar issue on a different adapter type.
Please make sure to insert the appropriate namespace in parameter xmlns AND in the put value. Example:
xmlns                              xmlns:ns0="http://www.test.com"
put:/ns0:root/ns0:field1    "value"
If the xpath is not correct (you can test it here, for instance Simple online XPath tester) the insertion of the value into the node will fail.
Regards,
Antonio
ps. if you like to DEBUG, the .class bytecode of ALL SAP PI Standard Adapters can be found here: com.sap.aii.af.ejb.zip\com\sap\aii\af\app\modules

Similar Messages

  • Error in IDoc AAE (Receiver) PI 7.3

    Dear Experts,
    I have a SOAP - IDoc scenario where I am using IDoc AAE reciver adapter for posting IDoc to SAP ECC system.
    Message is successful in SXMB_MONI,however getting an error as below in receiver IDoc adapter.
    Message processing failed. Cause: com.sap.aii.af.idoc.exception.IDOCAdapterException: com.sap.sql.log.OpenSQLException: Failed to set the parameter 9 of the statement >>INSERT INTO XI_IDOC_OUT_MSG ( IDOC_NUMBER , XI_MSG_NO , REF_NUMBER , ORIGINAL_IDOC_NO , IN_TIME , MESSAGING_TYPE , IDOC_TYPE , CIM_TYPE , SEND_PORT , SEND_PRTNR_NO , SEND_PRTNR_TYPE , CLIENT , STATUS , CONTROL_RECORD , CHANNEL_ID , ACK_NEEDED , ACK_RECEIVED , ARCHIVE ) values ( ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,? ) <<: Cannot assign an empty string to a parameter with JDBC type >>VARCHAR<<.
    My payload for this message is --
    <HU_CREATE01>
                   <IDOC BEGIN='1'>
                        <EDI_DC40 SEGMENT='1'>
                             <TABNAM>EDI_DC40</TABNAM>
                             <MANDT>120</MANDT>
                             <IDOCTYP>HU_CREATE01</IDOCTYP>
                             <MESTYP>HU_CREATE</MESTYP>
                             <SNDPOR>SAPPID</SNDPOR>
                             <SNDPRT>LS</SNDPRT>
                             <SNDPRN>BS_ORIWIN</SNDPRN>
                             <RCVPOR>SAPD3S</RCVPOR>
                             <RCVPRT>LS</RCVPRT>
                             <RCVPRN>D3SCLNT300</RCVPRN>
                        </EDI_DC40>
                        <E1BPHUHDRPROPOSAL SEGMENT='1'>
                             <HU_STATUS_INIT>A</HU_STATUS_INIT>
                             <PACK_MAT>000000000002001755</PACK_MAT>
                             <HU_EXID>00340042312419076037</HU_EXID>
                             <TOTAL_WGHT>11.123</TOTAL_WGHT>
                             <UNIT_OF_WT_ISO>KGM</UNIT_OF_WT_ISO>
                             <CONTENT>00002059911110071031</CONTENT>
                             <PLANT>9610</PLANT>
                             <STGE_LOC>2000</STGE_LOC>
                        </E1BPHUHDRPROPOSAL>
                        <E1BPHUITMPROPOSAL SEGMENT='1'>
                             <HU_ITEM_TYPE>1</HU_ITEM_TYPE>
                             <LOWER_LEVEL_EXID>00000000000000000000_Test</LOWER_LEVEL_EXID>
                             <PACK_QTY>12</PACK_QTY>
                             <BASE_UNIT_QTY_ISO>ZCP</BASE_UNIT_QTY_ISO>
                             <BASE_UNIT_QTY>ZCP</BASE_UNIT_QTY>
                             <MATERIAL>000000000000205991</MATERIAL>
                        </E1BPHUITMPROPOSAL>
                   </IDOC>
              </HU_CREATE01>
    Could you please give me your valuable input for the same.
    Waiting for a reply.
    Thanks in advance.
    Best Regards,
    Sugeet.

    Hello
    Note #1688780 IDoc AAE Adapter fails to insert empty strings in database, has been created to resolve this error. The fix is still being tested, so the note is not available for download just yet. Once the fix is released, the note will be available for download.
    Here are some further details on the cause of the error:
    The issue occurs if the persistency of the IDoc_AAE adapter is enabled
    via the 'Persistance' property for the 'JavaIdocAdapter' resource
    adapter and one or more of the IDoc relevant properties (for example
    sender/receiver port, partner number or type) of the XI message is/are
    empty strings. As empty string insertion into database is not supported
    by the persictency framework the above OpenSQLException exception is
    thrown and the XI message processing fails.
    Regards
    Mark

  • File sender adapter:FILE to IDOC without BPM, can't see in SXMB_MONI.

    Hi all
    I have a FILE - XI - IDOC Async scenario without BPM.
    I configured FILE sender adapter and IDOC receiver adapter. I made a mapping to transfer file data to the structure of IDOC.
    Now when i am trying to load the file using command prompt, i cud see nothing in the monitoring. Whereas if i go to the communication channel monitoring of runtime workbench, i saw that CC is polling correctly and was reading the file also.
    And also wen i saw in the processed folder which i mentioned in the CC configuration for the ARCHIVE DIRECTORY, i saw that file got transferred to the folder also.
    I don't understand why i cant see anything in the monitoring.
    Could anybody help me to rectify the problem. Is there anything i m missing ?
    Regards
    Naina

    Rajesh/Amar
    TCode:: SXMB_ADM->Integration engine configuration->specific configuration->runtime
    Trace_Level = 3 then you can get all MONI PIPELINE Steps also
    I did this change but cudn't see anything in SXMB_MONI.
    This is how i have configured my process:
    http://wiki.sdn.sap.com/wiki/display/XI/FiletoMultipleIDOCSplittingwithoutBPM
    But instead of IDOC splitting i have simple FILE - XI -IDOC scenario.
    I have configured everything exaclty the same way it is mentioned here. But for me the process is not visible at all.
    I can't even see the first request message in the monitoring.
    This is the message i can see in the communication channel monitoring:
    2010-05-24 09:07:41 Success Channel CC_*: Entire file content converted to XML format
    2010-05-24 09:07:41 Warning Channel CC_*: Empty document found. Proceed without sending message
    2010-05-24 09:07:41 Success File "/xyz/ABC.txt" archived after processing
    Is there any problem with the file and that could be the reason it cant convert the file to the request message MT_REQUEST and thus am not able to see anything in monitoring.
    help me guys....this is a simple process and i m stuck...its frustrating
    Regards
    Naina

  • I have a scenario,  ECC-PI-Message broker. ECC sending IDOC to  PI, PI execute mapping and  sending data to Message borker.(with almost one to one mapping)., IDOC(AAE)-PI-JMS. Now my requirement is., from PI  after mapping we need to save file in SAP fold

    I have a scenario,  ECC-PI-Message broker. ECC sending IDOC to  PI, PI execute mapping and  sends data to Message borker(thru JMS channel).(with almost one to one mapping)., IDOC(AAE)-PI-JMS. Now my requirement is., from PI  after mapping we need to create file with same data what ever send to Message broker and put the file in SAP folder without touching mapping. Is it possible? Please advise with the steps. We are using the ICO for this senario. Quick response is appriciated.

    Hi Pratik,
         http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/502991a2-45d9-2910-d99f-8aba5d79fb42?quicklink=index&overridelayout=true
    This link might help.
    regards
    Anupam

  • IDOC Sender Adapter and Receiver Adapter

    Hi,
    Why we don't require IDOC Sender Adapter to communicate with PI and why IDOC Receiver Adapter is required to communicate with SAP ?
    Regards,
    J Augastine

    Hi,
    >>>Why we don't require IDOC Sender Adapter to communicate with PI
    you're talking about sender and receiver agreements right ?
    as this adapter is based on abap stack - with new functionalities of IDOC adapter
    require sender agreement
    >>>and why IDOC Receiver Adapter is required to communicate with SAP ?
    as we need to put the RFC to the destination system somewhere...
    Regards,
    Michal Krawczyk

  • IDOC sender adapter

    Hi all,
                i am configuring IDOC adapter i can c sender side of the adapter also available (i am using SP12 of PI),before it used to be disable state but now sender also active.
    If we sending IDOC do we have to create sender adapter also..
    Regards
    Rao

    Hi,
    and how to configure when i receive IDocs from non-SAP System via program directly
    RFC-Destination of type T (TCP/IP) and registerd Server program?!
    any experience?!
    br

  • Need help on HTTP AAE Sender channel PI 7.4

    Hi Experts ,
    My scenario is sender system will be sending .xml file using HTTP request to Middle ware (SAP PI )  . Receiver is ECC System  where IDOC is generated  . Its Async Scenario .
    I have used HTTP AAE sender channel . Now need to some help on wheater to Select POST or GET Option to complete above requirement .
    Please suggest few points which option to select
    Regads,
    Khan

    Hi Aziz,
    Please refer the below blog for details and you can use the post method.
    HTTP Test Tool for SAP PI 7.3
    PI 7.30 HTTP Java Adapter Test Tools

  • SOAP Sender Adapter converting Ukranian Characters to Unrecognizable Characters

    Hello All,
    The scenario i am talking about here is SOAP - XI - R/3. And IDoc is posted to R/3 system via XI and hence we are using SOAP Adapter as Sender Adapter and IDoc Adapter as receiver Adapter. The third party which is sending the data to XI is a TMS system and they are connecting to XI via web-service URL.
         The Problem i am facing is, the characters sent in one of the field by TMS is getting converted to some other value when it is reaching XI. Please refer to the attached screenshot to have a look at the both the text, 1. Data sent from TMS and 2. Data Received in XI.
    Data sent from MS - SourceData.png
    Data Received in XI -DataSeenInXI.png
    I have performed the below steps in order to fix this issue, but still no luck
    1. Changed the web-service URL to the below mentioned thing, added the parameter xmlenc=iso-8859-1 to the URL
    http://host:port/XISOAPAdapter/MessageServlet?channel=Party:Service:Channel&xmlenc=iso-8859-1
    The above mentioned URL is being used by TMS team to post the message to XI.
    2. Added the below mentioned parameters in channel -
    Processing Sequence
    Module Name - sap.com/com.sap.aii.af.soapadapter/XISOAPAdapterBean
    Module Type - Local Enterprise Bean
    Module Key - SOAP
    Module Configuration
    Module Key - SOAP
    Parameter Name - XMBWS.XMLEncoding
    Parameter value - iso-8859-1/UTF-8/UTF-16/US-ASCII/ANSI
    Tried out all the encoding styles in parameter value but still the issue exist.
    Kindly help me with this, as high priority development is on hold due to this issue.
    Thanks in Advance
    Regards,
    Nitin

    Hi Nitin,
    I did some investigation by using these characters Г г Д д in my SOAP UI test. I added
    <?xml version='1.0' encoding='ISO-8859-5'?>
    on top of the SOAP Envelope, as expected, in moni the encoding is changed to UTF-8 and the characters are unrecognizable in both display and view source. Also tried Windows-1252, did not work. KOI8-U is not supported in my XI system so was not able to test it. UTF-8 is working however.
    Tried by checking "Do Not Use SOAP Envelope" in sender CC, added &nosoap=true at the of the URL and added the XML encoding at the top of
    the SOAP Envelope.
    1. ISO-8859-5
    display is unrecognizable, view source is okay
    2. Windows-1252
    also unrecognizable, view source is okay
    3. UTF-8
    Display is okay
    View source is also okay
    Some observations:
    - Ask the third-party to encode it in UTF-8 before sending it to you
    - If above is not possible, you have to run it in noSOAP mode to get the actual encoding that the third-party is sending
    - In some cases, the XI parser shows unrecognizable characters, it is okay as long as you have the correct encoding (can be verified using view source option in moni)
    Hope this helps,
    Mark
    Regards,
    Mark

  • Mail Sender Adapter - Attachment Handling

    Hello,
    I 'm using XI 3.0 SP 14.
    I have problems with my Mail-Sender-Adapter.
    The mails, I fetch, have an xml-attachment which
    represents an IDOC-structure (ORDERS.ORDERS05).
    I want to sent this attachment as payload to an SAP-System.
    The problem is now, that I have 2 Payloads (SXMB_MONI).
    One for the normal email-body and one for my original
    xml-attachment. See below:
    - <SAP:Payload xlink:href="cid:[email protected]">
      <SAP:Name>MailMessage</SAP:Name>
      <SAP:Description>mail message</SAP:Description>
      <SAP:Type>Application</SAP:Type>
      </SAP:Payload>
    - <SAP:Payload xlink:href="cid:[email protected]">
      <SAP:Name>MailAttachment-1</SAP:Name>
      <SAP:Description>mail attachment</SAP:Description>
      <SAP:Type>ApplicationAttachment</SAP:Type>
      </SAP:Payload>
      </SAP:Manifest>
      </SOAP:Body>
    The XI Runtime Workbench (SXMB_MONI) takes (in my case)
    the wrong one (email-body-attachment) and gives me
    an parsing error. (Error occurs at my IDOC-Receiver-Adapter)
    Now my question:
    Can I remove the email-body-attachment, so that
    the further processing works with my xml-attachment?
    Or how can I resolve my problem.
    best regards
    Marcel Reichert

    Hi Marcel,
    use the PayloadSwapBean module to get the attachment as main payload.
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/bf37423cf7ab04e10000000a1550b0/frameset.htm
    As parameters use:
    swap.keyName = payload-name
    swap.keyValue = MailAttachment-1
    Regards
    Stefan

  • File Sender Adapter - Multiple Source Directory

    Hi all,
    I have the following file to IDoc Scenaraio:
    The source file might be in any of 3 directories in source system and so created file sender adapter as follows:
    File access parameters:
    Source Directory : Directory1
    File Name         : Filename*.XML
    Addiontal Directory:
    Directory2    Filename*.XML
    Directory3    Filename*.XML
    The porblem we are facing is the file adapter is picking the file from Directory1& 2 and not from Directory3.
    If the change Directory Order in adapter as follows:
    File access parameters:
    Source Directory : Directory3
    File Name         : Filename*.XML
    Addiontal Directory:
    Directory2    Filename*.XML
    Directory1    Filename*.XML
    ... then file from Directory 2 & 3 is getting processed and not from Directory1.
    Any thoughts on this will be greatly appreciated.
    Thanks
    Sarat.

    Why use BPM for this?
    Instead write an abap program to pick from any of 3 directories in source directory and place it in the shared XI folder and configure your file adapter pointing to XI shared folder...shecdule the abap report for every 5 min..
    Wanna know more /people/sravya.talanki2/blog/2005/08/23/sender-xi-ftp-adapter-with-regular-path-expression-150-abap
    Or write OS level scripts for doing same.

  • HANDLING HTTP "GET"  IN SENDER ADAPTER

    Hi,
    I have a Scenario where I have to use HTTP GET Adapter  to get data from a website daily to PI and Post the data from PI to SAP ECC.On the receiver end Idoc is being used.I need help on what to use (From sdn I came to know that Java Proxy or Adapter Module can be used ) and how to configure the sender adapter in this scenario.In case of Adpater module the steps needed to configure the scenario would be helpful.In case of Java Proxy sample code that would suit the scenario would be appreciated.

    Only 7.3 version (Latest) supports HTTP GET method. All previous versions support only POST.
    In your case java proxy is better choice.
    Refer these standard links.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/7d4db211-0d01-0010-1e8e-9b07fc2113ab?quicklink=index&overridelayout=true
    http://wiki.sdn.sap.com/wiki/display/Java/JavaProxyChangesinPI7.1fromPI7.0
    http://help.sap.com/saphelp_nwesrce/helpdata/en/86/58cd3b11571962e10000000a11402f/content.htm
    Basically you have to create java proxy for the outbound (sender) interface and use those proxy(stub) objects to code in java. Refer sender java proxy in the above link.

  • Pick up a specific file with File Sender Adapter.

    Hi guys,
    I would like to know how I can pick a specific file in a file pool (folder)? I would like to choose this file by name, like FileA or FileB, etc.
    I’m asking this because I have an asynchronous file scenario (BPM) with a receiver adapter that put the File with a specific name (variable substitution) in a folder.
    And I would like to do something like this:
    In another asynchronous scenario (BPM), a File sender adapter picks up this specific file (using the name). The correlation is made trough an IDOC that XI receives before pick up the file, this IDOC has payload field with the name of file to be picked.
    Is it possible receives the IDOC, read the field with the name of the file to be picked and choose this specific file? In a Sender File Adapter how I can do something like variable substitution like receiver adapter does.
    Thanks in advance,
    Ricardo.

    Hi,
    <i>Is it possible receives the IDOC, read the field with the name of the file to be picked and choose this specific file? In a Sender File Adapter how I can do something like variable substitution like receiver adapter does.</i>
    No this is not possible. The only dynamic thing you can do is use wild card characters like *.
    So, maybe you can pick a file like . or AA. and so on...
    Regards,
    Bhavesh

  • IDOC-XI-JMS Adapter

    Hi
    I have to build interface for scenario IDOC-XI-JMS adapter and legacy syetem is MQ-series. All the jar files has been deployed which is the pre-requisite to use JMS adapter.
    Can anyone tell me if I should send data in file or as message.
    Also if you can tell me the steps to build this interface. Please refer to some relevant blogs but would appriciate if you can explain me steps.
    Points will be rewarded for the appropirate replies.
    Regards

    Hi,
    >IDOC-XI-JMS adapter
    Sender Side IDOC Adapter, Hence No Need Sender Agreement,  Import the IDOC in XI System , Declare the Data Type  for the Receiver side..Message Type..Message Interface as Ingoung..Do Message Mapping..Interface Mapping..In Configuratio Receiver JMS Adapter. Mention the Driver Information,User ID & Password and go ahead and test it
    Regards
    Agasthuri  Doss

  • Event Handling in JDBC sender adapter

    Hi,
    please help me in this scenario.
    Scenario is Third Party will update the Header and Item values in to Database table.
    Once the update is done , a program will run in Thrid party system and it will update the Event Table with the primary key value of the DB table.
    So my JDBC sender should be looking for the event table updation. Whenever there is an update in the event table the JDBC sender should automatically kicked off and it should select all the field in the DB table where the primary key = Event table.primary key and the values will be generated as an Idoc.
    1.How will i achive this scenario.
    2.How to configure the JDBC sender Adapter which gets triggered automatically when there is an updation in event table.
    please advice.
    Thanks,
    Sujatha

    Hi,
    >>2.How to configure the JDBC sender Adapter which gets triggered automatically when there is an updation in event table.
    There is way to control the Communciation Channel externally. Refer this help document http://help.sap.com/saphelp_nw04/helpdata/EN/45/0c86aab4d14dece10000000a11466f/content.htm.
    Or alternately you can create a query that always queries only the updated record and configure the JDBC adapter which would periodiocally look the DB...
    ~SaNv...

  • File Sender Adapter error

    Hi All,
    I hav a simple file to IDoc scenario. recently we had upgraded to SP19. And now when i changed the FTP Sender Adapter parameters (FTP and the User), i'm getting the following error.
    <b>Message</b> : Channel FTP_Out_TransferStockCount: Sending file failed with com.sap.engine.services.ejb.exceptions.BaseEJBException: Exception in method process. - continue processing
    <b>Category:</b>  /Applications/ExchangeInfrastructure/AdapterFramework/Services/ADAPTER/ADMIN/File
    <b>Location:</b>  com.sap.aii.adapter.file.File2XI.processFtpList()
    <b>Application:</b>  n/a
    <b>User:</b>  J2EE_GUEST
    <b>Host:</b>  sapqas08
    <b>Node:</b>  Server 0 8_35292
    I had searched the forum earlier and i found this to be a common problem. but none of the threads were answered. Can anyone please help me out in resolving this issue?
    Thnx in Adv.
    Anil

    HI Anil,
    Whether this issue got resolved? If yes, then please provide me the solution. Last day our server was restarted and aftre that we are facing this issue. As I checked the channel monitoring log, it seems like this:
    Success     MP: Entering module processor
    Success     MP: Processing local module localejbs/CallSapAdapter
    Error     MP: Exception caught with cause com.sap.engine.services.ejb.exceptions.BaseEJBException: Exception in method process.
    Error     Attempt to process file failed with com.sap.engine.services.ejb.exceptions.BaseEJBException: Exception in method process.
    Success     Channel CC_File_Sender: Entire file content converted to XML format
    It looks after CallSapAdapter module some issue arised. So, kindly help me to resolve it.
    As I checked and found some notes such as 1083488.
    PI 7.0 SP13 ADAPTER FRAMEWORK CORE 7.0
    Support Package 13, Patch Level 3 (SAPXIAFC13P_3.SCA) is present. So. please suggest.
    Regards,
    Nutan

Maybe you are looking for

  • Multiple domains

    Hi, Pls. bare with me as I don't know where to properly post this question. Is it possible to assign multiple domain accounts in scot? for example sap1.com and sap2.com? And is it possible to assign multiple mail host?

  • Nokia 5800 Does not recognize Outlook 2007

    My cel is Nokia 5800 Express Music. Until yesterday my agenda and messages at Microsoft Outlook 2007 synchronized correctly using PC Suite 2.2.0.241. A message in PC Suite appeared suggesting to upgrade to version 2.2.1.23. After upgrading PC Suite d

  • How do I add SRV record to my DNS for Office 365?

    How do I add the following record? Add the SIP SRV record for Lync web conferencing. Create a new SRV record. In the new record, make sure that the fields are set to precisely the following values: Record Type: SRV Service: _sip Protocol: _tls Port:

  • Portfolios export HTML5

    On my wish list for the next Acrobat 11.....Export portfolios (with a better variety of portfolios by the way) to HTML5 website instead of a flash website. thanks Nick

  • Problem with file manager

    ok.. so i've downloaded the pc suite for my nokia 6280. it was working just fine a while ago. now its just stuffed up! first of all my music transfer for some reason wont transfer music anymore.. but what worries me most is that my file manager wont