Context problem during mapping.

I have to map header details with item details.
in header one segment has 3 records.
when i am using splitbyvalue with removecontext, the 3 records are coming only in first item details. other item details are blank.
How to solve it ? please help.
Regards,
Study SAP

Sender Payload is :
<?xml version="1.0" encoding="UTF-8" ?>
<X12>
<ISA>
  <ISA01>00</ISA01>
  <ISA02 />
  <ISA03>00</ISA03>
  <ISA04 />
  <ISA05>08</ISA05>
  <ISA06>8493</ISA06>
  <ISA07>12</ISA07>
  <ISA08>434343</ISA08>
  <ISA09>071030</ISA09>
  <ISA10>2145</ISA10>
  <ISA11>U</ISA11>
  <ISA12>00400</ISA12>
  <ISA13>100001802</ISA13>
  <ISA14>0</ISA14>
  <ISA15>P</ISA15>
  <ISA16>></ISA16>
  </ISA>
<GS>
  <GS01>PO</GS01>
  <GS02>4343</GS02>
  <GS03>24343</GS03>
  <GS04>20071030</GS04>
  <GS05>2145</GS05>
  <GS06>243438</GS06>
  <GS07>X</GS07>
  <GS08>004030</GS08>
  </GS>
<TS_850>
<ST>
  <ST01>850</ST01>
  <ST02>300091763</ST02>
  </ST>
<BEG>
  <BEG01>00</BEG01>
  <BEG02>SA</BEG02>
  <BEG03>64821185</BEG03>
  <BEG04 />
  <BEG05>20071030</BEG05>
  <BEG06>100000485002</BEG06>
  </BEG>
<REF>
  <REF01>DP</REF01>
  <REF02>832</REF02>
  <REF03>W</REF03>
  </REF>
<REF>
  <REF01>IA</REF01>
  <REF03>119800</REF03>
  </REF>
<CSH>
  <CSH01>P4</CSH01>
  </CSH>
<ITD>
  <ITD01>14</ITD01>
  <ITD02 />
  <ITD04 />
  <ITD05>5</ITD05>
  <ITD06 />
  <ITD09 />
  <ITD12>NET 45</ITD12>
  </ITD>
<DTM>
  <DTM01>010</DTM01>
  <DTM02>20071031</DTM02>
  </DTM>
<DTM>
  <DTM01>001</DTM01>
  <DTM02>20071107</DTM02>
  </DTM>
<TD5>
  <TD505>FOLLOW TRAFFIC DIVISION</TD505>
  </TD5>
<TD5>
  <TD505>SHIPPING INSTRUCTIONS</TD505>
  </TD5>
<GROUP_6>
<N1>
  <N101>SF</N101>
  <N102>D</N102>
  </N1>
<N4>
  <N401>D</N401>
  <N402>J</N402>
  <N403>43</N403>
  </N4>
  </GROUP_6>
<GROUP_8>
<GROUP_9>
<N1>
  <N101>Z7</N101>
  <N102 />
  <N103>92</N103>
  <N104>14811</N104>
  </N1>
  </GROUP_9>
<GROUP_9>
<N1>
  <N101>BT</N101>
  <N102 />
  <N103>92</N103>
  <N104>94508</N104>
  </N1>
  </GROUP_9>
<GROUP_9>
<N1>
  <N101>ST</N101>
  <N102 />
  <N103>92</N103>
  <N104>94508</N104>
  </N1>
  </GROUP_9>
  </GROUP_8>
  <GROUP_11 />
<GROUP_12>
<PO1>
  <PO101 />
  <PO102>2</PO102>
  <PO103>AS</PO103>
  <PO104>103.8</PO104>
  <PO105>WH</PO105>
  <PO106>IN</PO106>
  <PO107>10090110</PO107>
  <PO108>ON</PO108>
  <PO109>F</PO109>
  <PO110>08</PO110>
  <PO111>3434234</PO111>
  </PO1>
<GROUP_14>
<PID>
  <PID01>F</PID01>
  <PID02>75</PID02>
  <PID03>VI</PID03>
  <PID04 />
  <PID05>CLWHT</PID05>
  </PID>
  </GROUP_14>
  </GROUP_12>
<GROUP_12>
<PO1>
  <PO101 />
  <PO102>2</PO102>
  <PO103>AS</PO103>
  <PO104>103.8</PO104>
  <PO105>WH</PO105>
  <PO106>IN</PO106>
  <PO107>10090219</PO107>
  <PO108>ON</PO108>
  <PO109>F</PO109>
  <PO110>08</PO110>
  <PO111>43423342</PO111>
  </PO1>
<GROUP_14>
<PID>
  <PID01>F</PID01>
  <PID02>75</PID02>
  <PID03>VI</PID03>
  <PID04 />
  <PID05>WH*BL</PID05>
  </PID>
  </GROUP_14>
  </GROUP_12>
<GROUP_12>
<PO1>
  <PO101 />
  <PO102>1</PO102>
  <PO103>AS</PO103>
  <PO104>103.8</PO104>
  <PO105>WH</PO105>
  <PO106>IN</PO106>
  <PO107>10090318</PO107>
  <PO108>ON</PO108>
  <PO109>F</PO109>
  <PO110>08</PO110>
  <PO111>4342424</PO111>
  </PO1>
