Hgrid - Issue with an unusual scenario

Hi All,
I've a Hgrid component with two levels, one VO master and one VO details and a View Link that is created in runtime to join them. In my page, this Hgrid shows the results based on parameters from a search region (I'm not using query region since it doesn't fit with the requirements). Basically what I need now is to filter the details VO based on extra parameters passed in runtime. In order to meet this requirement I've tried to use createViewLinkBetweenViewObjects method as the example below:
am.createViewLinkBetweenViewObjects("AnalyticShipLnToAllocsGridVL",
"AnalyticAllocsGridVO",
voShipLineGrid, shipLnLinkAttrs,
voAllocsGrid, allocsLinkAttrs,
"ITEM_CODE = :1 AND ORGANIZATION_ID = " + pOrganizationId); // VL attribute plus extra criteria
I'm currently facing two issues with the above code:
1. My query is grouped by ITEM_CODE and consequently I'm not selecting the ORGANIZATION_ID attribute, even though it is defined in the View I'm selecting. After executing the application with the above code, the following error comes out:
Statement:
SELECT * FROM (SELECT component_type,
component_reference,
item_code,
SUM(estimated_amt) estimated_amt,
SUM(actual_amt) actual_amt
FROM inl_dashboard_overall_v
GROUP BY item_code, component_type, component_reference) QRSLT
WHERE ITEM_CODE = :1 AND ORGANIZATION_ID = 9246
Error: java.sql.SQLException: ORA-00904: "ORGANIZATION_ID": invalid identifier
2. To solve the first issue, I tried to use the VO method setNestedSelectForFullSql(false), but if I do so, the WHERE clause is built after the Group By and it results in a different error:
Statement:
SELECT component_type,
component_reference,
item_code,
SUM(estimated_amt) estimated_amt,
SUM(actual_amt) actual_amt
FROM inl_dashboard_overall_v
GROUP BY item_code, component_type, component_reference
WHERE ITEM_CODE = :1 AND ORGANIZATION_ID = 9246
Error: java.sql.SQLException: ORA-00933: SQL command not properly ended
Can anybody please help me on how to solve and deal with such scenario?
I'd appreciate any suggestion, idea or comments on this.
Thanks and Regards,
Eduardo

Hi Kumar,
Thanks for your answer but the "9246" in the organization_id is passed in runtime.. How can I handle this since this VO is the Detail in a View Link??
And If I do this:
SELECT component_type,
component_reference,
item_code,
SUM(estimated_amt) estimated_amt,
SUM(actual_amt) actual_amt
FROM inl_dashboard_overall_v
WHERE ITEM_CODE = :1 AND ORGANIZATION_ID = :2
GROUP BY item_code, component_type, component_reference
How can I use the View Link to set the binding parameter :2 ??
Thanks,
Eduardo

