/* + ordered */ hint used in relational cube operator

We are using OWB 10.2.0.3 build a relational datamart. The mapping which loads the fact table has a joiner joining three tables, the result of the joiner goes into the cube operator. We realized that the code created by the cube operator contains the /* + ordered */ hint. This might make sense if you do not have any joiner outside the cube operator, but in our case the hint results into a sub-optimal explain plain.
Has anyone any idea how to get rid of this hint? What is the reason for this hint?
Thanks in advance, Maren

Hi,
if you open the configuration of the mapping, select cube operators, select your target cube, select table operators, selct your cube table -> what do you see in the property 'Loading hints'?
Regards,
Detlef

Similar Messages

  • Using dimension and cube operator

    hi
    I am facing problem in using this dimension and cube operator..
    Actually I want to create a sales data with dimensions as time,customer and product
    After creating a dimension in owb I get a table created attached with it same is the case with cube operator
    so where should I store my measures in the cube or the table created and where to store the data about dimensions in the table created.
    and finally how to use them in mapping to retrieve the data stored
    Thanks

    It sounds like you are not getting any matching keys for loading into the cube.
    Do you have a time dimension created by OWB in the cube? The key used by the cube operator for an OWB time dimension is a formatted number. The time dimension keys are stored as follows;
    Day Level - YYYYMMDD
    Month Level - YYYYMM
    Week Level - YYYYWW
    Quarter - YYYYQ
    Year - YYYY
    If you have a source that has a SQL date datatype for example and want to construct the key for a cube's time dimension at the day level something like the following expression can be used to construct the time reference from a SQL date...
    to_number(to_char( time_key, 'YYYYMMDD'))
    It may not be this but just a thought.
    Cheers
    David

  • Using cube operator in mapping

    Hi everyone,
    I am just building my first owb map with a cube (relational fact table) but I can't find any description anywhere on how to actually use/connect the cube operator in a mapping. I have managed to build a cube, linked to two dimensions, but when I place it on the canvas, I am not sure what it expects.
    Does anybody know of any good examples or a bit of documentation anywhere?
    Thanks!
    Ed
    PS In a SQL statement I would populate that fact table by simply joining the external table with the dimension, but the input signature of the cube is just different from what I expected.

    hi Patrick
    i have already done this but it is not working as well and response is same "you are using two different sources in expression".
    in fact i am using few tables from source schema and another table(time dimension table) from target schema. i think either this error is due to using time dimension's table or it could be due to using table from two different schema's
    what you say... i need your point of view
    regards,
    imran

  • Relation between operation and component in Production order

    Hi All
    I am new to PP. I need to get the tables which gives relation between operation and components in Production Order. I need to display in smartform the components assigned.
    Thanks and regards
    Swetabh Shukla

    Hi,
    Try with AFVV Table.
    You need to get the Details of the Filed : AUFPL from AFKO.
    Hope this helps..
    Regards,
    Siva
    Hi,
    You can get the details from Table : RESB.
    Regards,
    Siva
    Edited by: Siva Kumar M on May 23, 2008 10:49 AM

  • Performace problem - and ORDERED hint

    Hello,
    The following query is from oracle application EBS 11i , running on 10203 instance.
    Its take about 28 hour before its finished.
    Its exection plan is very long about 150 lines.
    In order to keep it simple i pasted only the first 35 rows from the ORIGINAL plan.
    Id number 34 bellow shows that the unique index :"HZ_PARTIES_U1" fetched each and every row from the table (1,751,000 rows).
    |  34 | ===============>       INDEX UNIQUE SCAN           | HZ_PARTIES_U1                |  1751K
    SELECT * FROM TABLE(dbms_xplan.display_awr('9r0jrz9ygpt9f'));
    PLAN_TABLE_OUTPUT                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
    SQL_ID 9r0jrz9ygpt9f                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
    SELECT /*+ index(ap_bank_accounts)   */ TRX_ID, ROW_ID, TRX_NUMBER, AMOUNT
    FROM CE_222_TRANSACTIONS_V
    WHERE BANK_ACCOUNT_ID = :B8 AND CURRENCY_CODE = :B7 AND (:B6 IN ('CREDIT','NSF','REJECTED') OR TRX_TYPE = 'MISC')
    AND DECODE(:B6 , 'MISC_DEBIT', -1, 1) * AMOUNT BETWEEN :B2 * (1 - :B5 )
    AND :B2 * (1 + :B5 )
    AND TRX_DATE BETWEEN (:B1 - :B4 )
    AND (:B1 + :B3 )
    AND NOT EXISTS ( SELECT 'already matched trx' FROM IL_CE_REC WHERE TRX_ROWID = ROW_ID)
    ORDER BY ABS(:B2 -  AMOUNT), ABS(:B1 - TRX_DATE)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
    Plan hash value: 1193373660                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
    | Id  | Operation                                          | Name                         | Rows  | Bytes | Cost (%CPU)| Time     |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |   0 | SELECT STATEMENT                                   |                              |       |       | 23321 (100)|          |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |   1 |  SORT ORDER BY                                     |                              |     3 |   228 | 23321  (16)| 00:01:02 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |   2 |   NESTED LOOPS ANTI                                |                              |     3 |   228 | 23320  (16)| 00:01:02 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |   3 |    VIEW                                            | CE_222_TRANSACTIONS_V        |     3 |   192 | 23320  (16)| 00:01:02 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |   4 |     UNION-ALL                                      |                              |       |       |            |          |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |   5 |      FILTER                                        |                              |       |       |            |          |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |   6 |       FILTER                                       |                              |       |       |            |          |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |   7 |        NESTED LOOPS                                |                              |     1 |   395 | 11668  (16)| 00:00:31 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |   8 |         NESTED LOOPS OUTER                         |                              |     1 |   359 | 11667  (16)| 00:00:31 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |   9 |          NESTED LOOPS OUTER                        |                              |     1 |   323 | 11666  (16)| 00:00:31 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |  10 |           FILTER                                   |                              |       |       |            |          |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |  21 |                      HASH JOIN                     |                              |     1 |   150 | 11648  (16)| 00:00:31 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |  22 |                       NESTED LOOPS                 |                              |     1 |    54 |     4   (0)| 00:00:01 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |  23 |                        NESTED LOOPS                |                              |     1 |    18 |     2   (0)| 00:00:01 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |  24 |                         TABLE ACCESS BY INDEX ROWID| AP_BANK_ACCOUNTS_ALL         |     1 |    13 |     2   (0)| 00:00:01 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |  25 |                          INDEX UNIQUE SCAN         | AP_BANK_ACCOUNTS_U1          |     1 |       |     1   (0)| 00:00:01 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |  26 |                         INDEX UNIQUE SCAN          | AP_BANK_BRANCHES_U1          |  2022 | 10110 |     0   (0)|          |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |  27 |                        INDEX RANGE SCAN            | FND_LOOKUP_VALUES_U1         |     1 |    36 |     2   (0)| 00:00:01 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |  28 |                       TABLE ACCESS BY INDEX ROWID  | AR_CASH_RECEIPTS_ALL         |     1 |    96 | 11643  (16)| 00:00:31 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |  29 |                        INDEX RANGE SCAN            | AR_CASH_RECEIPTS_N8          |   211K|       |   882  (18)| 00:00:03 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |  30 |                      VIEW PUSHED PREDICATE         | RA_HCUSTOMERS                |     1 |    15 |     4   (0)| 00:00:01 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |  31 |                       NESTED LOOPS                 |                              |     1 |    24 |     4   (0)| 00:00:01 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |  32 |                        TABLE ACCESS BY INDEX ROWID | HZ_CUST_ACCOUNTS             |     1 |    18 |     3   (0)| 00:00:01 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |  33 |                         INDEX UNIQUE SCAN          | HZ_CUST_ACCOUNTS_U1          |     1 |       |     2   (0)| 00:00:01 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |  34 | ===============>       INDEX UNIQUE SCAN           | HZ_PARTIES_U1                |  1751K|    10M|     1   (0)| 00:00:01 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    |  35 |                     TABLE ACCESS BY INDEX ROWID    | AR_RECEIPT_METHODS           |     1 |     8 |     1   (0)| 00:00:01 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     When i added an ORDERED hint inside the view the plan changed as followed:
    |  30 |                      VIEW PUSHED PREDICATE         | RA_HCUSTOMERS                |     1 |    15 |     4   (0)| 00:00:01 |
    |  31 |                       NESTED LOOPS                 |                              |     1 |    24 |     4   (0)| 00:00:01 |
    |  32 |                        TABLE ACCESS BY INDEX ROWID | HZ_CUST_ACCOUNTS             |     1 |    18 |     3   (0)| 00:00:01 |
    |* 33 |                         INDEX UNIQUE SCAN          | HZ_CUST_ACCOUNTS_U1          |     1 |       |     2   (0)| 00:00:01 |
    |* 34 |  ==============>       INDEX UNIQUE SCAN           | HZ_PARTIES_U1                |     1 |     6 |     1   (0)| 00:00:01 |
    |* 35 |                     INDEX UNIQUE SCAN              | FND_LOOKUP_VALUES_U1         |     1 |    36 |     1   (0)| 00:00:01 |
    You can see that line 34 is now return just 1 row and not 1751K rows.Oracle documentaion : http://download.oracle.com/docs/cd/A97630_01/server.920/a96533/hintsref.htm said:
    You might want to use the ORDERED hint to specify a join order if you know something about the number of rows selected
    from each table that the optimizer does not.
    Since , i dont want to use the ORDERED hint , i would like to know what statistics information are missing to the optimizer ? What should i look for ?
    I have an uptodate statiscts , and bellow are the resoults .
    SQL> select table_name,last_analyzed,num_rows,blocks
      2  from dba_tables
      3  where table_name='HZ_PARTIES';
    TABLE_NAME                     LAST_ANAL   NUM_ROWS     BLOCKS
    HZ_PARTIES                     06-JUN-10    1760190      65325
    SQL>
    SQL>
    SQL> select count(*) from apps.HZ_PARTIES;
      COUNT(*)
       1771794
    SQL> select index_name,last_analyzed,num_rows,clustering_factor,blevel,distinct_keys
      2  from dba_indexes
      3  where table_name='HZ_PARTIES'
      4  and index_name like '%U1';
    INDEX_NAME                     LAST_ANAL   NUM_ROWS CLUSTERING_FACTOR     BLEVEL DISTINCT_KEYS
    HZ_PARTIES_U1                  06-JUN-10    1758162            158739          2       1758162Thanks for your help

    Nothing I can see in your in your post relates to the optimizer and you, yourself, wrote:
    Oracle documentaion : http://download.oracle.com/docs/cd/A97630_01/server.920/a96533/hintsref.htm  said:
    You might want to use the ORDERED hint
    {code}
    so clearly the Oracle documentation does say that.
    Either post in the correct forum, and explain your reasoning, or I can not help you further.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • LEADING or ORDERED hint in OWB 10gR2

    Hi,
    How does one add a LEADING or ORDERED hint to a mapping in OWB 10g R2?
    The usual way of adding a hint is to "Configure" the map and add the extraction or loading hint under the table (data source) operators. However, the hints in such a case are specific to table under consideration. A NO_INDEX or a PARALLEL hint can be applied under it.
    However, a LEADING or a ORDERED does not necessarily depend on the table but is common to the entire SQL. Although OWB allows attaching the LEADING or ORDERED hint under Map Configure > Table Operators > [Table Name] > Hints > Extraction Hints, it does not attach the correct table aliases.
    Has anyone encountered this problem before? If you've found a workaround, please share it.
    Thanks, JD

    Hi,
    In OWB 10.2 it's often not easy to set hints. Often it's only possible to set them correctly using workarounds :-(
    The most important is not where you define the hint in OWB but where OWB puts it in the generated code.
    So if you want to have the LEADIND or ORDERING hint in your code you could define it at the level of the target table under:
    Map Configure > Table Operators > [Target Table Name] > Hints > Loading Hints
    Another way to do it would be to generate a dummy filter (1=1) in the mapping and then to define the hint for this filter.
    For hints which are not related to a specific table I mostly used the trial-and-error method to find out where I have to define it in OWB.
    Good luck

  • Cube operator and aggregation of measures on existing records

    Hi there,
    I'm using a cube operator with loading type LOAD in order to perform merge on fact table.
    We have following situation
    Record already exists on fact table for customer and product with qty 8.
    Incoming record has qty 2, so tried using cube operator hoping that because aggragtion specfied on qty measure was sum and set to solve cube, new qty would be 10.
    However, looked at sql generated and record simply gets updated with new qty rather than adding new to existing qty.
    I can achieve our aim by simply reading for any existing record and adding new record qty to existing record qty, but was hoping the cube operator would do thi s for me.
    Anybody achivede anything similar using sinmply cube operator.
    Many Thanks

    Do you mean that you want to load the data into the AW using the AVG function instead of SUM? If this is true, are you planning to use AVG as the aggregation operator in the AW as well? Will this give the answer you want? The code currently defaults to SUM for load even if you aggregate the cube using AVG since AVG of AVG is not usually what people want. If you want to do it anyway then there it is possible if you hand edit the XML to add an attribute named AggregationMethod to the CubeMap. E.g.
        <CubeMap
          Name="MAP1"
          Query="SALES_FACT"
          AggregationMethod="AVG">But the simpler way to do it is to define a SQL View that aggregates to the load level using AVG and then map the cube to the view.

  • Re: Payment order Reversal using custom program

    Hello Experts,
    The requirement is when we void any chek the corresponding documents (payment request ,payment order and accounting document) related to the check has to be reversed in Fi Tresury.
    Reversal of the payment reqest and the accounting document in my program is fine but payment order reversal is not happening in the program.
    I am able to reverse it by using standard transaction ihc02.
    In the program  i have used the same function module IHC_BCA_PAYM_ITEM_REVERSE as used in the standard program and passing the same values what we are passing in the standard transaction but reversal of  the payment order was not happening using that functiona module.
    Please suggest me what to do with this requirement and how to reverse the payment order using the custom program.
    Thanks and regards
    pavan

    Hello Experts,
    The requirement is when we void any chek the corresponding documents (payment request ,payment order and accounting document) related to the check has to be reversed in Fi Tresury.
    Reversal of the payment reqest and the accounting document in my program is fine but payment order reversal is not happening in the program.
    I am able to reverse it by using standard transaction ihc02.
    In the program  i have used the same function module IHC_BCA_PAYM_ITEM_REVERSE as used in the standard program and passing the same values what we are passing in the standard transaction but reversal of  the payment order was not happening using that functiona module.
    Please suggest me what to do with this requirement and how to reverse the payment order using the custom program.
    Thanks and regards
    pavan

  • Open Orders data in Sales Overview Cube

    Hi All,
    I am using Sales Overview cube to store all the Orders(inclucing Open orders), Deliveries and billing data. I am using seperate ODSs(for all the infosources) to store both the header and item level data for some reporting requirements.
    But I am very confused how the cube gonna store the data of open orders i.e if we are loading data on monday and we got Order 100 as open order. But on tuesday the order was completley processed and it is no longer an open order. So what will happen when I load data on tuesday. How does the changes to Order 100 reflect in the cube?
    Any help would be highly appreciated and rewarded!!!
    Best Regards,
    Nene.

    hi Nene
    All orders where delivery qty is less than Order qty are open orders
    All the orders which appear in the transaction V.15 in R/3 are Backorders
    Execute the transaction after giving sales order, dist chan and division
    All orders with document type RE are returns
    Suggestion :
    1. Create a restriction in ur queries with document types = OR,,,, other order types( Not RE..see last )and and Order qty < dly qty for open orders
    2. You can extract data from V.15 into a BW customised table and check the entries to identify the backorders
    Routine in update rule may help to distinguish backorders
    3. You can use filter to identify the items returned from the customers
        For document type = RE
    Assign points if useful
    Regards
    N Ganesh

  • I am using your software: CS^ InDesign Suite on a PC using a Windows 7 operating system.     Due to eyesight issues, I need to have the menu bars of programs in easy-to-read font and picture size.  Specifically, the menu bar

    Hi,
    I am using your software: CS6 InDesign Suiteon a PC using a Windows 7 operating system.
    Due to eyesight issues, I need to have the menu bars of programs in easy-to-read font and picture size.  Specifically, the menu bar across the top (File, Edit, View, etc.), and the menu bar on the left side with the graphic depiction of options.
    In earlier versions of Windows (e.g. XP), whenever I changed the screen resolution on my computer to a lesser resolution in order to show the link icons on my desktop in a larger, more readable size, all the software programs, including yours, appeared on my screen with the menu bars in the larger font size that I needed.
    However, in Windows 7, this is not the case.  Even though I have selected the lowest resolution, making the icons on my desktop extremely large, I cannot read the options across the top menu bar of your program, nor the pull-down menu items that they contain.  I cannot see the graphic depictions of options on the left side of the screen. They are all too small.  How can I make your program increase the size?

    CS6 is not high-DPI compatible/ enabled and that can't be changed. If you cannot6 make it work with your operating system means, then short of joining Creative Cloud and using newer versions there is nothing you can do.
    Mylenium

  • I am using CS6 InDesign suite on a PC using a Windows 7 operating system.     Due to eyesight issues, I need to have the menu bars of programs in easy-to-read font and picture size.  Specifically, the menu bar across the top (File, Edit, View, etc.), and

    I am using CS6 InDesign on a PC using a Windows 7 operating system.
    Due to eyesight issues, I need to have the menu bars of programs in easy-to-read font and picture size.  Specifically, the menu bar across the top (File, Edit, View, etc.), and the menu bar on the left side with the graphic depiction of options.
    In earlier versions of Windows (e.g. XP), whenever I changed the screen resolution on my computer to a lesser resolution in order to show the link icons on my desktop in a larger, more readable size, all the software programs, including yours, appeared on my screen with the menu bars in the larger font size that I needed.
    However, in Windows 7, this is not the case.  Even though I have selected the lowest resolution, making the icons on my desktop extremely large, I cannot read the options across the top menu bar of your program, nor the pull-down menu items that they contain.  I cannot see the graphic depictions of options on the left side of the screen. They are all too small.  How can I make your program increase the size?

    NO way.
    Mylenium

  • The interface you are trying to use is related to a logical schema that no

    "The interface you are trying to use is related to a logical schema that no longer exists"
    I'm facing this error when importing a project on Designer connect to a new work repository.
    I have an TEST Data Integrator environment and now I need to move objects already created to a new DEV environment. I've created a new master and work repository with distinct ID's according note https://metalink.oracle.com/metalink/plsql/f?p=130:14:4335668333625114484::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,423815.1,1,1,1,helvetica
    Any ideas?
    Thanks

    Hi,
    Nothing occurs. My steps:
    1) Export Master Repository from 1st environment (topoloy -> export master repository)
    2) Create Master Repository on 2nd environment (through repcreate.bat)
    3) Export Topology (1st environment)
    4) Export all projects (1st environment)
    5) Import Topology (2nd environemtn) ----> com.sunopsis.core.n: This import action has been cancelled because it could damage your repository (problem with the identifier sequences)
    Is this sequence of operations correct?
    Thanks

  • Date Error on the Service Order while using service product

    Hi PM experts,
    I am working on the scenario resource-related billing, using service product in the service order created from a service notification linked to a contract with service product as the line item.  service product is the material of DIEN material type.
    when i was trying to save the service order created using transaction code-IW31, i am getting the  Error Message:
    " *SYS:Date 00.00.0000 not expected*".
    This error started only yesterday, and it was not there before. Basis team has confirmed that they have not done any new
    updates to the system.
    Had anyone encounered this problem before, if yes kindly let me know the solution and the steps to resolve it.
    thanks for the help.
    regards,
    rajaraman

    Hi,
    Here is the error description with message number,
    SYST: Date 00.00.0000 not expected.
    Message no. FGV004
    As an update to this thread, while searching for the reasons for the problem, i found that the characteristics used in the
    warranty class were carrying default date value as 00.00.0000.  can this be a reason for getting this error as the service
    product number which is a DIEN material type is linked to the master warranty which is in turn assigned to the equipment.
    Hope this information helps.
    regards,
    rajaraman

  • Purchase order layout using Smartform

    Hi All,
    Can anyone let me know how to create Purchase order layout using smartforms and assigning it to output type.
    Is there standard smartform for purchase order?

    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
    http://www.sap-basis-abap.com/sapsf001.htm
    http://help.sap.com/printdocu/core/Print46c/de/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf
    http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
    http://www.esnips.com/doc/13b7ae7a-b32c-4b96-b588-881859d4ac99/Template,Table,Loop,Command-in-Smartforms.doc
    http://www.esnips.com/doc/97acb00a-e513-4611-91f0-c626f460bfc5/Smart_Form_Overview.pdf
    http://www.esnips.com/doc/77a981b9-8fe3-4fbb-8101-67745c1fe60c/SMART-FORMS_shail.ppt
    http://www.sap-basis-abap.com/sapsf001.htm
    http://www.sap-press.com/downloads/h955_preview.pdf
    http://www.ossincorp.com/Black_Box/Black_Box_2.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    Try this. A simple sample Smart Form.
    SAP Smartforms can be used for creating and maintaining forms for mass printing in SAP Systems. The output medium for Smartforms support printer, fax, e-mail, or the Internet (by using the generated XML output).
    According to SAP, you need neither have any programming knowledge nor use a Script language to adapt standard forms. However, basic ABAP programming skills are required only in special cases (for example, to call a function module you created or for complex and extensive conditions).
    1. Create a new smartforms
    Transaction code SMARTFORMS
    Create new smartforms call ZSMART
    2. Define looping process for internal table
    Pages and windows
    First Page -> Header Window (Cursor at First Page then click Edit -> Node -> Create)
    Here, you can specify your title and page numbering
    &SFSY-PAGE& (Page 1) of &SFSY-FORMPAGES(Z4.0)& (Total Page)
    Main windows -> TABLE -> DATA
    In the Loop section, tick Internal table and fill in
    ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2
    3. Define table in smartforms
    Global settings :
    Form interface
    Variable name Type assignment Reference type
    ITAB1 TYPE Table Structure
    Global definitions
    Variable name Type assignment Reference type
    ITAB2 TYPE Table Structure
    4. To display the data in the form
    Make used of the Table Painter and declare the Line Type in Tabstrips Table
    e.g. HD_GEN for printing header details,
    IT_GEN for printing data details.
    You have to specify the Line Type in your Text elements in the Tabstrips Output options.
    Tick the New Line and specify the Line Type for outputting the data.
    Declare your output fields in Text elements
    Tabstrips - Output Options
    For different fonts use this Style : IDWTCERTSTYLE
    For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(12.2)&
    5. Calling SMARTFORMS from your ABAP program
    REPORT ZSMARTFORM.
    Calling SMARTFORMS from your ABAP program.
    Collecting all the table data in your program, and pass once to SMARTFORMS
    SMARTFORMS
    Declare your table type in :-
    Global Settings -> Form Interface
    Global Definintions -> Global Data
    Main Window -> Table -> DATA
    Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming
    http://sapr3.tripod.com
    TABLES: MKPF.
    DATA: FM_NAME TYPE RS38L_FNAM.
    DATA: BEGIN OF INT_MKPF OCCURS 0.
    INCLUDE STRUCTURE MKPF.
    DATA: END OF INT_MKPF.
    SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
    SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
    MOVE-CORRESPONDING MKPF TO INT_MKPF.
    APPEND INT_MKPF.
    ENDSELECT.
    At the end of your program.
    Passing data to SMARTFORMS
    call function 'SSF_FUNCTION_MODULE_NAME'
    exporting
    formname = 'ZSMARTFORM'
    VARIANT = ' '
    DIRECT_CALL = ' '
    IMPORTING
    FM_NAME = FM_NAME
    EXCEPTIONS
    NO_FORM = 1
    NO_FUNCTION_MODULE = 2
    OTHERS = 3.
    if sy-subrc <> 0.
    WRITE: / 'ERROR 1'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    call function FM_NAME
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    CONTROL_PARAMETERS =
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    OUTPUT_OPTIONS =
    USER_SETTINGS = 'X'
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    TABLES
    GS_MKPF = INT_MKPF
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5.
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    SMARTFORMS GENERATION: (calling internal table fields)
    &#61656; Open a smartform using the tcode ‘smartforms’.
    &#61656; Usually form attributes shows admn data.
    &#61656; In the form interface declare import/export parameters if any. Else declare the tables in tables tab button.
    &#61656; In the windows and pages expand and create a table. It automatically generates header, main area and footer for the table.
    &#61656; In data tab button in the table we usually declare a work area to bring the data from se38. Like: ktab into wa. ( The purpose of declaring the wa is , to get the data of the ktab in to header from the body area of the internal table).
    &#61656; And in the tablepainter pushbutton in table we can have any no of line types. Depending on the requirement. ( for ex: If we want to devide a row in to 4 columns, we can devide it as 4,4,4,4cm as line type 1, And usually for the footer we don’t need no of columns, So, we declare it as one column with 16cm measure with the name line type 2.). We can use these line types in the tables.
    &#61656; In the header right click>>create>>tableline. It asks for line type. Select one line type which is appropriate.
    &#61656; Like same create a row2 in main area using right click. If we select the line type 1, it automatically generates 4 cells. We can create text in each cell as per requirement.
    &#61656; We can generate general attributes using general attributes tab button in the text. Or in the other way. We can switch on the field list on/off button from the application tool bar. It displays all the attributes in the left down corner of the screen. We can drag and drop the required fields in the general attributes tab button of the text.
    &#61656; We continue the same procedure for all the texts. The texts should be displayed in the gray color. Then only it can collects the data from the abap editor fields.
    &#61656; If it wont turns gray, we can check the fields in the editor by changing it to the line editor. The best thing is to drag the fields from the list, rather than declaring like &wa-matnr&
    &#61656; In the footer also we create a line type and in that table line we create text.
    SE38 PROGRAM(method I):
    REPORT Z_CALLING_SMARTFORM2 .
    tables: mara.
    select-options: S_MATNR for MARA-MATNR.
    DATA: kTAB LIKE MARA OCCURS 1 WITH HEADER LINE.
    data: FM_NAME TYPE RS38L_FNAM.
    SELECT * FROM MARA INTO TABLE kTAB WHERE MATNR in
    S_MATNR.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    formname = 'Z_MYFIRST_FORM2'
    VARIANT = ' '
    DIRECT_CALL = ' '
    IMPORTING
    FM_NAME = FM_NAME
    EXCEPTIONS
    NO_FORM = 1
    NO_FUNCTION_MODULE = 2
    OTHERS = 3
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION fm_name
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    CONTROL_PARAMETERS =
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    OUTPUT_OPTIONS =
    USER_SETTINGS = 'X'
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    TABLES
    ktab = ktab
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    IN THE OTHER WAY(method II):
    REPORT Z_CALLING_SMARTFORM2 .
    tables: mara.
    select-options: S_MATNR for MARA-MATNR.
    DATA: kTAB LIKE MARA OCCURS 1 WITH HEADER LINE.
    SELECT * FROM MARA INTO TABLE kTAB WHERE MATNR in S_MATNR.
    CALL FUNCTION '/1BCDWB/SF00000199'
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    CONTROL_PARAMETERS =
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    OUTPUT_OPTIONS =
    USER_SETTINGS = 'X'
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    TABLES
    ktab = ktab
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    In the method I we are calling the amartform dynamically using the function module 'SSF_FUNCTION_MODULE_NAME'.
    Here we are exporting form name and importing fm_name.
    So we need to declare the variable fm_name as
    data: FM_NAME TYPE RS38L_FNAM.
    We can have the type of the fm_name in the function module 'SSF_FUNCTION_MODULE_NAME' (in the export tab button).
    Since we are passin the name of the Function module generated by the smart form in to the fm_name variable. We run the function module with the name fm_name, but not the FM generated by the smartform(like /1BCDWB/SF00000199)¬¬¬¬¬¬.
    In the method II we directly call the smartform generated function module (i.e, /1BCDWB/SF00000199).
    But the method I is recommended. In the method I, The fm_name is a variable we don’t put it in the quotes while calling.
    In the both methods we declare the internal table using the like option, but not begin of…. end of. And in select statement we select *, But not individual fields.
    EX2:
    SMART FORM NAME: ZGITI_FORM1.
    SE38:
    REPORT Z_CALL_GIRI_FORM1 .
    TABLES: VBRK.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE T1.
    SELECT-OPTIONS: S_VBELN FOR VBRK-VBELN.
    SELECTION-SCREEN END OF BLOCK B1.
    *INITIALIZATION.
    *T1 = 'SELECTION-CRIETERIA'.
    DATA: BEGIN OF I_INVOICE OCCURS 1.
    INCLUDE STRUCTURE ZSTR_INVOICE.
    DATA: END OF I_INVOICE.
    DATA: VAR1 LIKE VBRP-NETWR.
    DATA: BEGIN OF I_ADDRESS OCCURS 1.
    INCLUDE STRUCTURE ZSTR_ADDRESS.
    DATA: END OF I_ADDRESS.
    DATA: BEGIN OF I_ORDER OCCURS 1.
    INCLUDE STRUCTURE ZSTR_ORDER.
    DATA: END OF I_ORDER.
    DATA: BEGIN OF I_ITEM OCCURS 1.
    INCLUDE STRUCTURE ZSTR_ITEM.
    DATA: END OF I_ITEM.
    DATA: BEGIN OF I_VBFA OCCURS 1,
    VBELV LIKE VBFA-VBELV,
    VBELN LIKE VBFA-VBELN,
    END OF I_VBFA.
    SELECT KUNAG VBELN VKORG VTWEG SPART FROM VBRK INTO TABLE I_INVOICE
    WHERE VBELN IN S_VBELN.
    IF I_INVOICE[] IS NOT INITIAL.
    SELECT KUNNR LAND1 NAME1 NAME2 ORT01 PSTLZ REGIO FROM
    KNA1 INTO CORRESPONDING FIELDS OF TABLE I_ADDRESS FOR ALL ENTRIES IN
    I_INVOICE WHERE KUNNR = I_INVOICE-KUNAG.
    ENDIF.
    IF I_INVOICE[] IS NOT INITIAL.
    SELECT VBELV VBELN FROM VBFA INTO TABLE I_VBFA FOR ALL ENTRIES IN
    I_INVOICE WHERE VBELN = I_INVOICE-VBELN.
    ENDIF.
    IF I_VBFA[] IS NOT INITIAL.
    SELECT VBELN BSTNK FROM VBAK INTO CORRESPONDING FIELDS OF TABLE I_ORDER
    FOR ALL ENTRIES IN I_VBFA WHERE VBELN = I_VBFA-VBELV.
    ENDIF.
    IF I_INVOICE[] IS NOT INITIAL.
    SELECT POSNR MATNR ARKTX FKIMG NETWR FROM VBRP INTO TABLE I_ITEM FOR ALL
    ENTRIES IN I_INVOICE WHERE VBELN = I_INVOICE-VBELN.
    ENDIF.
    LOOP AT I_ITEM.
    AT LAST.
    SUM.
    VAR1 = I_ITEM-NETWR.
    ENDAT.
    ENDLOOP.
    CALL FUNCTION '/1BCDWB/SF00000223'
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    CONTROL_PARAMETERS =
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    OUTPUT_OPTIONS =
    USER_SETTINGS = 'X'
    var = VAR1
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    tables
    i_vbrk = I_INVOICE
    i_vbak = I_ORDER
    i_vbrp = I_ITEM
    i_kna1 = I_ADDRESS
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • How to identify empty InfoObjects used in a Cube

    Hello Gurus!
    I need some help. How do I find empty InfoObjects used in a Cube?
    I have 20+ Cubes and I need to identify those objects in the cubes, which are empty /not filled/. Statistics
    Except writing an ABAP
    Thanks in advance
    Martin

    Thank you for such fast response!
    @Tarak: unfortunately in the TX: LISTCUBE /or display data via RSA1/ you cannot display all characteristics for 'larger' cubes. Additionally you would have to select filter on each characteristics separately.
    @Aduri: could you please give me a more detailed hint? I know cube statistics for load requests, for storage space, for DB time, for IO in report use, but not for IO data, no data.
    @Analyst: Transactional data. Well, to check each mapping for 20+ cubes is a possibility. I have hoped to find a faster way, however.

