Dynamic variables: SELECTION-SCREEN PUSHBUTTON

hi, how I can create 100 buttons on a cycle so dynamic?
example:
SELECTION-SCREEN BEGIN OF LINE.
   SELECTION-SCREEN PUSHBUTTON (4)  TEXT-001    USER-COMMAND but1.
   SELECTION-SCREEN PUSHBUTTON (4)  TEXT-002    USER-COMMAND but2.
   SELECTION-SCREEN PUSHBUTTON (4)  TEXT-003    USER-COMMAND but3.
   SELECTION-SCREEN PUSHBUTTON (4)  TEXT-004    USER-COMMAND but4.
SELECTION-SCREEN END OF LINE.
.....must be dynamic and they can be 100 and just 10
thanks in advance.
goudden.

It gives you an error cause the macro is wrong. Try like this:
define create_line.
SELECTION-SCREEN BEGIN OF LINE.
   SELECTION-SCREEN PUSHBUTTON (4)  TEXT-&1    USER-COMMAND b&1.
   SELECTION-SCREEN PUSHBUTTON (4)  TEXT-&2    USER-COMMAND b&2.
   SELECTION-SCREEN PUSHBUTTON (4)  TEXT-&3    USER-COMMAND b&3.
   SELECTION-SCREEN PUSHBUTTON (4)  TEXT-&4    USER-COMMAND b&4.
SELECTION-SCREEN END OF LINE.
end-of-definition.
selection-screen begin of block b01.
     create_line: 001 002 003 004, 005 006 007 008.
selection-screen end of block b01.

