Importmanager: if condition during mapping for second field

HI,
I have an xml file that has to be imported with the import manager to the repository.
<Mime>
     <Type>image<Type>
     <File>abc.jpg<File>
</Mime>
<Mime>
     <Type>pdf<Type>
     <File>a12345.pdf<File>
</Mime>
In the repository we have a field for the name ot the image and another one for the name of the pdf. Because of the structure of the xml file I can not map these field one to one the the repository fields. In the mapping I have to analyse the value of the field <type> and depending on the value to import the field <File> to the corresponding repository field.
Any idea how this can be done in the mapping with the importmanager ?
Regards Bernd

I don't think you can perform such operations on the Import Manager. I would suggest you to import all the data (given that at least one of the fields will end up as null because of the xml structure) and then place this validation rule as a calculated field on the MDM console, or even as a workflow that should be set up to execute after any import.
Greetings
Alejandro

Similar Messages

  • DIscount condition types mapping to value field  (+/-)

    Hi,
    1)While mapping SD condition types to Copa value fields, do we need to check the transfer +/- symbol for all discount condition types...
    or when do we need to check it..
    2) In our case we have some 4 to 5 discount condition types mapped to copa... If we check that symbol, as discount will always be negative system is posting discount values in negative in copa. At the time of report execution, since we give formula as Sales Less discount and discount is already negative in system it is getting added... so we are planning to change formula as sales + discounts... is that approach is right?
    Reg
    Karthik

    Hi Ajay,
    Thanks for your quick reply... generally for which condition types do we need to check this indicator in ke4i... for all discount condition types and rounding off condition types... is that right? Because as I told we have some 4 to 5 discount condition types and we have ticked for only one discount condition type which is mostly used...
    Reg
    Karthik

  • CRM 7.0 WebUI:  Dropdown for second field is based on first field value

    Hi,
    I created an all-custom search/result component, now having one challenge - requirement is - on result list, when in change mode, the second field should have a dropdown list which is filled based on the first field value, where user can pick one.  I searched this forum and SAP docs, so far I haven't found a solution. Has anyone done this? or have you seen any SAP standard screens having this kind of function?
    Thanks.
    Steven

    Hi Steven,
    You will rarely see a result list component in change mode.
    Anyhow, to fulfill your requirement, you have to trigger a round trip for the first field when a value is selected.
    You can do this by specifying a dummy event in GET_P method.
    The GET_V method of the second field will trigger for this round trip and you can trigger the values.
    Regards,
    Masood Imrani S.

  • Conditions on Mapping for IDOC

    Hi,
    I has the following structure of an IDOC
    - <E1EDKA1 SEGMENT="1"> 1..........Unbounded
      <PARVW>XXXX</PARVW>
      <PARTN>YYYYY</PARTN>
    where E1EDKA1 occurs 1......Unbounded at the sender side .
    Based on the Values of PARVW
    PARVW =RG,AG,WE
    Receiver fields :
    RECEIVER1
    RECEIVER2
    RECEIVER3
    If PARVW = RG i need to map the value of PARVW to RECEIVER1
    If PARVW = AG i need to map the value of PARVW to RECEIVER2
    If PARVW = WE i need to map the value of PARVW to RECEIVER2
    Request you to please give me the suggestions
    Thanks & Regards,
    Y.Raj

    1. Check whether u hv changed the context of PARVW to IDOC in all the three mappings.
    2. u hv to use equalsS function of text category.
    PARVW----------->equalsS---->if------->receiver1
    Constant[a]------>           then<---PARVW
    Similarly change constants for receiver2 and receiver3.
    Edited by: malini balasubramaniam on Oct 16, 2008 7:30 AM

  • Sold-to-party default partner id map for customer field in SMCR - ChaRM 7.1

    Hi Expert,
    I am trying to map sold-to-party partner id default in SMCR- CRM screen (when Request for Change screen open) .
    In IB52 ->Goto -> Partner , i gave sold-to-party details.
    but its not reflecting in Request for Change screen open in CRm_UI.
    Rg,
    Karthik

    Hi Karthik,
    have you deleted from other levels?
    Also check below note:
    1165357    Sold-to-Party is not assigned to Service Desk messa
    1518907 - Solution Manager: wrong partner determination after update to Support Package 24
    1165357: Sold-to-Party is not assigned to Service Desk
    824640: Customizing missing for Service Desk in Solution Manager
    is sold to party have BP organization type?
    Thanks
    Regards
    Vikram

  • Descriptor exception for "missing mapping for field"

    I am using TopLink 9.0.3, oracle database 9, JVM 1.4.
    I got one DescirptorException that states that the descriptor misses mapping for one database field.
    However I have such field mapped through workbench.
    The is the exception.
    -----------------exception-----------------------
    LOCAL EXCEPTION STACK:
    EXCEPTION [TOPLINK-45] (TopLink - 9.0.3 (Build 423)): oracle.toplink.exceptions.DescriptorException
    EXCEPTION DESCRIPTION: Missing mapping for field [DatabaseField(DEVICEDB.DEVICEID)].
    DESCRIPTOR: Descriptor(ContactDB --> [DatabaseTable(DEVICEDB)])
    at oracle.toplink.exceptions.DescriptorException.missingMappingForField(Unknown Source)
    at oracle.toplink.internal.descriptors.ObjectBuilder.extractValueFromObjectForField(Unknown Source)
    at oracle.toplink.internal.descriptors.ObjectBuilder.extractValueFromObjectForField(Unknown Source)
    at oracle.toplink.mappings.OneToManyMapping.extractForeignKeyFromReferenceObject(Unknown Source)
    at oracle.toplink.mappings.OneToManyMapping.executeBatchQuery(Unknown Source)
    at oracle.toplink.mappings.OneToManyMapping.extractResultFromBatchQuery(Unknown Source)
    at oracle.toplink.internal.indirection.NoIndirectionPolicy.valueFromBatchQuery(Unknown Source)
    at oracle.toplink.mappings.ForeignReferenceMapping.batchedValueFromRow(Unknown Source)
    at oracle.toplink.mappings.ForeignReferenceMapping.valueFromRow(Unknown Source)
    at oracle.toplink.mappings.DatabaseMapping.readFromRowIntoObject(Unknown Source)
    at oracle.toplink.internal.descriptors.ObjectBuilder.buildAttributesIntoObject(Unknown Source)
    at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(Unknown Source)
    at oracle.toplink.internal.descriptors.ObjectBuilder.buildObjectsInto(Unknown Source)
    at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.buildObjectsFromRows(Unknown Source)
    at oracle.toplink.queryframework.ReadAllQuery.execute(Unknown Source)
    at oracle.toplink.queryframework.DatabaseQuery.execute(Unknown Source)
    at oracle.toplink.queryframework.ReadQuery.execute(Unknown Source)
    at oracle.toplink.publicinterface.Session.internalExecuteQuery(Unknown Source)
    at oracle.toplink.threetier.ServerSession.internalExecuteQuery(Unknown Source)
    at oracle.toplink.publicinterface.Session.executeQuery(Unknown Source)
    at oracle.toplink.internal.indirection.QueryBasedValueHolder.instantiate(Unknown Source)
    at oracle.toplink.internal.indirection.DatabaseValueHolder.getValue(Unknown Source)
    at oracle.toplink.indirection.IndirectList.buildDelegate(Unknown Source)
    at oracle.toplink.indirection.IndirectList.getDelegate(Unknown Source)
    at oracle.toplink.indirection.IndirectList.isEmpty(Unknown Source)
    The is my mapping file for DeviceDB and ContactDB. The ContactDB is a subclass of the DeviceDB.
    Clearly from the mapping below, the DeviceDB has a mapping for the database filed DeviceID.
    The ContactDB is a subclass of DeviceDB. Therefore the ContactDB also should have a mapping for
    database field deviceID
    ----------------------- partial mapping file for DeviceDB----------
    public Descriptor buildDeviceDBDescriptor() {
         Descriptor descriptor = new Descriptor();
         descriptor.setJavaClass(DeviceDB.class);
         descriptor.addTableName("DEVICEDB");
         descriptor.addPrimaryKeyFieldName("DEVICEDB.DBID");
         // Inheritance properties.
         descriptor.getInheritancePolicy().setClassIndicatorFieldName("DEVICEDB.CLASS");
         descriptor.getInheritancePolicy().addClassIndicator(ContactDB.class, "c");
         descriptor.getInheritancePolicy().addClassIndicator(ContentDB.class, "f");
         OneToOneMapping deviceMapping = new OneToOneMapping();
         deviceMapping.setAttributeName("device");
         deviceMapping.setReferenceClass(Device.class);
         deviceMapping.setRelationshipPartnerAttributeName("databases");
         deviceMapping.dontUseIndirection();
         deviceMapping.readOnly();
         deviceMapping.addForeignKeyFieldName("DEVICEDB.DEVICEID", "DEVICE.DEVICEID");
         descriptor.addMapping(deviceMapping);
         return descriptor;
    ---------------------------partial mapping for ContactDB --------------
    public Descriptor buildContactDBDescriptor() {
         Descriptor descriptor = new Descriptor();
         descriptor.setJavaClass(com.access.sync.business.contact.ContactDB.class);
         descriptor.addTableName("DEVICEDB");
         // Inheritance properties.
         descriptor.getInheritancePolicy().setParentClass(com.access.sync.framework.systemObj.DeviceDB.class);
    Any help is really appreciated.
    jason

    Your 1-1 mapping must not be read-only.
    deviceMapping.readOnly();Read-only means the mapping will not write the field, and should only be used when another mapping does write the field.

  • Mapping for Order Split

    Hello,
    We have a requirement that we would receive IDocs from a third party and we would send them back.
    But the condition is,if these ORDERS IDocs contain materials belonging to different distribution channel then IDoc has to be split in two (10 or 20 DC) having materials belonging to same DC.
    So at the max,we can have 2 IDocs created for 1 IDoc.
    How can we achieve this?
    Regards,
    Shweta

    Shweta,
    We have a requirement that we would receive IDocs from a third party and we would send them back.
    Through which adapter are you communicating to III party?
    Is it a Asynch scenario?
    As per my understanding, you need to split the incoming IDOCs based on the Distribution channel.
    I suggest you to use Multi Message mapping > then right click on Messages1 and select duplicate structure.
    Now provide the mapping for the first messages to execute for DC = 10 similary provide mapping for second message to execute for DC = 20.
    Enhanced interface determination if you want to send each one as different message.
    Regards,
    Venkat.

  • UDF or Mapping for removing more items

    Hi
    I'm in a need to implement a data validation using UDF or Graphical Mapping
    File has the data like ONE header record (5 fileds) and ONE item record (8 fields) as follows
    header:field1field2 field3 field4 field5
    item:field1field2 field3 field4 field5 field6 field7 field8
    header:field1field2 field3 field4 field5
    item:field1field2 field3 field4 field5 field6 field7 field8
    header:field1field2 field3 field4 field5
    item:field1field2 field3 field4 field5 field6 field7 field8
    and so on.
    Here my requirement is one header should have only one item. Sometimes either header or items are repeating more than one time .. in that case lastest header or item should be updated in target fields.
    To say clearly ... one header and one item & one header and one item and so on to be updated.
    In case any header has two items then first item to be deleted and second item to be updated.
    Kindly advise me how to go about this requirement.
    Thanks.

    Do the mapping as
    Direct assignment of Source header to Target Header and same for fields inside the Header.
    create a UDF (choose context).very simple UDF with a single statement.
    result.addValue(a[a.length-1]);
    Item Node mapping and Its Fields
    Item------>UDF------>Item(Target)
    field1(Change the context to Header)------->UDF----->field1(under Target Item)
    Do the same mapping for remaining fields Under Item as you  do for field1
    I have tested the above UDF and the mapping..It is working according to your requirement.

  • Module pool F4-Help problem for a field in custom Infotype(HR).

    Dear Gurus,
    I have created a custom Infotype and fields are like
    P9015-NAM01.
    P9015-NAM02.
    P9015-NAM03.
    all are fields for name.
    I want F4 help for these fields with values same as  Family Members-First name  given in 21 Infotype .
    for all 3 fields same f4 help values.
    But when i see in the screen for first field the values are populating as selected but for second field the selected value is not picking..
    DATA: BEGIN OF it_val1 OCCURS 7,
        nam01 LIKE p9015-nam01,
        rel01 LIKE p9015-rel01,
       END OF it_val1.
      SELECT *  FROM t591s INTO TABLE it_t591s WHERE
         sprsl = 'EN' AND
         infty = '0021'.
    *SUBTY
    *STEXT
      SELECT * FROM pa0021 INTO wa_21 WHERE pernr = p9015-pernr .
        READ TABLE it_t591s WITH KEY subty = wa_21-famsa.
        it_val1-rel01 = it_t591s-stext.
       CONCATENATE wa_21-favor wa_21-fanam INTO it_val-nname SEPARATED BY space.
        it_val1-nam01 = wa_21-favor.
        APPEND it_val1.
        CLEAR : it_val1, it_t591s.
      ENDSELECT.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
        DDIC_STRUCTURE         = ' '
          retfield               = 'NAM01'
        PVALKEY                = ' '
         dynpprog               = sy-cprog
         dynpnr                 = sy-dynnr
        dynprofield            = 'P9015-NAM01'
        STEPL                  = 0
        WINDOW_TITLE           =
        VALUE                  = ' '
         value_org              = 'S'
         multiple_choice        = ' '
         display                = 'F'
        CALLBACK_PROGRAM       = ' '
        CALLBACK_FORM          = ' '
        MARK_TAB               =
      IMPORTING
        USER_RESET             =
        TABLES
          value_tab              = it_val1[]
         field_tab              = t_fields[]
         return_tab             = t_return[]
         DYNPFLD_MAPPING        = t_DYNPFLD_MAPPING
      EXCEPTIONS
        PARAMETER_ERROR        = 1
        NO_VALUES_FOUND        = 2
        OTHERS                 = 3
    In the same way i am calling for P9015-NAM02. & P9015-NAM03.
    Is there any wrong in calling this FM...kindly help.....

    Write the FM inside,
    at selection-screen on value-request for <nam1>.
    It seems that you are calling the funtion module for only first field. Repeat it for other two fields also-
    at selection-screen on value-request for <nam2>
    call FM.
    at selection-screen on value-request for <nam3>
    call FM.
    Sumit

  • Question w/ mapping header text fields from the ORDERS05 idoc - Need help!!

    My mapping seems to be combining two header texts categories(IDs) and putting in into the XML target field. That's the first issue.
    The 2nd issue is trying to figure out how to only use only a part of the tdline.
    The idoc value is: <TDLINE>232828-0 06/25/2009 EDI Vendor Confirmed</TDLINE> .
    I only want to use the first part: 232828-0 and ignore the rest(
    06/25/2009 EDI Vendor Confirmed).
    Would someone have 30 mins to help a newbie out.
    I can send screen shots of the idoc coming into PI and the XML file going out as well as my mapping for the field.
    Thanks,
    Jeff
    jschreiber@ballhort .com

    Jeff,
    I have sent a test email pl send me screenshots.
    Issue 2: Did you try to use standard function for texts i.e "substring". Open the mapping in editing mode and all the way down you  can see "Function" from where you can choose std functions.
    -Sid

  • Can I use SetFld during GenPrint for banner page fields?

    I have a banner page form that has multiple variable fields on it to display information specific to the batch it's being included with (for out post-composition handling area). I currently set those fields' values by assigning variables of the same name (as the fields) within a DAL script called as my BachBannerBeginScript for that batch. The fields on the Banner page form/section have a rule of NOOPFUNC, so without that assign process happening during the DAL script, they inherently hold no value. This has worked fine so far.
    Now I have a new banner page for a different process/batch, and it's purpose will be to be a "summary report" of sorts, detailing on the banner page high-level information about each document within that batch. I take information from the batch file (bch), read in an additional external file and aggregate the data in GVMs (to form an array, basically) during the BatchBannerBeginScript. The problem I now have is that I have a variable-sized array (based on the document-count within my batch file), yet my understanding is that I can't use functions available to me in GenData, so I have to basically pre-define as many instances of the section (if I do a report line per section) or field (if I do one section with all instances of the field on it) as I think are possible (max-case scenario, basically).
    However, after I have my Section/Fields defined, I still need to use DAL scripting to populate those fields. I tried to use SetFld to populate them, but the values don't show up in my output, leading me to believe that function/rule doesn't work in GenPrint. Is there a better way to set all those fields than to explicitly assign each instance of a field? I'd rather have a short While loop that takes a GVM's instance and assigns it to a variable field name than have hundreds of assign statements where I explicitly assign each possible field.
    Thanks,
    Gregg

    Aha. So you have an existing script that is executing somewhere to assign some other field during print. Depending upon what and when this script runs, you may be trying to set your banner fields too late. You see, as a default the banner page is temporary. Generally it is created, printed, then destroyed all before the first real page of your transaction prints. If you are not using the TransBannerBeginScript INI option as mentioned earlier, you might try to use that method to run your script which should be while the banner page is still alive.
    There is another way that you could try to run your script on the given page using what is called a "print time" or "macro" field. This would involve creating one more field on your banner section and name it like this:
    ~DALRUN MyScript.DAL
    Yes, you can name your script something other than MyScript.DAL.  The key is the ~DALRUN at the start, which will be interpreted at print time to mean that you want to run the DAL script and return a value. Now, of course you don't need a real value for this field, but there's nothing to stop the script from assigning data into the other fields at that time.
    You do have to make sure that this field is the first in sequence on the section. Otherwise, some of your fields may print before it gets to the point to evaluate this "print time" request.
    To make sure this is the first field in sequence will differ depending upon whether you are using DMStudio or the older Image Editor. Since you mentioned 11.5,  you could use either. In DMStudio, simply click on the "Objects" tab when the section is open and then click on the field to highlight it in the tree. Then use the button bar just above there to move the field to the top of the list.

  • 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

  • Value Maps for Collections in Archiver missing some fields

    Hi all,
    I'm using Archiver and I need to map some of my folder metadata like the profile trigger but when I'm at the "Edit Value Maps" to map the old value to the new value for this field I find that the field I want is missing (in fact all fields that start with ColMeta. are missing.. something tells me these are the fields that are custom).
    It does not let me do a custom query either! is there any way I can get this to work?
    This field does appear for Content tho, it's just for folder/project metadata.
    I'm looking into doing a "Field Map" from ColMeta.xProfileTrigger to some field available and then use that field for the value map but I'm not sure of the implications this will have in the field I choose since those others are fields used for something else and I don't want my mapping going to that other field.
    Thanks for any help,
    malky

    Well nevermind I solved it, but I'll say how in case someone has the same problem:
    Just create the archive with any field, then go and replace that field with the one you want everywhere in the archive.hda file.
    If someone has a more elegant or better way to do this I'd like to hear it for future reference.
    Cheers,

  • Missing mapping for field error

    Here is the set up:
    Person extends Party using InheritanceType.JOINED
    Household extends Party_Relationship using InheritanceType.JOINED
    Household has a Set of Persons mapped One to Many unidirectional
    When I use PrimaryKeyJoinColumn on the Person and/or Household to rename the column say to PERSON_POID instead of PARTY_POID and when adding Persons to the Household Set the following error occurs:
    oracle.toplink.essentials.exceptions.DescriptorException
    Exception Description: Missing mapping for field [PERSON.PARTY_POID].
    Descriptor: RelationalDescriptor(com.dhsnet.cms.domain.Person --> [DatabaseTable(PARTY), DatabaseTable(PERSON)])
    What am I missing? If I do not use the PrimaryKeyJoinColumn mapping this error does not occur. I am stumped! Any help is greatly appreciated.
    Here are the mappings:
    @Entity
    @TableGenerator(name="party", table="generator", pkColumnName="table_name",
    valueColumnName="key_value", pkColumnValue="party", allocationSize=1)
    @Table(name="PARTY")
    @Inheritance(strategy=InheritanceType.JOINED)
    @DiscriminatorColumn(name = "PARTY_TYPE")
    public abstract class Party extends AbstractEntity{
    @Entity
    @DiscriminatorValue("PERSON")
    @PrimaryKeyJoinColumn(name="PERSON_POID")
    public class Person extends Party{
    @Entity
    @Table(name="PARTY_RELATIONSHIP")
    @TableGenerator(name="party_relationship", table="generator", pkColumnName="table_name",
    valueColumnName="key_value", pkColumnValue="party_relationship", allocationSize=1)
    @Inheritance(strategy = InheritanceType.JOINED)
    @DiscriminatorColumn(name = "PARTY_RELATIONSHIP_TYPE", discriminatorType=DiscriminatorType.STRING)
    public abstract class PartyRelationship extends AbstractEntity {
    @Entity
    @DiscriminatorValue(value="HOUSEHOLD")
    @PrimaryKeyJoinColumn(name="HOUSEHOLD_POID")
    public class Household extends PartyRelationship {
    On the Household Object:
    @OneToMany
    @JoinTable(joinColumns = @JoinColumn(name="HOUSEHOLD_POID"),
    inverseJoinColumns = @JoinColumn(name="PERSON_POID"))
    protected Set<Person> getMembers() {
    return members;
    }

    This looks to be the same/related issue that has already been entered. See
    https://glassfish.dev.java.net/issues/show_bug.cgi?id=1586
    The alternative like you mentioned, is to not use a PrimaryKeyJoinColumn to rename the column in the joined inheritance case.
    Cheers,
    Guy

  • On activating persistent class: There is no mapping for one or more fields

    Hi all,
    I'm using an ECC 6.0 system.
    I've just created a persistent class and defined the persistence. When I try to activate the class activating fails and I get the message "There is no mapping for one or more fields."
    I did not, in fact, use all the fields of the database table I defined the persistence on. When I do use all the fields activating the class works without a problem.
    However, as far as I know it should be possible to select only some of the fields when defining the persistence (the only fields I have to select are all the key fields of the table and I've done this).
    Has anybody encountered the same problem or has anybody any idea on this?
    Cheers,
    Kathy

    Hi Kathy,
    this is exactly what I meant.
    If you'd like, then you can also take a look at the documentation: http://help.sap.com/saphelp_nw04/helpdata/en/b0/9d0a3ad259cd58e10000000a11402f/frameset.htm
    There under Mapping, you can find:
    "You must map all columns of a database table to attributes. If you only want to manage some of the columns using Object Services, you must create a database view."
    Making attributes private doesn't change the fact, that you still map all fields. If you have a lot of fields, which you don't want to map, then I will again suggest, that you define a DB-view. This will boost the performance of your implementation.
    In case you need "quality 1st" performance, then I would suggest to use an ABAP implementation with internal tables, instead of the Persistent Service.
    HTH,
    Hristo

Maybe you are looking for

  • Error while creating new connector in GRC CUP 5.3

    Hi, I am  trying to create a new SAP Connector in CUP 5.3, when i fill in all the fields in the new connection and select  "Test Connection" it says Connection successful and when i save it and look at the Available connectors, i am unable to see my

  • JDBC Adapter: DELETE and INSERT in Mapping

    Hi, I have a JMS to JDBC interface. While this is straightforward enough, there is a requirement to clear the contents of the table before carrying out the insert What I've tried is: <MT_Message>    <Statement>         <TableClear>              <acti

  • Query in File to File Data Export

    Hi, I have done a project for file to file data export using this link below: http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/odi/odi_11g/odi_project_ff-to-ff/odi_project_flatfile-to-flatfile.htm My project works fine.Here the source fi

  • Error when creating basic pay (IT0008) in pa30

    Dear Experts, Greetings! I am getting error when creating basic pay (IT0008) in pa30. Attached the print screen for the same. Kindly help me out. Thanks & Regards, Vamshi Krishna M

  • Can't find my Express

    I can't figure out what went wrong. I am currently studying in the UK, set up my airport express in my Flat (actually more like a dorm). It worked just fine all last term. I took it home with me for the holidays and I could never get my computer to "