<GROUP_14>
<PID>
  <PID01>F</PID01>
  <PID02>75</PID02>
  <PID03>VI</PID03>
  <PID04 />
  <PID05>BL*WH</PID05>
  </PID>
  </GROUP_14>
  </GROUP_12>
<GROUP_31>
<CTT>
  <CTT01>4</CTT01>
  </CTT>
  </GROUP_31>
<SE>
  <SE01>29</SE01>
  <SE02>300091763</SE02>
  </SE>
  </TS_850>
  </X12>
Receiver Payload is :
<?xml version="1.0" encoding="UTF-8"?>
<ZZ_-AFS_-ORDERS05><IDOC BEGIN="1"><E1EDK01 SEGMENT="1"><ACTION></ACTION><BSART>SA</BSART>
<BELNR>64821185</BELNR>
<ABLAD></ABLAD>
<VSART_BEZ>20071030</VSART_BEZ>
<AUGRU_BEZ>100000485002</AUGRU_BEZ>
<ZJCP_ISA SEGMENT="1">
<AUTH_INFO_QUALIF>00</AUTH_INFO_QUALIF>
<AUTHORIZATION_INFORMATION>
</AUTHORIZATION_INFORMATION>
<SECU_INFO_QUALIF>00</SECU_INFO_QUALIF>
<SECURITY_INFORMATION></SECURITY_INFORMATION>
<INTERCHANGE_ID_QUALIF_DUNS>08</INTERCHANGE_ID_QUALIF_DUNS>
<INTERCHANGE_SENDER_ID>6111350003</INTERCHANGE_SENDER_ID>
<INTERCHANGE_ID_QUALIF_UCC>12</INTERCHANGE_ID_QUALIF_UCC>
<INTERCHANGE_RECEIVER_ID>2126438989</INTERCHANGE_RECEIVER_ID>
<INTERCHANGE_DATE>071030</INTERCHANGE_DATE>
<INTERCHANGE_TIME>2145</INTERCHANGE_TIME>
<REPETITION_SEPARATOR>U</REPETITION_SEPARATOR>
<INTERCH_CTRL_VER_NO>00400</INTERCH_CTRL_VER_NO>
<INTERCHANGE_CTRL_NO>100001802</INTERCHANGE_CTRL_NO>
<ACKNOWLEDGMENT_REQUESTED>0</ACKNOWLEDGMENT_REQUESTED>
<USAGE_INDICATOR>P</USAGE_INDICATOR>
<COMPONENT_ELEMENT_SEP>&gt;</COMPONENT_ELEMENT_SEP>
</ZJCP_ISA><ZJCP_REF SEGMENT="1">
<REF01>DP</REF01><REF02>832</REF02><REF03>WOMENS APPAREL</REF03></ZJCP_REF><ZJCP_REF SEGMENT="2"><REF01>IA</REF01><REF03>119800</REF03></ZJCP_REF>
<E1J3P01 SEGMENT="1">
<E1EDPA1 SEGMENT="1">
<PARVW>JM</PARVW>
</E1EDPA1>
<E1EDPA1 SEGMENT="2">
<PARVW>RE</PARVW
></E1EDPA1>
<E1EDPA1 SEGMENT="3">
<PARVW>WE</PARVW>
</E1EDPA1>
</E1J3P01><E1J3P01 SEGMENT="2">
</E1J3P01>
<E1J3P01 SEGMENT="3">
</E1J3P01>
</IDOC></ZZ_-AFS_-ORDERS05>
we need to map value of N1 (all the 3 values) Segment with E1EDPA1 segment, it should come in all the item segments (E1J3PO1).
But it is coming only in first item segment (E1J3PO1).
This is the problem.
Regards,
Study SAP

