Regarding mapping trace

MappingTrace trace;
     trace.addInfo("mapping started");
This is the code that we are using to trace the mapping in XI,
but on execution of the code we are getting java.lang.NullPointerException.
can you please provide us with a solution to it.
Thank you.

Hi
Verify if you are notsending the blank values to the udf in which this code was added.
refer below code
MappingTrace trace;
//First we get a handle to the trace object
trace = container.getTrace();
//Here is how to write to the trace
//Make sure your XI RUNTIME TRACE_LEVEL is set to 2 or 3
trace.addInfo("mapping started");
//Here is how to write a warning
//But make sure your RUNTIME TRACE_LEVEL is 1, 2 or 3
trace.addWarning("Exception exception caught.");
Go to Trace Level section
http://help.sap.com/saphelp_nw04/helpdata/en/3b/c18c4037fba62be10000000a1550b0/frameset.htm
http://help.sap.com/saphelp_nw70/helpdata/en/3b/c18c4037fba62be10000000a1550b0/content.htm
http://help.sap.com/saphelp_nw70/helpdata/en/c8/98e7d5c1620642973565ea3dd319d1/content.htm
Thanks
Swarup

Similar Messages

  • PI 7.4 Single Stack - OS Command and Java Mapping Trace

    Hi,
    Since ABAP stack is not avilable how to use the OS command and also want to know how to check the trace for java mapping since sxmb_moni is not avilable.
    Please send me some link for 7.4 or 7.31 single stack document.
    Thanks
    Jignesh shah

    Jo Jignesh,
    Please see the document below.
    Mapping Trace in SAP PI 7.31 Single Stack
    Regards,
    Jannus Botha

  • Regarding mapping error in RWB

    Hi Every one
    I am doing idoc to file scenario. In the message mapping
    i tested the mapping it shows executed successfully.
    but when i tested the RWB the receiver communication channel
    it shows following error.
    can anyone please help me how to solve this error
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure 'ns0:MT_VendorMaster' found in document', probably configuration error in file adapter (XML parser error)': java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure 'ns0:MT_VendorMaster' found in document', probably configuration error in file adapter (XML parser error)'

    HI,
    As with prakasu and latika..
    it is not an mapping problem.. it may be due to wrong configuration in the adapter communication channel configuration .. during receiver configuration the record set structure will be defaultely present, try to remove that and provide ur message type which u created in the IR..
    and try to check with the test tab..
    regards,
    Kishore

  • Regarding Mapping Types in XI

    Hiii Everyone,
    When I checked the Mapping Runtime Entries in the Table SMPPMAP3 I found the following Maping Type
    R3_ABAP -> ABAP Mapping
    JAVA -> JAVA Mapping
    XI_TRAFO -> Generated Mapping (Graphical Mapping Tool)
    XSLT-> XSLT Mapping (Java)
    R3_XSLT-> XSLT Mapping (R/3)
    My doubt is What ever Mapping we do using Graphical Mapping Tool in IR, It shows Mapping Type as JAVA, why it wont show XI_TRAFO -> Generated Mapping. So In what cases or When does it show Mapping Type as XI_TRAFO
    I have also observed in some of the Entries it shows Mapping Type as IDENTITY. What does this Indicate ?
    Regards,
    Varun

    hi varun
    whatever the mapping are being used in XI , finaly its converted to JAVA bytecode and then its executing  on Java Stack.
    Regards
    Sandeep

  • Regarding mapping

    Hi Buddies,
       How do u transport mapping from development to quality server. How many types of mapping r there.
    Thanks in advance
    Regards,
    Nagaraju Tankala

    Hi Nagaraju,
    use CMS to transport mappings.
    mapping types:
    1.ABAP mapping
    2.JAVA mapping
    3.Graphical Message Mapping
    4.XSLT mapping.
    also see the below links:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8a57d190-0201-0010-9e87-d8f327e1dba7
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/190eb190-0201-0010-0ab3-e69f70b6c257
    Regards,
    Nagarjuna.

  • Query regarding mapping

    Hi,
    I am XI beginner.
    I have created Data type,Message type,message interface.
    Now,I want to do mapping between sender and receiver message interface.I don't know how to map it in the graphical editor?
    Do I need to drag and drop the source and target message type in the graphical editor?
    Could you please let me know on this urgently.
    Thanks and Regards,
    XI Developer

    Hi,
    I think you are not dropping in the correct area. Just Drag the message type and take it to the graphical editor. Don't drop it! Move little bit left to the hand symbol shown. Now you can see rectangular selection box sort of thing, once you see that then drop it.
    Your graphical mapping editor is not disappering!! Since you drop in the wrong place Message type opens up in another window. In the bottom of your screen you can see both Message type window as well as Mapping window, isn't it?
    If you feel uncomfortable doing drag and drop, then best would be as Doss suggested you can click on the help icon and do insert.
    raj.

  • Query regarding mapping (aggregated)

    Hi,
    I need some help in mapping.
    SOURCEis as below:
    <E1EDP01>
    <E1EDP05>
    <KSCHL>ZRTP</KSCHL>
    <KRATE>100</KRATE>
    </E1EDP05>
    <E1EDP05>
    <KSCHL>ZIPP</KSCHL>
    <KRATE>200</KRATE>
    </E1EDP05>
    </E1EDP01>
    TARGET
    <E1EDP01>
    <E1EDP05>
    <KSCHL>ZRTP</KSCHL>
    <KRATE>300</KRATE>
    </E1EDP05>
    </E1EDP01>
    target KRATE shuld be the summation of KRATE for ZRTP and ZIPP.
    Please help.
    regards,
    Piyush

    Hi Rahul,
    I have tried doing this but it returns the summation only for the first row. Rest are blank.
    I have used the below UDF at KRATE level:
    int i, sum=0, ret=0;
    for(i=0;i<KSCHL.length;i++)
    if((KSCHL<i>.equals("ZRTP")) || (KSCHL<i>.equals("ZIPP")))
         sum = sum + Integer.parseInt(KRATE<i>.trim());
    result.addValue(""+sum);
    Let me provide you with the complete Source and target:
    SOURCE:
    <?xml version="1.0" encoding="UTF-8"?>
    <INVOIC02>
         <IDOC BEGIN="1">
              <E1EDP01 SEGMENT="1">
                   <POSEX>000010</POSEX>
                   <MENGE>12.000</MENGE>
                   <MENEE>LTR</MENEE>
                   <E1EDP05 SEGMENT="1">
                        <ALCKZ>+</ALCKZ>
                        <KSCHL>ZRTP</KSCHL>
                        <KOTXT>RTP at Port</KOTXT>
                        <BETRG>        100</BETRG>
                        <KRATE>      100</KRATE>
                        <MEAUN>K15</MEAUN>
                   </E1EDP05>
                   <E1EDP05 SEGMENT="1">
                        <ALCKZ>+</ALCKZ>
                        <KSCHL>ZIPP</KSCHL>
                        <KOTXT>RTP at Port</KOTXT>
                        <BETRG>        300</BETRG>
                        <KRATE>      300</KRATE>
                        <MEAUN>K15</MEAUN>
                   </E1EDP05>
                   <E1EDP05 SEGMENT="1">
                        <ALCKZ>+</ALCKZ>
                        <KSCHL>ZIPPTP</KSCHL>
                        <KOTXT>RTP at Port</KOTXT>
                        <BETRG>        300</BETRG>
                        <KRATE>500</KRATE>
                        <MEAUN>K15</MEAUN>
                   </E1EDP05>
              </E1EDP01>
         </IDOC>
    </INVOIC02>
    TARGET:
    <?xml version="1.0" encoding="UTF-8"?>
    <INVOIC02>
         <IDOC BEGIN="1">
              <E1EDP01 SEGMENT="1">
                   <POSEX>000010</POSEX>
                   <MENGE>12.000</MENGE>
                   <MENEE>LTR</MENEE>
                   <E1EDP05 SEGMENT="1">
                        <ALCKZ>+</ALCKZ>
                        <KSCHL>SUMRTP</KSCHL>
                        <KOTXT>RTP at Port</KOTXT>
                        <BETRG>        100</BETRG>
                        <KRATE>      800</KRATE>
                        <MEAUN>K15</MEAUN>
                   </E1EDP05>
                   <E1EDP05 SEGMENT="1">
                        <ALCKZ>+</ALCKZ>
                        <KSCHL>ZIPPTP</KSCHL>
                        <KOTXT>RTP at Port</KOTXT>
                        <BETRG>        300</BETRG>
                        <KRATE>500</KRATE>
                        <MEAUN>K15</MEAUN>
                   </E1EDP05>
              </E1EDP01>
         </IDOC>
    </INVOIC02>
    Please help.
    regards,
    Piyush

  • Help regarding mapping

    Hi Guys,
      Please see the below message. I done mapping like if multiple rows in the source then it mapped to the correctly. But I faced another problem like there are multiple<Statement_response> which contain mulitple rows, how to achieve this.
    <b><u>Source</u></b>
    <Statement_response>(1to unb)
    <row>(1 to unb)
    <name>j</name>
    <place>M<place>
    </row>
    </Statement_response>
    <u><b>Target</b></u>
    <Message>
    <row>(1 to unb)
    </row>
    </Message>
    Example:
    <i><u><b>Source</b></u></i>
    <Statement_response>
    <row>
    <name>j</name>
    <place>M<place>
    </row>
    <row>
    <name>l</name>
    <place>n<place>
    <row>
    </Statement_response>
    <Statement_response>
    <row>
    <name>o</name>
    </row>
    </Statement_response>
    <b><i><u>Target</u></i></b>
    <Message>
    <row>
    <name>j</name>
    <place>M<place>
    </row>
    <row>
    <name>l</name>
    <place>n<place>
    </row>
    <row>
    <name>o</name>
    </row>
    </Mesage>
    Best Regards,
    J

    Hello Guys,
      Plz look my below scenario and tell me ur suggestion.
      My input file will be like the below format:
    Case 1:
    <Test_Message>
      <row>
      <Emp_id>10003</Emp_id>
      <Emp_name>J</Emp_name>
      </row>
      <row>
      <Emp_id>10004</Emp_id>
      <Emp_name>K</Emp_name>
      </row>
    </Test_Message>
    Case 2:
    <Test_Message>
      <row>
      <Emp_id>10003</Emp_id>
      <Emp_name>J</Emp_name>
      </row>
      <row>
      <Emp_id>10003</Emp_id>
      <Emp_name>J</Emp_name>
      </row>
    </Test_Message>
      So based on the Emp_Id I'll use create Sql query using UDF and will fetch data from the database. The mapping is done such a way tht for each row based on <Emp_ID> I'll create sql query(using UDF) and will fetch the data. My scenario works fine with the case 1 input. But if u look into case 2, I don't want to create two sql queries since the emp_id's are same,instead I've to create single sql query. How to achieve this.
    Best Rgds,
    Raj

  • Regarding Mapping conditions

    Hi Frnds,
    I have a scenario were in,If the Order no field in IDoc is 01 it should call one mapping .and if the order no is 02 it should call another mapping.
    like this i have upto seven order no's.
    I am thinking of creating 7 different mapping and 7 receiver determinations with the appropriate conditions? But i think the scenriao would be lenghty..
    Is this is the only way or any other approach can we have to acheive this?

    I am thinking of creating 7 different mapping and 7 receiver determinations
    My Receiver is only One business system.not multiple receivers?
    If your sender is one system and receiver is also one system then why have 7 Receiver Determinations? Importantly when your Sender and Sender Interface is same...XI/ PI will not allow you to create multiple Receiver Determinations.
    You create different mappings and then include them in the Interface Determination and accordingly specify the condition there itself....is your target structure different for the different Order Numbers?
    Regards,
    Abhishek.

  • Help regarding mapping field "EBELN".

    Hi experts
    I want the field EBELN (PO No) of the DataSource"  0FI_GL_14 "  to be populated to DSO "  0FIGL_O14 " . Can you please tell me to which InfoObject of the DSO "  0FIGL_O14 "  I should map the field EBELN of  the DataSource"  0FI_GL_14 "  .
    Regards.

    holy devilz wrote:
    HI
    > Yes I have check the datasource in table RSOSFIELDMAP in BI. It is not available. And the field  0OI_EBELN is not present in the DSO  0FIGL_O14 .
    > Any other clue ??
    If your R/3 data source has the value EBLEN, then all you need to do is REPLICATE METADATA in BW side. If you still do not see the field 0OI_EBELN, you can manually add that and customize it.

  • Regarding Mapping of fields for Repeated Segments in an IDoc

    Hello Experts,
    We have an Orders IDoc with segment E1EDK02 with Occurence 0..10.
    In this segment there are two fields QUALF & BELNR.
    We want to map a value (Yes or No) to 2 target fields based on the incoming values of QUALF & BELNR .
    Now the problem is that for the first occurence of segment E1EDK02 the mapping is working fine.
    But for the subsequent occurences of the segment wrong value is mapped to the target field.
    The context of both QUALF & BELNR is set to E1EDK02.
    Please help!
    Thanks in advance,
    Suraj

    Hello Suraj,
    The Source structure is of IDOC Orders05
    ORDERS05                     1..1
               IDOC                    1..1
                  Segment1
                  Segment2
                  E1EDK02          1..10
                        QUALF       0..1
                        BELNR       0..1
                  Segmentn
    Target Structure
    MT_ORDERDATA             1..1
                 TargetField1        0..1
                 TargetField2        0..1
                  ORDERITEM         0..unbounded

  • Query regarding mapping of users

    Hi Experts,
    We are in the process of installing & configuring BO 3.1 along with SAP Integration kit for reporting of SAP BW. We will be configuring windows AD users into BO & the windows AD users will be mapped to SAP BW to set up role level security.
    We have  2 separate BW system. I will using the NEW ALIAS funtion to mapp users from BO to SAP to implement roles. if a user is part of both the BW system, will i have to map him twice or if the user has a different id in the secong BW from the 1st BW, can i have 2 SAP accounts mapped to 1 AD user in BO?
    Cheers,
    Alok
    Edited by: Alok Kakani on Nov 10, 2010 12:03 PM

    Hi Ingo,
    Will i have to map the SAP accounts to AD or wil it be AD accounts to SAP BW? I am a little confused here.
    Cheers,
    Alok

  • Urgent !!! regarding mapping of  frequency to operation.....Have ur points.

    Hi all,
    In transactin IA05, we make tasklist master.
    I want to link (task group->group counter-><b>operation->frequency</b>) in my itab. Pleas suggest me the table in which i can link the operation with frequency.
    Very urgent....thanks in advance
    <b>Have your points.</b>
    Regards,

    Hi yaar..thanx for reply..
    yaar Here frequency means the frequncy of operation which we set after clicking on maintenance package.
    PLPO Is task-list operation/activity master, contains data regarding operations....there is no field by which i can link the operation with the frequency.
    We have some tables of maintence package master....that also don't have the linking field.
    following are the tables.
    T351P
    T351X
    T351
    T351T
    Pleas assist me....

  • Regarding Message trace in XI

    hi Experts,
    I am doing file to idoc scenario.
    I have idoc number with me.
    Please could you guide me to find out the message for that idoc number.
    File   -
         XI   -
        IDoc
        Idoc number
    Please help.
    Regards,
    Vignesh

    Hi Vignesh,
    If you have the IDOC number then go tto SAP ERP system and see the control record of the IDOC. Go to the Details tab of the control record.
    you would see a Identification field. There you would find the message ID .
    for example ...0000000000653745   79196146EE036611E1000000C0A8641B. So in the above example whatever is after <i>space</i> is the message id(79196146EE036611E1000000C0A8641B).
    YOu copy the message ID and then login to XI. Run SXI_MONITOR.
    Click on Advanced Selection Criteria.
    In the Message ID field enter the message id which you earlier copied.
    Regards,
    Sumit
    ps : award points if that solved your problem.
    Message was edited by:
            Sumit Khetawat

  • Regarding Mapping In XI for Oracle Structure

    Hi Eveyone,
    How should i need to assing a system date and message date need to desing in Xi when i am passing message from R/3xiOracle
    Regard's
    Raj

    Raj,
    can you please explain further what you want?
    If you need to get the sysdate value, then use an User Defined Function with the following code,
    java.text.SimpleDateFormat dateformat =new java.text.SimpleDateFormat("yyyyMMdd");
    String sysdate =  dateformat.format(new java.util.Date());
    Also, take a look at this blog,
    /people/alessandro.berta/blog/2005/10/04/datetime-datatypes-and-oracle-database
    Regards,
    Bhavesh

