Match codes variables in Bex

Hi.
I'm working in a system that receives data from several SAP source systems and several company's. This causes an huge amount of master data. If a variable is used to select data and if the user pushes F4, all data is showed without any restriction and showing data that is not relevant to the company that it's using the query?
Is there a automatic way to restrict the data showed without changing the search help?
Thanks,
Sónia

Hi Ankit,
To create a variable in BEx,just a simple Varaible.........like for Calday-DATE
1)Open the BEx and on the Left hand side u can c  in the Dimemsion s.
2)Drill down the Dimension,and fine CALDAY in the Time Dimension.
3)In Drill down u hvae Characteristic Value Variable
4)Right Click on the same and Create New.
5)now u can see a new variable with RED Mark and towards ur RIGHT Screen --in the Properties
u have to Fill few information
6)Give a Meaning Full Name in the Description and a Tech name in the NEXT  Tab.
7)In the saem Properties TAB gotot Details TAB and in BAsic Settings--
a)Variabel Reresents-Single/Multiple,Optional -Depending on the requirement.
b)Variable is --Optional/mandatory-Depending on the Req
c)Variable id Ready for Input--Tick --Yes or No.-Depending on req.
After Creating this u can Drag and Drop the Variable from Left Screen of Dimension to the Filter -Char Restrictions part of the Report.
There are also SAP deliverd Variable which u have Just Drag and Drop for SAP Deliverd Objects like date--The Tech NAme of the Variabel is 0DATE.
Based on Ur Requiremnt u can create the Variable.
Rgds
SVU
Edited by: svu123 on Sep 25, 2009 8:58 AM

