Selction-screen - pushbuttons

hi all,
i want to create 5 push buttons in my selection-screen. but 5th push button is exceeding the limit of push button which is 83.
what should i do?
shweta gupta

Hi Shweta,
The maximul offset that you can specify is 83. Hence if you have 5 pushbuttons with a length of 20 each, then you need to put at least one or more pushbuttons on the next line.
You can do so by using the SELECTION-SCREEN SKIP. statement which will display the remaining pushbuttons on the next line, where you can start with the minimum offset of 1 again.
SELECTION-SCREEN:
    PUSHBUTTON 1(20)  but1 USER-COMMAND cli1,
    PUSHBUTTON 22(20) but2 USER-COMMAND cli2,
    PUSHBUTTON 44(20) but3 USER-COMMAND cli3,
    PUSHBUTTON 66(20) but4 USER-COMMAND cli4.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN PUSHBUTTON 1(20) but5 USER-COMMAND cli5.
Try this piece of code and you can modify it as per your requirement.
Hope this was useful.
Regards,
Himanshu

Similar Messages

  • 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

  • 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.

  • How do I create a button in a selction screen of the report ??

    how do I create a button in a selction screen of the report ??

    See sample Program :
    REPORT ZLPRWINSPC_TMP .
    tables : mara,
             sscrfields.
    select-options s_matnr for mara-matnr.
    initialization.
    sscrfields-functxt_01 = 'Clear Selection'.
    selection-screen function key 1.
    AT SELECTION-SCREEN.
    case sscrfields-ucomm.
    when 'Clear Selection' or 'FC01'.
    clear s_matnr.
    refresh s_matnr.
    endcase.
    Reward Points if it is helpful
    Thanks
    Seshu

  • Selection screen pushbutton

    I have designed one push button on the selection screen below to input fields. If I press that button then I need to do some bdc programs after that I need to display log in the output screen. For this what I did is I have created perform statement in at selection screen event. And I am calling all the transactions inside of that form. But I am not able to display log in the output screen as it is under at selection screen event. So how to provide the log in the output screen after pressing push button.
    What I did is under start of selection I am looping messtab internal tables. The log displaying after I press execute button but it is not displaying after I press push button.
    Please help me what logic I have to build for this.
    Thanks a lot in advance.

    Try something like this.
    REPORT  RICH_0001.
    tables: sscrfields.
    selection-screen PUSHBUTTON  1(20) pb_test user-command PB1.
    at selection-screen.
      if sy-ucomm = 'PB1'.
         sscrfields-ucomm = 'ONLI'.
      endif.
    start-of-selection.
    write:/ 'StartOfSelection has been executed'.
    Regards,
    Rich Heilman

  • Selction-screen

    hi all..
      iam having date field in the selction screen.... so if i click f4 i can get calander and i can enter specific date...
      now my requirement is to i  hav ti enter month end year only....
    so if i click any date in the seach help calender.... the input field of the selection screen has to avoid date and need to capture month and year....
    plz replay with code...
    Thank you,
    Naveen.

    Here's an example.  Note that update occurs when the user hits Enter
    PARAMETERS:
      mydate  TYPE datum OBLIGATORY.
    PARAMETERS:
      mymm(2) TYPE c MODIF ID xxx,
      myyy(4) TYPE c MODIF ID xxx.
    AT SELECTION-SCREEN OUTPUT.
      mymm = mydate+4(2).
      myyy = mydate+0(4).
      LOOP AT SCREEN.
        CASE screen-group1.
          WHEN 'XXX'.
            screen-input = 0.
            MODIFY SCREEN.
        ENDCASE.
      ENDLOOP.
    START-OF-SELECTION.
      mymm = mydate+4(2).
      myyy = mydate+0(4).

  • SELECTION-SCREEN PUSHBUTTON 0(20) name USER-COMMAND FILE.

    Hi,
    I'm trying to put a button on a selection-screen!
    I'd like this button to be Icon + text! Text is ook, how do I add an icon ?
    regards,

    If you want to create pushbuttons with tool tips on a selection screen or you want to assign a tooltip to the pushbuttons created with SLECTION-SCREEN FUCTIONKEY in the GUI status of a selection screen, the correction instructions contain a sample program which demonstrates how you can assign tool tips to pushbuttons or application toolbars in a selection screen.
    Code
    REPORT ZZTOOLTIPDEMO.
    TYPE-POOLS icon.
    DATA: funckey TYPE smp_dyntxt.
    TABLES: sscrfields.
    SELECTION-SCREEN PUSHBUTTON 1(40) pushbutt USER-COMMAND
    com VISIBLE LENGTH 12.
    SELECTION-SCREEN FUNCTION KEY 1.
    INITIALIZATION.
    CALL FUNCTION 'ICON_CREATE'
    EXPORTING
    name = icon_information
    text = 'My Text'
    info = 'My Quickinfo'
    ADD_STDINF = 'X'
    IMPORTING
    RESULT = pushbutt
    EXCEPTIONS
    OTHERS = 1.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    MOVE icon_information TO funckey-icon_id.
    MOVE 'My text' TO funckey-icon_text.
    MOVE 'My quickinfo' TO funckey-quickinfo.
    MOVE funckey TO sscrfields-functxt_01.

  • Displaying W message on selction screen and on enter need to go to ALV liso

    Dear All,
    I have  a requirement where i get my data in end-of-selection evenet after that i do  some calculation / validation and i display the warning message .
    But i need to display the warning on selction screen and on enetr need to go to ALV list , how to make it ?
    Regards

    WHy on the selection screen?
    I just do
    message 'my error text' type 'I' display like 'E',
    which results in a pop-up (if user has settings that way), and then allows seamless proceed to next step upon acceptance of the message.

  • Hiding Select options on a selction screen

    hi,
    How to Hide Select options on a selction screen
    thnks.

    hi,
    eg:-
    select-options: sel_mat for mard-matnr no-display.
    select-options: sel_plnt for mard-werks.
    in this the sel_plnt will appear and sel_mat will not be seen on the selction screen. there are many options avaliable with select-options..
    Like
        [OBLIGATORY / NO-DISPLAY]
        [VISIBLE LENGTH vlen]
        [NO-EXTENSION]
        [NO INTERVALS]
        [MODIF ID modid] ... .
    reward points if useful and mark answered if u got the answer 

  • Selection-screen pushbutton & Table Control

    Hi Everyone
    In my program i have a pushbutton in my selection-screen; this button call a screen with a table control, the problem is when i run my report and return to the first screen, the data in the TC is cleared.
    It's possible to save the information of my TC if i run my report and return to the first screen??
    Thanks & Regards
        David

    Hi,
    Write the logic for putting data from an internal table into table control in the PBO of the called screen & not in the PAI of the calling screen. Also, when you exit that screen, retrieve data into the internal table.
    For e.g. if Screen 9002 contains table control then
    PBO of Screen 9002:
    loop at it_itab into x_itab with control table_control_name.
    module put_data.
    endloop.
    PAI of screen 9002:
    loop at it_itab into x_itab.
    module get_data.
    endloop.
    Reward points if the answer is helpful.
    Regards,
    Mukul

  • Populate values in f4 dialog screen based on the values in selction screen

    hi,
    i have done a module program where i would enter the details like ssales org ,division,distribution channel in the selection screen and would enter the screen having the table control... in that table control i have a field for customer code.. when i press f4 for cus code.,dialog box appears for the cus code and in that , sales group tab should be selected and the divsion ,dist channel and sales organisation i gave in the slection screen should be displayed as default...how can i do this ..
    since there is no screen no as such i am finding it difficult to crack.
    with thanks in advance ,
    syed

    if you do not give a specific number to selection-screen, its dynpro number is 1000.
    So in POV (AT SELECTION-SCREEN ON VALUE-REQUEST) use the classical DYNP_VALUES_READ with dynumb  = '1000' to get current values from screen, then you can
    - Fill yourself an internal table and call F4IF_INT_TABLE_VALUE_REQUEST
    - Call F4IF_FIELD_VALUE_REQUEST using CALLBACK_PROGRAM and CALLBACK_FORM to call a form in your report that will be executed by the search-help and there (look at online documentation) will change the default values of subfiled (itab) SELOPT of  SHLP parameter (type SHLP_DESCR_T)
    Sample of the second case (there are already too many samples for the first on sdn)
    .* POV
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_umskz.
      CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
           EXPORTING
                tabname          = 'BSID'
                fieldname        = 'UMSKZ'
                callback_program = g_repid " copy of sy-repid
                callback_form    = 'CGS_DEBITOR'
           TABLES
                return_tab       = return_tab
           EXCEPTIONS
                OTHERS           = 1.
    * Form for callback
    FORM cgs_debitor TABLES   record_tab STRUCTURE seahlpres
                     CHANGING shlp TYPE shlp_descr_t
                              callcontrol LIKE ddshf4ctrl.
    * Local data
      DATA: ddshiface TYPE ddshiface,
            worklist LIKE lumskz,
            dynpfields TYPE TABLE OF dynpread WITH HEADER LINE.
    * Only D-ebitor
      LOOP AT shlp-interface INTO ddshiface WHERE shlpfield = 'KOART'.
        ddshiface-valtabname = 'BSID'.
        ddshiface-valfield   = 'KOART'.
        ddshiface-value      = 'D'.
        MODIFY shlp-interface FROM ddshiface.
      ENDLOOP.
    ENDFORM.
    .Regards,
    Raymond

  • Input values in bex selction screen

    Hi Experts--
    Iam facing a peculiar functionality in bex reporting.
    We are maintaining ZBATCH (Length 10)as the masterdata in BW.
    Created a variable for ZBATCH, in the selection screen if  i give values as 36789 as input it displays the data i mean the result..whereas if i give for the same as 0000036789 as input i got "No Applicable data" ..
       May i know the reason for this and how to rectify this..i mean if the user enters with 0000036789 it should display the data.
    Tried with ALPHA Conversion routines but i didn't got the sol with this..
    So can anyone plz help me in this regard.
    Regards,
    Rambo.

    Hello,
    here is one exapmle:
    i have a 'plant' characteristic(length 4,CHAR,no ocnversion exit).and in cube i have data like....0780,765,897.....
    after executing Query,if enter 0780..it accepts...but if enter 765..it says 'invalid'.
    when i have conversion exit ALPHA for 'plant'....if i enter 0765 and go for 'check'...it converts it as  '765'and u can execute the Query...
    so u r problem shold be solved with ALPHA conversion exit.
    hope this helps.
    regards
    Message was edited by: c c

  • Import flat file in selction screen

    Hi all,
    Could anybody help me in giving me a hint to import a flat file with thousands of values (articles selection) in the query selection screen.
    Best regards.
    Geo

    I have a question related to using the multiple selections in a BEx Query.  We are seeing some very long wait times for our selections and was wonder if this is normal, or if we have some things to fix in our system.
    In one of our Project System Queries, we are inputting 54 lines like the following list:
    AIR
    BAM
    BAR
    BRR
    BTR
    COM
    CSM
    CSR
    CTM
    CTR
    EPM
    EPR
    It is taking up to 45 minutes just to get these items loaded in from the clipboard, this seems a bit excessive to me, as it only take a matter of a second or two to do the same thing in our R/3 system.
    I was thinking that BW was doing some sort of validations as it brought in the list, but no one has been able to answer this question for me.
    If anyone can provide some advice or answers, it will be greatly appreciated.
    Thanks,
    Lloyd

  • Need to hide one of the selction screen block

    Hi Gurus!
    I need to hide one of the block in my selectrion screen and only display one radio button in that selection screen block . Somehow its not hiding the enitre block , so I tried doing the fields invisible but when it is transported it again makes it visible . Is it possible to do it through programming code itself rather than through screen.
    Follwoing is the block that I need to hide.
    SELECTION-SCREEN BEGIN OF BLOCK b4 WITH FRAME TITLE text-004.
    PARAMETERS:
    rb_list RADIOBUTTON GROUP rb1 DEFAULT 'X' USER-COMMAND opt.<<<<<<<<need to hide this
    SELECTION-SCREEN BEGIN OF BLOCK b4i WITH FRAME TITLE text-005 .<<< need to hide this block
    PARAMETERS: p_header AS CHECKBOX MODIF ID b5,
                p_send   AS CHECKBOX MODIF ID b5 USER-COMMAND opt,
                p_overr  TYPE sy-uname MODIF ID b6,
                p_alines AS CHECKBOX MODIF ID b5.
    SELECTION-SCREEN END OF BLOCK b4i .
    PARAMETERS: rb_alv  RADIOBUTTON GROUP rb1 DEFAULT 'X'.<<<< Just need to show this on my selection screen
    SELECTION-SCREEN END OF BLOCK b4.
    In the above code I need to hide the block b4i and the radiobutton rb_list.
    Help will be gretaly appreciated.
    Regards
    Aarav

    Hi!
    Thanks for the input but addition of that still gives me the first radiobutton 'rb_list 'in my selection screen .
    SELECTION-SCREEN BEGIN OF BLOCK b4 WITH FRAME TITLE text-004 .
    PARAMETERS:rb_list RADIOBUTTON GROUP rb1 MODIF ID rad .<<<<< This is still showing up --want to hide this
    SELECTION-SCREEN  BEGIN OF BLOCK b4i WITH FRAME TITLE text-005 .<<<<< want to hide is block completely
    PARAMETERS: p_header AS CHECKBOX MODIF ID b5 ,
                p_send   AS CHECKBOX MODIF ID b5 USER-COMMAND opt,
                p_overr  TYPE sy-uname MODIF ID b6,
                p_alines AS CHECKBOX MODIF ID b5.
    SELECTION-SCREEN END OF BLOCK b4i .
    PARAMETERS: rb_alv  RADIOBUTTON GROUP rb1 DEFAULT 'X'.<<< Just need to show this param,etere on the screen
    SELECTION-SCREEN END OF BLOCK b4.
    * At Selection screen output
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF rb_list IS INITIAL AND ( screen-group1 = 'B5').
          screen-active = '0'.
          MODIFY SCREEN.
        ELSEIF screen-group1 = 'B5'.
          screen-active = '1'.
          MODIFY SCREEN.
        ENDIF.
        IF p_send IS INITIAL AND screen-group1 = 'B6'.
          screen-active = '0'.
          MODIFY SCREEN.
        ELSEIF screen-group1 = 'B6'.
          screen-active = '1'.
          MODIFY SCREEN.
        ENDIF.
        CHECK screen-group1 = 'RAD' OR
              screen-group1 = 'B4'  OR
              screen-group1 = 'B5'  OR
              screen-group1 = 'B6' OR
        screen-active = 0.
        MODIFY SCREEN.
    Thanks
    Edited by: Aarav  Agnihotri on Sep 29, 2009 6:08 PM

  • Period and Fiscal Year in a report selction screen (3.1 I version of SAP.)

    Hi Team,
    I have a requirement on a Zreport. Suppose if we are executing a report in the month of March (3)-fiscal year 2011 and if I select a variant and the varinat should populate period as Feb (2 period) and fiscal year as last year (2010).
    In Nut shull if i am executing the report todays date the period and fiscal year in the selection screen should be 2 and 2010.
    Also please note that i am working on 3.1 I version of SAP.
    Your inputs are highly appreciated.
    Thank you
    Venkatesh Billa

    Hi,
    Generatlly while saing the variant for the report selection screen you can use the dynamic date calculation , where the last period and last fiscal year options are available.
    Also you can choose the option of calculating the period and fiscal year in your program and can default the same on the selection screen. But I think you should check in ABAP forum for this, whether there anything in coding also.
    Regards,
    Gaurav

Maybe you are looking for

  • Issues with 10.3 OS update to my Z10

    It has been two days since the automatic update from 10.2 to 10.3 on my Z10 device.  The device worked fine for two days and then it began a constant reboot indicating a device error in the upper right corner and the sim card is not recognized.  I ha

  • * Urgent FND_REQUEST.SUBMIT_REQUEST *

    Hi Gurus, I am having a problem in Oracle apps. I am calling the following function and running a shell script which has been registered in apps as "CPSINTA" and working fine if I run it using concorrent program. I need to run this from forms and I w

  • Acrobat 9pro install

    Hello, I have my Acrobat Pro 9 disk and recently reinstalled to my laptop. When starting acrobat pro, just the word Acrobat comes up on top of the Mac, nothing else happens. When i try to open a document with the open with command, same thing happens

  • HT3819 where is the home sharing import button for the new itunes

    where is the home sharing button on the new itunes

  • Enhanced Perfomance USB Keyboard Model SK-8815 & P/N 41A4961 Windows 7 Driver Installation Fails

    I am getting the following error when trying to install the driver came with the keyboard (Windows 7 64-bit enterprise Error Executing the Specified Program C:\swtools\drivers\Lenovo Enhanced Performance USB Keyboard\Setu.exe I have also tried the dr