Creating new OLap Variable

Hi Experts,
I want to create a new variable for using at data extractions. How can I do that, I tried it at CMOD but I couldn't see my variable at the OLAP Variables list how can I see it in the list ?

How do I get the last 90days from current date in abap routine. When I go to the routine this is what comes up.
Program conversion routine.
Type pools used by conversion program
type-pools: rsarc, rsarr, rssm.
tables: rssdlrange.
Global code used by conversion rules
$$ begin of global u2013 insert your declaration only below this line -
TABLES: ...
DATA:   ...
$$ end of global - insert your declaration only before this line   -
    InfoObject      = SHIPDAT
    Fieldname       = DELIV_DATE
    data type       = DATS
    length          = 000008
    convexit        =
form compute_DELIV_DATE
  tables   l_t_range      structure rssdlrange
  using    p_infopackage  type rslogdpid
           p_fieldname    type rsfnm
  changing p_subrc        like sy-subrc.
      Insert source code to current selection field
$$ begin of routine - insert your code only below this line        -
data: l_idx like sy-tabix.
read table l_t_range with key
     fieldname = 'DELIV_DATE'.
l_idx = sy-tabix.
modify l_t_range index l_idx.
p_subrc = 0.
$$ end of routine - insert your code only before this line         -
endform.         
TIA