Similar Messages

  • Match code in report selection screen does not show any values for 0FISCPER

    Hi Experts,
    I have problem with selection screen in several reports. When I use match code for fiscal period selection I get only # as a possible value. I have checked the master data they seem to be correct. I work with 7.0 BW system. Can you please give me any hint what I should check?
    Thank you,
    Michal

    Hi,
    maybe I ask different way - how do you add characteristic values for a characteristic in the BEx? Is it automated somehow in SAP (e.g. from master data)? For the fiscal period I use custommer exit to fill in the default value, which is the current fiscal period. But this is something different, right?
    <removed by moderator>
    Michal
    Edited by: Arun Varadarajan on Nov 14, 2008 3:55 PM

  • 'Text' of a variable in Bex selection screen

    Hello,
    We have a customer exit variable in Bex Query selection.it is mandatory,ready for input,interval which is on 0CALMONTH2.
    In Bex selection screen i am not getting text of default/entered months.
    for example: if default value is 2 to 4,then text would be FEB to APR.
    what could be the reason?how to get teaxts of entered values?
    (we have one more customer exit variable on 0CALMONTH2 which is single value and it shows text of enterd values in bex selection)
    In web it is working fine.
    Rakesh

    Hi,
    Try to create an another customer exit variable for 0CALMONTH2 with mandatory,ready for input,interval. refer the abap code of the another customer exit variable(single value variable) of 0CALMONTH2 which you have mentioned in the bracket and modify the abap code based on the selection - interval. hope it  helps.
    Regs,
    Vachan

  • How to Write a CUstomer Exit for a variable in BEx

    Hi,
    How to write a customer exit variable in bex Query designer
    Do i need developers key for this (If so what type of key do i need so that i can ask basis tean to generate)
    Info Object: ZEXP_DTE (Expiry Date)
    Variable on ZEXP_DTE :
    ZEDTE
    Type: Customer Exit
    Can any one please tell me how to write a code in CMOD from this (Step-by Step)
    Expiry Date > Current Cal Day
    As arun said
    'l_s_range-low = SY-DATUM.
    l_s_range-opt = 'I'.
    l_s_range-sign = 'GT'.
    APPEND l_s_range TO e_t_range.'
    I want to insert the above code for the above customer exit but as i am new to BW as  ABAP please explain me what are the steps involved in CMOD
    Thanks

    Hi,
    To write customer exit for a variable, you require Access key.
    Contact your BASIS to get that.
    Access Key,BASIS?
    To write Customer exit,
    User Exits
    User Exit for Variable
    /thread/809285 [original link is broken]
    Hope these helps u...
    Regards,
    KK.

  • Match Codes

    Hi,
    I am trying to use a single select option in the report
    s_acct FOR bsid-kunnr DEFAULT 9999990000 TO 9999999999.
    Also,I have two radio buttons
    p_ap RADIOBUTTON GROUP r1,
    p_ar RADIOBUTTON GROUP r1,
    I AM TRYING TO ACHIEVE:(F4 functionality depending on the radio buttons selected)
    If p_ap is selected i am trying to get match codes(F4)
    of Vendors(bsik-lifnr) and if p_ar is selected get the match code of Customer(bsid-kunnr).
    Please let me know if there is any easy workaround.
    Thank You,
    Rao

    Even if you use one select option you will have to do some processing to differentiate in your database selections in report . Why dont you use two select options like this ( Only one will be displayed on screen at a time depending on radibutton and you don't need to code for F4 )
    <b>TABLES : LFA1, KNA1.
    PARAMETERS : p_ap RADIOBUTTON GROUP r1 USER-COMMAND VEN default 'X',
                 p_ar RADIOBUTTON GROUP r1.
    SELECT-OPTIONS S_VEN FOR LFA1-LIFNR MODIF ID LIF.
    SELECT-OPTIONS S_CUS FOR KNA1-KUNNR MODIF ID KUN.
    AT SELECTION-SCREEN OUTPUT .
    IF P_AP EQ 'X'.
       LOOP AT SCREEN.
         CHECK SCREEN-GROUP1 EQ 'KUN'.
         SCREEN-ACTIVE = 0.
         MODIFY SCREEN.
       ENDLOOP.
    ELSE.
       LOOP AT SCREEN.
         CHECK SCREEN-GROUP1 EQ 'LIF'.
         SCREEN-ACTIVE = 0.
         MODIFY SCREEN.
       ENDLOOP.
    ENDIF.</b>
    Later in the program you can always copy both selction options to another ranges variable which you can use if required.
    Cheers.
    Sanjay

  • Display of variable value / Bex Web Apllication Designer

    Hello everyone,
    I am using the Bex Web Application Designer to broadcast a report in PDF format.
    In my WebTemplate, in the Info_Field_Item, i have to display a variable value : Company code.
    My problem is in the PDF generated.
    When the number of company code is 4, the result in the PDF is like this:
    Company code : Company1; Company2; Company3; Company4.
    But, when the number of companies is more than 4, for example 8, the result in the PDF is displayed like this:
    Company code : Company1
    Company code : Company2
    Company code : Company3
    Company code : Company4
    Company code : Company8
    It makes a problem of harmonization of reports, i tried many tests, but the result still the same.
    Please, can somone knows how to change it, the PDF result must be like this way (watever the number of companies):
    Company code : Company1; Company2; Company3; Company4; Company5; ...; Company8
    Thank you and have a nice day,
    Best regards.
    Amine

    I found an interesting link about creating Print versions of BI Applications.
    Here, the link, hope it helps:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/43/68ce8391886e47e10000000a422035/content.htm
    I made many tests in the Bex Broadcaster, but always the same issue.
    Also, i modified the size of the INFO FIELD ITEM, but it changes nothing in the final result.
    May be, there is a solution by modifiying the XHTML generated code in the Bex Web Applicatin Designer, especially the concerned line, but i don't knwo how to do, may be somone?
    the concerned line is like this:
    <bi:INFORMATION_ELEMENT_LIST type="ORDEREDLIST" >
                            <bi:INFORMATION_TYPE type="CHOICE" index="1" value="VARIABLE" >
                                <bi:VARIABLE value="AB_COMPANY" text="Company Code" />
    I am waiting your answers
    Best regards,
    Amine

  • How to create Text Variables in BEx Query Designer

    How  can i create Text Variables in Bex Q.D.
    I am able to create characteristic variables
    but i can't find option to create text variables.
    What's the requirement to create Text variables in Bex Q.D.
    When i try to create Text variable for 0calDay.. the variable type is characteristic by Default and disabled.
    How can i create text variables related to 0CalDay with which i need to work in Customer Exit.

    Hi,
    You have to create characteristic variable processing by Customer Exit by considering 0CalDay as a Reference Characteristic
    After creation of the above variable, you restrict your KF with the above created variable.
    Now you can create a Text variable for the description of your KF. This way it works...........
    Regards,
    Suman

  • FBL5N : problem with Match-code

    Hi,
    In Tcode FBL5N i click on match-code of Customer Account's field to choose a Customer, in the first table (Customers by company code) when Ii click on one customer the list of customers is closed but i get nothing in Customer Account's field (it is empty)
    Please how to resolve this problem ?
    Regards.
    Edited by: jehade el aoumari on Jan 20, 2010 9:28 AM

    Hi ,
    I had the same issue with FBL1N and I managed to solve it.
    1. Open SE11
    2. Select radio button search Help
    3. Enter DEBI
    4. Click on change
    5. Choose Maint. in logon lang.
    6. Go to tab Included search help
    7. Select line DEBID
    8. Click on Param. assignment
    9. On the 1st line enter      KUNNR     C      KUNNR
    10. On the 2nd line enter   BUKRS     C      BUKRS
    11. Save
    This should solve your issue.
    Regards,
    Ben

  • How to add the Match code object for the requisitioner field in TCODE ME51N

    Hi,
    How to add the search help (Match code object) for the requisitioner field in transaction ME51N.
    Please  do the needful to me.
    Regards
    Rajesh

    don't you think that posting your question to a microsoft developer site would be more efficient?
    regards,
    anton

  • How to delete duplicate entries in match code

    I want to delete duplicate entries in match code.

    If you go down the search exit route, using function module F4_IF_SHLP_EXAMPLE or function module F4_IF_SHLP_EXIT as a template you want it where callcontrol-step = 'DISP'.  You would sort the table: SORT RECORD_TAB BY STRING and then delete adjacent duplicates. If this does not wok because of the fields you have in your search help, you will need to select the data into another internal table and match the relevant entries from your internal table  with the relevant position in field STRING of RECORD_TAB.  The positions in STRING will be as per the order of the parameters  you have defined in the search help.
    Hope this helps.
    Regards
    Larissa

  • How to create a variable in BEx 7.0

    Hi,
    Can anyone please tell me how to create a variable in BEx 7.0
    In 3.5, when we right click on a characteristic, we used to get an option for restrict.
    I cant find any such option in 7.0

    Hi,
    Right click on the characteristic 0CALMONTH in the default values or drag it to char. restriction section and say restrict.Pull the drop down menu in that to select variables. There u will get a create icon.Click on that...then in details tab u can specify whether mandatory,interval and all..
    Regards,
    Rathy

  • Calendar prompt for Date variable from bex

    Hi All,
    I have a Bex query where I have a variable on 0CALDAY
    - Customer exit (i_step = 1 to populate with current date)
    - Single value
    - Mandatory
    I created universe on this query and in webI selection screen i do see the variable prompt.
    I am not able to see the current date populated automatically since exit values are not populated to WebI at runtime.
    My problem is that in WebI selection screen we get list of date values from the info provider instead of Calendar prompt
    where user can enter the values directly.
    I am currently on BO XI 3.1 SP3.
    Is there any specific setting in Universe or bex query which is required to get this Calendar prompt instead of list of values for dates?
    Note: When we were on SP1 the universe created then had same variable from bex and it still shows us Calendar prompt but ever since we upgraded to SP3 for the query splitter functionality we not able to get the calendar prompt for date variable in new universe we create
    Thanks
    Ritesh

    Yep.
    Now tell me how you want to show that Prompt @ WebI report level.
    My problem is that in WebI selection screen we get list of date values from the info provider instead of Calendar prompt
    where user can enter the values directly. Exactly, i didn't get this??
    @Prompt:
    You have flexibility to show options like:
    Mono/Multi: User can select Single value or Multiple.
    BW Variable: Same we have (Single/Multiple)
    Free/Constrained: User can Enter his/her value directly or No change option.
    BW Variable: By defalut you will get this, once you made it to Optional input.
    Persistent/Not_Persistent: Refreshed report has to show last selected value means use Persistent otherwise Not_P.
    By seeing the Prompt syntax , I can say your Variable is after Customer Exit, Correct??
    Workaround for your Problem is:
    <FILTER KEY="ZV_DATE"><CONDITION OPERATORCONDITION="Equal"><CONSTANT TECH_NAME="@Prompt('Date (Previous Day)','A','Date\LovDate (Previous Day)Base',mono,primary_key)"/></CONDITION></FILTER>
    You have to remove that Date class and objects from prompt syntax. Because of that it showing up LOV's not calendar.
    Like:
    <FILTER KEY="ZV_DATE"><CONDITION OPERATORCONDITION="Equal"><CONSTANT TECH_NAME="@Prompt('Date (Previous Day)','A',',mono,primary_key)"/></CONDITION></FILTER>
    Why, It should be blank??
    Because Date needs no class\object to show up, by default you will get Calendar on the fly.
    Hope you got my point.
    Thank You!!

  • In a query, for the selection field 'KNB1-ZWELS' a match-code isn't availab

    Hi All,
    Creating a query, for the selection field 'KNB1-ZWELS' a match-code isn't available.
    Could anyone tell me the reason?
    Thanks
    Gandalf

    Hi,
    Match Code Object is not available for the field ZWELS. If required, You need to contact a Developer for creating one .

  • How to create variables in Bex query

    Hi all,
    can anyone please explain how to create the variables and how many types of variables in Bex Query.
    Thanks in advance
    James

    Hi James,
    You can create variables in the BEx Query by right clicking on your characteristic and then selecting Restrict. A pop up window will appear. On the left side of the pop-up window, right click on a white space and then select New Variable. The Variable Wizard will then appear - you can now create your variable acording to your specifications. For more info on variables, please click on the link below:
    http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a56a7e09411d2acb90000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/61/579b3c494d8e15e10000000a114084/content.htm
    Hope this helps,
    Juice

  • Is it possible to create a variable in bex with the last work day?

    Hi Gurus
    Is it possible to create a variable in bex with the last work day?
    Actually end-user every day open queries,
        - Put in selection date day - 1 or
        - put last Friday if the day is Monday or
        - put last Thursday if the day is Monday and Friday is holiday (in a calendar for example 25 the December).
    Please do the needful. It is urgent
    Thanks in advance
    Raj

    Try this logic in a customer exit:
    DATA:  l_s_range TYPE rsr_s_rangesid.
    DATA:  X_PERIOD LIKE T009B-POPER,
               X_YEAR   LIKE T009B-BDATJ.
      CASE I_VNAM.
      WHEN 'ZPREVWORKDAY'.
        DATA: l_DayOfWeek(1) TYPE C,
              l_act_date     TYPE d,
              l_prev_date    TYPE d.
        l_act_date = sy-datum.
        CALL FUNCTION  'DATE_COMPUTE_DAY'
             EXPORTING DATE = l_act_date
             IMPORTING DAY  = l_DayOfWeek.
        CASE l_DayOfWeek.
          WHEN '1'.
            l_prev_date = l_act_date - 3.
          WHEN '2'.
            l_prev_date = l_act_date - 1.
          WHEN '3'.
            l_prev_date = l_act_date - 1.
          WHEN '4'.
            l_prev_date = l_act_date - 1.
          WHEN '5'.
            l_prev_date = l_act_date - 1.
          WHEN '6'.
            l_prev_date = l_act_date - 1.
          WHEN '7'.
            l_prev_date = l_act_date - 2.
        ENDCASE.
        l_s_range-low  = l_prev_date.
        APPEND l_s_range TO e_t_range.
    ENDCASE.
    Edited by: Tyler Blouse on Feb 13, 2008 8:28 PM

Maybe you are looking for

  • How to change the icon for 'windows group' in Java 1.6 [Windows XP] ?

    Hello, I was wondering if there is a possibility to change the icon for 'windows group' in Java 1.6... I'm using Windows XP SP2. Now the windows from my Java 1.6 application are grouped with the standard Sun icon [screen below] on the group. http://i

  • Create a link to a specific spot in PDF document

    Is it possible to create a link from a Table of Contents item to a specific heading on a page within the same document. So far from what I've read and what I've tried I can only link to a specific page but not a specific section on that page. Is that

  • Modifying a Template will not update the pages

    I have a template that is having problems to update all the pages built with the template. When I edit > save > Update template used in these files, everything looks fine- the updates log shows that it has updated 12 of 12 pages, BUT, when I check th

  • Problem in displaying items into listbox

    Hi, I've a listbox in my page.It will display data from database. But problem starts from here.I have a DAO class in which i am getting list of filters from database and storing it into a DTO.Now how can i display values from that DTO into my listbox

  • CS5 hangs when choosing submenu tools?

    I have a brand new i7 MBP 17", running brand new CS5 Photoshop, and I'm having issues where the application will hang (for a few seconds, 4-8 seconds probably) when I do particular simple tasks... An example is if I just open a brand new document, an