Maybe you are looking for

  • Mail not working on iphone or mac???

    I went on vacation, came home and my mail won't work on my iphone or my mac. It works on my ipad though. I've updated the iphone by connecting to my mac, but still doesn't work! Iphone When I go to the mail button, it says welcome to mail...then give

  • BEx Query Transports (NW04s)

    I transported a few queries using transport connection collection from DEV to QA. <b>These were the first transports.</b> After these transports queries that had not yet been transported are requesting a request when they are being saved in query des

  • Accessing external firewire hard drive from Finder

    I have a Lacie Porsche 250 GB firewire hard drive. The icon appears on the desktop but when I double click on it to view it's contents the finder 'blinks' and closes all open windows (including the momentarily opened hard drive window). I can access

  • HT5282 Safari will not download java on my I pad

    Cannot print coupons without Java. Safari will not download on my ipad

  • Samba UTF8

    Hi! In rc.conf # LOCALIZATION LOCALE="en_US.UTF-8" DAEMON_LOCALE="yes" HARDWARECLOCK="" TIMEZONE="" KEYMAP="de_CH-latin1" CONSOLEFONT="Lat2-Terminus16" CONSOLEMAP= USECOLOR="yes" in smb.conf server string = Media Server %h (%v) unix charset = UTF-8 d