Similar Messages

  • Dynamic variable selection screen

    Hi Gurus,
    I have a requirement here with the variable in the query. When running the query for the first time the year vaiable will have single selection. but when running the query for multiple times the same variable(year) should show range value to be entered. Please let know if this can be achieved via Query Designer or WAD? If yes how?
    Thanks

    You can only assign one variable at the time for a specific Characteristic, in this case year.
    One thing you could do is to declare that characteristic as "Selection Option"... That way you could use it for any case, whether it is selecting a single value or a range...
    Hope this helps.

  • How to use Keyfigures in the Bex variable selection screen.

    Hi,
    I have a scenario, where the user whats to see the keyfigures like volume, amount in the variable selection screen, so that he can dynamically, set the condition according to his requirement.
    For example , he wants to see all the PO's for a particular calmonth which have volume >  1 Million or on someother day, he may input the value as volume > 2Million or Volume < 0 , so it depends. Similarly he wants to dynamically select the Amount values.
    I have tried using condition with "greater than"and value as a formula variable and it works for one condition, but if I add another condition i.e, "less than"and value as a formula variable then it conflicts and the query is throughing below error.
    "ERROR BRAIN (418): Variable ZCS_VAR_CH_KG_LT (DC015DZ850NUYVFDMPJHRGHXW) does not exist or is incorrectly used 4 Volume"."".
    Do we have a option to use customer exit in such a scenario ??, any suggestions please.

    Hi,
    Please check out the below link.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/60b33a28-dca2-2d10-f3b2-d2096b460b1e&overridelayout=true
    Hope it suffice your requirement.
    Regards,
    AL

  • How to add customize message on the variable selection screen in the query

    Hi all,
    Can we add an customise message on the variable selection screen in the query? If yes please let me know how it can be achevied?
    Thanks,
    Rani

    Hi Rani,
    I faced a similar issue (for what I understand your request is).
    My requirement for the Variable Screen was to do:
       1) place a link to a ppt file
       2) remove buttons "Save", "Save As...), "Delete"... the standard buttons come when running the Query or WebTempl
    We were using a Web Templ for BI7.0
    I struggled trying to find out how to do it. My conclusions are:
    - WAD, not sure we can accomplish it using a Web Template but i did not "play" a lot with the Web_Template Properties in order to know
    - XHTML, I was told in my post HTML modification was the way, but I have close to nil background in HTML and couold not find the way of accessing the Variable Entry screen
    For instance, I had to remove similar buttons and change some font size from a link on the Web Template (WAD), which was pretty straight forward. In WAD the buttons come with its own icon and to increase the Font size for that link we used XHTML (<font size="2" >). But the heck of the variable screen...well, i just did not get trhough to it to modify it in any way.
    Good luck,
    Definetly in a Query I would say that no.
    alex
    PS: If anyone had a better insight, please feel free to share it.

  • How to include text lable in Variable selection screen (Web Reporting)

    Hi Experts,
    I have created one query and in Web Report-->variable selection screen I have one Date field for that field I have to display a label stating that user to input date in the format YYYY.MM(like a text label).Actually I have created 10 to 12 report . I need u r suggestion such that a single change will reflect my requirement in all the reports and I have created all the reports for same multiprovider.
    Thanks in Advance
    Yours,
    Bala

    Bala,
    Prompts can originate from one of two places:  either via Designer and using the @prompt functionality or while creating the report building a prompt in the Query Filters panel.  If the prompt was built using the @prompt method, and all 10-12 reports are using that particular @prompt, then one change via Designer will cause all reports to reflect the new verbiage.  If you built the 10-12 reports using the prompt in the second scenario, then each individual report needs to be opened, modified and then saved.  If you must use the latter method, then you can open the first report, modify the prompt verbiage, then highlight the new verbiage with your mouse and hit Control-C (which copies that text to the Clipboard of your Windows system).  Then go to the second report, locate the verbiage that needs to be changed, delete it, then Control-V (which pastes), and voila, some keyboarding strokes are saved....
    Thanks,
    John

  • Limit list of values in variable selection screen

    Hi
    Apologies if this has been asked / answered elsewhere, but I thought I would put it out there, at least while I continue trying to find a solution.
    We have a requirement to limit the data from which a user is allowed to select values in the variable selection screen. I know how to write the ABAP code that will return the list of data from which the user can choose, but not sure how to implement that in the query variable.
    Essentially, the BEx query needs an input on username, and the current user should be able to choose from a list of usernames. That list of usernames should only be usernames to which the current user has access.
    Don't worry about the linking of current user to user names, that is taken care of in our DSO.
    What I am after, is limiting the data that comes back when the "F4 Help" type button is pressed on the variable screen.
    I can default a value in the customer exit variable using ABAP code in the i_step = 1 loop, but that doesn't seem to effect the list of data available for selection.
    Any decent ideas?
    Cheers,
    Andrew

    Hi Andrew,
    As charlie suggested go for Analysis authorization that is the simplest approach to restrict values for any object, in another way you can use following BADI for value restriction using ABAP code, refer the below link.
    [http://www.consolut.com/en/s/sap-ides-access/d/s/doc/YY-BW_BADI_F4]
    By using customer exit you can only populate default values but you will not be able to restrict F4 help values.
    Regards,
    Durgesh.

  • Logical Database selection screen pushbutton

    Hello All,
    I need to create a pushbutton on a selection screen of a logical database.  Basically this pushbutton when clicked will either display or suppress some fields on the screen.  I have tried to use the SSCRFIELDS option to create a pushbutton, however that never displays for me.  Logical Database DDF has an example of a pushbutton that I am looking to create, however the functionality will be different.  I am not sure what I am missing, can anyone help?  Thanks.
    John

    Hello All,
    Thanks for your replies. However, there is something that is causing these options not to work.  For some reason when using SSCRFIELDS nothing displays.  For the SELECTION-SCREEN PUSHBUTTON command, we see the push button however our code for some reason is not working.  I have another developer working this with me and we are both stumped.  We are mirroring that DDF Logical Database and are not having any luck so far.  Does anyone have any further suggestions?
    John

  • Filter value for variable selection screen

    Hi & help !,
    This could be a tricky or an easy question, but it seems too hard for me !
    I'm storing version in my cube, and have a report which shows informations for the version you select (with a variable = ZVERSION01).
    ex :  Version :
    V01
    V02
    V03
    V04
    When report is executed i have my variable selection screen (for variable ZVERSION01) which give all version [V01 -> V04]. But i want users have no access to version V01 & V02.
    Variable ZVERSION01 is "single selection", i tried to filter with Default Values screen or Characteristic Restriction screen but it doesn't work.
    ex : caracterisitic restriction screen : VERSION = !V01 / !V02
          default value screen : variable VERSION = ZVERSION01
    Any idea?
    Thx

    Hi,
    In BI 7.0 there is Anaylysis authorisation RSECADMIN transaction. That you can use here or normal role concept will also do.
    What you need to do is grant authorisation to the users for V03 and 04 version only and create 'Authorisation' type variable on version in the query. (type of variable - it asks while creating the variable). This way users will only be able to see authorised versions only.
    Note you have to make version infoobject as Authorisation relevent infoobject. ( in infoobject properties).
    Let me knw if you have any doubt.
    Regards,
    Viren

  • Need to skip the variable selection screen when using dropdown

    Hello Friends,
    I have created a web template having a dropdown, a table and a text element. Basically I am trying to follow the guide "How to Use a Dropdown Box to Set Variable Values". It shows how to select values for a variable using dropdown.
    NOTE: The guide can be found here:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/2642ab90-0201-0010-9193-d59de66cbab4
    What is happening is when I select a value for the variable in the dropdown, the correct url is getting formed but instead of displaying the report using the selected value, the variable selection screen appears. Given below is the url that gets formed:
    http://abcdev.wdf.sap-ag.de:8000/sap/bw/BEx?SAP-LANGUAGE=E&PAGENO=1&REQUEST_NO=3&CMD=PROCESS_VARIABLES&SUBCMD=VAR_SUBMIT&VAR_NAME_1=TSTPEROD&VAR_VALUE_EXT_1=04.2007
    Please assist me to get rid of the variable selection screen. Thanks!
    Regards,
    Prem.

    Hello Ray,
    Thanks for your reply. This has partially resovled the issue. I have awarded you points for that. Now I am able to skip the variable screen.
    However, the query results are not getting refreshed. I wanted to restirct the values based on the value given in the variable selection (In my case the dropdown box). Somehow I am not able to link the dropdown with the variable or the "SAPBWOpenURL(url);" function is having some issues.
    Please assist. Thanks!
    Regards,
    Prem.

  • Caption in the Variable Selection Screen

    Hi,
    I have my queries in web templates on WAD. I want to attach a description for each report which shows on the top of the selection screen, how can I do it. For example i have a P&L monthly report with the selection screen include a selection for Fiscal Period and GL Account, I want to have the caption :
    "P&L Monthly". How can I achieve this
    Thanks
    Rashmi.

    Hi,
    I have tried it but it is showing the caption once i enter the variables and get into the web template. I want it to show on the variable selection screen as well. How can i do it
    Thanks
    Rashmi.

  • Variable selection screen

    Hi,
    I have 2 currency varaibles in my variable selection screen. Now i want to remove one. I can't find these variables in query deffination.
    Can you tell me how should i remove the currency conversion variables from the web template selection screen. where in query defination can I find it.. or i have to do it some other way..
    Thanks and Regrds
    ravi

    Hi Ravi,
      if you just want to remove a variable its simple.
      1.Go to the query designer.In the query designer selecting the appropriate info object its attached to it.
    2. Right click and select the context menu -> restrict
    3. IN the pop up window de select the variable you want to remove.
    If it doesn't solve your problem post with more details abt your req.
    Cheers,
    Mathivanan

  • How to run the variable exit without calling the variable selection screen?

    Hi all
    I have a query with 2 variables 0P_PRQUA (Previous Calendar Quarter (SAP Exit)) and ZCCDAT02.
    ZCCDAT02 is a Key Date variable that is derived based on the last day of the quarter that is entered in 0P_PRQUA. The exit code works correctly when calling up the variable screen and ZCCDAT02 is derived properly.
    The problem is that 0P_PRQUA is set to "Can be changed in query navigation". So if the user changes the value of the quarter the exit is not triggered and the value of ZCCDAT02 does not change.
    Is it possible to trigger the exit or is there another way to do it? Ideas would be appreciated. I am trying to create a Web Template with a Dropbox box for the Quarter.
    Query is written in BW 3.X.
    Regards
    Chami

    Hi guys
    Just to restate the requirement. I want the user to be able to change the value of the variable, WITHOUT calling the variable selection screen.
    I want the user to be able to change the value of the quarter by using a dropdown box from within the web template. Once that is selected I want the value of ZCCDAT02 to be derived from the new value of the quarter.
    Regards
    Chami

  • Text info  in the variable selection screen

    Hello
      I want to show some text info together with variable selection screen. Is it possible in WAD ? How to do it?
    Help please.
    Thanks.

    Rani,
    Basically its not suggestable by SAP that to modify the variable screen, since that has been directly delivered by SAP Object... If you still wants to modify the variable screen then your F4 will not work ijn the variable screen... Usually dont go and modify your variable screen..
    Rgds,
    Gattu

  • Enabling Key and text for the Variable Selection screen

    I need to display key and text for a characteristic when selecting the drop down menu in the variable selection screen of a web report. In the Business Explorer tab within the info-object, I changed the General Settings to display Key and text, but when I open the drop down menu for this characteristic, it is still displaying the key only. Is there some other place where this change needs to happen?

    Hi,
    Did you try to log out and log in again into BEx?
    Best regards,
    Eugene
    Message was edited by: Eugene Khusainov

  • Text upload in Web Template variable selection screen

    Hi all,
    In the Analyzer it is possible to upload text files in the variable selection screen but I can't find this feature in the variable selection screen for Web Templates.
    Anyone has an idea ?
    Regards,
    Olivier

    Hi,
    it's is not possible with standard.
    I read in some sap feature paper that it will come.
    Maybe it will be possible with modification, but that's only an idea.
    Kind regards,
    Tobias

Maybe you are looking for

  • Can I upgrade IPhoto 6.0.6 to IPhoto 11' on a Mac OS 10.4.1?

    Can I upgrade IPhoto 6.0.6 to Iphoto 11' on my Mac OS 10.4.1 ?

  • HT204400 Setting date and time?

    My Apple TV doesn't automatically set the date and time. Access to the network is fine.

  • Query in SAN disk replacement

    hi i have a query with disk replacement in SAN i know disk replacement in sun server .like if my disk is failed. i will collect the logs,sun explorer and so on and case log to sun suppose i am using a San disk for my filesystem ..if the disk is faile

  • How to Setup US Lesiglation while doing fresh Implementaion ?

    Hi Friends, We are implementing HRMS module (R12.1.3 Release) for a new client US based. And before we could satrt anything, looks like we have to setup US Lesiglation/localizations stuffs in database. Please guide me the setups to do that. Thanks, B

  • Using Parallels Desktop for Mac

    I have a Mac 10.5.8. I also am running Leopard. I want to be able to run Windows XP. I'm scared of getting a virus using Windows. So my question is this. Can I partition off space on my Mac, using Windows with Parallel 5? So if i get a virus that I c