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

Similar Messages

  • Add new field infotype "z" in logical database selection screen pnp

    Can add new field infotype "z" in logical database selection screen pnp
    I could explain how to realize
    Thanks

    In case to somebody it interests to him: TO EXTEND SCREEN OF SELECTION WITH OPTIONAL DELIMITERS The case that can be given in a screen of selection of a logical data base it does not appear a certain field that we need in the filter, the steps that will be due to follow are the following:
    u2022 To create a view of selection in agreement with the fields that we want to show To review the following Link http://help.sap.com/saphelp_46c/helpdata/es/6e/6ed638e70ef679e10000000a114084/content.htm u2022 To assign the view of selection to a class of report
    u2022 In the code of report to create select option in the selection screen that allows to introduce imput to leak and after start-of-selection to put the following code,
    "Allocation operative area to optional delimiter
      IF NOT p_aroper IS INITIAL.
        DATA: lt_texpr TYPE rsds_expr OCCURS 0 WITH HEADER LINE,
              wa_texpr TYPE rsds_expr,
              lt_rsds_expr_tab LIKE rsdsexpr OCCURS 10 WITH HEADER LINE,
              wa_rsds_expr_tab LIKE rsdsexpr.
        REFRESH lt_rsds_expr_tab.
        wa_rsds_expr_tab-arity = '0'.
        wa_rsds_expr_tab-fieldname = 'OBJID'.
        wa_rsds_expr_tab-option = 'EQ'.
        wa_rsds_expr_tab-low = p_aroper.
        wa_rsds_expr_tab-high = '00000000'.
        MOVE-CORRESPONDING wa_rsds_expr_tab TO lt_rsds_expr_tab.
        APPEND lt_rsds_expr_tab.
        REFRESH lt_texpr.
        wa_texpr-tablename = 'PA9004'.
        wa_texpr-expr_tab[] = lt_rsds_expr_tab[].
        MOVE-CORRESPONDING wa_texpr TO lt_texpr.
        APPEND lt_texpr.
      pnpdynse[] = lt_texpr[].
      ENDIF.
    English is the forum language.
    Edited by: Rob Burbank on May 18, 2011 11:41 AM

  • Logical Database- Selection screen

    Hi
    I am using a logical database SDF . The logical DB has two blocks in selection screen. But I don't want to display these two blocks. I need only one . please suggest how would i do that

    Hello
    You may want to look at fm SELECT_OPTIONS_RESTRICT.
    This FM can be used to modify the selection screen of a LDB.
    It is documented by SAP so check the documentation for an example.
    Regards
    Greg Kern
    Edited by: Greg Kern on Oct 28, 2008 8:32 AM

  • Possible to modify Logical Database Selection Screen?

    We have added a custom field to an HR database and need for it to appear in the selection screen for logical database PNP. The program DBPNPSEL is this selection screen -- has anyone modified this or is there a better way to get this result?

    Hi,
    Check this link.It contains code sample.
    http://help.sap.com/saphelp_46c/helpdata/en/9f/db9c2e35c111d1829f0000e829fbfe/content.htm
    Regards,
    J.Jayanthi

  • How to modify Logical database Selection screen

    I am using PNP logical database , it is giving one selection screen ,
    after executioni can able to change the selection screen but i want to change default selection screen so that when i execute i want specific fields in selection.
    How to modify it?

    Hi,
    You need to use report category.In the attributes,click HR report category and select or create the selection screen you need.
    Check this link.
    http://www.sapdevelopment.co.uk/hr/hr_repcat.htm
    Kindly reward points by clicking the star on the left of reply,if it helps.

  • Add fields to logical database selection screen

    Hello,
       Is it posible to add a field in the default selection screen of a logical database.?
    I´m using ELM. In the default selection screen, only the lifnr and ekorg fields are shown. I want to show the matnr field, is it posible?
    Thank you!

    Hello,
    If you go to the attributes of report, where you are using Logical Database;
    there is a button named 'Report Category', which controls the field on selection screen...
    If you select that one you can choose report category and also can create your own category
    Thanks

  • LDB(Logical Database) selection screen

    Dear Contributors,
    I am hopefull for finding solution to my problem from one of you.
    My requirement is i would like to pass all the elements of the selection screen of LDB to non-sap application so as they can replicate and show all those parameters there. Once those are filled from there then i need to take them and process the LDB.
    My question is i dont know how to get the selection screen parameters. I tried using FM 'RPY_DYNPRO_READ' and passed progname and screen number in that. It gave back all the parameters but we cant co-relate which parameter is from which table (like we say MATNR like MARA-MATNR).
    Without having Technical details of field, non-sap application could not able to process it or show the required F4 help etc
    Anyone know about it, can guide me....
    Regards
    Munish Garg

    call function 'LDB_CONVERT_LDBNAME_2_DBPROG'
           exporting  ldb_name             = headsg-logdb "#EC DOM_EQUAL
                      flag_existence_check = space
           importing  db_name              = logdbprog
           exceptions others               = 1.
      if sy-subrc eq 0.
        call function 'SELOPTS_AND_PARAMS'
             exporting  program              = logdbprog
             tables     selpars              = dbselpars
             exceptions program_non_existent = 1
                        subroutine_pool      = 2
                        load_problems        = 3
                        others               = 4.
    endif.

  • Default values in PNP Logical database selection screen

    Hi All
    I want to default the BEGDA and ENDDA values in the selection screen with Previous month start date and end date.
    How can I do that.
    AJ

    Hi there.  In the report code, before your START-OF-SELECTION statement you could insert the following code:
    AT-SELECTION-SCREEN OUTPUT.
    Call function 'CCM_GO_BACK_MONTHS'
    exporting
    currdate = sy-datum
    backmonths = '1'
    importing
    newdate = prev_mo_begda.
    prev_mo_begda+4(4) = '0101'.
    Call function 'SG_PS_GET_LAST_DAY_OF_MONTH'
    exporting
    day_in = prev_mo_begda
    importing
    last_day_of_month = prev_mo_endda.
    pnpbegda = prev_mo_begda.    
    pnpendda = prev_mo_endda.
    I hope this helps.
    - April King

  • 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

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

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

  • Logical Database Selection Text?

    We have a report (run from the report tree) that above the selection-screen window a field with a range, SAUFNR  is displayed. Someone tried to go into the Logical Database POH (SE36), selection texts were there was a '?' and changed it to 'Order Number'  and were able to save it. However, SAUFNR still displays and not the text.
    The main goal is to disply 'Order Number' for this field and not 'SAUFN'. It is an SAP prog with a name about a footbal field long.  It executed 'Orders by finished Schedule date'.
      Any suggestions?
                                    Thank-you.

    Hi Tom,
    Have you activated the selection text and also please check in translation part of the text elements .
    Hope this may help you.
    Regards,
    Kiran I

  • 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

  • Logic for Selection screen output

    Hi All,
    I have 2  blocks on my selection screen
    First block has 3 radio buttons(a, b,c) and second block has 5 check boxes. When i select radio button 'C' 2 checks boxes of 2nd block  should be activated (enabled).if RB 'C' is not selected those 2 chck boxes should be in disabled position. an any one help me in this regard.(logic)
    Thanks in advance
    P.D .Rao

    Please check the below code:
    REPORT  ypra_sample56.
    SELECTION-SCREEN BEGIN OF BLOCK a1 WITH FRAME TITLE text-001.
    PARAMETER: p_r1 RADIOBUTTON GROUP rg1 USER-COMMAND vend DEFAULT 'X',
               p_r2 RADIOBUTTON GROUP rg1,
               p_r3 RADIOBUTTON GROUP rg1.
    SELECTION-SCREEN END OF BLOCK a1.
    SELECTION-SCREEN BEGIN OF BLOCK a2 WITH FRAME TITLE text-002.
    PARAMETER: p_c1 TYPE c AS CHECKBOX,
               p_c2 TYPE c AS CHECKBOX,
               p_c3 TYPE c AS CHECKBOX,
               p_c4 TYPE c AS CHECKBOX,
               p_c5 TYPE c AS CHECKBOX.
    SELECTION-SCREEN END OF BLOCK a2.
               INITIALIZATION
    INITIALIZATION.
      PERFORM enable_fields.
               AT SELECTION SCREEN OUTPUT
    AT SELECTION-SCREEN OUTPUT.
      PERFORM sel_screen_output.
    *&      Form  sel_screen_output
          Selection screen Output
    FORM sel_screen_output.
      IF p_r1 EQ 'X' OR p_r2 EQ 'X'.
        PERFORM enable_fields.
      ENDIF.
      IF p_r3 EQ 'X'.
        LOOP AT SCREEN.
          IF screen-name EQ 'P_C4' OR screen-name = 'P_C5'.
            screen-active = '1'.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    " sel_screen_output
    *&      Form  enable_fields
          enable fields in selection screen
    FORM enable_fields .
      IF p_r1 EQ 'X' OR p_r2 EQ 'X'.
        LOOP AT SCREEN.
          IF screen-name EQ 'P_C4' OR screen-name EQ 'P_C5'.
            screen-active = '0'.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    " disable_fields
    Use  screen-input = '1' to enable and screen-input = '0' to disable the checkbox. And if u want to totally make that field disappear from screen use screen-active = '1' and '0'.
    Regards,
    Prakash.
    Message was edited by: Prakash Ramu

  • Problem with logic at-selection screen

    Hi ,
        I have this piece of code :
    I have 3 radiobuttons and corresponding screens and fields like r_matnr s_charge etc on that screen .
    default radio button is r_build .
    a) If on this screen is user forgots to give value for s_matnr then error is given .
    now if we click on r_conf the contents of display screen when r_buld was pressed should be gone ..
    the r_matnr , r_werks etc . should be blank .
    what i should do to implement it ? also validation  of point a) should be performed for the current values of that screen .
    plz help..
    SELECTION-SCREEN BEGIN OF LINE.
      PARAMETERS: r_build RADIOBUTTON GROUP r1 USER-COMMAND act DEFAULT 'X'.
    PARAMETERS: r_conf RADIOBUTTON GROUP r1.
    SELECTION-SCREEN BEGIN OF LINE.
      SELECT-OPTIONS : s_matnr FOR mara-matnr MODIF ID c.
      SELECTION-SCREEN END OF LINE.
      SELECTION-SCREEN BEGIN OF LINE.
      SELECT-OPTIONS : s_charg FOR mch1-charg MODIF ID c.
      SELECTION-SCREEN END OF LINE.
    LOOP AT SCREEN.
             IF r_conf = 'X'.
            IF screen-group1 = 'A'.
              screen-active = 0.
            ENDIF.
          ELSE.
            IF r_rel = 'X'.
              IF screen-group1 = 'A' OR screen-group1 = 'B'
                OR  screen-group1 = 'C'.
                screen-active = 0.
              ENDIF.
            ENDIF.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
    AT SELECTION-SCREEN ON s_matnr.
        IF s_matnr IS NOT INITIAL.
        some select where = s_matnr .
          MESSAGE e019(zesapp).
          LEAVE TO SCREEN 0.
        ENDIF.
    plz help..
    Regards .

    hi ujjwal,
    can you please elaborate on "the values are getting blank just after entering it ."...
    you mean material number gets blank after you enter the value?
    also in the below code you are checking material number NOT INITIAL that means some value is entered and if it does not satisfy the SELECT condition then it will give error message and navigate u again to your initial screen...maybe this could be the reason for the blank values...
    AT SELECTION-SCREEN ON s_matnr.
        IF s_matnr IS NOT INITIAL.
        some select where = s_matnr .
          MESSAGE e019(zesapp).
          LEAVE TO SCREEN 0.
        ENDIF.
    hope this is helpful.

Maybe you are looking for

  • Looking for an to-do app that syncs between two phones

    Hi -- I'm looking for an app that I can use on my iPhone and my assistant can use on her iPhone that is basically a to-do list that allows us to set up tasks, and perhaps make comments on them, and to note when a task is finished or how much progress

  • Scheduling job problem and modification in the bat file

    Dears ALL i am using the following script in windows 2003 server for oracle database 10 g i have one problem of scheduling the task i scheduled it successfully on windows scheduled task program but its not running at scheduled time and even when i ru

  • Back Button in Safari 3.1.2

    I just recently got a new MacBook Pro, after my old computer died. I had been using the original Safari browser on it, and never had any problems. In Safari 3.1.2, about once every ten times I click the back button, it rockets me back two pages inste

  • Msg 22051 Database Mail Attachment file is invalid

    Hello, I'm testing a trigger to output a text file and then attach it to an email in Database Mail. So far, I've gotten the correct text file to export to a TEMP folder, but when I try to attach it to database mail, I get the message below. I think i

  • How to use photoshop tutorials

    Hi I'm an amature trying to learn a bit about photography. I read magazines etc, experiment and in general try to improve and learn skills. However quite often one comes across a photoshop tutorial that shows how to do something. Sometimes its easy t