Maybe you are looking for

  • What is the use of fms SSF_OPEN and SSF_CLOSE

    hi to all experts, im printing one material id per page  .i want the dialog box for printing appear just once and all the records should be printed for that i have used ssf_open and ssf_close. but still the dialog box is coming.Is my code correct for

  • How to Sort one key figure values in two column based on single char

    hi gurus, I would really appreciate if some one can help me out with my question. I have to design a query based on a Multiprovider built on three ODS, Purchasing, Confirmations & Invoic ODS Purchase order Value and Number data in PO ODS, and confirm

  • Obtaining a collection as a return from an execute immediate pl/sql block

    version 10.2 I need to obtain the collection back from the execute immediate of a pl/sql block: procedure block(owner varchar2) is stmt                   long; objecttab_coll         dbms_stats.objecttab; begin stmt := '    begin     dbms_stats.gathe

  • Weird Issue with session collection creation

    Hello everybody, While building a fully redundant RDS infrastrcutre I cam across this issue While creating the session collection through Server Management on Windows Server 2012 R2 I get the following error: "Unable to configure the RD Session Host

  • File Reservation message

    I have recently attempted to open some selected Excel files, and I immediately receive a message labelled File Reservation, which states that the file I am attempting to open is currently in use by another user.  It offers the ability to Read Only th