Similar Messages

  • Issue with Product Allocation Scenario

    I am Trying out Product Allocation in APO (SCM 5.0).
    Relevant setup in SPRO - Product Allocation Object, Group, Procedure, Sequence etc., Planning Object Structure, Planning Area, CVC generation, Connection between Planning Area and Product Allocation object in GATP, assignment in Location Product Master (at Customer Location) Product Allocation Procedure, Check mode, ATP Group has been done in APO.
    After entering data in appropriate keyfigures (Allocated Qty) it shows up under GATP>> Reporting >> Product Allocations >> Time Series per CVC
    Have carried out ATP Simulation to check that for a given product at Customer the Product Allocation against a Required Quantity takes place correctly.
    Now trying to carry out the Product Allocation check by creating a Sales Order in ECC. In that case during the material availability check screen in APO, the product allocation does not show up.
    I believe it is related to master data settings for the product in ECC. My questions are as follows:
    1. In ECC the product exists at the manufacturing plant only (and not at customer as in APO). There in MRP3 tab Strategy Group is maintained. Is this along with Availability Check field responsible for determining the check instruction (combination of check mode + business event) in APO for the Product Allocation check.
    2. If so (which I guess it is) I can see the check instruction picked up in APO while creation of sales order in ECC is different from the check instruction I ran simulation with. How can I ensure the same check instruction is chosen (in which case I believe the availability check result will be same as the ATP Simulation carried out in APO).
    3. In APO I ran simulation for the product at customer location (and maintained the required ATP settings in the product master). In case of Sales Order creation in ECC how does system pick up the Check Mode and Business Event for the product (having Sold-to as customer and Supply Plant as the plant code) and use it in APO.
    4. Any other setting/configuration that is missed causing this behaviour.
    I guess some of the questions is a bit hazy but I would appreciate if someone can outline the Product Allocation Scenario. I am trying out based on Building Block S59 Demand Planning for Product Allocation but of course it does not detail out enough.
    Disclaimer: My knowledge of GATP is almost nil but am exploring.
    Thanks,
    Somnath

    Hi Somnath,
    It will be a pleasure to help you out.
    Firstly I will list out all the steps which I can think of:
    (1) R3-You have moved all the ATP customizing from R3 to APO via ATP integration model.
    (2) APO- goto SPRO>APO>GATP>General Settings>Maintain Check Instructions
    Here go to Check Mode- 041 and Business Event- A and maintain the following settings manually in development and migrate it all the way to Production
    I am assuming here that you want to first do an allocation check and then availability check**
    Product Allocation: Change from NO CHECK to First Check
    Product Check: Change from First Check to Second Check
    This check mode and business event is the most common one which is triggered while placing a sales order
    See the following blog for DETERMINATION OF CHECK MODE
    http://solution-timezone-issue.blogspot.com/
    There might be other check modes( 030, 050) which might also require this change. However you can judge that while placing a sales order and when you go to the availability screen, You have the tab - SCOPE OF CHECK CONTROL where you can see the Check Mode + Business Event
    Following guidelines can be used to modify Check Instrctions after Customizing Import from R/3 –
    1.     Business Event A*  is Sales Order Entry (The main scope of GATP) so define check instructions for all check modes since it is not possible to identify the requirement class that may come over on an order. For Business Event A* if availability check was being done in R3, then define check instructions with Allocation as first step, then Availability check as second step. Else if no availablity check in R3 then define check instructions with no availability and no allocation checks.
    2.     Business Event B* is  normally for deliveries but is also required for Rush Sales Orders. An R/3 configuration showed that 041 is the only requirement class that will come across for this business event. Hence defined only for 041 check mode. For Business Event B* if availability check was being done in R3, then define check instructions with Allocation as first step, then Availability check as second step. Else if no availablity check in R3 then define check instructions with no availability and no allocation checks.
    3.     Business Event 03 required for Inventory Transaction availability check such as MB1C. For such transactions, the APO Product Master Check Mode is used. Hence check instructions for all Check Modes are maintained. For Business Event 03 if availability check was being done in R3, then define check instructions with Availability check as first step. Else if no availablity check in R3 then define check instructions with no availability checks.
    (3) Maintain the Product Alllocation Procedure:
    <b>a-</b> Create a Product Alloc Object -- Example: PAO-001
    In this step, we define the product allocations objects - product allocations are saved per object for a characteristics combination in the product allocation group.
      Product Allocation Procedures can be used to maintain different Product Allocation Objects for different time validity periods.
      Generally Product Allocation Objects are used to model the different ‘reasons’ for the need for allocation – material shortage, capacity constraint, etc.
    <b>b-</b> Product Alloc Group--PAO-1234
    A product allocation group defines a group of characteristics against which allocation checking is done.
       Creating a Product Allocation Group creates a characteristics directory in the APO database and an area in Live Cache where the key figures are maintained.
       If ‘Check Planning Area’ is set to No then allocation and incoming order quantitiy data can be seen in table /SAPAPO/QTTAB. If the ‘Check Planning Area’ is set to Yes then no data is stored in this table and the allocation check is done directly against the data in the Planning area.
       Detials of allocationconsumption by sales orders are maintained in table /SAPAPO/QTVB in APO and in QTVB in R/3.
      If ‘Check Planning Area’ is set to ‘Yes’ and if there are users are in the change mode in the Planning Book, Sales Order Entry can get locked out.
      If ‘Check Planning Area’ is initially set to yes and then deactivated later you will no longer see data in /SAPAPO/AC42.
    Settings:
    Check Planning Area – Yes. The reason being that users are not expected to lock planning books as they would be defaulted into the display mode (through a development object). Also most allocation uploads will be through batch jobs. Setting it to ‘Yes’ reduces one step of moving data between the planning area and the allocation group.
    Check Date - Material Availability Date. Consumption of allocation quantity and checking of available allocation quantities is determined by the check date.
    Time Bucket Profile – Week
    Characteristics – Product Allocation Object (1), Product (2), Plant(3), Customer(4)
    Consumption Period – Bwd Consumption 1  
    Meaning that first the order will consume from current week allocation and then go 1 week backward to consume.
    <b>c-</b> Product Allocation Procedure --- PAO-4567
    Step Sequence:
    <i>Step</i> -
    <i>Step Name-</i> -
    Prod Alloc Group -
    Wild card
    1                      First Step             PAO-1234                     9
    <i>Alloc Procudure</i> - PAO-4567
    <i>Prod Alloc Step</i> -1
    <i>Control</i>
    <i>Valid from -
    Valid to---- -
    Object -
    Active -
    Factor</i>
                            12/31/2037      PAO-001    Check the Box                  1
    <b>d-</b> Maintain Connection to Planning Area (APO) 
    In this step, we maintain the assignment of the planning area to the product allocation group. We must make this assignment because characteristics of the product allocation group have different names from the info objects of the planning area.
      All characteristics of a product allocation group must be assigned to an info object. But multiple info objects can be assigned to one info object. It is not always necessary to assign every info object to a characteristic. It is possible for aggregation and disaggregation (depending on the direction of transfer) to take place with info objects that are not assigned.
    <i>Product Alloc Group -
    Planning Area -
    Version -
    Time Buckets</i>
    PAO-1234                         xxxxx                     000             W
    <i>Characteristic</i>
    KONOB - Prod Alloc Obj
    MATNR --- Material
    WERK -
    Plant
    XXXXX---- Customer
    <i>Key Figures</i>
    Order Qty - AMENGE
    Alloc Qty - KCQTY
    <b>e-</b>  Check the Product Alloc Settings
    This is only a check- Everything should be green and OK .
    (4) You have planned the Characteristic Combination on which you want to do ALLOCATION.
    <b>Create a new POS-</b> Which has your chracateristics as PRODUCT, PLANT,CUSTOMER, Product Alloc Object ( 9AKONOB)
    <b>Planning Area,-</b> Key figures required are Alloc Qty, Order Qty( Sales Order Qty)
    <b>PLannig Book, Data View</b> which has the following characteristics- Product, PLant
    Assuming you are allocating at the following CVC level- Product, PLant,Customer
    Step 1:
    /n/sapapo/MC62-Create Time Series- Basicallly your CVCs -
    Example: Product 1234, Plant INDIA, CUstomer WALKART
    Step 2:
    Move Characteristic Values Combination to Allocation Group (APO) 
    /SAPAPO/ATPQ_PAREA_K
    INput :
    Planning Area: xxxx
    Prod Alloc Group: PAO-1234
    (5) In the INtegration MOdel - Activate the ATP CHECK Integration model for the Plant and material
    THis is the KEY which decides whether availability should be done in R3 or APO
    Material Active in the integration model -- Means Availability( GLOBAL AVAILABILITY: Prod Alloc+Prod Availability) is done in APO
    Material not active in the integration model --- Means Availability Check is done in R3
    (6) APO MASTER DATA SETTINGS:
    Material Master:  On the ATP Tab, Assign Loc Dep Procedure ( Prod Alloc Procedure)
    Location Master: Calendar Tab> Create a shipping time stream calendar
    Additional Info: Please contact your R3-SD people as this involves a lot of understanding and I have not listed all the details here.
    This config shown here is a very basic one which not even 25% of the companies might be using.
    If you have any questions on this part- please see my business card and email me**
    (7) SCHEDULING: This is a major task which determines the route and transit times for calculating the
    Material Availability date
    Goods Issue Date
    Delivery Date
    on the sales order line item- schedule line
    I dont know whether you need info on this**There are many ways of doing this
    a- Configurable Scheduling
    b- COndition records
    c- User Exit
    You can find documentation in SPRO or else let me know*
    For simplicity- Let me take the easiest to create and difficult to maintain master data- Condition Records
    Step1 --Define Field Catalog for Condition Table (APO) 
    /SAPCND/AU01
    Require Plant and Route defined here in the field catalog
    Step 2- Define Condition Table for Scheduling (APO) 
    /SAPCND/AU03
    Create a new table- 901
    901 -  Pick Time based on Route with key as Route
    902- Route Time based on route
    Step 3- Maintain Access for Scheduling (APO) 
    /SAPCND/AU07
    Take the important ones- PICK and TRAN
    I am assuming again as I dont know what kind of Scheduling is maintained on R3 Side. Mostly 80% companies have only two lead times- Pick and Route Transit time.**
    PICK- Select pick and click on accesses > <i>Acno</i>-10-- <i>Table</i>-901
             >> Then save it > and go in again
    Select PICK and click on Fields> A popup will appear > Enter the access sequence as PICK--- Enter the access as 10  and click on the GREEn ARROW and save it
    TRAN- Select TRAN and click on accesses > <i>Acno</i>-10-- <i>Table</i>-902
             >> Then save it > and go in again
    Select TRAN and click on Fields> A popup will appear > Enter the access sequence as TRAN--- Enter the access as 10  and click on the GREEn ARROW and save it
    Now coming to maintaining the Condition records in APO EASY ACCESS
    /SAPCND/AU11
    Create  SCheduling Step for PICK : Enter condition type- PICK
    <i>Enter Route</i>- USCAN --- <i>Duration</i> -24:00 (Hrs)
    Create  SCheduling Step for TRAN: Enter condition type- TRAN
    <i>Enter Route</i>- USCAN --- <i>Duration</i> -48:00 (Hrs)
    Now Let me answer your questions:
    (1) Question 1- <i>In ECC the product exists at the manufacturing plant only (and not at customer as in APO).</i>     
    I did not undertsand what you mean here. As we can create a Material at the following locations in APO( Dist Center(DC), Manu Plant(PL), Cusomter, Vendor, etc)
    For GATP all we need is the material at a PLant location
    STrategy Group on MRP3 tab: This is purely used for determining the CHECK MODE value on APO Product Master.
    When this is blank on R3, the check mode will be blank on APO.
    However SAP recommends Putting in a strategy group value on R3 Material Master
    or
    a default Check MOde value for all those Products who have blank check mode-   041 is the best value * This piece SAP hasnt recommended but I found that there is No harm in anyway and it is MANDATORYfor inventory transactions like GOODS ISSUE otherwise you will get a QUEUE in SYSFAIL **
    Even if this is blank this has no effect on the GLOBAL ATP as the Check mode for a SD transaction is determined as follows
    98% of the SD transactions will generate a CHeck mode of 041 and Business Event- A ***
    Through the item category and the MRP type in the MRP view
    The item category is derived from the item category group in the Sales view of the material master record and from the order type of the sales document. Together with the MRP type in the MRP view of the material master record, the item category determines what requirements type is selected. The advantage of this method is that the selection of the requirements type depends on the business process (such as quotation, sales order, or repair).
    (2) Question 2 - I guess now you must have understood why when you do a simulation in APO, it is taking the Check mode from APO product Master
    and when you do a ATP Check from R3, the check mode(041) is different
    You dont need to ensure that they are the same- It doesnt matter in anyway.
    (3) Question 3- <i>In APO I ran simulation for the product at customer location (and maintained the required ATP settings in the product master).</i>I
    When you run ATP simulation- AC04, you generally run it for the plant as that is the supplying location and not the customer.
    <i>In case of Sales Order creation in ECC how does system pick up the Check Mode and Business Event for the product (having Sold-to as customer and Supply Plant as the plant code) and use it in APO.</i>
    PLease look above for this answer.
    (4) Question 4 - <i>Any other setting/configuration that is missed causing this behaviour.</i>
    To my best knowledge, whatever I could remember I have listed out. However there are some more steps which might be needed.
    Follow all the steps as I have mentioned and whenever you get struck somewhere, shoot me a message and I will help you.
    ONe more pointer here to what you have mentioned
    Relevant setup in SPRO - Product Allocation Object, Group, Procedure, Sequence etc., Planning Object Structure, Planning Area, CVC generation, Connection between Planning Area and Product Allocation object in GATP, assignment in Location Product Master (at Customer Location) Product Allocation Procedure, Check mode, ATP Group has been done in APO.
    After entering data in appropriate keyfigures (Allocated Qty) it shows up under GATP>> Reporting >> Product Allocations >> Time Series per CVC
    <u><i>Have carried out ATP Simulation to check that for a given product at Customer the Product Allocation against a Required Quantity takes place correctly.</i></u>
    Somnath, I believe you might have a wrong picture here. The concept of allocation is  Controlling Supply against huge Demand which is in this case coming from SALES ORDER
    When you place a sales order, the supplying location is your plant and that is where you would like to put in allocation quantities
    Say for example for a material 12345 - You have stock of 100 Qty in Plant KING fo this week and it shows as follows in the planning book
    Customers say are WALKART, GE-FUG, MACROGUN
    The CVCs which we have to create are as follows
    Similar to Demand PLanning**
    Material 12345 -PLant KING-Cust WALKART-Prod Alloc Obj
    Material 12345 -PLant KING-Cust GE-FUG-Prod Alloc Obj
    Material 12345 -PLant KING-Cust MACROGUN-Prod Alloc Obj
    And this is how it appears in the planing book when you go into DETAILS ALL
    You basically enter the Allocation Quantities just as how you enter forecast quantities in DP Book*
                            Wk1   |  WK2     WK3   WK4  WK5
    Alloc Qty                     |
    Material 12345                |
    Plant KING                    |
    Cust WALKART            50    |
    Cust GE-FUG             30    |
    Cust MACROGUN           20    |
    Incoming Order Qty               |
    Material 12345                   |
    Plant KING                       |
    Cust WALKART           <u>50</u>|
    Cust GE-FUG            <u>25</u> |
    Cust MACROGUN          <u>20</u> |
    <u>50</u> : Say the Cust WALKART has ordered 250 for this week, however only the allocated quantity -50 will be confirmed for him and the remaining 200 qty will be confirme at a later week when he is given the allocated amount.
    <u>25</u> :Similarily say this customer GE-FUG has ordered 20 qty. So his remaining allocation is basically 5 which cannot be used by any other customer.
    <u>20</u> : Say this customer MACROGUN has ordered exactly the allocated amount of 20. So his remaining allocation will be 0.
    This is the basic idea of how Allocation Concept is used in GATP.
    Ofcourse you can add the other functionalities like
    Rules Based ATP(LOcation Substitution, Product Substitution)
    Multi ATP( BOM-COmponents)
    Check Aginst Forecast
    Etc Etc
    Like any other module of SAP- this module has much to offer which unfortunately I cannot list here**
    GOOD LUCK and let me know If you need additional help.
    Regards
    KUMAR AYYAGARI
    Message was edited by:
            Kumar P Ayyagari

  • OATS - 12.1.0.1.0361 Issue with running a  scenario

    Hi,
    I am doing a comparison of Hits/sec and cpu usage for a scenario with OATS and LR.
    I have remote load generator and app server.
    With OATS, i am getting almost half the hits/sec and cpu as compared to lr.
    Till now what i have noticed is that the time for the transaction in OATS is higher than that of LR. But the transaction contains one single URL only. So am not sure what is causing this increase.
    I have checked the server response content size and it is same in OATS and LR.
    Logging and think time are disabled.
    I would like some help with this issue.
    Thanks

    this thread is closed

  • Issue with importing MDM scenario ID modal from IR standard content.

    Hi All,
    I am facing issue while importing scenario from Intergration repository for the MDM standard content ( SRM_MDM_Catalog_701 ).
    I am able to import contnent into IR, and imported ES Reporsitry modal from ID and configured using model configurater and genarated. But i am unable to find any objects in the scenario after activation.
    Can you please help me to find why there are no objects genarated in my scenario. After genaration its showed in the log that 40 objects genarated but its not in the scenario.
    Thanks in advance.
    Regards,
    Rajesh

    Hi,
    I have a similar issue. The generation does complete fine but the objects dont appear. I have used Generation and not the simulation option.
    When i click on the individual objects like Receiver Determination, Interface Determination, it just shows Loading and never comes up.
    Is there anyway to check if the objects were actually generated?
    Thanks,
    Nikhil

  • Issue With IT0057 - Memberships fees

    Hello,
    Issue with
    Problem Description:
    Scenario is that
    we need to maintain the infotype IT0057 and subtype for one pernr for  particular date and
    for other date the infotype and subtype should be deleted.
    As we have maintained the subtype for IT0057,
    in Screen modification the field is q0007-BETRG for Country Grouping 16 is hide,
    When iam trying to delete an infotype along with subtype,
    Iam geting the error message ,"enter Amount or Number", the infotype is not getting deleted.
    Kindly help me in advance so that i will useful for me
    plz do the needful
    Regards
    Sowmya

    Hello Experts ,
    Can anybody plz provide the necessary solution as running short of time or anybody can elborate how can i make changes for this.
    Regards

  • Duplication Issues with Photo Sync via iTunes/iPhoto and Photo Stream/iCloud (Detailed Scenario Given)

    Hi Everyone,
    I'd like to share an issue I am having with photo syncing between my iDevices.
    Here is how I USED to sync my Photos between my iDevices (no issues with photo duplication)
    Note: In this scenario, I use iTunes and iPhoto on my Mac. iCloud and Photo stream have NOT been activated in this case.
    1. Take photos via iPhone that saves in Camera Roll
    2. After a month or so, I will connect my iPhone to my Mac.
    3. Import my Photos in iPhoto and arrange  Events and Photos in monthly sections and add some of them in a separate Albums (ex. Written Notes Photos) for easy access.
    4. Once the import is done, iPhoto prompts an option to delete photos in my Camera Roll which I do as I like to start a fresh month with empty Camera Roll in my iPhone.
    5. In order to access the Photos I have imported in iPhoto in my iPhone, I go to iTunes and sync all my photos to my iPhone. This syncs my events, photos, faces, albums as they have been arranged in iPhoto in my Mac. (I cant delete them in my iPhone once they are synced. I have to delete in my iPhoto and sync again to have similar setup in my iPhone which isn't a problem).
    NOW I decided I don't want to manually go through all this process and went on to enable the Photo Stream ON in my iPhone and iPhoto with iCloud.
    THIS IS WHERE THE PROBLEM ENSUES.
    1. I  Take photos with my iPhone that saves in Camera Roll
    2. This automatically syncs with my Mac due to Photo Stream which a really convenient.
    3. It syncs automatically to Photo Stream, Events, Photos, Faces section in the iPhoto and I put put some of them (notes) in a separate album.
    THE PROBLEM:
    The Photos does not show up in the Album, Events and Photos Folder in my iPhone. They are only shown in Camera Roll. So I thought to sync using iTunes so the new Photos will be arranged in their appropriate folder like it used to with my prior process of syncing. This worked, HOWEVER the photos in my iPhone started showing DUPLICATES! Apparently, one comes from Photo Stream (which, if I delete on my phone also deletes in all my iDevices) and the other duplicate is from the iTunes sync (this sets up my photos as arranged in iPhoto which is what i WANT to happen as Photo Stream does not sync them accordingly).
    SOLUTION I AM IN SEARCH FOR:
    I want to be able to take photos with my iPhone that automatically syncs in iCloud AND iPHOTO AS ARRANGED IN MY MAC (Albums, Events etc) WITHOUT PROBLEM OF PHOTO DUPLICATES.

    Other folks have resolved similar issues by trashing  the iPod Photo Cache.
    Regards
    TD

  • Part 2: Flat files and Business Contents: Any issues with this scenario?

    I will appreciate some clarification on the some points made in response to my previous post "Flat files and Business Contents: Any issues with this scenario?"
    1.
    " ...you’d better analyze those cubes for data redundancy and presence of data you’ll never use. " I will appreciate some clarification on the type of analysis you are referring to. Examples will help.
    2.
    "If you want to combine several found IOs in your custom dataprovider, then again you must know (or figure out) relationships between these IOs." I will appreciate some clarification on the type of relationship you are referring to. Examples will help.
    3.
    I am a bit confused with "..include into ODS structure ALL fields required for the cube" but you also noted noted that "...except navigational attributes and chars and KFs that are going to be determined in TRs or URs."
    If you exclude ALL these, haven't you excluded all the fields you included in the ODS structure?
    4.
    "Consider carefully the ODS’ key fields selection. Their combination should not allow data aggregation that you don’t need."
    I may be missing the point here, I understand that you need to select the fields which will form the unique ID for the records in the ODS under the Key Field (please correct me if I am wrong with the purpose of the Key Field), but I don't understand the discussion of "aggregation" in the context.
    Thanks in advance

    Hallo
    I try to give some exaplanation based on the previous answer.
    1. Data redundancy - make sure you do not store the same information. does not make sense to have data redundanty across you Data Warehouse. this is also a cost. just sotre the same information one time if you get all what you need.
    2. whatwhever you build you dp, which consist of IO, you need to know with kind of relation (1:1 or 1:n - n:n and so on) exist between them. that will help you when you model you infoprovider. For example I would never pit togheter IO (n:m) in the same dimension if you expect an high number of cardinality. Sometime an IO can be an attribute of another one (depend on relation. For example
    Business Partner and his Address. Usually you have a relation 1:1, in this case address is an attribute of BParten and store it in the Masterdata instead then DP
    3. Sometime when you load from ODS to CUBE, you can fill some IO (which are in the infocube and not in the ODS)through ABAP routine in TR-Start Routine of Update Rule. Does not make sense to include these IO in the ODS as they are NULL or Blank (the deault value). This can happen when for example, you first load in the ODS (Price and Quantity) and then you calculate Sell price later (Price * Quantity). of course it could be doen also in the Bex. Depends on other factors (Performance - Loaidng -Sizing)
    4. Make sure that the KEY definition of ODS is accordingly to the data otherwise you will aggregate the data and later maybe if you need the detail you miss it.
    for example: customer - product - Distr Chan - Sell Price
    if each Customer can buy each product for any Distrution Channel, then when you build your ODS(Customer - Product and Distribution must be KEY) otherwise (if you have only Customer - Product KEY for example) you will lose the details for Distribution Channel.
    I hope eveyrhting is clear
    Regards
    Mike

  • Issue with Receiver SOAP adapter for synchronous scenario

    Hello All,
    We are facing a strange issue with the SOAP adapter in the interface we have setup. This is the 1st time we are using SOAP adapter in our system (PI 7.11 SP7). We are making a synchronous HTTP call to the web service exposed by another system in our landscape. The payload is send with SOAP envelope and there are no credentials to be maintained in PI settings.
    The issue is that we are always getting timeout exception in PI audit logs after sending the request (3 minutes - standard timeout value, no additional config for this). But target system has confirmed that they are sending the response back. We tested from our server OS level and have received the response back in the same screen (to verify there is no firewall/port issue in between the systems). But when tried from RWB, it is always giving the timeout exception and we are not able to see any other log.
    We have tried checking in the NWA logs as well after increasing the logging level to ALL for com.sap.aii.adapter.soap. But surprisingly, we didn't get any logs at all for the outgoing SOAP call or incoming response and hence we are unable to trace the issue.
    We have setup another synchronous inbound SOAP interface (PI exposing the webservice) and it is working fine. We are also able to trace the logs in both audit log and NWA logs.
    Is there anywhere else we can check for the logs? Audit logs is showing timeout error and we are not able to see anything in NWA logs.
    Does the target system need to maintain PI credentials in the header when they send the synchronous response back?
    Are there any specific settings which should be checked to enable the sync communication? (this should not be the case since the inbound interface is working fine)
    Please help.
    Thanks
    Justin

    Hi Amit,
    Thanks for the reply.
    Yes we had tested successfully via SOAP UI as well (forgot to mention that). We are getting back the expected response in SOAP UI without using any credentials. We got the same response when we tested it through OS commands from PI server.
    The WS is hosted by the target system and they haven't maintained any credentials at their end. So when PI is trying to access, we don't need to provide any credentials. My question is, whether the target system should keep any credentials to send the synchronous response back to PI (java stack). We have tried that as well but since there aren't any logs, we are unable to verify whether the credentials are coming correctly.
    The service interfaces are correct and PI configuration are OK. I will try the XPI inspector for logs as you have suggested.
    Thanks
    Justin

  • Issues with Advance Table Add Row New Row not work in some scenarios.

    Hi,
    Wondering if there's any issue with Advanced Tables where it does not create any rows. I don't know if anyone tried this or not. I have one OA Page with Advanced Table and a button that when clicked open a new OA Page in a POP-UP Window. The pop-up page conatins one textbox where u enter a data and this gets saved in one of the VO's transient attribute. Now on the ase page if you don't click a button to open a pop-up page you can Add New Rows in the Advanced Table by clicking Add Row Button. But as soon as you open a popup window and close it Add New Rows button doesn't work and is not creating any new rows. Basically page stops working. Both the POP-UP and the base page share the same AM but have different controllers.
    POP-UP page is a custom page that I open giving the Destination URI value in the button item and target frame _blank.
    I even tried creating rows programmatically for Advance Table but this too doesn't work once u open a pop-up. Also I have used pageContext.putTransactionValue in the pop-up page and am checking and removing this in the base page.
    Any help is appreciated.
    Thanks

    anyone

  • Smartform issue with page break

    Hi All,
             I have an unusual issue with page break. Here is my scenario, I have a group of items in my table main area and for each group there is sort of header that prints. Similarly there are multiple groups needing a header whenever there is a new group printing. So far it prints fine. But whenever there is a page break and when items from the same group also print on the next page the same header needs to print on the top of next page similar to how the header area repeats on each page. Unfortunately I did not see any page break event for table main area.
    Here is an alternative I have tried but having issues: I have created two rows for this group header one printing from header and another printing from main area. Whenever there is a page break the same group header prints as part of the header and on the rest of the page it prints from the main area. But in a particular scenario, there is a new group starting at almost bottom of the page but as there is not enough space left on the same page (page protection) jumps to next page. In this case there are two group headers printed one coming from the preivous page main area and another coming from the next page header. I hope my explanation is clear enough to understand.
    Please suggest if there is any basic feature of smartform that I have missed out can solve this issue or if there is another alternative you can think of. I appreciate your responses.
    Thanks..

    I was able to solve this issue on my own.
    Instead of checking for a page break on header line I am using a flag that is prepopulated in the table. I set this flag whenver a new group of items starts. If the flag is set I print it from the main area and if it is not set I print it from the header. This helped in avoiding the multiple header lines..

  • Issue with opening and closing 13 inch MBP

    I recently received a 13 inch 8gb memory Macbook pro for educational purposes. Although I believe it is overall a great product, I have noticed an issue pertaining to opening and closing the device. Occasionally when I attempt to open the device, I notice that the black mechanism which attaches the display and keyboard together fails, or locks up in an unusual manner which prevents me from opening the device fully. This causes me to have to close the device, and open it once more. Although it doesn't appear to be a huge issue, I was wondering if this should be something of concern, or something that is common and is nothing to be worried about.

    Although this isn't something that I've personally seen before, I probably wouldn't be too concerned if it doesn't look like anything is actually broken - assuming that it didn't cause issues with using the device, that is.
    What might be a good idea, though, is if you have a few minutes and have an ARS nearby, is to make a Genius Bar appointment and let Apple take a quick look at it. It looks like some piece of mind is all you want, and given the scenario, having someone physically able to see/feel the issue is probably your best bet. The appointments are 15 minutes, and free of charge. You can make an appointment here.
    Regards,
    Gnomish8

  • BW 3.5 - Issue with formula variable with replacement path

    Dear experts,
    I'm facing an issue with formula variable with replacement path.
    Just to clarify, I know replacement paths is raising a lot of questions but I've been using this functionnality extensively in the past, both in 7.0 and 3.5, so I'm not looking for basic information about how to use it.
    I'm trying to setup a simple report that would show total values per plant of Purchase Order < 100 €
    To do so I've setup a calculated key figure as follow:
    VAR1 * ("PO value" < 100 ) * "PO value"
    VAR1 is a formula variable with replacement path on 'purchase order' and value attribute 'constant =1'.
    (The report has to show values summarized by plant but should not show the detail PO by PO, so I'm not looking at a solution based on condition)
    The report as characteristic "plant" in rows and my CKF in columns.
    Now let's take an example. I have 3 POs in Plant 1:
    PO1 -> 150€
    PO2 -> 90€
    PO3 -> 80€
    Because of the variable with replacement path, the result in my query should be:
    plant1 = 170 (even though characteristic "purchase order" is not in my rows, system should evaluate PO one by one and return values only for those two that are below 100).
    But the result coming is 320, which is wrong.
    I've done the same report on many other 3.5 systems and it worked perfectly, and I am not able to get proper support from SAP OSS who keep saying that this functionnality is not ready in 3.5 (although I've provided screenshot of this working on another 3.5 system!!! how frustrating...)
    They have also pointed to problems of Before and After aggregation but that has absolutely no impact. Once again, the scenario is working perfectly on other 3.5 systems with the same query design, so i'm sure it has nothing to do with Query Designer options.
    Would anyone have ever come to an equivalenet problem? I'm wondering whether the DB itself could not play a role in the variable with ref  characteristic 'constant =1' ...
    Any though is welcome!
    thanks

    Hi,
    The text variable is replaced when the exact date is clear for this key figure column according to the restriction.
    To achive this, please make sure that either the variable is directly restricted in the key figure selection, or that the date characteristic is in drilldown.
    Regards,
    Patricia

  • EXCEPTION_ACCESS_VIOLATION issue with regard to OpenGL

    EXCEPTION_ACCESS_VIOLATION issue with OpenGL occurring with the Java SE Runtime Environment 6u17 on Windows 7, 32 & 64 bit platforms.   Version 6u24 and later does not produce the crash. However, we cannot use any other version of JRE other than 6u17 due to customer constraints. The two primary scenarios where crash  (jvm exits) occurs are: 1) toggling between two applications then selecting an image item on screen ( OpenGL rendering takes place)... (Log file: hs_err_pid6568_C2_TC_error.log). Scenario 2: When panning an image (OpenGL rendering takes place) and then clicking a button to load additional image data (OpenGL rendering takes place), crash occurs (Log file: hs_err_pid6036_ENR_TERRAIN_crash.log)
    Is there any Oracle documentation noting any JRE fixes between 6u17 and 6u24 that might at least mitigate the issue(s) described above? Or information with regard to issues between JRE's and OpenGL ? Also, if anyone can advise on code mods, etc that we can try toward said mitigation efforts of course would be helpful.
    The following snippet hopefully should suffice as general example for both noted issues:
    Log snippet ( hs_err_pid6568_C2_TC_error.log):
    # A fatal error has been detected by the Java Runtime Environment:
    #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6ec158d6, pid=6568, tid=7176
    # JRE version: 6.0_17-b04
    # Java VM: Java HotSpot(TM) Client VM (14.3-b01 mixed mode windows-x86 )
    # Problematic frame:
    # C  [GLU32.dll+0x58d6]
    # If you would like to submit a bug report, please visit:
    #   http://java.sun.com/webapps/bugreport/crash.jsp
    # The crash happened outside the Java Virtual Machine in native code.
    # See problematic frame for where to report the bug.
    ---------------  T H R E A D  ---------------
    Current thread (0x4d996000):  JavaThread "pool-6-thread-1" [_thread_in_native, id=7176, stack(0x502b0000,0x50300000)]
    siginfo: ExceptionCode=0xc0000005, reading address 0x00000028
    Registers:
    EAX=0x00179ca0, EBX=0x00179ce8, ECX=0x00179ca0, EDX=0x5691e9a0
    ESP=0x502ff4ac, EBP=0x502ff4cc, ESI=0x00000000, EDI=0x00179ca0
    EIP=0x6ec158d6, EFLAGS=0x00010246
    Top of Stack: (sp=0x502ff4ac)
    0x502ff4ac:   6ec13548 001833f8 0018e060 0018e018
    0x502ff4bc:   00179ca0 00000000 00000018 502ff4f0
    0x502ff4cc:   502ff4f0 6ec165a8 001a5038 0018e048
    0x502ff4dc:   0018e018 001cd728 6ec147d7 001cd728
    0x502ff4ec:   001a5038 502ff514 6ec14925 2e5096af
    0x502ff4fc:   5f338d35 5038bf30 001a5038 001a5038
    0x502ff50c:   02e177c2 0016b930 502ff534 6ec12c65
    0x502ff51c:   001a5038 5038bf30 0000001d 001a5038
    Instructions: (pc=0x6ec158d6)
    0x6ec158c6:   30 dc 61 30 eb e7 dd db dd d9 dd d8 c3 dd 41 28
    0x6ec158d6:   dc 66 28 dd 42 28 dc 61 28 d9 c0 d8 c2 d9 ee d8
    Stack: [0x502b0000,0x50300000],  sp=0x502ff4ac,  free space=317k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    C  [GLU32.dll+0x58d6]
    C  [GLU32.dll+0x65a8]
    C  [GLU32.dll+0x4925]
    C  [GLU32.dll+0x2c65]
    C  [pep_gx.dll+0x3dc8]
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    j  com.cimmeria.efb.crom.tc.cmn.jni.ChartRendererNative.nativeGetRenderedChart(Lcom/cimmeria/efb/crom/common/utility/ILogUtility;Lcom/cimmeria/efb/crom/common/jni/JNIErrorInfo;Lcom/cimmeria/efb/crom/tc/cmn/jni/IChartImageProxy;IFZI)V+0
    j  com.cimmeria.efb.crom.tc.cmn.jni.ChartRendererNative$RenderCallable.call_aroundBody2(Lcom/cimmeria/efb/crom/tc/cmn/jni/ChartRendererNative$RenderCallable;Lorg/aspectj/lang/JoinPoint;)Ljava/lang/Object;+51
    j  com.cimmeria.efb.crom.tc.cmn.jni.ChartRendererNative$RenderCallable.call_aroundBody3$advice(Lcom/cimmeria/efb/crom/tc/cmn/jni/ChartRendererNative$RenderCallable;Lorg/aspectj/lang/JoinPoint;Lcom/cimmeria/efb/crom/tc/cmn/aop/RuntimeExceptionAndErrorMonitorAspect;Lorg/aspectj/runtime/internal/AroundClosure;Lorg/aspectj/lang/JoinPoint;)Ljava/lang/Object;+14
    j  com.cimmeria.efb.crom.tc.cmn.jni.ChartRendererNative$RenderCallable.call()Ljava/lang/Object;+34
    j  java.util.concurrent.FutureTask$Sync.innerRun()V+30
    j  java.util.concurrent.FutureTask.run()V+4
    J  java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Ljava/lang/Runnable;)V
    j  java.util.concurrent.ThreadPoolExecutor$Worker.run()V+28
    j  java.lang.Thread.run()V+11
    v  ~StubRoutines::call_stub

    There are some other solutions possible.
    1. Get another driver. The only one known is java only so it wont crash. But is not not free.
    2. Use a proxy driver. That means that another app actually does the database work. If it crashes you just start it again (which you can do in your main code.) That way it won't take down your server. There are commercial jdbc drivers that claim MS Access but are are really just proxy implementations as an option in this area.

  • Design issue with the multiprovider

    Design issue with the multiprovider :
    I have the following problem when using my multiprovider.
    The data flow is like this. I have the info-objects IobjectA, IobjectB, IobjectCin my Cube.(Source for this data is s-systemA)
    And from another s-system I am also loading the masterdata for IobjectA
    Now I have created the multiprovider based on the cube and IobjectA.
    However, surprisingly join in not workign in multiprovider correctly.
    Scenario :
    Record from the Cube.
    IObjectA= 1AAA
    IObjectB = 2BBB
    IObjectC = 3CCC
    Records from IobjectA =1AAA.
    I expect the record should be like this :
    IObjectA : IObjectB: IObjectC
    1AAA       :2BBB       :3CCC
    However, I am getting the record like this:
    IObjectA : IObjectB: IObjectC
    1AAA       :2BBB       :3CCC
    1AAA         : #             :#
    In the Identification section I have selected both the entries for IobjectA still I am getting this error.
    My BW Version is 3.0B and the SP is 31.
    Thanks in advance for your suggestion.

    May be I was not clear enough in my first explanation, Let me try again to explain my scenario:
    My Expectation from Multi Provider is :
    IObjectA
    1AAA
    (From InfoObject)
    Union
    IObjectA     IObjectB     IObjectC
    1AAA     2BBB     3CCC
    (From Cube)
    The record in the multiprovider should be :
    IObjectA     IObjectB     IObjectC
    1AAA     2BBB     3CCC
    Because, this is what the Union says .. and the Definition of the multiprovider also says the same thing :
    http://help.sap.com/saphelp_bw30b/helpdata/EN/ad/6b023b6069d22ee10000000a11402f/frameset.htm
    Do you still think this is how the behaviour of the multiprovider.. if that is the case what would be the purpose of having an infoobject in the multiprovider.
    Thank you very much in advance for your responses.
    Best Regards.,
    Praveen.

  • Performance Issues with Debugging even in Display Mode

    Hi not certain if this would sit in Security, ABAP or Basis, but lets start here as it is security related.
    S_DEVELOP with any activity on DEBUG on a production system is a concern, but what are the performance related issues when a super user has to go into debug in display only on a production system because of a really complex issue?
    I've heard in the past of a scenario where system performance was impacted, and we have notes around the allocation of S_DEVELOP display DEBUG access to this point. (I've summarised these below)
    The risk with debug is associated with the length of time that the actual debugging process is being performed.
    u2022     Work processes are dedicated solely to the users for the duration of the debug. If these are being performed for a long time, these can cause issues with not enough work processes being available.
    u2022     It can cause DB2 locks. If the debug session last awhile, DB2 locks are not released. This impacts the availability of tablespaces, thus, affecting various transactions running across the system.
    Even with these concerns, security will often get asked for debug display access.
    As security is about risk identification, assessment and then controlled access what do other organisations do?
    Options (not exhaustive) are "No Debug ever" or "Debug display only via a fire fight or super user on a time limited basis".
    We are currently in the "debug display only via fire fight" camp, but would like to canvas opinion on this.
    As one of the concepts of security is Availability of data (and to an extent ensuring the systems are up and running) do the performance risks push the security function to the "No Debug Ever" stance.

    If you need to debug in production, then 9 times out of 10 you need to do root-cause analysis: The developer is the problem.
    Writing sloppy code and not testing properly should not be an excuse for debugging in production.
    But of course, there are exceptions even when you do try to keep them to a minimum.
    To add to Jurjen's comments, also note that the debugger only has a limited capability of doing a rollback. So you can quite easily and unintentionally create inconsistencies in the system - also in display mode - which is an integrity problem, and typically more critical than availability problems or even potential confidentiality concerns.
    Cheers,
    Julius
    Edited by: Julius Bussche on May 15, 2009 10:50 AM

Maybe you are looking for