Query on Enhancement precautions

Hi BW Experts,
In Our datasource one field is enhanced,data is populating into the field and delta's are running.Now I need to add one more field to this datasoure and enhance.What are the precautions i have to take?
Could you please help me out?
Thanks

Hi,
To enhance a standard datasource, you will have to take certain precautionary steps.
1) Before the changes are to be transported to production environment, lock all the users in source system.
2) Flush out all the entries from SMQ1/ RSA7 by pulling the data into BI 2 times(first time for delta, second time for repeat delta).
3) Transport the changes to datasource into production environment.
4) Carry out related changes in BI production environment
5) Unlock all the users.
Locking of the users and flushing out of data is required as we need to ensure for a transaction free period during the transport of changes, else we would miss out on the data which is there in RSA7/ SMQ1.
Other than this, I do not see any specific steps to be taken care of.

Similar Messages

  • QUERY NEED ENHANCEMENT

    Hi all ,
    I'm DBA our database RAC 3 nodes (10.2.0.4) this query making performance issue and causing high CPU Time please assist me to enhance it
    SELECT DISTINCT PP.PARTICIPANT_ID PARTICIPANTID, PP.PARTICIPANT_NUMBER
      OWENRNO, NVL( PP.NAME_EN , PP.NAME_AR) OWNERNAMEEN, PP.NAME_AR OWNERNAMEAR,
      PP.PARTICIPANT_TYPE OWNERTYPE, PP.EMAIL OWNEREMAIL, PP.PO_BOX OWNERPOBOX,
      PP.ADDRESS OWNERADDRESS, PP.PHONE OWNERPHONE, PP.FAX OWNERFAX,
      ROUND(NVL(R.NOMINATOR,0)*100/NVL(R.DENOMINATOR,1)) PERCENTAGE,
      NVL(PO.PARTICIPANT_ID,0) ISPRIMARY, PN.ID_NUMBER OWNERPASSPORTNO, PN.MOBILE
      OWNERMOBILE, PN.PASSPORT_EXPIRY_DATE OWNERPASSPORTEXPDATE, C.NAME_EN
      OWNERNATIONALITY, ATH.LICENSE_NUMBER OWNERLICENSENO, RE.LICENSE_EXPIRY_DATE
      OWNERLICEXPIRYDATE
    FROM
    PROPERTIES P INNER JOIN RELATIONS R ON R.PROPERTY_ID=P.PROPERTY_ID INNER
      JOIN PARTICIPANTS PP ON PP.PARTICIPANT_ID=R.PARTICIPANT_ID LEFT OUTER JOIN
      AUTHORITIES ATH ON ATH.PARTICIPANT_ID=PP.PARTICIPANT_ID LEFT OUTER JOIN
      REAL_ESTATES RE ON RE.AUTHORITY_ID=ATH.AUTHORITY_ID LEFT OUTER JOIN
      PRIMARY_OWNER PO ON PO.PARTICIPANT_ID=PP.PARTICIPANT_ID LEFT OUTER JOIN
      PERSONS PN ON PN.PARTICIPANT_ID=PP.PARTICIPANT_ID LEFT OUTER JOIN COUNTRIES
      C ON C.COUNTRY_ID=PN.COUNTRY_ID WHERE VALIDATE_RELATION( R.RELATION_TYPE_ID,
       R.START_DATE, R.END_DATE, R.PROPERTY_STATUS) = 1 AND P.PROPERTY_ID
      IN(SELECT * FROM TABLE(IN_LIST(:B1 )))i did trace session and got this information
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        2      0.00       0.00          0          0          0           0
    Execute      2      0.00       0.00          0          2         54           0
    Fetch        2      3.69       3.73          3      12103          0           5
    total        6      3.69       3.74          3      12105         54           5
    Misses in library cache during parse: 0
    Optimizer mode: ALL_ROWS
    Parsing user id: 91  (EJARIN)
    Rows     Row Source Operation
          2  HASH UNIQUE (cr=6047 pr=3 pw=0 time=2109489 us)
         27   HASH JOIN OUTER (cr=6047 pr=3 pw=0 time=2061333 us)
          2    HASH JOIN RIGHT OUTER (cr=5164 pr=3 pw=0 time=2055052 us)
        214     TABLE ACCESS FULL COUNTRIES (cr=4 pr=0 pw=0 time=250 us)
          2     NESTED LOOPS OUTER (cr=5160 pr=3 pw=0 time=2054539 us)
          2      HASH JOIN OUTER (cr=5155 pr=3 pw=0 time=2054458 us)
          2       HASH JOIN OUTER (cr=5079 pr=3 pw=0 time=2052289 us)
          2        NESTED LOOPS  (cr=4960 pr=3 pw=0 time=1713970 us)
          2         HASH JOIN  (cr=4954 pr=3 pw=0 time=1713896 us)
          1          NESTED LOOPS  (cr=2 pr=0 pw=0 time=219 us)
          1           COLLECTION ITERATOR PICKLER FETCH IN_LIST (cr=0 pr=0 pw=0 time=185 us)
          1           INDEX UNIQUE SCAN PROPERTIES_PK (cr=2 pr=0 pw=0 time=24 us)(object id 106424)
    377258          TABLE ACCESS FULL RELATIONS (cr=4952 pr=3 pw=0 time=2263627 us)
          2         TABLE ACCESS BY INDEX ROWID PARTICIPANTS (cr=6 pr=0 pw=0 time=67 us)
          2          INDEX UNIQUE SCAN PK_PARTICIPANTS (cr=4 pr=0 pw=0 time=41 us)(object id 106434)
      11283        TABLE ACCESS FULL AUTHORITIES (cr=119 pr=0 pw=0 time=11316 us)
       3757       TABLE ACCESS FULL REAL_ESTATES (cr=76 pr=0 pw=0 time=3786 us)
          1      TABLE ACCESS BY INDEX ROWID PERSONS (cr=5 pr=0 pw=0 time=67 us)
          1       INDEX RANGE SCAN IDX26518_3F690002 (cr=4 pr=0 pw=0 time=46 us)(object id 106426)
    234752    TABLE ACCESS FULL PRIMARY_OWNER (cr=883 pr=0 pw=0 time=234783 us)
    Rows     Execution Plan
          0  SELECT STATEMENT   MODE: ALL_ROWS
          2   HASH (UNIQUE)
         27    HASH JOIN (OUTER)
          2     HASH JOIN (RIGHT OUTER)
        214      TABLE ACCESS   MODE: ANALYZED (FULL) OF 'COUNTRIES' (TABLE)
          2      NESTED LOOPS (OUTER)
          2       HASH JOIN (OUTER)
          2        HASH JOIN (OUTER)
          2         NESTED LOOPS
          2          HASH JOIN
          1           NESTED LOOPS
          1            COLLECTION ITERATOR (PICKLER FETCH) OF
                           'IN_LIST' (PROCEDURE)
          1            INDEX   MODE: ANALYZED (UNIQUE SCAN) OF
                           'PROPERTIES_PK' (INDEX (UNIQUE))
    377258           TABLE ACCESS   MODE: ANALYZED (FULL) OF
                          'RELATIONS' (TABLE)
          2          TABLE ACCESS   MODE: ANALYZED (BY INDEX ROWID) OF
                         'PARTICIPANTS' (TABLE)
          2           INDEX   MODE: ANALYZED (UNIQUE SCAN) OF
                          'PK_PARTICIPANTS' (INDEX (UNIQUE))
      11283         TABLE ACCESS   MODE: ANALYZED (FULL) OF
                        'AUTHORITIES' (TABLE)
       3757        TABLE ACCESS   MODE: ANALYZED (FULL) OF 'REAL_ESTATES'
                       (TABLE)
          1       TABLE ACCESS   MODE: ANALYZED (BY INDEX ROWID) OF
                      'PERSONS' (TABLE)
          1        INDEX   MODE: ANALYZED (RANGE SCAN) OF
                       'IDX26518_3F690002' (INDEX)
    234752     TABLE ACCESS   MODE: ANALYZED (FULL) OF 'PRIMARY_OWNER'
                    (TABLE)
    Elapsed times include waiting on following events:
      Event waited on                             Times   Max. Wait  Total Waited
      ----------------------------------------   Waited  ----------  ------------
      gc current block 2-way                        326        0.00          0.09
      gc cr multi block request                     266        0.00          0.03
      db file sequential read                         3        0.00          0.00
      gc cr block 2-way                               4        0.00          0.00
      SQL*Net message to client                       2        0.00          0.00
      SQL*Net message from client                     2        0.00          0.00
    ******************************************************************************** please if you have any suggestion to enhance it tell me
    Regards

    This is a Duplicate Post. [url https://forums.oracle.com/forums/thread.jspa?threadID=2401881&tstart=0]Original Post Can be found here.

  • Query on Enhancement Spots and Composite Enhancement spots

    Hi Group,
    I want to know about "Enhancement Spots and Composite Enhancement spots" and how to implement them in the system?
    please provide me the uses and how to implement them for our requirements?
    Thanks,
    Vishnu.

    Hai.
    check the links.
    http://help.sap.com/saphelp_nw70/helpdata/en/91/f1e540f8648431e10000000a1550b0/content.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/1c/2cee3957f7cd55e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/1c/2cee3957f7cd55e10000000a114084/content.htm
    http://www.sap.info/public/INT/int/index/Category-28943c61b1e60d84b-int/0/articlesVersions-22681475d1a792eff3
    regards.
    sowjanya.b

  • Query on Enhancement Pack Upgrade/ Installation-Business Functions install

    I am working on an Enhancement Pack Upgrade. I have the following questions from the Client, can you please help answer u2013
    Scenario u2013 Upgrade from ECC 6.0 to ECC 6.0 EhP4
    1 Using Business Function Prediction service, assume SAP recommends 10 Business functions to be installed. We install the 10 business functions and after 6 months the client realizes that there are some more functions which will help business.
    a.What does it take to install the additional business functions.
    b.Do we have to do the entire EhP4 Upgrade again
    c.If we have to do the entire EhP4 Upgrade again what happens to the initially installed business functions, will that be overwritten
    d.What will be the additional SPDD and SPAU effort to activate the additional business functions, will that be same as the initial SPDD/ SPAU effort.
    2 Can we install all the Business functions available in EhP4. What happens if we install all the business functions. What will be the additional effort or overhead in terms of hardware, database, ABAP effortu2026..?
    Thanks in advance.

    Hi,
    1. For installing additional business functions you need to again run the whole EHPI process. But what I feel is even you install more than 1 business function you will be able to activate only 1 business function per system.
    2. The initially installed business functions would not go anywhere. You need to select them in your solman before the stack.xml file generation.
    3. SPAU/SPDD effforts depends on your system. So no comments.
    4. If you plan to install all business functions then you will need good amount of DB space and your upgrade downtime would be high.
    Regards,
    Nirmal.K

  • SAP HR : ABAP Query / Infotype enhancement / Field in Q0168 & not in P0168

    Hi all,
    There is a field in the structure Q0168-CSTDT, the field can be seen in the PA20/30 screen under the costs tab.
    This field is not there in the P0168 structure.
    The requirement is to add this to the ABAP Query.
    What steps should be taken ? Do we need ABAP coding ?
    Thanks
    Rahul

    Hi,
        Use Fm : HR_BEN_GET_KEY_DATE to get the Benefit Cost Calculation Date ..
        Look at include MP016840 for the same.
        Look for F1 on the field in pa20/pa30  , you'll get an idea on how this field is calculated.
    Regards,
    Srini.

  • Query in Enhancement

    Hi all,
             I enhanced the component PRDHS with an Enhancement Set ZXXXX.
    Now when I try to enhance a view I get an error as follows;
    "Page, controller, or MIME Header.htm already exists in application PRDHS".
    Please help me to resolve the above error.
    Regards,
    Vijay

    Hi,
    Goto SM34 , open the view cluster BSPWDVC_CMP_EXT and delete the entry for your component PRDHS . Then again goto BSP_WD_CMPWB and again enhance the component .It will ask for the new BSP application name , give it as ZPRDHS and left the repository.xml file as same .
    I think this will solve ur problem
    Manish

  • Query for enhancement point.

    how to  use enhancement point in report?give me one example for this? give proper ans

    Hi Friend,
    We can use enhancement point to enhance standard report for customize requirement of our client.
    You can create enhancement point in display mode. There is button called Enhance (shift + F4). Click on that and it will ve in change like mode; now you can implement any enhancement point.
    To go to display mode press chnage/display button.
    Hope it will help you.
    Regards
    Krishnendu

  • Abap query about enhancement set

    How do we use an enhancement set?Where we can maintain a particular enhancement set to a client?
    *How do we know about an activated enhancement set?
    Moderator message: please search for available information/documentation before asking, this is not a training forum.
    locked by: Thomas Zloch on Oct 5, 2010 5:32 PM

    Hi,
    In PBO code this way :
    MODULE f4_scr OUTPUT.
      REFRESH g_list1.
      g_name1 = c_status.
      g_value_1-key = c_to_be_sub.
      g_value_1-text = c_to_be_sub.
      APPEND g_value_1 TO g_list1.
      g_value_1-key = c_sub.
      g_value_1-text = c_sub.
      APPEND g_value_1 TO g_list1.
      g_value_1-key = c_chg_needed.
      g_value_1-text = c_chg_needed.
      APPEND g_value_1 TO g_list1.
      g_value_1-key = c_app.
      g_value_1-text = c_app.
      APPEND g_value_1 TO g_list1.
      IF NOT g_list1 IS INITIAL.
        CALL FUNCTION 'VRM_SET_VALUES'
          EXPORTING
            id     = g_name1
            values = g_list1.
      ENDIF.
    ENDMODULE.                 " F4_SCR  OUTPUT
    And in PAI :
    MODULE user_command_9000 INPUT.
    * function module to get the list box values.
      g_name1 = c_status.
      CALL FUNCTION 'VRM_GET_VALUES'
        EXPORTING
          id           = g_name1
        IMPORTING
          values       = g_list1
        EXCEPTIONS
          id_not_found = 1
          OTHERS       = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      READ TABLE g_list1 INTO g_wa_list WITH KEY key = g_status.
      IF sy-subrc EQ 0.
        g_status = g_wa_list-text.
      ENDIF.
    ENDMODULE.                 " USER_COMMAND_9000  INPUT
    Hope this helps.
    thanx,
    dhanashri.
    Edited by: Dhanashri Pawar on Aug 21, 2008 11:36 AM

  • BUSINESS INTELLIGENCE ENHANCEMENTS

    제품 : SQL*PLUS
    작성날짜 : 2004-05-17
    ==================================
    BUSINESS INTELLIGENCE ENHANCEMENTS
    ==================================
    PURPOSE
    Oracle 9i에서 강화된 BUSINESS INTELLIGENCE 관련 내용을 요약해 본다.
    Explanation
    아래의 내용에 대해 설명될 것이다.
    - enhanced된 Oracle9i analytical functions
    - Use grouping sets
    - Create SQL statements with the new WITH clause
    Example
    1. enhanced된 Oracle9i analytical functions
    1) Inverse percentile functions (역백분위수 함수)
    : 특정 percent에 해당하는 값을 찾는데 사용된다.
    percentile_disc : 특정 백분위수에 가까운 값을 return하는 함수.
    percentile_cont : linear interpolation을 사용하여 연속적인
    백분위수를 계산하는 함수
    ex) 1999년 11월달의 distribution channel당 판매량의 50%에 가까운
    discrete value을 찾아라.
    select c.channel_desc, avg(s.quantity_sold), percentile_disc(0.5)
    within group
    (order by s.quantity_sold desc) percentile_50
    from sales s, channels c
    where c.channel_id = s.channel_id
    and time_id between '01-NOV-1999' and '30-NOV-1999'
    group by c.channel_desc;
    2) What-if rank and distribution functions
    : 만약 어떤 data가 add된다면 이 data가 어느정도의 rank나 percenage에
    속하는지를 찾는데 사용한다. what if analysis에 해당한다.
    RANK : 그룹에서의 순위
    DENSE_RANK : 중복값을 배제한 순위
    PERCENT_RANK
    CUME_DIST
    ex) 새로운 사람이 고용되어 $10000 을 받는다면 부서당 salary을 비교할때
    어느 정도 rank인가?
    select department_id, round(avg(salary)) avg_salary,
    rank(10000) within group (order by salary desc) rank,
    dense_rank(10000) within group (order by salary desc) dense
    from employees
    group by department_id ;
    3) FIRST/LAST aggregate functions
    : 각 그룹의 첫번째나 마지막 값을 나타낼때 사용한다.
    ex) manager당 commission을 가장 많이 받는 사람과 적게 받는 사람을 구하라.
    select manager_id,
    min(salary) keep (dense_rank first order by commission_pct)
    as low_comm,
    max(salary) keep (dense_rank last order by commission_pct)
    as high_comm
    from employees
    where commission_pct is not null
    group by manager_id;
    4) WIDTH_BUCKET function
    : with_bucket은 oracle 8i의 ntile과 비슷하다. 차이점은 ntile은 있는 모든
    값을 그냥 정해진 bucket의 수로 나누는 것이고. with_bucket은 최소,최상
    값을 정할 수 있다는 점이 다르다.
    만약의 시험성적을 저장하고 있는 테이블이 있으면 각 점수별 분포를 확인
    할때 사용할 수 있다.
    With_bucket(expression, 0, 100,10)
    그러면 10점 단위로 bucket이 생성되고 각 점수별 해당 bucket이 return된다.
    ex) Low boundary value = 3000
    High boundary value = 13000
    Number of buckets = 5
    select last_name, salary ,
    width_bucket(salary,3000,13000,5) as sal_hist
    from employees ;
    5) Grouping sets
    : group by절에 사용되며 소계나 특정 level의 소계등을 구할때 쓰인다.
    2. Use grouping sets
    1) 아래의 세개의 그룹에 대한, product가 10,20,45이고 1999년 11월의 1,2일에
    해당하는 값을 구하라.
    Time, Channel, Product
    Time, Channel
    Channel, Product
    select time_id, channel_id, prod_id, round(sum(quantity_sold)) as cost
    from sales
    where (time_id = '01-DEC-1999' or time_id = '02-DEC-1999')
    and prod_id in (10,20,30)
    group by grouping sets
    ((time_id,channel_id,prod_id),(time_id,channel_id),(channel_id,prod_id)) ;
    2) GROUPING SETS vs. CUBE and ROLLUP (참고 bul#11914)
    CUBE나 ROLLUP은 필요한 group만 볼수 없지만 9i에서는 1)와 같이 원하는
    group만을 볼수 있다.
    select time_id, channel_id, prod_id,
    round(sum(quantity_sold)) as quantity_sum
    from sales
    where (time_id = '01-DEC-1999' or time_id = '02-DEC-1999')
    and prod_id in (10,20,45)
    group by cube(time_id, channel_id, prod_id);
    3) GROUPING SETS vs UNION ALL
    Grouping sets절 대신에 union all을 사용하는 것은 table을 더 많이
    scan하게 되고 문장을 구사하기가 비효율적이다.
    아래의 두 문장은 같은 결과를 return한다.
    select time_id, channel_id, prod_id,
    round(sum(quantity_sold)) as quantity_sum
    from sales
    where (time_id = '01-DEC-1999' or time_id = '02-DEC-1999')
    and prod_id in (10,20,45)
    group by grouping sets (time_id, channel_id, prod_id);
    select to_char(time_id,'DD-MON-YY'),
    round(sum(quantity_sold)) as quantity_sum
    from sales
    where (time_id = '01-DEC-1999' or time_id = '02-DEC-1999')
    and prod_id in (10,20,45)
    group by time_id
    union all
    select channel_id ,
    round(sum(quantity_sold)) as quantity_sum
    from sales
    where (time_id = '01-DEC-1999' or time_id = '02-DEC-1999')
    and prod_id in (10,20,45)
    group by channel_id
    union all
    select to_char(prod_id) ,
    round(sum(quantity_sold)) as quantity_sum
    from sales
    where (time_id = '01-DEC-1999' or time_id = '02-DEC-1999')
    and prod_id in (10,20,45)
    group by prod_id;
    4) Composite Columns
    아래의 세개의 그룹에 대한 product가 10,20,45이고 1999년 11월의 1,2일에
    해당하는 값을 구하라.
    Product
    Product, Channel,Time
    Grand Total
    select prod_id, channel_id, time_id
    , round(sum(quantity_sold)) as sales
    from sales
    where (time_id='01-DEC-1999' or time_id='02-DEC-1999')
    and prod_id in (10,20,45)
    group by rollup(prod_id,(channel_id, time_id))
    3. Create SQL statements with the new WITH clause
    복잡한 query의 Select절에서 같은 block을 한번 이상 query를 할때 쓰인다.
    Query block의 값은 user의 temporary tablespace에 저장한다.
    Perfoemance의 향상을 기대할 수 있다.
    1) 전체 회사의 총 salary의 1/8보다 많은 부서를 구하라.
    with
    summary as (
    select department_name, sum(salary) as dept_total
    from employees, departments
    where employees.department_id = departments.department_id
    group by department_name)
    select department_name, dept_total
    from summary
    where dept_total > (select sum(dept_total) * 1/8 from summary)
    order by dept_total desc ;
    2) 1)을 예전 version에서는 아래와 같이 구현하였다.
    select department_name, sum(salary) as dept_total
    from employees,departments
    where employees.department_id=departments.department_id
    group by department_name
    having sum(salary) > ( select sum(salary) * 1/8
    from employees, departments
    where
    employees.department_id=departments.department_id)
    order by sum(salary) desc;
    4. Benefits
    Improved query speed
    Enhanced developer productivity
    Minimized learning effort
    Standardized syntax
    Reference Ducumment
    Oracle 9i New features for Developer

    Hi Rajasheker,
    Without knowing the exact scenario it is hard to give you an answer but I hope the following broad guidelines might help you.
    1) There must be some thing in common or it may be a case of wrong architecture/missing buseness requirements. Identify the relationship between these two.
    2) Or, do they have a 100% parallel relationship by design? In this casse you need to create a high level common object (dummy) to facilitate the consolidatation process (for example company code or worst scheario sys-id) and enhance both cube as well as ODS.
    3) Or, if it is a complex situation: Introduce a new object which can build a bridge between these two. Ask the business about the rules.
    If it doesn't help, pl give more details.
    Bala

  • User Exit for line item query

    HI There,
    I'm not good at ABAP coding and need some help from experts.
    Working on Line Items Query and enhanced the 0FI_AP_4 to include fields from BSEG table, the fields are:
    GEBER - Funds
    FISTAL - Funds Center
    KOSTL - Cost Center
    GSBER - Business Area.
    I used the below code to enhance the datasource 0FI_AP_4, and its taking toooo long to load the data, but its pulling the line item data into BW.
    Please find another code after this....its very quick, either in extract checker or loading into BW, however its not loading all fields into BW. Specially line items like Cost Center, Fund center and Fund fields.
    Please go through the below codes and suggest me what changes i have to make to work as it should be.
    DATA: L_TABIX LIKE SY-TABIX.
    DATA: ZADTFIAP_3 LIKE DTFIAP_3.
    CASE I_DATASOURCE.
    WHEN '0FI_AP_4'.
    LOOP AT C_T_DATA INTO ZADTFIAP_3.
    L_TABIX = SY-TABIX.
    SELECT SINGLE GEBER FROM BSEG INTO ZADTFIAP_3-GEBER
    WHERE BUKRS = ZADTFIAP_3-BUKRS AND GJAHR = ZADTFIAP_3-FISCPER+0(4).
    SELECT SINGLE FISTL FROM BSEG INTO ZADTFIAP_3-FISTL
    WHERE BUKRS = ZADTFIAP_3-BUKRS AND GJAHR = ZADTFIAP_3-FISCPER+0(4).
    SELECT SINGLE KOSTL FROM BSEG INTO ZADTFIAP_3-KOSTL
    WHERE BUKRS = ZADTFIAP_3-BUKRS AND GJAHR = ZADTFIAP_3-FISCPER+0(4).
    MODIFY C_T_DATA FROM ZADTFIAP_3 INDEX L_TABIX.
    ENDLOOP.
    ENDCASE.
    Below code is extracting data very quickly but not bringing data for all fields specially line items like Fund Center, Cost center and Fund fields.
    DATA: L_TABIX LIKE SY-TABIX.
    DATA: ZADTFIAP_3 LIKE DTFIAP_3,
    wa_bseg Like bseg.
    CASE I_DATASOURCE.
    WHEN '0FI_AP_4'.
    LOOP AT C_T_DATA INTO ZADTFIAP_3.
    L_TABIX = SY-TABIX.
    Select single * from
    bseg into wa_bseg
    where BUKRS = ZADTFIAP_3-BUKRS
    and GJAHR = ZADTFIAP_3-FISCPER+0(4)
    and BELNR = ZADTFIAP_3-BELNR
    and BUZEI = ZADTFIAP_3-BUZEI.
    IF SY-SUBRC = 0.
    Move: wa_BSEG-GEBER to ZADTFIAP_3-GEBER,
    wa_BSEG-FISTL to ZADTFIAP_3-FISTL,
    wa_BSEG-KOSTL to ZADTFIAP_3-KOSTL,
    wa_bseg-GSBER to ZADTFIAP_3-GSBER.
    ENDIF.
    MODIFY C_T_DATA FROM ZADTFIAP_3 INDEX L_TABIX.
    ENDLOOP.
    ENDCASE
    Thanks
    Vandana

    Hi,
    You can try this.
    USEREXIT_MOVE_FIELD_TO_VBEP                                      
    Use this user exit to assign values to new fields at the level of
    the sales document schedule lines.                               
    The user exit is called up at the end of the FORM routine        
    VBEP_FUELLEN.                                                    
    Thanks
    Krishna.

  • IS IT POSSIBLE TO CALL FUNCTION IN sap QUERY sq01

    IS IT POSSIBLE TO CALL FUNCTION IN sap QUERY sq01

    Use enhancement project SQUE0001 for background downloads of query data.  Use the 'Private File' option with the query execution.

  • Need billing item(POSNR) in order to Enhance 2LIS_13_VDITM?

    I want to enhance 2LIS_13_VDITM by using table BSEG. The logic is to extract HKONT and DMBTR from BSEG to 2LIS_13_VDITM based on Billing doc. nr. Now,I have one DSO "ZAAA" in BI system, which use 2LIS_13_VDITM, Key field: 0BILL_NUM, 0BILL_ITEM in DSO. I need to design one query to display billing nr (BELNR), G/L account(HKONT), Netsales(NETWR), Tax amount(MWSBP), Amount in local currency(DMBTR). Only need to display total amount of one billing doc, don't need to show item level.
    The question is about field:BUZEI(Number of Line Item Within Accounting Document) in table BSEG. This field is not related billing item(POSNR). so, how to enhance 2LIS_13_VDITM? BSEG is the right table? Should I create a DB view, and including billing item(POSNR) into DB view? If yes, how to do it and which table should I join together?
    Need to display in Query after enhancement
    BUKRS;BELNR;HKONT;DMBTR;WERKS;FKART;NETWR;MWSBP;DMBTR
    5000; 0656390987; 6330290; 6100; DFSA; 0,00; 117.028,00; 1.817.028,00
    Reference informatiom
    Table: BSEG
    BUKRS;BELNR;BUZEI;BSCHL;DMBTR;HKONT;WERKS;FKBER
    5000; 0656390987; 007; 50; 878.215,00; 0006330290; 6100; 0100
    5000; 0656390987; 012; 50; 717.533,00; 0006330290; 6100; 0100
    5000; 0656390987; 002; 50; 221.280,00; 0006330290; 6100; 0100
    DSO "ZAAA" (Key field: 0BILL_NUM, 0BILL_ITEM) use Datasource 2LIS_13_VDITM
    - Data display for DSO "ZAAA"
    BUKRS;BELNR;POSNR;WERKS;FKART;NETWR;MWSBP
    5000; 0656390987; 10; 6100; DFSA; 78.215,00; 0,00;
    5000; 0656390987; 20; 6100; DFSA; 17.533,00; 0,00;
    5000; 0656390987; 30; 6100; DFSA; 21.280,00; 0,00;
    Thanks

    Reference informatiom
    Table: BSEG
    BUKRS;BELNR;BUZEI;DMBTR;HKONT;WERKS;FKBER;BSCHL;
    5000; 0656390987; 007; 878.215,00; 0006330290; 6100; 0100;50;
    5000; 0656390987; 012; 717.533,00; 0006330290; 6100; 0100;50;
    5000; 0656390987; 002; 221.280,00; 0006330290; 6100; 0100;50;
    Datasource 2LIS_13_VDITM
    BUKRS;BELNR;POSNR;WERKS;FKART;NETWR;MWSBP
    5000; 0656390987; 10; 6100; DFSA; 78.215,00; 0,00;
    5000; 0656390987; 20; 6100; DFSA; 17.533,00; 0,00;
    5000; 0656390987; 30; 6100; DFSA; 21.280,00; 0,00;
    Are there any issue if I write ABAP code to enhance HKONT and DMBTR into 2LIS_13_VDITM, in case there are more than one line item in one billing document, like example 656390987, since there are no relationship between fields BUZEI(accounting item) in BSEG and POSNR(billing item) in 2LIS_13_VDITM.
    User need to display data in the Query after enhancement like below
    BUKRS;BELNR;HKONT;DMBTR;WERKS;FKART;NETWR;MWSBP;DMBTR
    5000; 0656390987; 6330290; 6100; DFSA; 0,00; 117.028,00; 1.817.028,00

  • Attribute data is not displaying in Query

    Hi BW Experts,
    i enahnced some of the fileds to 0employee iam able to see the data in RSA3 and infoobject master data.bu when i executed the query these enhanced fileds data  is not diplaying may i know what is the reason ,i executed attribut change run also . can any one suggest on this issue.
    Regard
    sivaraju

    Hello Sivaraju ,
    Are u using navigational attribute of the enhanced char  of 0employee in the query ?
    if yes , then after loading the master data of 0employee have you run atttribute change run from rsa1..>menu bar tools...attribute change run .
    check master data of 0employee and see whether R3 data is matching with BI for the enhanced char or not ?
    also check in infocube whether u can see the enhanced char of 0employee correctly ?
    My suggestion is to use only navigational attribute of enhanced char or you can add the char to infocube and then in update rule master data look up option . In later case you need to reload the data of infocube.
    This can be avoided by using navigational attribute.
    Check the cube data for the employee along with the enhanced char .
    create a new query along with 0Employee and enhanced char and one key figure and run it for testing purpose and see the result.
    regards ,
    Amol

  • BPC 7MS new features and advantages

    Hi
    I got the info that the following features cast in BPC 7MS version:
    Management console
    - support for seasonality in Insight
    - multiple hierarchies in time dimension
    - Load Runner test tool certification
    - MS Vista support (only for 32 bit machines)
    - Shared query engine
    - Enhanced BPC logging web interface
    Could any one let me know the advantages of these?
    Best Regards
    Anil Kaalla

    Hi Sorin
    Thanks a lot for your valuable information!
    1. In 5.X also you can have multiple hierarchies by adding additional PARENTHn columns to and then defining the parents for the additional hierarchies
    What is that we are going to have by incluging specifically in the new version?
    2.  Can you also please let me know what has changed between BPC 5.1 and BPC 7.0 on MS stack?
    I have seen BPF functionality have been pushed out from BPC 7 NW stack, the features such as Books, Dynamic heirarchy editor etc. are also included in the list.
    Are there any similiar functionalities pushed out from 7.0 MS stack when compared with 5.1 version?
    Best Regards
    Anil Kaalla
    Edited by: ANIL KUMAR on Oct 16, 2008 11:49 AM

  • RULE HINT 11.2

    Version Details
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE 11.2.0.3.0 Production
    TNS for Linux: Version 11.2.0.3.0 - Production
    NLSRTL Version 11.2.0.3.0 - Production
    I have inherited this code in a package and was looking at the explain plan contains a Hint that is RULE , the database is 11.2 is it still valid, can anyone give me some advice on how to improve the below query?
    | Id  | Operation                        | Name                       |
    |   0 | SELECT STATEMENT                 |                            |
    |   1 |  SORT AGGREGATE                  |                            |
    |*  2 |   INDEX RANGE SCAN               | PARCEL_HISTORY_HOLDING_PF1 |
    |   3 |  NESTED LOOPS OUTER              |                            |
    |   4 |   NESTED LOOPS OUTER             |                            |
    |   5 |    NESTED LOOPS OUTER            |                            |
    |*  6 |     FILTER                       |                            |
    |   7 |      NESTED LOOPS OUTER          |                            |
    |   8 |       TABLE ACCESS BY INDEX ROWID| PARCEL_HISTORY_HOLDING     |
    |   9 |        INDEX FULL SCAN           | PARCEL_HISTORY_HOLDING_PF1 |
    |  10 |       TABLE ACCESS BY INDEX ROWID| PARCELS                    |
    |* 11 |        INDEX UNIQUE SCAN         | PARCELS_PK                 |
    |  12 |     TABLE ACCESS BY INDEX ROWID  | PARCEL_ADDRESSES           |
    |* 13 |      INDEX UNIQUE SCAN           | PARCEL_ADDRESSES_PK        |
    |  14 |    TABLE ACCESS BY INDEX ROWID   | PARCEL_ADDRESSES           |
    |* 15 |     INDEX UNIQUE SCAN            | PARCEL_ADDRESSES_PK        |
    |* 16 |   INDEX UNIQUE SCAN              | PARCEL_HISTORY_PIVOT_PK    |
    Predicate Information (identified by operation id):
       2 - access("PH"."PARCEL_ID"=:B1)
       6 - filter("P"."PARCEL_ID" IS NOT NULL)
      11 - access("PHH"."PARCEL_ID"="P"."PARCEL_ID"(+))
      13 - access("PAC"."PARCEL_ID"(+)="P"."PARCEL_ID" AND
                  "PAC"."ADDRESS_TYPE"(+)='COL')
      15 - access("PAD"."PARCEL_ID"(+)="P"."PARCEL_ID" AND
                  "PAD"."ADDRESS_TYPE"(+)='DEL')
      16 - access("PHH"."PARCEL_ID"="PP"."PARCEL_ID"(+))
    Note
       - rule based optimizer used (consider using cbo)
    QUERY
         SELECT   /*+ rule */
                         phh.ROWID tabrow
                        ,phh.parcel_id
                        ,phh.scan_date
                        ,phh.status_code
                        ,phh.reason_code
                        ,phh.app_code
                        ,phh.scan_id
                        ,phh.location_code
                        ,phh.card_id
                        ,phh.signature_captured
                        ,phh.signature_reference
                        ,phh.geo_latitude
                        ,phh.geo_longitude
                        ,phh.geo_date
                        ,phh.geo_signal_strength
                        ,phh.app_create_date
                        ,phh.e2e_create_date
                        ,phh.driver_comments
                        ,p.client_account
                        ,p.client_contract
                        ,p.courier_type
                        ,p.service_code
                        ,p.col_depot
                        ,p.col_tour
                        ,p.del_depot
                        ,p.del_tour
                        ,p.traffic_type
                        ,p.signature_reqd
                        ,p.nom_del_date
                        ,p.exp_del_channel
                        ,p.exp_del_tour
                        ,p.exp_del_date
                        ,p.exp_col_tour
                        ,p.exp_col_date
                        ,pad.geo_latitude del_geo_latitude
                        ,pad.geo_longitude del_geo_longitude
                        ,pad.post_code delivery_postcode
                        ,pac.post_code collection_postcode
                        ,CASE
                             WHEN phh.scan_date =
                                               (SELECT MIN (scan_date)
                                                  FROM parcel_history_holding ph
                                                 WHERE ph.parcel_id = phh.parcel_id)
                             AND pp.parcel_id IS NULL THEN 1
                             ELSE 0
                         END not_in_pp_insert_flag
                        ,get_tt_status (app_code, status_code || reason_code)
                                                                          tt_status_reason
                FROM     parcel_history_holding phh
                        ,parcel_history_pivot pp
                        ,parcels p
                        ,parcel_addresses pad
                        ,parcel_addresses pac
                   WHERE phh.parcel_id = pp.parcel_id(+)
                     AND phh.parcel_id = p.parcel_id(+)
                     AND pad.parcel_id(+) = p.parcel_id
                     AND pad.address_type(+) = 'DEL'
                     AND pac.parcel_id(+) = p.parcel_id
                     AND pac.address_type(+) = 'COL'
                   --  AND p_thread = pkg_utils.get_thread (phh.parcel_id, v_num_threads)
                     AND p.parcel_id IS NOT NULL
                ORDER BY phh.parcel_id
                        ,phh.scan_date;

    As Manik shows with the documentation link, the RULE hint was deprecated ages ago, especially with the CBO becoming the prominent optimizer in 10g.
    And as oracle no longer support Rule based optimization, you could end up with odd 'side effects' if you use it.
    Optimizer hints are something you shouldn't really be using in production code anyway...
    Comments
    Hints were introduced in Oracle7, when users had little recourse if the optimizer generated suboptimal plans. Now Oracle provides a number of tools, including the SQL Tuning Advisor, SQL plan management, and SQL Performance Analyzer, to help you address performance problems that are not solved by the optimizer. Oracle strongly recommends that you use those tools rather than hints. The tools are far superior to hints, because when used on an ongoing basis, they provide fresh solutions as your data and database environment change.
    Hints should be used sparingly, and only after you have collected statistics on the relevant tables and evaluated the optimizer plan without hints using the EXPLAIN PLAN statement. Changing database conditions as well as query performance enhancements in subsequent releases can have significant impact on how hints in your code affect performance.
    (my highlight)

Maybe you are looking for

  • How to make project in 16:9 ratio?

    Hello guys, I apologize for this very silly question. But how do I make my project appear as 16:9? I did open new project and set presets as HDV 1080i. But the project (main window) is still appearing as 4:3. What am I missing?

  • Very Upset w/ brand new macbook

    I purchased a macbook 2g with all the nice perks yesterday. I was really excited about it. Why does it take forever to load pages in safari? I have my 4 year old pc laptop next to me and it has no problem loading pages quickly but this spanking new c

  • I install Software but after reboot-not showing up

    The standalone Sound Blaster XFi driver is the actual program called "Sound Blaster XFi" right? Okay heres the situation. I was having Video Card issues, I just replaced my Video card but I had to take out my Sound Card to hook it up. Later on I noti

  • Error in connecting Visual Admin.

    Hi all , postong a new therad. after appying some of the patches we are unable to connect into Visual administrator.The Pop up says: com.sap.engine.services.security.except ions.BaseLoginException: Can not create new Remote LoginCOntext. Any clue on

  • Updated- Firefox 7 and now i cannot view images

    Just updated -Firefox 7 (BIG MISTAKE ) now the images takes longer to load or never loads, and Firefox 7 is very very slow!!!! Is it just me?