Help needed - Field Mapping

Hi,
Detail:
========
I have a class called CustomerSpecificField extending another class
NameValueTimestamp which contains 3 attibutes name, value, timestamp.
In my package.jdo file when i tried to map my fields, I got the following
exception. the attibutes in the parent class are not at all recognized for
mapping.
JDO Info
========
<class name="CustomerSpecificField">
<extension vendor-name="kodo" key="jdbc-class-map" value="base">
<extension vendor-name="kodo" key="table" value="ADB.UP_CUST_SPEC_FIELD"/>
<extension vendor-name="kodo" key="pk-column" value="ID"/>
</extension>
<field name="name">
<extension vendor-name="kodo" key="jdbc-field-map" value="value">
<extension vendor-name="kodo" key="column" value="NAME"/>
</extension>
</field>
<field name="timestamp">
<extension vendor-name="kodo" key="jdbc-field-map" value="value">
<extension vendor-name="kodo" key="column" value="TIMESTAMP"/>
</extension>
</field>
</class>
Error:
=======
Exception in thread "main" kodo.util.FatalException: java.io.IOException:
org.xml.sax.SAXException:
file:/C:/kodo-jdo-3.1.3/bin/com/bo/package.jdo [Location: Line: 65, C:
37]: Field "timestamp
" is not declared in "CustomerSpecificField".
[java.lang.NoSuchFieldException]
NestedThrowables:
java.io.IOException: org.xml.sax.SAXException:
file:/C:/kodo-jdo-3.1.3/bin/com/bo/package.jd
o [Location: Line: 65, C: 37]: Field "timestamp" is not declared in
"CustomerSpecificField". [java.l
ang.NoSuchFieldException]

I have a class called CustomerSpecificField extending another class
NameValueTimestamp which contains 3 attibutes name, value, timestamp.In JDO, each class can only persist fields that it declares. So you
need to make your superclas a persistent class and map it, and reference
it with the persistence-capable-superclass attribute from your subclass.

