Manual creation of BI Query

Sorry for dumb question, but how can I create presentation manually, without interactive Query Builder, without designing stage etc?
At the fact, I has (know) a cube, dimensions to show and wish to produce a "one-click" function: user clicks menu item and sees unified presentation based on module which had been selected.
Sure, a can pre-design a presentation for any of listed modules, but it's a dirty hack :-)

I tried to use this method, but failed at the second line -
QueryManager m_QueryManager = new QueryManager ();
m_QueryManager.setMetadataManager (m_metadataMgr);
due to NullPointerException - maybe metadata manager initialization was not complete. Then I tried to do this:
MDMeasure[] Measures = Folder.getMeasures();
String[] MeasureNames = new String [Measures.length];
for (int i = 0; i < Measures.length; i++)
MeasureNames[i] = Measures.getName();
Query Source = std.AQueryManager.createQuery();
// ^^^^^^^^^^^^^^^^^
// This is a BISession.getManagerFactory().lookupManager
// (QUERY_MANAGER)
Source.setMeasures (MeasureNames);
but setMeasures raised the 'invalid measure' exception.

Similar Messages

  • Is BDC's CALL TRANSACTION 'VA01' is not equals to ONLINE(manual) creation?

    Hi Experts,
    Ours is IS-Oil.
    If the user do not enters/inputs OIC_MOT (Mode Of Transport) at ITEM level on the External Details popup, SAP will get it from Customar Master-KNA1 and populates on it, because its a mandatory field (OIC_MOT), but, do not throws an Error message and interupts the sales order creation process.
    We have a inbound IDOC posting function module for sales order (VA01), which posts the sales oreders by using BDC (CALL TRANSACTION 'VA01') in the system. In this function module, we are not populating the OIC_MOT field contained segment by hoping SAP will populate/default it while it hits CALL TRANSACTION 'VA01' of my BDC of my FM of IB IDOC. But, SAP is not defaulting/populating and throwing error message (saying 'OIC_MOT field is a mandatory input field' data is missing) and IDOC is failing, pls. let me know Wht its so? is the BDC's CALL TRANSACTION 'VA01' is not equals to ONLINE (manual ) creation of sales order?
    Thank you

    Hi
    Several transactions can ba a different behavior between online and bdc process, but if you simulate the trx by SM35 you should find out these gaps
    I don't know OIL vertical, but the main transactions have a bapi can be used insted of BDC program (BAPI_SALESORDER_CREATEFROMDAT2, but perhaps there's a particular BAPI for OIL).
    Max

  • Manual creation of planned order in REM

    Hi, 
    Can we manually create a planned order in repetitive manufacturing? I know that in case we run MRP , then planned order for finished is created with order type 'PE' due to which it cannot be converted to production order.
    I dont want to run MRP , still can i create a planned order manually with the same order type 'PE' ? I tried in MD11, but not getting option to chose PE as it is not available  in F4 of planned order profile.
    Please help..
    Regards.

    Dear,
    You cannot create a planned order with PE order type manually, because a planned order of REM related material gets order type "PE" only when it is assigned with a Production Version.
    So achieve manual creation of REM Planned order with PE type with the following options,
    I - Using MD11 transaction create a planned order with LA type and assign a suitable REM related Production version to the planned order during creation itself, now this order would automatically become "PE" order type on saving the order.
    2. In the planning table using MF50, you can directly create a planned order for a production line using F7 key.
    Regards,
    Prasobh

  • Check on Manual creation of PM order

    Hi,
         I have a business requirement that the manual creation of a particular order type should be stopped i.e. when i am going to create that order type through IW31 or the generation of that order type even through a notification should not be possible.The  system should not allow that.Pls. reply.
    Edited by: ind kumar on Aug 4, 2011 3:07 PM

    Hi
    Please use the user exit IWO10009.
    we can add the condition that the field "Order Category Indicator Plant Maintenance"-AFIH-AKKNZ has below values, you can restrict them to create manualy.
    "Category
    AFIH-AKKNZ"     Short Descript.
    blank     Order created online
    1     Order created historically
    2     Order created subsequently
    3     Order from notification
    4     Order from maintenance plan
    5     Order from reference
    6     Follow-up order
    7     Generated order from IM_SM_CREATE_ORDER
    8     Order for an SD service item
    9     Order for an SD repair item (RMA)

  • Not scheduling on manual creation of planned order

    Creating planned order through MD11 and noticed there scheduling not done and capacity planning not done and on doing scheduling manually dates altered and capacity planned which are appearing in CM01 for the respective week
    Planned order created through MRP are fine with scheduling an capacity planning .
    Please let us know what could be a reason for not updating on manual creation.

    Hi
    This is standard behavior of SAP as when you create the planned order through MD11 manually , you need to do the detailed scheduling manually by executing schedule in Edit>Schedule.
    Check this thread:
    Need Automatic Lead-time scheduling in Planned Order using MD11
    Regards,
    Anupam Sharma

  • MANUAL CREATION OF BATCH NUMBER(EXTERNALLY)    -   NOT TO BE ALLOWED

    MANUAL CREATION OF BATCH NUMBER(EXTERNALLY)   -  NOT TO BE ALLOWED while creation of Process Orders.

    Hi,
    Check t code OMCZ whether internal Batch no assignment is active or not.
    From F1 help
    In this step:
    you activate internal batch number assignment
    you define whether internal batch number assignment is allowed for goods receipts that have an account assignment
    Standard settings
    The standard version of the SAP system contains a predefined number range.
    Further notes
    Batch number assignment uses two function model exits with which you can define templates for batch numbers. You make the necessary settings in work step function module exits for internal batch number assignment.
    The system checks whether the assigned batch number already exists in the system. Should the number already exist, the function is terminated.
    When creating a client by copying another client, please note that internal number assignment is not active in the target client. You must activate it manually.
    Regards
    Anupam Sharma

  • Why there is no manual creation of deliveries for STO...

    Individual(VL01N) : You can create one delivery for each sale order on the screen. There is no manual creation of deliveries for STOu2019s. Transaction VL01N
    Why there is no manual creation of deliveries for STO...
    Thank you very much.
    Hoolaa
    Edited by: Hoo Laa on Mar 28, 2011 12:28 PM

    hi ,
             you have  to create a sale order process to delivery the tcode VL10B for STO Porcess. not VL01N.
    Regards,
    A.Sithanandan

  • Scenarios for "manual creation of inspection lot"

    Hi QM gurus!!
       I would just like to ask the main function of QA01 or "<b>Manual creation of inspection lot</b>"
    What are the cases/scenarios where this tcode is used? I would really appreciate if you could help me.. Thank you.
    Regards,
    Heinrick Palad

    HI,
    The table below provides a brief overview of the functions you can use to process inspection lots. Appropriate cross references are included for the more extensive tasks or for those for which additional information is available.
    Prerequisites
    The inspection lot processing functions can be linked to various authorizations that are checked by the system whenever you try to process an inspection lot. The following types authorizations are relevant to inspection lot processing:
    Material authorizations
    The material authorization for QM is stored in the material master. For more information, see  Creating and Changing QM-Specific Data for a Material.
    Inspection type authorizations
    This authorization controls which inspection type the user can access in order to create an inspection lot. The inspection type authorization is plant-specific.
    No authorization checks are executed in QM when an inspection lot is created automatically.
    Features
    Function
    Pushbutton / Menu path
    What you should know
    Accessing the initial screen for the inspection lot processing functions
    Logistics ® Quality management ® Quality inspection ® Inspection lot processing ® Inspection lot
    Creating an inspection lot manually
    See Creating an Inspection Lot Manually
    Changing an inspection lot
    Choose Change
    Enter the number of the inspection lot you want to change and then choose Enter.
    Displaying an inspection lot
    Choose Display
    Enter the number of the inspection lot you want to display and then choose Enter.
    Creating a new batch in an inspection lot
    See Batch Creation in Inspection Lots
    Cancelling an inspection lot
    Call up an inspection lot in the change mode and choose Inspection lot ® Functions ® Cancel lot.
    See Cancellation of an Inspection Lot
    Blocking/unblocking an inspection lot
    Call up an inspection lot in the change mode and choose Inspection lot ® Functions ® Block lot.
    To unblock an inspection lot, choose Inspection lot ® Functions ® Unblock lot.
    When you block an inspection lot, you cannot process the lot further. You must unblock the lot if you want to perform any additional operations.
    Transferring stock in an inspection lot
    See Stock Transfers
    Making corrections to inspection lot quantities
    See Corrections to Inspection Lot Quantities
    Creating a QM order
    Call up an inspection lot in the create or change mode and choose Goto ® Insp. lot acc. assgnmt.
    See QM Order Creation
    Resetting the sample calculation
    See Resetting the Sample Calculation
    Printing inspection instruction/sample-drawing instruction
    See Printout of Instructions
    Approving a task list
    Call up an inspection lot in the create or change mode and choose Inspection lot ® Functions ® Give approval
    If the task lists in your company must be approved before they can be used, you should make sure that only approved task lists are assigned to an inspection lot. If the system selects a task list that has not yet been approved, you can use this function to approve the task list (provided you have the necessary material authorization).
    this link help u.
    http://help.sap.com/saphelp_erp2004/helpdata/EN/be/00bbe7ca5311d2961800a0c930e04c/frameset.htm
    reward is usefull.
    tahnks.

  • PO creation and GR query

    Hi
    I am relatively new to the SRM module and I have query for you guys. In extended classic scenario, (or irrespective of deployment scenarios) for PO creation in the backend R/3 system I believe the BAPI is called through RFC and hence PO is created in R/3 synchronously whereas for GR confirmation and invoice posting the ALE/Idoc is used in which case its asynchronous. What exactly is the logic behind this?
    Thanks
    Rashmi
    P.S if anybody has any useful material or write up about these concepts please send it across to [email protected]

    Hi Rashmi,
    You are correct : BAPI for PO, PR, reservation and idocs for GR and invoice.
    Kind regards,
    Yann

  • Query Based Taxonomy - Dynamic Creation of a Query Problem

    Hi,
    I'm trying to create new category nodes in a taxonomy and to assing them queries. I know how to do this, but I encountered a strange behavior. Here is the situation:
    I have a string property DocumentType. When manualy creating a query, it looks like:
    DocumentType CONTAINS "Some string"
    But when I do the same using code I get:
    DocumentType IS "Some string"
    And as a result of this, the taxanomy is not working properly.
    Here is the code:
         indexService =
         (IIndexService) ResourceFactory
         .getInstance()
         .getServiceFactory()
         .getService(
         IServiceTypesConst.INDEX_SERVICE);
         //        This kind of classification index offers functionality working with query based taxonomies
         qbcIndex = (IQBClassificationIndex) indexService.getIndex(indexId);
         //        Get a query folder - a query folder is a representation of a query based taxonomies category
         queryFolder = qbcIndex.getQueryFolder(RID.getRID(folder));
         //        List of IQueryEntry objects for the query folder
         queryEntryList = queryFolder.getQuery(context);
         //        Cast the IQBClassificationIndex into a ISearchIndex object
         searchIndex = (ISearchIndex) qbcIndex;
         queryEntry = searchIndex.getNewQueryEntry();
         queryEntry.setRowType(IQueryEntry.ROW_TYPE_ATTRIBUTE);
         queryEntry.setPropertyName(propertyName);
         queryEntry.setPropertyOperator(IQueryEntry.PROPERTY_OPERATOR_EQUAL);
         queryEntry.setValue(propertyValue);
         queryEntry.setTermAction(IQueryEntry.TERM_ACTION_EXACT);
         queryEntryList.add(queryEntry);
         //        Set the query for the query folder
         queryFolder.setQuery(queryEntryList, context);
         qbcIndex.updateCategoryContents("Document_Types", false, context);
    Can somebody tell me what am I doing wrong please. Isn't it because of IQueryEntry.PROPERTY_OPERATOR_EQUAL? Is there any substring operator?
    Thanks a lot.

    Hi, Robert
      In this moment, I have a problem with Query Based Taxonomy, maybe could you help me. I insert the query in to the taxonomy from code, but when i use the method
      qbcIndex.updateCategoryContents("/taxonomies/borrame5/Prueba2", false, context);
      I got the next exception:
    #1.5#0014C210F3D1002A000001200000565B000431CC93AD5979#1180654627543#System.err#sap.com/irj#System.err#dummy01#10241#####SAPEngine_Application_Thread[impl:3]_17##0#0#Error##Plain###     at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)#
    #1.5#0014C210F3D100310000012B0000565B000431CCC47166AB#1180655445698#System.err#sap.com/irj#System.err#dummy01#10241#####SAPEngine_Application_Thread[impl:3]_18##0#0#Error##Plain###com.sapportals.wcm.service.indexmanagement.IndexNotReadyException: Some documents are not included in this update because indexing has not been finished yet.#
    #1.5#0014C210F3D100310000012C0000565B000431CCC4717417#1180655445701#System.err#sap.com/irj#System.err#dummy01#10241#####SAPEngine_Application_Thread[impl:3]_18##0#0#Error##Plain###     at com.sapportals.wcm.service.indexmanagement.retrieval.trex.AbstractTrexIndex.updateCategoryContents(AbstractTrexIndex.java:2493)#
      I have doubt what parameters i need to pass to the method updateCategoryContents,
      Let me give some information:
    taxonomy:
       /taxonomies/borrame5/Prueba2
    repository:
       /documents/Portal_KOF/KM/Pruebas1/Pruebas Versionamiento
    classification and search index:
       borrame5
       I can't classify automatically, when i insert the query from code. When I manually insert the query from the portal, automatic classification run perfectly.
    Thanks
    Greetings
    JARO.

  • Manual creation of PPDS Planned Orders by start date and time

    Hi,
    When an order is manually created in any ppds standard transaction the start date is calculated according to the availability date entered, the order quantity and the master data 
    Is it possible to manually create an order based on the start date and then the availability date is calculated according to the order quantity and master data?
    Thanks
    CTF

    CTF,
    You can 'forward schedule' manually created orders.
    Scheduling direction is dependent on the Strategy profile.  During order creation, you can change this.
    When on the order create screen (/sapapo/rrp5), select the strategy button at the top.  This will bring up the default strategy for your userid.  You can alter the "planning direction" to be 'forward' or 'forward & reverse' depending on your business requirements.  Selecting Save will then make this scheduling strategy your default; otherwise just hit green checkbox.
    Now the order entry screen will have 'start date' entry box.  Avail date will then be calculated.
    Best Regards,
    DB49

  • Issue in transaction code creation for sap query report .

    Hi  Gurus,
    I have a requirement to create transaction codes for sap query reports. I found two ways to create transaction code for sap query report
    1) By Generating program for sap query report and creation of transaction code for that generated Program. in tcode.
    2) By using parameter transaction options in start object of se93
    What are the difference between creation of these two ways. Please specify  the advantages and disadvantages of both methods.
    Regards,
    Suneel Kumar Uggina.

    Hi Jogeswara Rao,
    But I am getting problem while transporting form development system to  the production system. After transporting to Production system  I have used the code created in development system, but it is giving Error ' No Program Found for that Transaction Code. And  I would like to know  on what conditions should I have to  use the First one  and as well as a second one in sap query reports.
    Thank You,
    Suneel Kumar Uggina.

  • Problem in connecting after manual creation of database in 9i.

    Hi,
    I had installed Oracle 9i and I tried to created the DB manually. I tried all possible ways to connect, but it was in vain. I tried - connect / as SYSDBA(ORA-24314: service handle not initialized), connect / as SYSDBA/password (where password is the one given during the creation of the service - as suggested in the Post installation guide of Oracle, just to receive an invalid option in connect string error) and connect "/ as SYSDBA" (ORA-12560: TNS:protocol adapter error).
    Please throw some light on this problem.
    Thanks in advance.
    Vijay

    I have the same problem with Personal Oracle 8i. I tried to create a database manually and the creation failed the first time because Oracle claimed it ran out of process memory. I was never successful in getting the database functioning and couldn't even deleted it although I did manage to delete the service.
    Now, whenever I use SQLPlus from the command prompt, I get the TNS Protocal Adapter error. SQLPlus worksheet and SQLPlus under the "Developer" menu both work and I can use the JDBC driver successfully.
    Anyone have any suggestions?
    Dianne

  • Batch no. manual creation in return

    Hi All,
    Isn't the batch no. creation automatically happened when performing return some items ? I use SBO 2005A SP 01 PL 29. I have to create batch number manually. I thought it is automated created when perform return item, serial no. is okay.
    Rgds,

    Mark,
    If the Item is batch managed, are the returns you are creating copied for Deliveries and Stand Alone Returns?
    How is the batch management setup? On Every transaction or release only?
    If you copy a Delivery to Return then the batch number would automatically show in the Selected Batches window and you do not have any other step than to just ADD.
    If you are using a stand alone return (not copied from delivery) then it will show all the batches that were delivered for that item and you can select from there.
    Suda

  • Manual Creation of  PO against Against Sales Order AAC - M

    Dear Gurus ,
    I am facing issue that , as in MTO scenario some of the components in my BOM material  is not fixed and they can be known after some time like labels of finish goods , now i want to create Manual PO with reference to sale order AAC is M , but i found that when MRP is creating purchase requisition , G/L account in acc. ***. tab is  stock G/L , but when i am creating manual PO it is taking G/L from  GBB  Acct modification  VKA (account as in acc. assignment cat. is  M.)
    But I want it should take G/L from BSX  as it is taking  in case of MRP generated PR  against same sales order.
    Thanks & Regards,
    Akshay

    Dear Sir ,
    As here we are taking valuated stock against sale order , we are using account assignment category M and requirement class with valuation M and account assignment category M , as per bellow link.......
    Valuated Sales Order Stock Configuration - ERP Financials - SCN Wiki
    now i am facing problem , when MRP is creating purchase requisition , G/L account in acc. assignmrnt. tab is  stock G/L from BSX which is right , but when i am creating manual PO with respect to same sales order , it is taking G/L from  GBB  Acct modification  VKA (account as in acc. assignment cat. is  M.)
    But I want it should take G/L from BSX because stock is valuated stock.
    Thanks & Regards,
    Akshay

Maybe you are looking for