VO with reference flag indirect relation = EntityImpl not retrieved?

Hi,
JClient 10.1.2
I have a ViewObject VOabcd based on 4 entities:
EntityA,EntityB,EntityC and EntityD.
ViewObject VOabcd is part of package 2.
EntityA is updateable and is part of package 2.
EntityB,EntityC and EntityD have reference flag set.
EntityB, EntityC and EntityD are part of package 1.
EntityA has foreign key association with EntityB: (*,1) relation.
EntityB has foreign key association with EntityC: (*,1) relation.
EntityB has foreign key association with EntityD: (*,1) relation.
Only the fields of EntityA are updateable so no set methods for attributes of the entities in the VO.
When I set the foreign attribute to EntityB all fields of EntityB are displayed automatically but the attributes of EntityC and EntityD are not retrieved as expected?
I have no set methods so I can't retrieve those attributes manually.
Your help is requested.
Thanks
Frederic
For your info, a VO in package 1 based on the same relations of EntityB,EntityC,EntityD works as expected.
For your info, extract of VO.xml file:
<EntityUsage
Name="Wevent"
Entity="com.photoswing.model.web.Wevent" >
<DesignTime>
<Attr Name="_EntireObjectTable" Value="false" />
<Attr Name="_queryClause" Value="true" />
<Attr Name="_queryWhere" Value="((Wevent.LAB_EVENT_TYPE_ID = LabEventType.LAB_EVENT_TYPE_ID) AND (LabEventType.FILM_TYPE_ID = FilmType.FILM_TYPE_ID) AND (LabEventType.PAPER_QUALITY_ID = PaperQuality.PAPER_QUALITY_ID) )" />
</DesignTime>
</EntityUsage>
<EntityUsage
Name="LabEventType"
Entity="com.photoswing.model.lab.LabEventType"
Association="com.photoswing.model.web.WeventLabEventTypeAssociation"
AssociationEnd="com.photoswing.model.web.WeventLabEventTypeAssociation.LabEventTypeWevent"
SourceUsage="com.photoswing.model.web.WeventEditVO.Wevent"
ReadOnly="true"
Reference="true" >
<DesignTime>
<Attr Name="_EntireObjectTable" Value="false" />
<Attr Name="_queryClause" Value="false" />
<AttrArray Name="_srcAttributes">
<Item Value="com.photoswing.model.web.Wevent.LabEventTypeId" />
</AttrArray>
<AttrArray Name="_dstAttributes">
<Item Value="com.photoswing.model.lab.LabEventType.LabEventTypeId" />
</AttrArray>
</DesignTime>
</EntityUsage>
<EntityUsage
Name="FilmType"
Entity="com.photoswing.model.lab.FilmType"
Association="com.photoswing.model.lab.LabEventTypeFilmFkAssoc"
AssociationEnd="com.photoswing.model.lab.LabEventTypeFilmFkAssoc.FilmTypeLabEventType"
SourceUsage="com.photoswing.model.web.WeventEditVO.LabEventType"
ReadOnly="true"
Reference="true" >
<DesignTime>
<Attr Name="_EntireObjectTable" Value="false" />
<Attr Name="_queryClause" Value="false" />
<AttrArray Name="_srcAttributes">
<Item Value="com.photoswing.model.lab.LabEventType.FilmTypeId" />
</AttrArray>
<AttrArray Name="_dstAttributes">
<Item Value="com.photoswing.model.lab.FilmType.FilmTypeId" />
</AttrArray>
</DesignTime>
</EntityUsage>
<EntityUsage
Name="PaperQuality"
Entity="com.photoswing.model.lab.PaperQuality"
Association="com.photoswing.model.lab.LabEventTypeQualityFkAssoc"
AssociationEnd="com.photoswing.model.lab.LabEventTypeQualityFkAssoc.PaperQualityLabEventType"
SourceUsage="com.photoswing.model.web.WeventEditVO.LabEventType"
ReadOnly="true"
Reference="true" >
<DesignTime>
<Attr Name="_EntireObjectTable" Value="false" />
<Attr Name="_queryClause" Value="false" />
<AttrArray Name="_srcAttributes">
<Item Value="com.photoswing.model.lab.LabEventType.PaperQualityId" />
</AttrArray>
<AttrArray Name="_dstAttributes">
<Item Value="com.photoswing.model.lab.PaperQuality.PaperQualityId" />
</AttrArray>
</DesignTime>
</EntityUsage>