Similar Messages

  • Lab View crashing when creating new bound variable

    Hi,
    I have to connect to an OPC server from Lab view and have played around a bit with the OPC client options.
    I would like to use shared variables as that seems like a handy way to access the needed variables. I have followed the instructions in http://zone.ni.com/devzone/cda/tut/p/id/7450 .
    However when i use the create bound variables feature LabView crashes when i browse for OPC tags, step3 under "Create Shared Variables that Connect to the OPC Tags through the I/O Server". If i try to expand the node "OPC1" LabView crashes. I try to access the built in NI OPC server locally.
    Also during this process LabView gives warning box saying "Configure OPC server to run with an identity of interactive user". we did try the the steps in http://zone.ni.com/reference/en-XX/help/371618G-01/lvdschelp/config_local_opc_serv/ . However the The interactive user button was disabled under NI OPC sever properties.
    Is there something i have missed? Something that needs to be configured before going through that tutorial?
    I run LabView 2011 on a 64 bit Win7P computer. The DSC module and the NI OPC Servers are installed and seem to work (when running the OPC examples ).
    Thanks.

    Hello AmritaNikhil,
    Thanks for the post, I have a few questions for you about this issue.
    What versions of NI OPC Servers are you using?
    Is the server hosted on your local machine or on a remote machine?
    Are you able to successfully connect NI OPC Servers and NI OPC Quick Client?
    Have you been successful in using OPC IO Servers in the past or has this issue occurred since you have started your application?
    Can you consistently reproduce this crash?
    You can try to work around this issue by using Network Items rather than Project Items when creating bound variables in the Create Bound Variables window. Please try this option and let me know if you have any additional information about your application that may be helpful in solving this issue. In addition, I have also included a link to a similar post. Hope this helps!
    LV 2011 crash when create bound variables
    http://forums.ni.com/t5/LabVIEW/LV-2011-crash-when-create-bound-variables/m-p/1879137
    Paul-B
    Applications Engineer
    National Instruments

  • Creating new Variables/objects in OLAP Universe

    Hi,
    We are currently using BOXI 3.1 Sp2. We have defined BEX queries on which Universes have been generated (using MDX).
    We are then creating WEBI reports using these Unvierses. We are not able to add variables/objects at universe level as the XML tags do not parse. We are on FP 1.4. Is there any solution to this, or is it a Bug?

    Hi Ingo,
    Thanks for the reply.
    I did go thru the document you provided and did accordingly.
    But still the syntax does not parse. In some cases, it does parse, but does not do the required filter.
    Not sure what the issue is.
    We would also like to create new objects/variables using If then else formula and other Characteristics.
    For example, If company=XYZ then Measure-1000 else Measure.
    But we get syntax error. It appears that only measures can be used in an If-then-else logic, which is absurd.
    We have contacted SAP support on this, but they have not come back with a proper reply yet.

  • Pseudo delta with ABAP or OLAP variables

    Hey gurus!
    Since I have to post my first question at SDN one day, it may better be now! I'm rather new to SAP BI, therefore your help is requested:
    I'm currently implementing a pseudo delta, a full data load from ODS to ODS and subsequently ODS to Cube. The data requested should consist of yesterdays records, which was relatively easy in SAP BW 3.5.
    Since it is not possible anymore to, and I quote, choose one of the following selections in the Type (Variable Changing of Selections with Background Processing) entry column from the Data Selection tab page (numbers 0-7, 0 is required), I can now only solve it with creating another OLAP variable or ABAP coding.
    Is there anyone that can give me some advice or provide me with some basic ABAP coding which selects data from 'yesterday?'
    Your help is appreciated!
    Regards,
    Joost

    Thanks for your reply Pom!
    I'm not sure where to insert the '0' as type in my case. I've created a data transfer process instead of an infopackage now, but when setting up my filter there is nowhere to select the type. Or do I have to create an 'old fashioned' infopackage?!
    Your help is appreciated, please provide some directions.
    Regards,
    Joost

  • Creation of an OLAP variable

    Hai All,
               I need to create an OLAP variable in an infopackage for an object for picking up data from last two months. I mean to say that the object has to pickup all the data pertaining to the last two moths only from the system date without any manual intervention. I see that there is an option in info package where I can select 7-OLAP variable and another option ABAP program. Which one of these is a good way and how to doit? any advise or also any reference to documentationwill be appreciated.
    Thank you very much.
    Message was edited by: vasu vasu

    Hi Vasu,
    > I already created a
    > variable giving an offset but its not showingup in
    > the list of OLAP variable showed in the info package.
    > Is there any other place where I need to do this?
    I experienced the same problem. My solution was to edit the variable and deselect the 'ready for input' option. Also the variable has to be a SAP- or customer-exit variable so that it can run as a background job.
    Best regards,
    Christian Frier

  • Step by step OLAP variable for Infopackage

    Hi Experts
    I have been thru all the threads but am still not clear how to accomplish this.  I am not an ABAPer so am trying to do this in Bex.
    I am in BI 7.0.  I want to create an OLAP variable for 0CO_OM_CCA_9 infopackage to select all cost centers for one 0comp_code.
    I've tried creating a query as well as variable but I can't seem to get it to work.
    I think the problem is all of the various possibilities of Settings in the variable creation i.e. Processed by, repalcement path, etc
    Thanks very much for your help !

    Thank you very much Sven !  This is exactly what I needed.
    I have a couple of additional questions.
    Do I use the variable in this query somewhere or just create it on the Cube?
    For Replacement Rule do I choose query and use the query I've just created or choose variable ?
    I have done this with query in replacement Rule and I can't see my variable in the list for selections in my Infopackage. 
    Thanks for your help
    laura

  • OLAP variable creation

    Hello All,
    I want to create an OLAP variable for a master data infoSource to do selections for a specific infoObject. I am in the data selection tab but forgot how to start. Please advise.
    Thank you and kind regards,
    Keith

    hi Keith,
    take a look threads
    how to write OLAP Variable which used in infopackage
    Infopackage selection: OLAP variable
    OLAP variable for data selection
    hope this helps.

  • Problem in OLAP Variable for InfoPackage

    Hi All ,
    My requiremnt is to get all the Blank values for VERSION field from the R/3 to BW .
    So I created a OLAP variable and given that variable in the InfoPackage.
    code i written is
      IF p_vnam = 'ZS_BLKVR'.
        CLEAR: l_s_range.
        l_s_range-sign  = 'I'.
        l_s_range-opt  = 'EQ'.
        l_s_range-low   = '' .
        l_s_range-high  = '' .
        APPEND l_s_range TO p_t_range.
        CLEAR: l_s_range.
      ENDIF.
    Now when iam loading data in BW , it is giving zero records , but there are records in r/3 with blank values for VERSION field.
    in the selection critria it is displaying as '#' for Version in the monitor.
    So is there any other way to get the Blank values VERSION records from R/3
    Thank You.....

    Hi Ravi,
    You can write an ABAP routine to populate the VERSION field. Choose type '6' from the drop-dwon and try the following code,
    loop at l_t_range into l_s_range where fieldname = 'VERSION'.
      l_s_range-low = ' '.
      modify l_t_range from l_s_range.
    endloop.
    If it doesn't work then try to use the other way round. Find out what are the non-zero values possibel for version and exclude all the values from the selection.
    Hope it helps.
    Thanks,
    Soumya

  • OLAP Variable not populated

    Hi All,
    I have created an OLAP variable which is being used in an infopak. In development, when i go into the infopak and display the result of the variable, i get what am expecting.
    However, after I have transported this to QA, when I go into the infopak and try to display the result of the variable i get the following error;
    BEx variable YVC00060 could not be evaluated - No
    error message.
    I have checked the user exit in cmod and the code is there and it is active. Have searched the usual places but cannot find any answers.
    thanks Geoff.

    Hi Geoffrey,
    Could you please explain a little bit more.
    How you are using a Bex variable (YVC00060) in Infopack?
    Anyway, one thing I could think of is that the Function Module's (EXIT_SAPLRSS0_001) assignment may have become inactive.
    Please check the assignment in CMOD.
    Regards,
    Vikrant.

  • Olap universe(creating new object)

    All,
    I am using bo 4.0 version and i have created an olap universe on top of bex query.i am new to olap universe.
    I have a need to create a new customized object in my olap universe out of two existing objects.As of now i am creating variables in my webi report generated out of the olap universe to fit my need.Instead i want to create a condition object or some kind of object in the universe itself.
    how can i do this?Any ideas or suggestions.
    For ex:
    my requirement looks like this,not exactly the same as indicated below but similar.
    existing objects
    city object has certain values 'hyd','new york'
    currency objecthas 'rupee','dollar'
    new person object out of the above mentioned existing objects
    if city='hyd' and currency='rupee' then 'indian' else 'non indian'
    how can i do this?Any ideas or suggestions.
    Regards,
    Reji.
    Edited by: reji2011 on Dec 7, 2011 11:10 PM

    Hi,
    there's a function builder / formula editor in Universe Designer, with OLAP universes this uses MDX syntax with XML markup.
    to build up some logic, you need to use the "IIF" operator.
    regards,
    H
    p.s.  in BI 4.0,   route-one should be the BICS BEx connection, not the OLAP .unv ..

  • Variable to create new dimension value in Webi

    hi There
    in a webi report, i have couple of variables, what i need to do is to create a new dimension by these variables, so i can use it in a chart
    for example:
    i have current month, previous month, previous of previous month, all of them are variables, i need to create a new dimension, so i can use it in a crosstab to create a chart
    thanks
    Cleo

    because the client needs 6 months trend report, and in webi level, it is hard to use the report date prompted by the user to calculate the 5 previous months, so in universe level, i create 5 objects to get 5 previous month of report month prompted by the user, for example, if the user input the report month ="3/24/2014", the previous month will be 2/1/2014, and previous previous will be 1/1/2014, then 12/1/2013, 11/1/2013, 10/1/2013
    under each month, i will create 6 variables for another metric, say % medium error=total tickets opened where priority = medium, the reason, i create these fields manually, because not all of the month will have tickets opened by all support group, i know i can create a 6 months object in universe level, but if i add drill down filters, if the support has no ticket, the 6 months trend will be changed to 2 or 3 months, the user wants report layout has no change no matter if it will have data or not, that is why i create different variables for the month, and different variables for other metrcis. i already finished this table part, but the issue is i cannot use this table data to create a chart, so i need to creat new variables to include all these 6 months variables and metrcis "% medium error" variables
    thanks,

  • ALERTS: Is it possible to create a new container Variable in Existing alert

    Hi PI Experts,
    I have a existing alert ZTEST defined in ALRTCATDEF. Now I want to create a new container variable PONUM to ZTEST in a UDF and populate it with a value coming in the payload. I have defined an alert rule for this alert and this alert will get triggered for any IE and AE msg failures for my sedner & interface combination. I tried calling the RFC SALERT_CREATE from my UDF by making RFC lookup and passed PONUM as Element and value from a fileld in Value element. If a msg failed in PI, two alerts are getting triggered. One for the alert rule I defined and other because of the RFC lookup (SALERT_CREATE). The one raised from alert rule does'nt contain the PONUM value I passed fron UDF and the one called from SALERT_CREATE does'nt contain the existing container variables defined in ZTEST (like SXMS_MSG_GUID, SXMS_FROM_SERVICE etc).
    Please let me know, how can I raise only one alert for any msg failures for my sender & interface combination. Inaddition to the usual container elements (SXMS_MSG_GUID, SXMS_FROM_SERVICE etc) my alert should also contain a variable containing the PONUM (from the incoming payload).
    Thanks,
    Raki

    Hi Experts,
    Is there a way to achive below requirement.
    Thanks,
    Rakesh

  • Using bind variables in creating new recordgroup

    hi
    i am creating a new recordgroup and assigning it to the LOV using forms personalization in new item instance trigger .
    when i use the bind variables in the record group query i am getting errored out. if i remove the bind variables in the query then RG is creating and is assigned to the LOV and i can use it.
    can anyone help me how to refer the values from the exising form to build a dynamic record group query.

    Can you please send me the code you used in Forms Personalization to create new RecordGroup and attach it to an item. my mail id is [email protected]

  • Create New Variable for COPA Drilldown Reports in KE3E

    Hi,
    How can we create a formula variable for COPA Drill down reports in KE3E? In standard global variables formula variable is not avaiable, I need to create a formula variables like ...from period, to period, last fiscal year and next fiscal year..
    While creating report in KE31/KE35 trying create local variables, but it doesn't.
    Can any body advise how can we create a new variables for  "from period, to period, last fiscal year and next fiscal year.."
    Thanks
    VS Rao

    Hi Rao
    For Period (From &To)
    1. KE3E
    2. Type of Var = Char Value
        Enter variable name, say, ZPERIOD
        Field Name = PERDE
        Replacement type = Entry
        Enter Description
        Parameter/selectop = Selection Option
    For Fiscal Year
        Type of Var = Char Value
        Enter variable name, say, ZGJAHR
        Field Name = GJAHR
        Replacement type = Entry
        Enter Description
        Parameter/selectop = Parameter
    For Next and Last Fiscal Year
    When you define your form in KE34/KE35
    Use the variable ZGJAHR in your report
    In the column for Next Year, Enter "ZGJAHR+1" as the local variable for GJAHR
    In the Column for Last year, Enter  "ZGJAHR-1" as the local variable for GJAHR
    Regards
    Ajay M

  • Creating OLAP variables for infopackages

    Hello Gurus,
    I am interested in creating an "z" OLAP variable and then use in the DATA SELECTION in the infopackage,
    Where can I create the same?
    Thanks in advance.

    Hi,
    The following links will be very helpful for you.
    Step by step OLAP variable for Infopackage
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a05ac9fa-f44c-2c10-dbb8-ef54c102707c?quicklink=index&overridelayout=true
    Regards,
    Kush Kashyap

Maybe you are looking for

  • WebDAV: delete or rename of a folder doesn't work in XP clients

    Hello! I provide file sharing via WebDAV to some Windows XP clients. The clients can create files and folders, but they can't rename folders (renaming files does work). When I mount the WebDAV-Folder in MacOS, renaming folders does work perfectly. I

  • How can I use TrueSequenceFactory with multiple sequences

    In the post "How to use existing Oracle sequences using KODO" answered by Marc Prud'hommeaux a "sample code" was given. But seems to me that example will only work with a single Oracle sequence for the entire system. Is this right? How can I use True

  • App server , process scheduler , web server and DB scripts

    Team, Good Morning. I am looking for the script which will help me in doing health check-up for app server , process scheduler , web server and DB. The script should trigger a email when any one of the domain is down and when it get up. Waiting heart

  • Question on call logs?

    On my bb storm in recent call logs there is one heading only for each contact I called and if you want you can view history. On my x each ind. call is listed separately is there a way to eliminate this? I call my office a lot and it fills recent call

  • How to open examples in Essbase Studio console

    Hi, How to open examples comes with Essbase 11 in studio console? Thanks, Best, Veeranna Ronad.