Similar Messages

  • Help Needed in mapping business scenario

    Hi All,
    I have a RM inter unit despatches for this we are using STO. While doing inter unit despatches we have to pay freight on per kg (Gross Weight) for a source and destination. This has already been mapped by creating a condition type and condition record.
    But there is a scenario where in when inter unit despatches happens there is an agreement b/w transporter and company if the company does not load full truck then the company needs to pay a minimum amount which has been negotiated with the transporter in this case, the freight condition is not being payed only minimum gurantee amount is payed to the transporter.
    Could any of us help me in mapping only the minimum gurantee scenario in R/3.
    We are using STO to do inter unit despatches.
    Regards,
    Sreekanth

    hai
    i think u can use condition type AMIW

  • Help needed to "map" HRMS fields for reporting

    Hi all,
    I have been asked to map for reporting purposes all the fields in the HRMS person and assignment forms, plus vacany requisition and absence.
    For example, on the people form in HRMS the "last Name" field would translate into sql as "per_people_F.last_name".
    I have found all the person/assignment/absence and vacancy fields but cannot find any of the following:
    Bank account/ pay method information.
    Salary previous/ salary proposal form information
    Anything from the element entries screen or the tax information fields.
    Anyone have any ideas which tables would hold this information for querying using developer or toad??

    Hi Michel, Vijaya, Praksh
    Thanks for all the replies. I will be a bit more detailed in my Query and Vijaya if u cud explain me the same way then it wud be helpful...
    Idoc Structure:
    GLMAST01
    IDOC
      BEGIN
    --EDI_DC40
         SEGEMENT
        TABNAM
    --E1SKA1M
         SEGMENT
        MSGFN
        KTOPl
        SAKNR
      --E1SKATM
         SEGMENT
         MSGFN
      --E1SKB1M
         SEGMENT
         MSGFN
    The Message type is
    FCC_MSGTYPE
    -MOVEMENT
      -Row
        MANDT
        KTOPL
        SAKNR
    I am not sure whether to Map the MOVEMENT part. Tell me what I should do. The requirement is to populate the R/3 with the MANDT, KTOPL, SAKNR etc which all occur in the E1SKA1M segemnt and the nothing to the subsegments under it.
    Please tell me how to do that.
    Thanking all in anticipation.
    Best Regards
    Chakra and Somnath

  • Help needed on mapping information for AT701 element in EDI X12 214 Transportation type (X12_00401_214 schema)

    Hi all,
    As per the EDI defined standard schema, AT701 element takes the following Enumeration values.
    <xs:element minOccurs="0" name="AT701" type="X12_ID_1650">
    <xs:annotation>
    <xs:appinfo>
    <b:fieldInfo notes="Shipment Status Code_1650" />
    </xs:appinfo>
    </xs:annotation>
    </xs:element>
    <xs:simpleType name="X12_ID_1650">
    <xs:restriction base="xs:string">
    <xs:enumeration value="A3" />
    <xs:enumeration value="A7" />
    <xs:enumeration value="A9" />
    <xs:enumeration value="AF" />
    <xs:enumeration value="AG" />
    <xs:enumeration value="AH" />
    <xs:enumeration value="AI" />
    <xs:enumeration value="AJ" />
    <xs:enumeration value="AM" />
    <xs:enumeration value="AN" />
    <xs:enumeration value="AP" />
    <xs:enumeration value="AR" />
    <xs:enumeration value="AV" />
    <xs:enumeration value="B6" />
    <xs:enumeration value="BA" />
    <xs:enumeration value="BC" />
    <xs:enumeration value="C1" />
    <xs:enumeration value="CA" />
    <xs:enumeration value="CD" />
    <xs:enumeration value="CL" />
    <xs:enumeration value="CP" />
    <xs:enumeration value="D1" />
    <xs:enumeration value="I1" />
    <xs:enumeration value="J1" />
    <xs:enumeration value="K1" />
    <xs:enumeration value="L1" />
    <xs:enumeration value="OA" />
    <xs:enumeration value="OO" />
    <xs:enumeration value="P1" />
    <xs:enumeration value="PR" />
    <xs:enumeration value="R1" />
    <xs:enumeration value="RL" />
    <xs:enumeration value="S1" />
    <xs:enumeration value="SD" />
    <xs:enumeration value="X1" />
    <xs:enumeration value="X2" />
    <xs:enumeration value="X3" />
    <xs:enumeration value="X4" />
    <xs:enumeration value="X5" />
    <xs:enumeration value="X6" />
    <xs:enumeration value="X8" />
    <xs:enumeration value="XB" />
    </xs:restriction>
    </xs:simpleType>
    Now, in my sample input file I am having a column "MileStone", and for example: If I have
    "Picked Up Date" in that column, I need to pass "A3" as the value for
    AT701 element as per the above code snippets. 
    Please let me know how to map the "Milestone to "AT701" element.
    If I straight away map those two fields, I am getting the below error : 
    error btm1046: Output validation error: The 'AT701' element is invalid - The value 'MileStone_0' is invalid according to its datatype 'http://schemas.microsoft.com/BizTalk/EDI/X12/2006:X12_ID_1650' - The Enumeration constraint failed.
    So, please guide me on how to map the above fields using the functoids. 
    Thanks in Advance..

    Hi Anand,
    You can try
    Value Mapping functiod along with Logical Equal functiod for this requirement.
    Connect the element “MileStone”
    to the Logical Equal functiod as the it’s first parameter. And add “Picked Up Date”
    as the second parameter.
    Connect output of the Logical Equal functiod as the first parameter to the Value Mapping functiod and “A3"
    as the second parameter.
    Connect the output of
    Value Mapping functiod “AT701”
    element.
    This maps the value “A3”
    to the element “AT701”, if the value of “MileStone” element is
    “Picked Up Date”
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Help needed with Map function in Lumira

    Hi,
    I've bee using Luira for lots of great tile charts and bar charts, but now I am looking to make use of the mapping visulization in Lumira.
    Bascially I want to get a count of the number of retail stores by state. 
    I uploaded my data , and some have been populated and looks nice (see first screenshot) , but for others the state is not found (see second screenshot).
    I have looked in the help documents, and some of the training, but have yet to find a solution.
    What I'd like to know is how I can fix the "unfound" states, or at least find out what is the source file which stores all the states?
    Above is the results so far, below is the missing states that I need to resolve. How can I fix for these "not found" states  or compare the format of my original excel data vs the data from Lumira.
    Alteratively if there is a way to match via post-code / zip-code please tell me how.
    Thanks,
    Paul

    Hi Paul,
    the geo-hierarchies take all cities that are greater than 100.000 for the name resolution and for the smaller ones you would need to use latitude/longitude information to get them resolved by Lumira.
    You can find mre information on how to use latitude/ longitude information from here:
    https://scn.sap.com/docs/DOC-33118
    Regards,
    Clarissa

  • Help needed in Mapping of T4s and T4As

    Hi
    My name is Krishna ,I was involved in year end support of US and successfully completed it ,but now i am put in canadian year end stuff also (T4s and T4As) and i dont have much experience with Mapping and Testing of T4s and T4As using tax reporter of SAP .can any body help me  How to map different wagetypes on different boxes on T4s and T4As ?please if  you have any screenshots,please send me .your timely help is greatly appreciated
    Regards
    Krishna

    Hi Krishna,
    What is T4 and T4A'S? Do they spcify the Tax form groups or Tax form fields?
    I think it must be like Box 12 of W-2 wherein you have 12A, 12B, 12C.
    Try to apply to the same logic for the T4's and T4A's.
    Let me know.
    Arti

  • Help needed in mapping BI query output to use as input for BAPI

    Hi,
    After wrestling with it for quite some time I choose to ask yet another question here. I want to use the output of a BI query I use as input for a BAPI. I just can not get the mapping correctly:
    The query delivers: 104908BA092F7501F5E1008000829000AC
    I need: 104908BA092F7501F5E1008000829000AC
    How can I lose the two first digits? Thanks in advance!
    Best regards,
    Jan

    Nevermind. I found out myself. I am now using the statement MID(@GUID,2,32) in the connection.

  • Help needed in Mapping servlet in web.xml file

    Hi Can anyone please tell me what am doing wrong here. I can't see this servlet in my url. Please help.
    <servlet>
    <servlet-name>HelloWorld</servlet-name>
         <servlet-class>HelloWorld</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>HelloWorld</servlet-name>
    <url-pattern>/com/jci/fi/application/eems/HelloWorld/*</url-pattern>
    </servlet-mapping>
    package com.jci.fi.application.eems;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class HelloWorld extends HttpServlet {
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws IOException, ServletException
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    out.println("<html>");
    out.println("<body>");
    out.println("<head>");
    out.println("<title>Naveen Wants to goto TollyWood......!</title>");
    out.println("</head>");
    out.println("<body>");
    out.println("<h1>Hello World!</h1>");
    out.println("</body>");
    out.println("</html>");

    your web.xml shoould be something like this...
    <servlet>
    <servlet-name>HelloWorld</servlet-name>
    <servlet-class>com.jci.fi.application.eems.HelloWorld</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>HelloWorld</servlet-name>
    <url-pattern>HelloWorld</url-pattern>
    </servlet-mapping>
    Hope this helps..
    CK

  • Help needed on Mapping logic

    Hi guys,
    I have logic like,
    pernr>logic>pernr.
    Pernr is the first field.
    Whenever the logic fails, it should not process rest of the below fields.
    it should directly go to next record.
    Any ideas.......
    santosh.

    You can achieve this using gloval variable.
    1. right click on the parent node  of pernr. -
    >Add Variable (say ifPernrTrue)
    2. Map this variable with the same logic and give value "true" if logic successful and "false" if logic fails
    Whenever the logic fails, it should not process rest of the below fields.
    3.Map rest of fields as :
    ifPernrTrue (the variable u created) \
    >   if  (without else )  -
    > fields...
                   source filed     /

  • Mapping conversion help needed for date

    Hi Experts,
    I need help in message mapping convesion for date field
    The source date field can have value '2010-06-04T02:09:59.610-07:00' or 2010-06-04T02:09:60.610-07:00
    I have to change it to '2010-06-04T02:09:59.000-07:00'. ie, if the seconds are 59.XXX, or 60.XXX, then change to 59.000.
    Please let me know the best way to do this
    Thanks
    Mike

    Again, to make it more clear
    The source date field can have any date value such as
      2010-06-04T02:09:59.610-07:00 -
    This needs to be changed to 2010-06-04T02:09:59.000-07:00
      2010-06-04T02:09:60.610-07:00 -- This needs to be changed to 2010-06-04T02:09:59.000-07:00
    2010-06-04T02:09:60.000-07:00 -- This needs to be changed to 2010-06-04T02:09:59.000-07:00
    2010-06-04T02:09:59.000-07:00  - This need not be changed
    2010-06-04T02:09:58.610-07:00 -- This need not be changed
    2010-06-04T02:09:57.610-07:00  etc etc - These need not be changed.
    The only change using date function is for the first two dates, in which 59.XXX and 60.XXX need to be replaced with  59.000
    Using the above date function, all the seconds 59.XXX, 58.XXX, 60.XXX, etc etc,,, are converted to 59.000, 58.000 and 60.000
    I dont need this as per the requirement. So looks like the UDF needs to be altered a little to accomodate my requirement.
    Please help me.
    Thanks
    Mike

  • A little help needed in message mapping

    a little help needed in message mapping
    I have to map one of the idoc header segments as many times as it occurs to each Idoc when using the split message funcionality
    let us say we have the segment seg1 and there is a QUALF in it
    <seg1>
    <qualf>001</qualf>
    </seg1>
    <seg1>
    <qualf>002</qualf>
    </seg1>
    then we use the vbeln to split the idoc into 2.
    so if we have
    <vbeln> 1 </vbeln>
    and
    <vbeln>2 </vbeln>
    then 2 Idocs should be created like this
    <Idoc>
    <vbeln> 1 </vbeln>
    <seg1>
    <qualf>001</qualf>
    </seg1>
    <seg1>
    <qualf>002</qualf>
    </seg1>
    </Idoc>
    <Idoc>
    <vbeln> 2 </vbeln>
    <seg1>
    <qualf>001</qualf>
    </seg1>
    <seg1>
    <qualf>002</qualf>
    </seg1>
    </Idoc>
    it is easy to create the segment by using createif with the QUALF field but my problem how to map the qualf twice for each idoc
    Thanks.

    UseOneAsMany is the function you need to use.
    It takes three parameters:
    1 --- The node you want to duplicated
    2 --- How many times you want to duplicated
    3 --- The context you want to place for it.
    Regards
    Liang

  • Need help on message mapping

    Hi,
    Need ur help on below situation.
    I have input file structure as
    - <G_SPO1>
    - <S_PO1>
      <D_350>0001</D_350>
      <D_330>6</D_330>
      <D_355>EA</D_355>
      <D_212>151</D_212>
      <D_235>VC</D_235>
      <D_234>40421-821/1920-02</D_234>
      <D_235_2>SK</D_235_2>
      <D_234_2>427Y73226</D_234_2>
    - <S_REF>
      <D_128>SU</D_128>
      <D_127>0060325940</D_127>
      </S_REF>
    - <S_REF>
      <D_128>SU</D_128>
      <D_127>0060325957</D_127>
      </S_REF>
    - <S_REF>
      <D_128>SU</D_128>
      <D_127>0060325964</D_127>
      </S_REF>
    - <S_REF>
      <D_128>SU</D_128>
      <D_127>0060325971</D_127>
      </S_REF>
    - <S_REF>
      <D_128>SU</D_128>
      <D_127>0060325988</D_127>
      </S_REF>
    - <S_REF>
      <D_128>SU</D_128>
      <D_127>0060325995</D_127>
      </S_REF>
    - <S_REF>
      <D_128>CR</D_128>
      <D_127>WHITEHOUSE,RYAN</D_127>
      </S_REF>
    </S_PO1>
    </G_SPO1>
    I need to map D_127 elements to target field.
    here i need to check conditions.
    IF D_128 = SU then only i need to map D_127 to target field. otherwise ignore that record.
    Plzz let me know how would i map thid field to target field.
    Thanks,
    Singh.

    Lakshmi,
    for PO1 first element is 0001 i need output as
    0060325940
    0060325957
    0060325964
    0060325971
    0060325988
    0060325995
    for next PO1 first element is 0002 then i need output as
    0070325940
    0070325957
    0070325964
    These below fields are present in input file. the above file i mentioned only for PO1 first element D_350 = 0001.
    Presnetly i am geting output as
    0060325940
    0060325957
    0060325964
    0060325971
    0060325988
    0060325995
    0070325940
    0070325957
    0070325964
    but i need to differentiate this output as separate based on D_350 = 0001.
    finally required output is
    if PO1 1st element D-350 = 0001
    then output is
    0060325940
    0060325957
    0060325964
    0060325971
    0060325988
    0060325995
    if PO1 1st element D_350 = 0002
    then
    0070325940
    0070325957
    0070325964
    Plzzzz let me know.
    Thanks,
    Singh.

  • Mapping Help Needed

    Hello Gurus,
      I need help in message mapping. I have a requirement as below.
    E1EDP01 segment contains many E1EDP19 segments
    E1EDP19 segment contains QUALF, KTEXT and many other fields.
    in the output field, for every QUALF = "002", I need the value of KTEXT of the same E1EDP19.
    the output group is repeated per E1EDP01 (this is working fine)
    The problem is that KTEXT segment is not coming in every E1EDP19, so the result is erratic.
    the present code looks like
      Qualf (context E1EDP01)--
                                Equals  -- 
                   const-002 --           IF   --Outputfield
               KTEXT(context E1EDP01)--
    I tried many other things as well, but result is not as expected
    pls help.
    Thanks
    KQ

    Hi,
    I am not sure why it is not working in your case. I developed same mapping and it is giving correct result.
    Source Payload:
    <E1EDP19 SEGMENT="">
                <QUALF>002</QUALF>
                <IDTNR/>
                <KTEXT>A</KTEXT>
      </E1EDP19>
      <E1EDP19 SEGMENT="">
                <QUALF>003</QUALF>
                <IDTNR/>
      </E1EDP19>
      <E1EDP19 SEGMENT="">
                <QUALF>003</QUALF>
      </E1EDP19>
    <E1EDP19 SEGMENT="">
                <QUALF>002</QUALF>
                <IDTNR/>
                <KTEXT>SDN</KTEXT>
      </E1EDP19>
    Target field gets value as "SDN".
    Is this your requirement?
    Answers to your questions:
    1) the context cannot be E1EDP19, cos there are multiple P19 segments in P01 and it should be done on P01, as the output is based on per P01.
    Even if you are creating target based on line item level (E1EDP01), every E1EDP01 segment will have E1EDP19 and KTEXT with QUALF = 002. Also KTEXT of same E1EDP01 should go to target. Hence in your mapping context should be at E1EDP19 level.
    2) the Qualf comes more number of times than KTEXT, so they are not "matching" at context level.
    Map with default function will take care of this.
    -Gouri

  • Message mapping help needed

    I am trying to map target based on a condition. Meaning I want to map E1EDKA2(1..99999) of DESAD01 Idoc to ShipTo(0..1) node if E1EDKA2-PARVW = WE.
    I tried all the variations with creatIf and formatByExample but I couldn't able to get it working.
    Here is the target XML structure
    <Delivery>
       <Header>
           <ShipmentNumber>1234</ShipmentNumber>
           <BOLNumber>ABDC</BOLNumber>
           <ShipTo>
                <Name>XYZ</Name>
           </ShipTo>
           <SoldTo>
                <Name>XYZ</Name>
           </SoldTo>
       </Header>
       <LineItems>
        </LineItems>
    </Delivery> 
    Thanks
    Suman

    Hi Sarvesh,
    I don't know what is the significance of checking 1 = 1. Anyway I could able to resolve the issue by my self. Thank you very much for taking time to help me.
    /ns0:MT_XML_Delivery/Delivery/Header/ShipmentNumber=/DESADV01/IDOC/E1EDK07/VBELN
    /ns0:MT_XML_Delivery/Delivery/Header/BOLNumber=/DESADV01/IDOC/E1EDK07/BOLNR
    /ns0:MT_XML_Delivery/Delivery/Header/ShipTo=createIf(stringEquals(/DESADV01/IDOC/*E1EDK08*/E1EDKA2/PARVW, const(value=WE)))
    /ns0:MT_XML_Delivery/Delivery/Header/ShipTo/Name=replaceString(/DESADV01/IDOC/E1EDK08/E1EDKA2/PARVW, /DESADV01/IDOC/E1EDK08/E1EDKA2/PARVW, /DESADV01/IDOC/E1EDK08/E1EDKA2/NAME1)
    /ns0:MT_XML_Delivery/Delivery/Header/ShipTo/AccountNumber=/DESADV01/IDOC/E1EDK08/E1EDKA2/PARTN
    XI/PI is really strange. It needs to have that PRVW in the first field mapping, even though it is not being used. I just replaced PARVW with the NAME1 and mapped to name. For the ShipTo, I set E1EDK08 (next higher level structure) as the context.
    I think it will take time for me to learn this, as I come from webMethods and XSLT background.
    Thanks
    Suman

  • Need help in modifying mapping parameters of out the box mapping

    Hi There,
    I am a new bee to dac.
    Need help in modifying mapping parameters of out the box mapping, which is invoked by DAC task.
    We got a requirement to edit mapping parameter. When I go and see parameter under mappings tab in a mapping, I could not see any values in it.
    But when I set any value, and validate it. It is successful.
    Is it right way to do it?
    What my concern is, When I initially go and see parameter values under maapings tab in a mapping, they are blank.
    Where is it storing these values?
    Thanks,
    Rag

    If you modify mapping then u have to create new task in dac and dac itself craete parameter file at run time. if you want to add more parameters then do it in dac system parameters tab.
    Thanks
    Jay.

Maybe you are looking for

  • Some commands are not working nor in illustrator nor photoshop, any advice better than Adobe?

    Illustrator is not fuctioning at 100%, some commands do not work ( eg - command open, nor place etc ) and same with photoshop.... Any advice

  • My MacBook Air wont remember network settings.

    Works fine until I put it to sleep and then when I open it up it starts looking for a network. 

  • How to create a new Business Unit

    Hello, I have problem. Can anyone tell me 1 : How to create a new Business Unit, New Company from Jd Edwards screen means webpage. 2 : Can i find the User Defined Codes means UDC in jd edwards screen. Thanks, Shakti Prasad Priyakumar.

  • Incomplete Sync Labels in iTunes

    After updating to Apple TV software 2.0.2 the sync label in iTunes is incomplete. Only the first and the Photo label is displayed. No music, no movie, no podcast label. There was no problem with software 1.0 I already did a reset of Apple TV - withou

  • Lego NXT 2.0 Software Crashes on Yosemite

    Lego Mindstorms NXT 2.0 software is unstable on Yosemite.  While it installs with complaints and runs fine, it will soon (minutes to days) begin to crash immediately after starting.  A reinstall helps and then the problem starts again.  No obvious as