I found the solution/problem.
The foreign key attributes of EntityB to EntityC and EntityD were not in the VO.
When creating a new row in JClient, in order to display automatically the attributes of a referenced entity when entering the foreign key attribute the following is required:
- the reference flag must be set
- the foreign key must be in the VO
- the primary key of the referenced Entity must be in the VO (automatically added by the VO editor).
My question:
When you shuffle an attribute of a referenced Entity the PK attributes are automatically added.
Why aren't the foreign key attributes automatically added?
Thanks
Frederic

Similar Messages

  • What is going on with POP email? I can NOT retrieve email unless...

    What is going on with POP email? I can NOT retrieve email unless*...I reboot AND reset!* I POP 3 Comcast emails and my own URL email. Never any problems on Entourage. Hourly issues with my new iPhone—and it's only been 4 days.
    This is *unbelievably frustrating* and negates why I got the dang thing in the first place.
    Does anyone have a work around? Is this a known bug (Apple) or am I missing something?
    +*Plus as a side note I think there are too many clicks into the In Box. Just a usability thing I wish I could set myself.+
    Message was edited by: sukibean

    I have the same problem intermittently... Every so often, the iPhone goes into a mode where email just doesn't work until i shut down and reboot... Then it works fine...
    Its not always the case, but I can't isolate the scenario which causes it to go into this weird mode...

  • Sales order create/change line item with reference to contract - Open quantity not getting deducted for copied line item from the contract

    Hi friends,
    Please provide some valuable inputs for the following scenario:
    When a sales order line item is created(VA01) or changed(VA02) with reference to a Contract the open quantity is deducted in the contract which is a standard functionality. If the referenced line item is copied (custom enhancement to copy line item), then for the copied line item the open quantity is not getting deducted instead ATP quantity i.e. Available-to-promise is deducted.
    Any inputs on how we can fix this functionality i.e. deduct the open quantity from the contract for the copied line item?
    P.S. : Custom enhancement to copy line item is working fine, but open quantity is not getting deducted if the copied line item was referenced to a contract.
    Thanks,
    Sandeep
    Message was edited by: sandeep

    Sandeep,
    Yes, that was my original interpretation.  I was having a hard time believing that someone would ask such a question. 
    I guess, then, that you already know that you will have to add this logic to your enhancement. You should create your specifications and hand them off to a developer; ideally the one who created this enhanced solution in the first place.
    I do not provide advice in these forums about details of enhanced solutions.  Perhaps one of the other members will be more willing to do your work for you.
    Best Regards,
    DB49

  • Service PO Commitment with reference to statistical IO is not get reduced.

    PO is created with Account assigned to Internal Order stastically and Cost center as real cost object. Wih PO creation we check commitment in system
    According to standard SAP, at creation of PO, system creates commitment & while doing GR/IR, system should reduce PO commitment and increase actual by that amount. Service PO is created for amount 239200 USD with Account Assigned Category K, Item category D, Account assigned to Cost Center & Statistical Orders (9 orders by approximate 11% ) So, initially there is commitment of 26000 USD on each service order. However from March 2009 onward business has done GR and IR for this PO approximate 50000 USD but nor commitment have reduced neither any commitment line item were posted in system.
    As a result of it, business actual budget is fully consumed by (Commitment + Actual) and while doing IR budget deficient errors is received.
    Here main problem is, non reduction of Service PO commitment while doing GR and IR.
    Tried below approch so far.
    CoAr / Order type Comitment acitive, Costcenter updates commitment and GL is valid on delivery date. Service PO order unit is JOB and commitment reduction is based on value match with PO details.
    In order to test really probelm is with Commitment updation or reporting. I checked COOI and COSP with reference to object no.
    but there is only one posting in line item of original PO amount and at total level there are two posting one is origiona one and seocind is with zero amount. but in both total line item for one of the peiod quantity is incomplete even after clicking Final Invoice.
    Even after final Invoice ticked thre is not commitment line item gets posted in system. Even I run RKANBU01 program.
    This is quite strange, if some one can give me other suggestion to proceed further.
    With Regards
    Nitin P.

    Hi Nitin,
    When in the purchasing document, the indicator goods receipt               
    non-valuated is NOT set, the commitments will take into account the        
    information from the GOODS RECEIPT booked against the purchasing           
    document in order to reduce the commitments. In this case                  
    the commitment can be reduced fully by setting the final delivery          
    indicator in the PO item (EKPO-ELIKZ).                                                                               
    When the indicator for non-valuated goods receipt is set, then system      
    will use the invoice information in order to reduce the commitments.       
    In this case EKPO-EREKZ can reduce the commitment to 0.                                                                               
    For positions that are using quantity-based commitments (Customizing ->    
    General settings -> Check unit of measurement), the commitments will be    
    reduced based on the quantity invoiced and not in the value. In transaction CUNI, the unit of measurements used at PO ITEM
    level must be set to value based commitment.                                                                               
    For the commitments reduction the base value used is always the local       
    amount. The commitments will be reduced according with the actual posted    
    amount in local currency and in order to reduce the committed value in      
    the foreign currency, system converts the actual amount in local            
    currency using the exchange rate from the purchasing document.         
    In transaction OKKP, the commitment management indicator must be  
    active for the given controlling area in the current fiscal year. 
    Cost centers: In transaction KS02, in register "Control", the 
    commitment update indicator must NOT be set.                                                                               
    Check also the attached notes carefully in order to solve           
    your problem:                                                                               
    735404    Delivery completed indicator, final entry sheet indicator         
    634298    FAQ: Commitment update in the service                             
    772206    Commitment Update in Service Purchase Orders                      
    639523    Commitments reduction behavior for Purchasing documents           
    534993    Short instructions RKANBU01                                       
    459509    FAQ: Commitments in purchasing                                    
    433597    Commitment update for services or invoicing plan                  
    339264    IR plan:commts reductn for invoicing plan (net doc)               
    303610    Invoicing plan: commitments only reduced for period               
    204376    Commitments - valuated GR with value-based commitmt               
    165823    Incompl.reduct.PO commts in Cash Mgmt/Forecast                    
    152571    Composite SAP note: Missing or incorrect commitments                                                                               
    Regards,
    Edit

  • Problems with PPTP VPN server authentication - Could not retrieve key agent account information

    Errr so far switching to a mac based server has been a mess. I have had it with permission issues!!
    Here is my latest problem. After rebuilding the server several times my VPN clients can't connect. Every other time it has been fine but for some reason its just not working. I did recreate the vpn from a back up. I am not sure if that has anything to do with it. Anyway below is the error I am getting. Anyone have any idea what is causing it? You have all already been so helpful. Thank you very much!
    DSAuth plugin: Could not retrieve key agent account information.
    DSAuth plugin: MPPE key required, but its retrieval failed.
    CHAP peer authentication failed for joel

    Thank you for your help John. Before I could even employ your suggestion the server crashed. I don't understand why I am constantly dealing with these issues. I cloned the install to a new HDD and then did a reinstall. That fixed VPN, so far so good. But talk to me next week, something else will happen I'm sure.

  • IW31 Service Order created with reference order,sold to party not populated

    Hello
    If one decides to create a new service order with IW31 but based on an old one using reference order field, not all data's are popullated to the new document:
    It works for some data's like :
    - operations
    - components
    It does not work for the following data's:
    - service order description
    - sold to party
    - main workcenter
    Does someone know if it is possible in the customizing to determine "copy rules"  in order popullating values from the reference document to the new?
    Is it a bug or a SAP standard behaviour?
    Kind regards
    Chris

    Hello,
    The behaviour you have described is correct - Description, partners, main work center are not copied from reference order. See note 197581.
    -Paul

  • I made backup to itune with my iphone 5 i could not retrieve my pictures and contacts where do i find the

    I made a backup of my iphone 5 in itunes, then I restored the backup all of a sudden I could not find my contacts or picture. I wonder where they have gone.
    Can anyone help. where could they be on my pc.

    Yeah everything is gone for good. The apps won't be a problem. You can just redownload them. For the music find a program that copies the music from the iphone to the computer. Then add the files to itunes ans sync.

  • Problem with BOM Quant while creating Sales order with reference using BAPI

    Dear All,
    I am facing problem with creating a slaes order with reference to other sales order by using BAPI_SALESORDER_CREATEFROMDAT2 .
    Sales order is getting created but
    1. It exploding the BOM means the line items which are not there in the reference SO also coming in the new SO ( all BOM items are coming )
    2. Schedule line for BOM header item is getting copied to all sub items of BOM.
    Can any one help me out to prevent the above deviations in creating Sales order with reference by using BAPI_SALESORDER_CREATEFROMDAT2.
    Note: while passing the parameters to BAPI_SALESORDER_CREATEFROMDAT2
    all the data related to items is exactly the same as in the original Sales Order.
    Thanks in advnace.
    Regards,
    John

    Hi All,
    Can any one help me !!!!!!!!!!
    please

  • Creation of Billing with reference to the Sales Order

    Dear Friends,
    I need your suggestion for the following scenario.
    Client wants to create the Billing Document with reference to the Sales order.I mean when he is entering sales Order while creating the billing document ,the system should generate the billing document only for the delivered quantity.
    e.g  sales order is created for 100 Tons.And there are 5 delivery documents for 50 Tons.(Still the Sales order is open).
    Now when billing document is created with reference to the sales order ( Not with reference to the Delivery Document) it should create the billing document only for these five deliveries.
    Is it possible? If yes,how?
    Thanks in advance.
    Regards,
    Shrikant

    Hi Murali,
    Currently client has software where he enters only  Sales Order no and their software creates the billing for the delivery document for this Sales Order.
    Here client does not want to enter multiple delivery document nos if any.He wants to enter only Sales Order no.
    Regards,
    Shrikant

  • Invoice verification with reference to material document

    Dear Experts;
    i want to make invoice verification (MIRO) with reference to good receipt document not the all quantity in the purchase order. is this possible ???

    Hi,
    Option - 1
    If you have done 3 separate GR's for the above qtys then if you do MIRO with reference to PO then 3 line items will appear with the respective qtys. You select the one you want & delete the rest.
    Option - 2
    Check whether you have entered any values in the delivery note field while doing GR. If yes then do MIRO with reference to Delivery note rather than PO so that qty in the GR material doc will flow to MIRO automatically.
    Thanks & Regards,

  • Is there any BAPI available for sales order creation with reference?

    Hi Experts,
    My requirement is to create sales order with reference for order type.
    Now my billing document number already contains the two items
    one is correct and another is zero quantity.
    I want to create order with reference of billing document but not with zero quantity item.
    Which BAPI I should use and what to pass to ignore zero quantity item?
    Regards,
    RH

    Hi Ronny,
    Try using BAPI_SALESORDER_CREATEFROMDAT2
    Regards,
    Shraddha

  • Outlook 2013 Free/Busy can not retrieve information

    Currently have a problem with Outlook 2013 Free/Busy can not retrieve information.
    All windows updates are installed. 
    Exchange 2007 is being used. 
    Problem started last week. 
    Already Tried without any progress:
    1) Recreated profile (Fixed the issue for 1 week)
    2) Cleanfreebusy ( No longer works for outlook 2013)
    3) /Cleanreminders 
    4) Removed latest updates for outlook 10/02( As requested by Microsoft support, however we found users without this update installed, suffering from the problem) 
    5) Repaired OST file 
    6) Repaired Office 2013 
    Can anyone help it would be much appreciated?

    Hi
    As per the information and details provided by you, Outlook 2013 free/busy cannot retrieve information, please follow these steps: -
    The user has never logged in
    Before any free/busy information is available, the user must have at least a calendar. A calendar will not be created until a user logs into their account.
    The option to publish at some location has been enabled in Calendar options
    In all Outlook versions, the option to publish free/busy information must be unchecked. By default, this option is already unchecked.
    This option is located under
    Tools > Options > Preferences > Calendar Options > Free/busy Options.
    Outlook is using cached browser information
    Outlook Free/busy user HTTP, and therefore borrows information cached by Internet Explorer. It is required to clear the offline cache. This is located under
    Tools > Internet Options > General. In the “Temporary Internet Files”  section, choose the
    “ Delete files” button.
    Internet Explorer settings is not correct
    AN Internet Explorer setting may prevent the .ics file from downloading via HTTPS. In Internet Exporer on the Outlook computer, go to
    Tools > Internet Options > Advanced. In the Security section, the checkbox for “Do not save encrypted pages to disk” should be unchecked.
    I hope this information will be helpful for you.
    Thanks and regards
    Shweta@G

  • Credit note from a credit memo with reference - Pricing

    Hi Gurus,
    I have created a Credit Memo (CR) with reference to an invoice (F2). The pricing procedure in the F2 is copied to CR, following the copy control defined. (what I expected).
    However, when creating the credit note (G2), the pricing procedure selected is the one defined for credit notes, and not the one in the credit memo. (I didn't expect this).
    I have this config. in the system:
    - XD03: Cust.Pricing Proced: "1"
    - VOV8: Docum.Pricing Proced: "P"
    - OVKK: for the combination of Sales ORgDCH"P"+"1" --> pricing procedure is ZPROAC  (this is pricing procedure for G2.
    The pricing procedure in the Credit Memo (CR) is ZNETO1.
    Copy control config is the following:
    - VTFA:  G2 - CR.
    Copy requirements at header level: 001
    At item cat. (G2N): copy requirement: 002 Item/order-related; Data VBRK/VBRP: 002 Ord-rel.credit memo
    Pricing type: G
    Could you provide any comments here?
    Thanks
    Julian

    Dear Julian,
    First of all Copy control does not controls the copying of pricing procedure from one doc to another.
    Pricing procedure will be same as per your pricing procedure determination.
    It controls the copying of values for particular condition types from one doc to another.
    I have created a Credit Memo (CR) with reference to an invoice (F2). The pricing procedure in the F2 is copied to CR, following the copy control defined. (what I expected).
    In this case I think Pricing procedure defined for both doc types F2 and CR is same, thats why all the pricing is copied as it is to CR.
    if they are not same but all the condition types which are there in pricing poc. of F2 are also in pricing proc. of CR then pricing values will be copied without any change. (Still sequence of condition types in pricing proc. can make diff.)
    pricing procedure is ZPROAC (this is pricing procedure for G2.
    The pricing procedure in the Credit Memo (CR) is ZNETO1
    Since the pricing procedure is different for both doc types, There could be some condition type which are there in ZNETO1 but not in ZPROAC.
    Which ever condition types are common will be copied.
    I will suggest you to keep pricing procedure same for both the doc types CR and G2.
    Or atleast all condition types of ZNETO1 should be there in ZPROAC in appropriate sequence. (ZPROAC can have addition condition types as per your requirement.)
    Regards
    Mayank

  • Mail Marked with Quick Flags (follow up) in Outlook, Tasks - TO-DO LIST - Not SYNCING

    This question goes for Outlook 2003 and Outlook 2007
    I'm currnetly using outlook 2007
    In Outlook I store mail marked with "quick flags" (follow-up). Outlook shows theses flagged emails under Tasks \ To-Do List. To-Do list is under TASKS in outlook, but does not sync with Blackberry.
    I use Desktop Manager 4.7 to synchronize outlook and my blackberry curve 8330 (calendar, memos, tasks and contacts). The behaviour of task synchronization makes that only task appears on my blackberry but not the flagged mails.
    I guess what i'm asking, is it possible to synchronize the complete outlook to-do list with my blackberry?

    Outlook already provides that feature (depends on the version of Outlook I guess) :
    https://www.officecalendar.com/news/2006April4_convert_emails_to_appts.aspx
    otherwise there is a macro that does the same :
    http://www.paraesthesia.com/archive/2007/07/10/convert-an-outlook-message-into-a-task.aspx
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

  • The Cluster Service function call 'ClusterResourceControl' failed with error code '1008(An attempt was made to reference a token that does not exist.)' while verifying the file path. Verify that your failover cluster is configured properly.

    I am experiencing this error with one of our cluster environment. Can anyone help me in this issue.
    The Cluster Service function call 'ClusterResourceControl' failed with error code '1008(An attempt was made to reference a token that does not exist.)' while verifying the file path. Verify that your failover cluster is configured properly.
    Thanks,
    Venu S.
    Venugopal S ----------------------------------------------------------- Please click the Mark as Answer button if a post solves your problem!

    Hi Venu S,
    Based on my research, you might encounter a known issue, please try the hotfix in this KB:
    http://support.microsoft.com/kb/928385
    Meanwhile since there is less information about this issue, before further investigation, please provide us the following information:
    The version of Windows Server you are using
    The result of SELECT @@VERSION
    The scenario when you get this error
    If anything is unclear, please let me know.
    Regards,
    Tom Li

Maybe you are looking for