Similar Messages

  • Problem during mapping when stored procedures is used

    Dear All,
    I am doing one File-XI-JDBC scenario using stored procedures.
    My source Data Type is like:
    MT_HEADER 1..1
          PRODH    1..1  xsd:string
          VTEXT      1..1  xsd.string
          DATUM    1..1  xsd.string
    My target Data Type is like:
    MT_HEADER    1..1
      Statement        1..1   
       SP_UPDATE  1..1
        action            required   xsd.string
        PRODH         1..1         xsd.string
          isInput         optional   xsd.string
          type            optional   xsd.string
        VTEXT          1..1         xsd.string
          isInput        optional    xsd.string
          type           optional    xsd.string
        DATUM        1..1          xsd.string
          isInput       optional     xsd.string
          type          optional     xsd.string
    In the mapping, EXECUTE>action; true>isInput; CHAR-->type; SP_UPDATE- stored procedure name in DB.
    When I am testing the message mapping its giving no errors but when i am processing the file it gives me following error:
    <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_MM_TEST_FILE_JDBC_T179T_</SAP:P1>
      <SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
      <SAP:P3>RuntimeException in Message-Mapping transformatio~</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>During the application mapping com/sap/xi/tf/_MM_TEST_FILE_JDBC_T179T_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: RuntimeException in Message-Mapping transformatio~</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
    Can anyone please guide what error I am making in the data type or in the mapping.
    Warm Regards,
    N.Jain

    Hi Nishu,
    The reason of this error is A message mapping is executed on the integration server at mapping runtime. A value mapping is called within the message mapping. If you did not maintain the values required for the mapping (Directory -> Tools -> Value mapping), an exception (BaseRuntimeException) occurs and the processing of the message is terminated.
    So please do this :
    1. Maintain the value mapping in the directory.
    2. To change the behavior in the case of an error, you must import a Support Package. Message processing is then no longer terminated. Instead, a warning appears in the log and the initial value is copied unchanged to the target document.
    Note: The behavior described only affects message mappings, that is, mappings generated using the graphic tool. If, on the other hand, you call the value mapping within a Java mapping and this fails, you receive a KeyMappingException. It is then the task of the Java mapping to react to this exception.
    Hope this will help you.
    Regards
    Aashish Sinha
    PS : reward points if helpful

  • Problem in mapping with multiple values

    Hi all,
    I am facing a problem during mapping. I am explainning the problem with a example.
    Suppose i have a source table named Employee which has two columns emp no and account no. I have a target table Emp_account which has also the same columns.
    One employee may have more than one accounts. In source table this account nos are stored in account no column in one row corresponding to emp no. The multiple values in account no are separated by comma for one record in source table.
    But in the target table Emp_account a single record will be inserted for each employee's separate account. There should not be multiple values separated by comma in account no column of target table.
    So if any employee has two accounts this will be stored as one row in source table but in target table it will divided into two different rows for each account.
    EMPLOYEE(Source)
    emp no account no
    10 101, 102
    EMP_ACCOUNT(Target)
    emp no account no
    10 101
    10 102
    Think I explained the requirement.. How can i made this in OWB mapping editor..Is it possible?...Can any operator perform this task...If any of u know about this plzz give some solution..It's very important ..
    Thanks & Regards,
    Sumanta Das

    Hi,
    With reference to your question.
    Can any operator perform this task..I don't think any single operator will help you.
    I suggest using an intermediate (staging) table by using a PL SQL procedure with output port to store the values of account number provided the number of accounts are limited. Else use an array variable for account of an employee.
    In short no simple solution because of the bad source design else the pivot/unpivot operator would have helped you.
    Cheers
    - Mohammed

  • How to find out which context attributes are mapped to view elements

    Hi All,
    We have a custom WD application ( on ECC 6.0 - SAP Basis 70 ) where we have a context node whose 70 attributes are displayed over 2 seperate views.
    When a user enters the view,  we want to inform him which data was changed. 
    I have written a general method which takes the context node, grabs its attributes and compares values ... messages are generated via the message manager and context element/attributes are linked so that the input elements become red.
    Everything works fine but the only problem is that I do not know which attributes are visible on which view so the user is getting the changes of view 2 on view 1 and vice versa ( if the context is only mapped on 1 view then there is no issue ofcourse ).
    The call is currenlty executed at the views inbound plug ... I also checked the view methods themselves like modify view but nothing seems to lead me to a potential solution ...
    I have looked through almost all API classes available but I cannot find any way to obtain information about the linking of view elements with context elements/attributes during runtime ... And I don't want to 'hardcode' a list of context attributes per view ....
    Has anyone done something similar ?
    Thanks,
    Steven

    Hi All,
    We have a custom WD application ( on ECC 6.0 - SAP Basis 70 ) where we have a context node whose 70 attributes are displayed over 2 seperate views.
    When a user enters the view,  we want to inform him which data was changed. 
    I have written a general method which takes the context node, grabs its attributes and compares values ... messages are generated via the message manager and context element/attributes are linked so that the input elements become red.
    Everything works fine but the only problem is that I do not know which attributes are visible on which view so the user is getting the changes of view 2 on view 1 and vice versa ( if the context is only mapped on 1 view then there is no issue ofcourse ).
    The call is currenlty executed at the views inbound plug ... I also checked the view methods themselves like modify view but nothing seems to lead me to a potential solution ...
    I have looked through almost all API classes available but I cannot find any way to obtain information about the linking of view elements with context elements/attributes during runtime ... And I don't want to 'hardcode' a list of context attributes per view ....
    Has anyone done something similar ?
    Thanks,
    Steven

  • Error during Mapping

    Hello,
    My XI 2.0 scenario :
    Flat file => File adapter => XI => IDoc adapter => SAP 4.7
    The File adapter reads the file successfully & passes to the Integration Server. In XI XML message monitor (SXMB_MONI), I'm getting the following error ...
    ====================
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    - <SAP:ErrorHeader xmlns:SAP="http://sap.com/exchange/MessageFormat">
      <SAP:Context />
      <SAP:Code p1="Error during mapping" p2="--- Creating Java mapping com.sap.xi.tf._R_MsgMap_1_ --- Using MappingResolver with context URL /sapmnt/XID/global/xi/mapping/http%3A%2F%2FABCXYZ%2Ecom%2Fxi%2FDev%2F/bc52cef0be3411d8b277cade640701c6/ --- Load of com/sap/xi/tf/_MsgMap_1_.class from /sapmnt/XID/global/xi/mapping/http%3A%2F%2FABCXYZ%2Ecom%2Fxi%2FDev%2F/bc52cef0be3411d8b277cade640701c6/ failed. --- Class not found: com.sap.xi.tf._MsgMap_1_ --- java.lang.ClassNotFoundException at RUMappingJava.load(): Could not load class: com.sap.xi.tf._MsgMap_1_ Class not found: com.sap.xi.tf._MsgMap_1_ --- com.sap.aii.ibrun.server.map.MappingRuntimeException: at com.sap.aii.ibrun.server.map.MappingRuntimeException.code_STYLESHEET_OR_CLASS_NOT_FOUND(MappingRuntimeException.java:91) at com.sap.aii.ibrun.server.map.RUMappingJava.load(RUMappingJava.java:119) at com.sap.aii.ibrun.server.map.RUMappingJava.execute(RUMappingJava.java:40) at com.sap.aii.ibrun.server.map.RURunner.run(RURunner.java:58) at com.sap.aii.ibrun.server.map.RUManager.run(RUManager.java:66) at com.sap.aii.ibrun.sbeans.map.MappingRequestHandler.handleRequest(MappingRequestHandler.java:62) at com.sap.aii.ibrun.sbeans.map.MappingServiceImpl.processFunction(MappingServiceImpl.java:72) at com.sap.aii.ibrun.sbeans.map.XMappingServiceObjectImpl0.processFunction(XMappingServiceObjectImpl0.java:24) at com.sap.aii.ibrun.sbeans.map.MappingServiceKey.processFunction(MappingServiceKey.java:10) at java.lang.reflect.Method.invoke(Native Method) at com.inqmy.services.rfcengine.RFCDefaultRequestHandler.invokeBean(RFCDefaultRequestHandler.java:73) at com.inqmy.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:47) at com.inqmy.services.rfcengine.RFCJCOServer.handleRequest(RFCJCOServer.java:69) at com.sap.mw.jco.JCO$Server.dispatchRequest(Unknown Source) at com.sap.mw.jco.rfc.MiddlewareRFC$Server.nativeListen(Native Method) at com.sap.mw.jco.rfc.MiddlewareRFC$Server.listen(Unknown Source) at com.sap.mw.jco.JCO$Server.listen(Unknown Source) at com.sap.mw.jco.JCO$Server.run(Unknown Source) at java.lang.Thread.run(Thread.java:479) ---" p3="" p4="">MAPPING.GENERIC</SAP:Code>
      <SAP:Text language="EN">Error during mapping</SAP:Text>
      </SAP:ErrorHeader>
    ====================
    MsgMap_1 is the Message Mapping defined - mapping the flat file structure to the IDoc structure.
    Do I have to do more than just create the Message Mapping in the Integration Repository ? In the Integration Directory, the Interface Mapping (from Repository) is used.
    Any help is greatly appreciated.
    Regards,
    Homiar.

    Hi Homiar,
    Need a little more detail.
    The directory points to the interface mapping.
    The Interface mapping points to the message mapping.
    What type of message mapping are you using?
    - Graphical mapping.
    - XSLT.
    - Java.
    - Abap.
    The main problem is "java.lang.ClassNotFoundException"
    Do other mappings work in your system?
    Jason

  • VLD-1141: Internal error during mapping generation.

    I am getting the "VLD-1141: Internal error during mapping generation" error when deploying a mapping. This mapping was previously working fine. As part of a re-factoring effort, for all the underlying tables and views, we replace 2 existing columns with a new column. All the objects were successfully re-imported and synchronized in the mapping. The mapping is using Mapping Input Parameter, Lookups, Expression Transformations, Splitter, Set Operator, Source & Target Tables. All these transformation were part of the earlier working version of the mapping.
    On doing validation within the mapping, I get a success message followed by 4 warning for the Lookup Condition on key Lookup does not contain a complete unique key. Before the re-factoring effort, I was getting the same 4 warning messages, however the mapping was executing correctly.
    When I do Generate within the mapping, I get the following message:
    Code cannot be generated.
    Click the message tab for details.
    In the Design Center, when I do a validation on the mapping I get the following error:
    VLD-1141: Internal error during mapping generation.
    java.lang.NullPointerException
    at oracle.wh.service.impl.mapping.component.Sequence.getSequenceExpressions(Sequence.java:138)
    at oracle.wh.service.impl.mapping.component.Sequence.doSequenceValidation(Sequence.java:239)
    at oracle.wh.service.impl.mapping.component.entity.EntitySqlDelegate.prepareOutputContext2(EntitySqlDelegate.java:123)
    at oracle.wh.service.impl.mapping.component.entity.EntitySqlDelegate.prepareOutputContext2(EntitySqlDelegate.java:97)
    at oracle.wh.service.impl.mapping.component.entity.EntitySqlDelegate.prepareOutputContext(EntitySqlDelegate.java:78)
    at oracle.wh.service.impl.mapping.generation.WBMappingGenerator.generate(WBMappingGenerator.java:240)
    at oracle.wh.service.impl.mapping.generation.PlSqlGenerationMediator.assembleSetBasedInternal(PlSqlGenerationMediator.java:2108)
    at oracle.wh.service.impl.mapping.generation.PlSqlGenerationMediator.assembleSetBased(PlSqlGenerationMediator.java:2090)
    at oracle.wh.service.impl.mapping.generation.PlSqlGenerationMediator.assemble(PlSqlGenerationMediator.java:541)
    at oracle.wh.service.impl.mapping.generation.WBMappingGenerator.generate(WBMappingGenerator.java:798)
    at oracle.wh.service.impl.mapping.generation.WBMappingGenerator.generate(WBMappingGenerator.java:335)
    at oracle.wh.service.impl.mapping.generation.WBDeployableMappingGenerator.generate(WBDeployableMappingGenerator.java:102)
    at oracle.wh.service.impl.generation.common.WBGenerationService.generateCode(WBGenerationService.java:433)
    at oracle.wh.service.impl.generation.common.WBGenerationService.generateCode(WBGenerationService.java:311)
    at oracle.wh.service.impl.generation.service.WhValidationGenerationTransaction.run(WhValidationGenerationTransaction.java:251)
    Any help in this regards would be appreciated.
    Naval

    Hi,
    I think your mapping is corrupted by converting two columns to one. The owb has always a problem if you change the structure of a table which is bound to a table operator. The way to avoid this is to drop the table operator after changing the table in the table editor and recreate it with the changed table definition.
    Make a test: select the new attribut in the table operator and look left on the configuration window. To which table and attribute it's bound?
    Regards,
    Detlef

  • Error during mapping service, RFC-XI-File Adapter

    Hello,
      I have the following problem: I am using RFC to send some data to XI and then to File Adapter, however I get a short dump with "5990 Error during mapping service in XI". Even though mappings works, I tested using the document that comes in XI in Repository without any errors.
           What does this error means and is there any way to get more detailed explanation of my error. Thank you in advance for your help,
                   Dmitriy Mindich

    Synchronous RFC
    1. CALL FUNCTION func DESTINATION dest
                         parameter_list.
    Asynchronous RFC
    2. CALL FUNCTION func STARTING NEW TASK task
                    [DESTINATION {dest|{IN GROUP {group|DEFAULT}}}]
                    parameter_list
                    [{PERFORMING subr}|{CALLING meth} ON END OF TASK].
    Transactional RFC
    3. CALL FUNCTION func IN BACKGROUND TASK
                         [DESTINATION dest]
                         parameter_list
                         [AS SEPARATE UNIT].
    Use help function of your ABAP editor for more details.
    Regards
    Stefan

  • Extract fields from the SOAP body during mapping

    Hi all,
    I have an Abap Proxy to SOAP scenario with a main payload and an attachment. During mapping I need the reference of the attachment to store the reference in the main payload. I don't need the attachment itself.
    SOAP-Body:
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Eingangs-Message
      -->
    - <SAP:Manifest xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:wsu="http://www.docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="wsuid-manifest-5CABE13F5C59AB7FE10000000A1551F7">
    - <SAP:Payload xlink:href="cid:payload-E742FF47D930DE5CE1000000C107826A @sap.com">
      <SAP:Name>MainDocument</SAP:Name>
      <SAP:Description />
      <SAP:Type>Application</SAP:Type>
      </SAP:Payload>
    - <SAP:Payload xlink:href="cid:payload-EE42FF47D930DE5CE1000000C107826A @sap.com">
      <SAP:Name>hugo.txt</SAP:Name>
      <SAP:Description />
      <SAP:Type>ApplicationAttachment</SAP:Type>
      </SAP:Payload>
      </SAP:Manifest>
    I need the attachment reference as string inside my main payload: cid:payload-EE42FF47D930DE5CE1000000C107826A @sap.com
    I wrote an user defined function to select the MessageId, but the MessageId is only part of the reference to the main payload.
    String constant;
    java.util.Map map;
    map = container.getTransformationParameters();
    constant = (String) map.get(StreamTransformationConstants.MESSAGE_ID);
    return constant;
    Has anybody an idea to get the reference of the attachment from the SOAP body with an user defined function or an adapter module?
    Thanks and kind regards
    Frank

    Hello,
    thank you all for the information. I found a solution for my problem on the sender side. I wrote an own helper class with  the method create_attach_from_txt_withref. This method  build an attachment with an own reference and write the reference back to the payload.
    This reference will not be changed within the execute_asynchronous method of the proxy.
    Method parameters:
    P_DATA        Importing   Type     STRING
    P_TYPE        Importing   Type     STRING
    P_NAME        Importing   Type     STRING
    P_ATTACHMENT  Exporting   Type Ref IF_AI_ATTACHMENT
    P_AREF        Exporting   Type     STRING
    Method coding:
    METHOD create_attach_from_txt_withref.
      DATA: lo_attachment TYPE REF TO cl_ai_attachment,
            l_payload     TYPE REF TO if_xms_payload,
            l_pref        TYPE        sxms_mf_s,
            l_guid        TYPE        guid_32,
            l_aref        TYPE        string.
      CLASS cl_ai_factory DEFINITION LOAD.
    " create the attachment
      p_attachment = cl_ai_factory=>create_attachment_from_text(
                    p_data = p_data             " attachment data
                    p_type = p_type             " attachment type
                    p_name = p_name ).          " attachment name
    " we need an implementing class of the interface if_ai_attachment
      lo_attachment ?= p_attachment.
    " get the new payload
      l_payload = lo_attachment->get_payload( ).
    " get the reference of the payload
      l_pref = l_payload->getreference( ).
    " build an own reference
      CALL FUNCTION 'GUID_CREATE'
        IMPORTING
          ev_guid_32 = l_guid.
      CONCATENATE 'payload-' l_guid '@sap.com' INTO l_aref.
      CONCATENATE 'cid:'     l_aref            INTO l_pref-href.
    " set our own reference
      l_payload->setreference( reference = l_pref ).
    " write back the modified payload
      lo_attachment->set_payload( p_payload = l_payload ).
    " return of the reference
      p_aref = l_aref.
    ENDMETHOD.
    If anybody has an idea how to read the soap body within an adapter module please let me know.
    Regards
    Frank

  • OWB 11.2 internal error during mapping generation

    Dear all,
    Ever since switching to OWB 11.2 I have been sporadically receiving unexplicable errors during mapping deployment. It only happens when I generate more than 1 mapping simultaneously, and it appears to be completely random. One or more mappings will fail during the generation phase of the deployment with an 'internal error', after which I get the option to continue deployment of those mappings that did generate correctly. What I usually do next is trying to deploy the failed mappings again, which always works - the internal error does not reoccur. But it seems to be that this second generation does not work properly either.
    For example, today I had to redeploy my entire set of mappings, due to a server change. Of the 60 mappings I had, about 5 failed with the forementioned error. (Sadly I can't include the exact error here since the job logs in the control center do not record this failure to generate, it looks like the failed mappings never were included in the job in the first place.) One of them I deployed aftewards, and found the query in the pacakge to look like:
        INSERT
        /*+ APPEND  */
        INTO
          "SA_BETMD_01" "SA_BETMD_01"
          ("DEWNKNR",
          "DEBTMCE",
          "DEBTMOM",
          "DEBTMO2",
          "DEBTMO3")
          (SELECT
    /*+ NO_MERGE */
    /* DRBETMD_RS.INOUTGRP1 */
      "DRBETMD_RS"."DEWNKNR" "DEWNKNR",
      "DRBETMD_RS"."DEBTMCE" "DEBTMCE",
      "DRBETMD_RS"."DEBTMOM" "DEBTMOM",
      NVL("DRBETMD_RS"."DEBTMO2", "DRBETMD_RS"."DEBTMOM")/* ATTRIBUTE NVL_BTMO2.OGRP.DEBTMO2: EXPRESSION */ "DEBTMO2",
      NVL("DRBETMD_RS"."DEBTMO3", "DRBETMD_RS"."DEBTMOM")/* ATTRIBUTE NVL_BTMO3.OGRP.DEBTMO3: EXPRESSION */ "DEBTMO3"
    FROM
      "SRC"."DRBETMD_RS"@"SRCDBP@SAFE_SRC_PRD_RET"  "DRBETMD_RS"
        ;However, generating the preview code in OWB results in a more correct and complete version of the code:
        INSERT
        /*+ APPEND  */
        INTO
          "SA_BETMD_01" "SA_BETMD_01"
          ("DEWNKNR",
          "DEBTMCE",
          "DEBTMOM",
          "DEBTMO2",
          "DEBTMO3",
          "DEBTMO4")
          (SELECT
    /*+ NO_MERGE */
    /* DRBETMD_RS.INOUTGRP1 */
      "DRBETMD_RS"."DEWNKNR" "DEWNKNR",
      "DRBETMD_RS"."DEBTMCE" "DEBTMCE",
      "DRBETMD_RS"."DEBTMOM" "DEBTMOM",
      NVL("DRBETMD_RS"."DEBTMO2", "DRBETMD_RS"."DEBTMOM")/* ATTRIBUTE NVL_BTMO2.OGRP.DEBTMO2: EXPRESSION */ "DEBTMO2",
      NVL("DRBETMD_RS"."DEBTMO3", "DRBETMD_RS"."DEBTMOM")/* ATTRIBUTE NVL_BTMO3.OGRP.DEBTMO3: EXPRESSION */ "DEBTMO3",
      NVL("DRBETMD_RS"."DEBTMO4", "DRBETMD_RS"."DEBTMOM")/* ATTRIBUTE NVL_BTMO4.OGRP.DEBTMO4: EXPRESSION */ "DEBTMO4"
    FROM
      "SRC"."DRBETMD_RS"@"SRCDBP@SAFE_DGN_PRD_RET"  "DRBETMD_RS"
        ;The same goes for other packages, all of which crash due trying to insert NULL values in a mandatory column! (In case, DEBTMO4.)
    Funny enough, if I generate the mapping again a bit later - without making any changes to the mapping - the code is complete and everything works properly.
    Does anyone else ever had this problem? My main problem is that I can't just reproduce this problem, so I can't exactly report it as a bug and expect it to be solved...
    Kind regards,
    Kurt Geens

    Good morning Dave,
    I do mean during deployment. As you probably know all too well, the deployment of a package is split in two parts: generation of the code, and the actual deployment. The internal error occurs during that first part - the generation of code. The exact steps I went through when the error occured are the following:
    1) I selected about 15 mappings, and chose to 'replace' these mappings in the database. The code was generated, with 4 mappings having the forementioned 'internal error'. After pressing the play button the deployment of the 11 remaining packages continued without problem.
    2) Within the same session, I selected the 4 failed mappings, and chose to 'replace' these again. The generation and deployment was succesful - no internal errors occured.
    3) I exited OWB and started a daily workflow process. One of the mappings that had an internal error in step 1 crashed with a 'cannot insert null into' error.
    4) I restarted OWB, opened the mapping, chose to generate the code, and compared the generation result with the package code in the database. This resulted in the difference mentioned in my original mail.
    5) I deployed (replace) the mapping once more, and verified the code in the database. This time the code was complete (no missing column).
    Regards,
    Kurt

  • Problems with mapping after bundling messages into one XML-file

    Hi all,
    Case 1: one DebMas IDoc ==> XI ==> one XML-file : no problems with mapping.
    Case 2: several DebMas IDoc's ==> XI ==> one XML-file : problems with mapping.
    Explanation:
    Incoming DebMas IDoc's:
    Businesspartner 1 : no Customer Master Partner Functions (E1KNVPM).
    Businesspartner 2 : Customer Master Partner Functions (E1KNVPM).
    Businesspartner 3 : Customer Master Partner Functions (E1KNVPM).
    Businesspartner 4 : Customer Master Partner Functions (E1KNVPM).
    After bundling into one XML-file:
    Businesspartner 1 : no Customer Master Partner Functions (E1KNVPM).
    Businesspartner 2 : no Customer Master Partner Functions (E1KNVPM) !!!!
    Businesspartner 3 : Customer Master Partner Functions of Bp 2 (E1KNVPM) !!!!.
    Businesspartner 4 : Customer Master Partner Functions of Bp 3 (E1KNVPM) !!!!.
    All the payloads of the IDoc's are correct.
    In the message mapping we use a Container for the Partner Functions (shown as below)
    Is this a serious bug in the mapping of SAP XI ?
    Does anyone knows how to solve this serious problem.
    E1KNVVM -
    > Partner_Container
    E1KNVPM -
    > Partner
       PARVW -
    > ParnerRole
       KUNN2   -
    > PartnerNumber
    Regards,
    Theo Pijlman

    Hi,
    Example:
    Input idoc has field F1 with occurence 0..unbnd
    My input values for field F1 is
    1
    none
    2
    3
    Say, I have a mapping, F1---->TargetF1
    In the target only 3 TargetF1s will be created for the values 1,2,3 and nothing will be created for the field F1 with no value.
    To overcome this, use collapse contexts.
    F1->collapsecontexts>TargetF1
    This way, the TargetF1 fields created will have the following values:
    1
    blank
    2
    3
    Collapse contexts makes sure that a target is created, even if there is a context change specified at the source.
    Hope this is clear.
    Regards,
    Smitha.

  • Problem during the changing of  Password in Active Directory

    Hello All !
    I am facing a problem during the password modification
    in active directory, i got the same exception as other are getting i.e
    javax.naming.OperationNotSupportedException: [LDAP: error code  53 - 00002077: SvcErr: DSID-03190959, problem 5003 (WILL_NOT_PERFORM), data 0
                       Can any body help me how i will come to know that 128 bit
      Encryption is done successfully. Although i Installed the  MS High Encryption  Pack but it's registry is not done in Conrol Panel.
    is this a problem(as i think) ?
        I am giving the code please check it out->
                          import java.util.Hashtable;
    import javax.naming.*;
    import javax.naming.ldap.*;
    import javax.naming.directory.*;
    //import java.io.*;
    //import javax.net.ssl.*;
    //import java.security.*;
    import java.io.UnsupportedEncodingException;
    public class setpassword
         public static void main (String[] args)
              Hashtable env = new Hashtable();
              String adminPassword = "";
              String userName = "ou=MCA,ou=Trainee,dc=ControlsNet,dc=local";
              String newPassword = "yadav";
              String keystore = "D:\\j2sdk1.4.2_12\\jre\\lib\\security\\cacerts";
              System.setProperty("javax.net.ssl.trustStore",keystore);
              env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory");
              env.put(Context.SECURITY_AUTHENTICATION,"simple");
              env.put(Context.SECURITY_PRINCIPAL,"[email protected]");
              env.put(Context.SECURITY_CREDENTIALS,adminPassword);
              env.put(Context.SECURITY_PROTOCOL,"ssl");
              String ldapURL = "ldap://gateway.ControlsNet.local:636/";
              env.put(Context.PROVIDER_URL,ldapURL);
              try {
                   LdapContext ctx = new InitialLdapContext(env,null);
              ModificationItem[] mods = new ModificationItem[1];
                   String newQuotedPassword = "\"" + newPassword + "\"";
                   byte[] newUnicodePassword = newQuotedPassword.getBytes("UTF-16LE");
                   mods[0] = new ModificationItem(DirContext.REPLACE_ATTRIBUTE, new BasicAttribute("unicodePwd", newUnicodePassword));
                   ctx.modifyAttributes(userName, mods);
              System.out.println("Reset Password for: " + userName);     
                   ctx.close();
              catch (NamingException e) {
                   System.out.println("Problem resetting password: " + e);
              catch (UnsupportedEncodingException e) {
                   System.out.println("Problem encoding password: " + e);
    Please reply me immideiately as soon as you see this problem.
    I think some of u already solved this problem. thanks in advance.

    Believe it or not, looks similar to the problem in the post http://forum.java.sun.com/thread.jspa?threadID=580113&tstart=0
    More unbelievable is the huge security hole in your network !String adminPassword = "";
    env.put(Context.SECURITY_PRINCIPAL,"[email protected]");
    env.put(Context.SECURITY_CREDENTIALS,adminPassword);An administrator with a blank password !
    The ldap standard (rfc 2251) defines an anonymous user as a user with a null passsword. By default, Active Directory does not allow anonymous users to perform searches against the directory, let alone reset a user's password.

  • Init context node during runtime

    Hi together,
    i have a question concerning initialization of a context node during runtime.
    I designed my context like
                       Parent
    Child1          Child2         Child3
    The parent node is the only one where the attribute boldInitialization Lead Selectionbold s marked.
    But now, its not possible to bind data to the child nodes, because they not existing during runtime.
    Now my question. Which method is the best to init these child nodes when data are ready for them?
    Regards,
    Anton

    Hi Abhi,
    problem is, that the supply function are executed at the first time the context nodes are used. In my web dynpro application ist that during initializing the view.
    So the supply functions are called at a moment where no data are available for them, because the tree view, to which they are binded, is also loaded at init method.
    So in the supply methods are no data bind to the nodes and the application didn`t create them.
    And when i want to fill data to the nodes they didn`t exist.
    Regards,
    Anton

  • Problem during Message Splitting

    Hi,
    My requirement is to split by Senders Message..
    During Mapping i have changed the occurenec of my ZRFC to 0..unbounded..
    Mapping i slike
    Message->                             Message->
        Message1->                        Message1->
            MT_AABAP->                    Ztest1(M1->)
              header(M1)->                               DATA->
                EMPNO(M2)                                 EMPNO(M2)
                DEPT NO(M3)                               EMPNO(M3)
    The problem is coming is Interface Determenation(ID)
    i have maitained it like
    Enahanced (Type of Interface Determenation)
    But the error is coming like:RCVR_DETERMINATION
    NO_RECEIVER_CASE_ASYNC

    hi
    in the configaration-->receiverdetermination
    selecting the radio button <i>End message processing without error(restart not possible)
    thxs
    kalyan

  • Exception during Mapping

    I am performing Message Mapping and getting following error
    <Trace level="1" type="T">RuntimeException during appliction Java mapping com/sap/xi/tf/_MM_FCC_</Trace>
      <Trace level="1" type="T">com.sap.aii.utilxi.misc.api.BaseRuntimeException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XML Declaration not allowed here.(:main:, row:1, col:8) at com.sap.aii.mappingtool.tf3.Transformer.checkParserException
    My source File is as follows:
      <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT1_FCC xmlns:ns0="http://accenture.com/xi/F2F">
    - <Name_>
    - <Name>
      <FName>abc</FName>
      <MName>cde</MName>
      <LName>efg</LName>
      </Name>
      </Name_>
      </ns0:MT1_FCC>
    what could be the Problem...

    For this XML,
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT1_FCC xmlns:ns0="http://accenture.com/xi/F2F">
    <Name_>
    <Name>
    <FName>Jeet</FName>
    <MName>Anand</MName>
    <LName>Jeswani</LName>
    </Name>
    </Name_>
    </ns0:MT1_FCC>
    <b>Recordset structure : Name_
    Name_.fieldSeparator : #
    Name_.endSeparator : 'nl'</b>
    These should actually be,
    <b>Recordset structure : Name
    Name.fieldSeparator : #
    Name.endSeparator : 'nl'</b>
    Regards
    Bhavesh
    PS : Is there a problem with mapping or content conversion? You have mentioned you are not using any Mapping and then your subject mentiond problem with mapping!

  • Filemap problem during install

    Hello guys
    I have following problem during install, everything goes fine and installer even does some "instalation" but after its at 5% or so it jumps to 100% and brings me to screen to select products.jar, i repeate same steps, and basicly it makes me loop
    my err file has this info:
    java.io.FileNotFoundException: /oracle/usr/oracle/oraInventory/filemap/./files.map (No such file or directory)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
    at java.io.FileWriter.<init>(FileWriter.java:46)
    at oracle.sysman.oii.oiii.OiiiFileMapEntry.save(OiiiFileMapEntry.java:570)
    at oracle.sysman.oii.oiii.OiiiFileMap.saveImpl(OiiiFileMap.java:452)
    at oracle.sysman.oii.oiii.OiiiFileMap.saveLeastUsed(OiiiFileMap.java:427)
    at oracle.sysman.oii.oiii.OiiiFileMapInventory.saveLeastUsed(OiiiFileMapInventory.java:156)
    at oracle.sysman.oii.oiic.OiicInstallActionsPhase.executeProductPhases(OiicInstallActionsPhase.java:2349)
    at oracle.sysman.oii.oiic.OiicInstallActionsPhase.doInstalls(OiicInstallActionsPhase.java:2052)
    at oracle.sysman.oii.oiic.OiicInstallActionsPhase$OiInstRun.run(OiicInstallActionsPhase.java:2945)
    at java.lang.Thread.run(Thread.java:534)
    Thank you very much in advance

    fixed it by touching file

Maybe you are looking for

  • Urgent:JPublisher's default typemapping for PL/SQL Boolean not working

    I have a procedure that accepts a boolean. I have created this procedure on 2 oracle database installations. One is on Oracle8i and the other on Oracle9i. I invoke JPublisher with the following jpub.properties file: jpub.user=scott/tiger jpub.url=jdb

  • Transfer itunes music from flash drive to new pc

    I have a new PC, HP Envy.   I had previously copied my Music, etc. onto ex-hard-drive from my old PC but do not know how to get this music onto my new PC.   I have an I-Pod which I attach to my computer on occasions to update it.  I have just downloa

  • OSX 10.75 Macbook Pro 30 Minute Boot and Slow After Clean Install

    Here is my problem. I recently purchased a mabook pro which was dropped with the intentions of fixing the screen. I was able to initially install OSX with Internet recovery, then for some reason on reboot the password would not work. I was able to fi

  • My itunes library has been erased

    When I connected my i-Pod to my laptop, it said there was a problem with this disc and suggested I repair it.  Now EVERYTHING has been deleted from my library and i-Pod!  How can I restore it?

  • Trail Balance problem

    Sir, My total Debit side & Credit side of Trail Balance is having some difference when i generating 1 day Trail Balance how to rectify this or track this Regards & Thanks Rajesh B K