Clarification in Routine

Hi experts,
I have written Routine at the cube level before writing routine here this syntax is already available. I observed that in this syntax before and after the name of the cube  V and T is there what that is.
<b>CHANGING RESULT LIKE /BIC/VZCRM_C04CT-/BIC/ZRCSTAT
           RETURNCODE LIKE SY-SUBRC</b>
Thanks in Advance
Ravi.

Hi Ravi,
Those are the FactView view on the Fact table. You can check it in se11. Goto se11 -> Views -> /BIC/VZCRM_C04CT -> Tables& joines -> find the tact table on which the view is based.
Bye
Dinesh

Similar Messages

  • END ROUTINE clarification

    Hi,
    I have seen below text in help
    Only fields that have a rule in the transformation are transferred from the end routine
    http://help.sap.com/saphelp_nw70/helpdata/en/20/a894ed07e75648ba5cf7c876430589/frameset.htm
    what does it mean..for ex if i populate some infoobject with data in target structure where i don't have any single source field but i read from masterdata tables in end routine then for which source field I should map as i dont have any specific ??
    because actually i written end routine and its syntax everything is fine development system and transport getting failed into quality saying syntax error in end routine..as currently i didnt map any source fields to the target field for which i am populating in end routine ;;;so just i am suspecting whether is it because of this problem or some thing else...
    If any one has idea on this please reply as soon as possible..
    thanks in advance
    BRK
    Edited by: BRK on Jul 22, 2008 10:40 AM

    Hi Banu,
    Is all the field contain special character?.
    Include only those field which contain the special character.
    Structure End routie.
    Take one field abcwith all the special character.like & * ^ %.
    loop at RESULT_PACKAGE assigning <result_fields>.
           do.
    Here compare all the fields which might contain the special character
    with the above filed(which you have defiend earlier).
            if not <result_fields>-/BIC/ZLOCATION co abc.
              apply your logic   
    Include another field.
    Apply the logic.   
    else.
              exit.
            endif.
          enddo.
    endloop.
    Please include all the field in the above structure.
    Hope this is helpful.
    Thanks,
    Saveen

  • Need clarification to write transformation routine for my requirement

    Hi all,
    I have a requirement as mentioned below...
    I have a keyfigure amount which will hold the amount value..now i have been asked to add amount_2000 key figure...it has been done..
    But the real problem is that
    They will give a filter value in DTP selection for the field "area".
    now if they give area as 1000 then the amount field should populat with the respective amount value
    but whereas amount_2000 should populate with only the amount of the area 2000 irrespective of the filter condition given...
    i need to write the routine in the transformation...But the problem is that when we give the filter value in DTP i coudnt get value for amount_2000 as only it gets the value for 1000.
    I hope the requirement is clear...
    can any one help me in this.
    Thanks & Regards,
    Hari.

    Write a routine for the InfoObject amount_2000.
    Use amount and area as source fields.
    Now the coding should look like:
    IF source_fields-area = '2000'.
      RESULT = source_fields-amount.
    ELSE.
      RESULT = 0.
    ENDIF.
    This is independent of the filter values in the DTP.
    Best regards
    Dirk

  • Need Clarification On Internal tables in Start Routine

    Hi,
    I have intenal table some IT_A which deletes the requests which are populated in to it.
    Now I need to populate requests into IT_A from  another internal table like IT_B which are of different structure.
    I have three fields in common in both internal tables like RNR,Timestamp n SID with different field names
    I Need Clarification that if i move the contents of the three fields to IT_A from IT_B by spcifying these three fields.Will the internal table IT_A deletes the Requests?
    Thanks,
    Sriram.

    Hi Sriram,
    As mentioned IT_A deleted the request loaded into it.
    if you move the contents of the three fields to IT_A from IT_B by spcifying the three fields after the deletion step for internal table IT_A takes place then it wont get deleted.
    But it would be deleted if the the contents are moved before the deletion step takes place
    regards,
    mahesh

  • Clarification regarding start routines!

    Dear all,
    I would like to know what exactly the start routines are and how they can be used to manipulate the data coming into the BW system from the R/3 system. If anybody can explain it with an example I would be very greateful. Thanks.
    Regards,
    Sumit

    hi Sumit,
    take a look
    http://help.sap.com/saphelp_nw2004s/helpdata/en/21/894eeee0b911d4b2d90050da4c74dc/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/c3963dfbde4dede10000000a422035/frameset.htm
    other samples
    start routine in transfer rules
    Look up to load master data
    excluding
    Start Routine in Transfer Rules
    Sample code in Update Rule to restrict data selection?
    Append Datapak - transfer start routine
    Excluding Blank field in Infopackage Filter
    Trans Routine ABAP help ..
    start routine in update rules
    Is it possible to read a third ODS in update rules between two ODS?
    update rule coding while loading data from ODS to CUBE
    Start Routine in Update Rules to populate additional fields from ODS
    Coding in Update Rules accessing a Z-Table
    Start routine
    hope this helps.

  • Maintaining the mapping information and writing update routine to populate

    Hi,
    Its my requriment to get the transactional data from r/3, here in the transaction data i will get the data in following format
    (for example)
    Material no.   Sales value    quantity ..
    M001              100           2
    M002              200           4
    M003              150           3
    now my requirement is to take the quantity per material number and multiply it with a factor called as SBU factor
    .. my problem is that this SBU factor is not maintained in r/3 means the mapping information of material no. with its relative SBU factor is not maintained. So i thought of two option as this mapping is fixed means it will not changed so we can maintain in bw system through 1) one time upload of flat file or
    2) maintaning a table in BW with mapping
    so users agreed to give the mapping information as follows
    Material no.    SBU factor
    M001              5
    M002              10
    M003              7
    now while uplading the transational data i need to take the SBU factor per material that is maintained through flat file or table and multiply it with quantity and store it quantity.
    for example(the result i need in cube)
    material no.   sales value    quantity(quantity * SBU)
    M001             100           2*5=10
    M002             200           4*10=40
    M003             150           3*7=21
    so i can do this at two level at transfer rules or update rules.
    I need following clarification
    1) shall i load the mapping information through flat file or maintain it in table?
    2) If i will do the transformation at update rules so wht routine (start or update) should i write to get the SBU factor per material and do transformations
    If possible send the sample routine.
    Pls reply ASAP.
    Thanks
    Saleem.

    Hi Saleem,
    Nimesh is right..Do the multiplication in the Update rules.
    If the data for this SBU factor is less and is always fixed, you can go for one time upload, else set up a RFC Call to load this data to BW from R/3 if no datasource for the same exist.
    Else you can also maintain a table in BW, in which one time upload could be done by writing an ABAP, or manually. And then you can provide authorizsation to add more values to it, so that the table can be maintained.
    And then in Update rules, use the table for look up and get the SBU Factor per material.
    Some thing like
    Select * from the <ODS table or Table name> into <internal table>
    Loop at Data_Package.
    Read table <internal table> for all values in Data_Package where internal table-Material = Data_package-MAterial.
    If sy-subrc = 0.
    Sales Value = Sales Value * internal table-SBU Factor.
    ENDIF.
    MODIFY DATA_PACKAGE.
    ENDLOOP.
    You might need to make more changes to this code as required.
    Assign points if useful
    Regards
    Rohit

  • Clarification on Update Rule Enhancement

    Folks,
    Would appreciate clarification on the following scenario
    I have an infocube being updated with data from R/3
    There are fields in that infocube which needs to be updated with data from a custom table which is maintained in BW
    To be specific.... the cube have entries with cost center and cost element
    Each combination of cost center and cost element is assigned a specific value (a characteristic)
    This specific value is not in R/3, has to be seperately maintained in BW
    What I require is while the data is being updated in the cube, the custom table with the combination of cost center and cost element should be read for the specific value which has to be then written in the cube
    Would appreciate inputs on how I could accomplish this... can this be done with a regular enhancement of update rule in the routine
    Thanks for your time
    Regards

    hi,
    e.g your custom table is ztable1 with 3 fields costctr, costelem, and charval(specific value), and the characteristic to be assigned is zchar, try start routine in update rules and following code.
    hope this helps.
    *put in global area.
    tables : ztable1.
    data : l_ztable1 like ztable1 occurs 0 with header line.
    select * from ztable1
    into table l_ztable1.
    local area
    loop at data_package.
       read table l_ztable1 with key costctr = data_package-costcenter costelem = data_package-costelem.
    if sy-subrc = 0.
       data_package-zchar = l_ztable1-charval.
       modify data_package.
    endif.
    endloop.

  • Condition Group Routines

    Hello,
    I was asked by my functional analyst to implement the ABAP code for the following scenario:
    A header pricing condition type's amount, say ZHDR, needs to be populated by the largest amount found in certain item pricing condition type (say all ZDTL conds) on all items within a sales order.
    Is the solution for this condition group routines?
    Thanks,
    John

    Hi,
    This depends on your requirement. If you have defined the condition at the material pricing group level, then no need. The routine is used only if you want the condition to be read differently for each item (with the scale base value being total of all the items).
    You can find some help in the below link:
    http://help.sap.com/saphelp_erp2005/helpdata/en/de/7a8534c960a134e10000009b38f83b/frameset.htm
    There are some helpful SAP Notes if you need further clarifications:
    39034     Group condition routine
    854978     Function of cumulated scale base values (in SD)
    109708     Scale processing for group conditions
    Hope this helps.
    Regards
    Nikhilesh

  • Transformation Routine for checking condition only once

    Hello,
    I would like to perform he calculations based on certain criteria which goes like this...
          LOOP AT ITab WHERE EMPno  = ITAB Empno AND
                            ATYPE = ITAB-stype .
            IF ITAB-LTYP = '1000'.
              CHECK ITab-ABEGIN GE YR_BEGDT AND ITab-ABEGIN LE YR_ENDDT.
              CHECK FLAG_ST <> 1.
              ITAB-PENDING_ST = ITAB-PENDING_ST + ( ( ITab-BAL / 825 ) * 100 ).
            ELSEIF ITAB-STPE = '2000'.
              CHECK FLAG_SL <> 1.
              ITAB-PENDING_SL = ITAB-PENDING_ST + ( ( ITab-BAL  / 825 ) * 100 ).
              ENDLOOP.
          IF ITAB-stype  = '1000'.
            FLAG_ST = 1.
          ENDIF.
          IF ITAB-stype  = '2000'.
            FLAG_SL = 1.
          ENDIF.
          MODIFY ITAB.
    How to implement this logic in Transformation roles ... as this flag checks only once.... to perform the calculation.
    Thanks
        ENDLOOP.

    Hi there,
    You must be aware of start and end routine in a transformation.
    Assumin that you would like to modify the code before sending it to individual( field wise transormation) transformation , you can write your code in start routine tab of the transformations.
    Code written in Start routine in a transformation can manipulate the data data package wise..
    say for eg if u need to fill the values in indivual routine  then u can save all  the values in an internal table ( say for eg ur itab) in the start routine and this data is available for u in the transformation routines.. so anything written in start rotuine shall work as global modification for the transformation routines.
    Similarly code written in end rotuine shall work for chunk of data which is modified individually in transformation routine.
    you ca go thr this link for more clarification
    http://www.sdn.sap.com/irj/scn/index;jsessionid=(J2EE3417700)ID2067718350DB10090875593766856688End?rid=/library/uuid/609eea32-455e-2c10-c08a-c23adf8c934e&overridelayout=true
    http://help.sap.com/saphelp_nw04/helpdata/en/4f/a9ea964a86b04dbe4df20af6e598cf/frameset.htm
    Regards,
    kk

  • Group Condition types & routines - pricing

    Do we have to code the group condtion routines all the time? If I just have the group condition box checked without any routine coded, I am seeing that SAP is grouping all the items in the sales order using the same access. Please let me know. Thanks.

    Hi,
    This depends on your requirement. If you have defined the condition at the material pricing group level, then no need. The routine is used only if you want the condition to be read differently for each item (with the scale base value being total of all the items).
    You can find some help in the below link:
    http://help.sap.com/saphelp_erp2005/helpdata/en/de/7a8534c960a134e10000009b38f83b/frameset.htm
    There are some helpful SAP Notes if you need further clarifications:
    39034     Group condition routine
    854978     Function of cumulated scale base values (in SD)
    109708     Scale processing for group conditions
    Hope this helps.
    Regards
    Nikhilesh

  • Need clarification for Quarter....( Can Q1 start from DECEMBER )

    Friends..
    I need a clarification regarding the QUARTER 1...
    instead of JAN,FEB,MAR can a Quarter 1 (Q1) start from  DEC,JAN,FEB ...
    Q2 --MAR,APR,MAY ..etc....
    Is there any possible ways to do this ..
    Thanks in Advance
    BASKAR

    Hi Baskar,
    Yes, its feasible.
    However you need to map your 0CALMONTH to your 0CALQUARTER, then write this routine.
    DATA : MY_VARSPMON(6),MY_VARYEAR(4),MY_VARMON(2),MY_VARQUARTER TYPE /BI0/OICALQUARTER.
        MY_VARSPMON = SOURCE_FIELDS-SPMON.
        MY_VARYEAR = MY_VARSPMON+0(4).
        MY_VARMON = MY_VARSPMON+4(2).
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            INPUT  = MY_VARMON
          IMPORTING
            OUTPUT = MY_VARMON.
        IF MY_VARMON = '01' OR MY_VARMON = '02' OR MY_VARMON = '03'. MY_VARYEAR = MY_VARYEAR - 1.
          CONCATENATE MY_VARYEAR '2' INTO MY_VARQUARTER.
        ELSEIF MY_VARMON = '04' OR MY_VARMON = '05' OR MY_VARMON = '06'.
          CONCATENATE MY_VARYEAR '3' INTO MY_VARQUARTER.
        ELSEIF MY_VARMON = '07' OR MY_VARMON = '08' OR MY_VARMON = '09'.
          CONCATENATE MY_VARYEAR '4' INTO MY_VARQUARTER.
        ELSEIF MY_VARMON = '10' OR MY_VARMON = '11' OR MY_VARMON = '12'.
          CONCATENATE MY_VARYEAR '1' INTO MY_VARQUARTER.
        ENDIF.
        RESULT = MY_VARQUARTER.
    I don't guess there's any changes in particular; but you may considerably change as per requirements in the ABAP logic.
    Thanks,
    Arun Bala
    Edited by: Arun Bala G on Jul 16, 2010 7:11 AM

  • Leaving it on v.s. leaving it off confusion (i need clarification please!)

    Guys,
    recently, I have read in a forum saying that it is more healthy for a computer running mac to be stayed on for a long period of time rather than turning it on and off everytime you want to use it. I mean, they prefer to put it in sleep or leave it on rather than turn it off...
    They are saying that this is more efficient for Mac... I'm confused... Please give me clarifications...
    thanks a lot!

    That's probably a safe way to go, unless you use your portable as a
    production machine; then I know of Mac columnists who keep some
    of their Mac portables up and running for up to 16 days without a re-
    start... at a desk and on a power adapter with adequate ventilation.
    Some users keep them plugged-in, too; and let them sleep, to only shut
    them off when traveling long distances where the computer would be in
    a case. In that instance, you'd probably want to turn it off due to battery
    life and heat considerations. Never let one sleep in a closed case or
    where heat could become a big problem; ventilation is important.
    As for using a portable as a desktop machine, it can be run for a long
    time; but like many things, if you don't need to use it, turn it off. I have
    a desktop machine that sometimes stays on all day; but given power
    stability issues and random utility outages, I try to keep mine off when
    I won't be using it... least the power company help its demise.
    [That call-center must have someone occasionally do system
    maintenance and let the day/week/month scripts run via an-
    other means; such as using OnyX to do such chores; other
    wise, a machine "on" all the time, not allowed to sleep, would
    automatically do built-in routines during those night hours.]

  • Help with Update Routines

    Hello!
    I'm quite new to writing Update routines & need help regarding the same.
    I need to write some Update routines for Time Characteristics.
    Here is some info:
    (1) Period to analyze (Custom Char) is in Cal Month/Year (ex:01/2007)
          -- Map 01/2007 to Fiscal Pd/year (007/2006)
    (2) Map Fiscal Pd/year (007/2006) to Planning period (ZDOT_FISCPER -->New Char).
    Planning period (ZDOT_FISCPER) periods are as follows:
    July – Oct      Pd 1
    Nov – Mar      Pd 2
    April – June   Pd 3
    So, Fiscal Pd/year of 007/2006 will be Planning period 02/2006.
    Please advise on how to go about this. Any code for these updates will be of great help.
    Thanks!

    Roberto,
    Appreciate your response. I got a clarification done now, The PERIO is Cal Month/Year. So my Question (1) has an answer now )
    Coming to Question (2):
    Ranges for ZDOR_FISCPER(Planning Period) ranges to Fiscal Period.
    I'm thinking, from the result of (1) which is Fiscal year/period ((lets ignore the year(since it is mapped to Fiscal year(GJAHR) always)), can we do this:
    Fisc pd                  Planning Period
    001-004                               1
    005-009                               2
    010-012                               3
    You think this would work, any clue how to go about this?
    Thanks Again!

  • Error while activating a routine  "no object list"

    hi
    I am getting a error while activating a routine Rv50c601
    "There is no object list for INCLUDEs"  Please suggest on the error and resoulution
    regards
    Nishant

    Try running program RV80HGEN.
    Regards,
    Naiimesh Patel

  • Update Routine

    Hi community,
                          Iam working on Procurement, Here my issue is I have standard Info cubes and they are getting data directly from standard Infosources(According to data flow) . But I want to create DSO between Infocube and Infosources. I have standard DSOs for this infosources which loads data into the cube.
                          By using this DSOs I want to create Update Rules between Info cube and DSO. When I am creating update rules I have all keyfigure which are mapping to routines. In the Routine when I copy routine from Info source and paste it here " I AM GETTING PROCESS KEY IS NOT DEFINED IN COMMUNICATION STRUCTURE" .
                          I have knowledge about process key and this is existing in info source but not in DSO, please tell me how to solve this problem........ to map fields in update rules between Info Cube and DSO....
    Regds
    Dave.

    Dave
    Have you checked this previous thread
    https://forums.sdn.sap.com/click.jspa?searchID=1161413&messageID=1148365
    Thanks
    Sat

Maybe you are looking for

  • Adobe bridge crashs with Mountain lion

    since upgrading to Mountain Lion adobe bridge 5.0 crashes! HELP!

  • PS/Bridge CS5 Batch Processor Not Working / Missing Scripts

    I'm having a bit of a problem within Photoshop/Bridge CS5 and haven't found anything that works to resolve it. In Bridge, I want to launch the Photoshop Batch Processor via Tools>Photoshop>Batch. When I select this, Photoshop launches, but the dialog

  • Applicatio​n builder cRIO

      Dear, I have a project which use the cRIO 9102. There are: - the main VI one the Host computer                   - One VI on the FPGA target I would like created Regards   Massif

  • First time using iDVD

    I have iLife 05 and I am finally getting around to doing all the cool stuff I am capable of with my MAC. I have a few questions hopefully some people out there could answer. 1. When I want to create a DVD, can I use photos from iPhoto and/or home vid

  • Levels of support

    Hi, What are the levels of support project?