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

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

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

  • 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

  • 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

  • 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

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

  • I need logic for selection screen

    i have slection screen with block and inserted radio button with all and firmla with 4 digits
    example:  . all   firmla 1202
              . all   firmla  1203
              . all   firmla  1210

    HI,
    SELECTION-SCREEN BEGIN OF BLOCK rype WITH FRAME TITLE text-t04.(write text for Block)
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS R1 RADIOBUTTON GROUP one.
    SELECTION-SCREEN COMMENT 4(35) text-c05 FOR FIELD R1.
    (write text for Radio button1)
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS R2 RADIOBUTTON GROUP one.
    SELECTION-SCREEN COMMENT 4(35) text-c06 FOR FIELD R2.
    (write text for Radio button2)
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS R3 RADIOBUTTON GROUP one.
    SELECTION-SCREEN COMMENT 4(35) text-c06 FOR FIELD R3.
    (write text for Radio button3)
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK rype.
    Hope you get the answer
    Thanks
    Sudheer

  • Logical database PNP screen

    Hi All
    I want to initialize the Employment Status to Active employee that is 3.
    Does any body know how can I do it.
    Thnaks in advance.
    Regards
    AJ

    Hi AJ,
    here a simple codeexample, try it:
    Log. datenbank PNP (P-Stammdaten)
    TABLES: PERNR.
    INITIALIZATION.
      REFRESH PNPSTAT2.
      CLEAR   PNPSTAT2.
      PNPSTAT2-SIGN   = 'I'.
      PNPSTAT2-OPTION = 'EQ'.
      PNPSTAT2-LOW    = '3'.
      APPEND PNPSTAT2.
      START-OF-SELECTION.
    GET PERNR.
      WRITE: / PERNR-PERNR.
    END-OF-SELECTION.
    Regards, dieter

  • Selection screen is not displaying if I use logical database CCLDB_AENR

    Hi Experts,
    If I use the logical database CCLDB_AENR in my custom program, it is not displaying my custom program selection screen. It is only displaying the logical database selection screen.
    some one help me how we can handle this.
    Thanks,
    Naresh.

    Hi Experts,
    If I use the logical database CCLDB_AENR in my custom program, it is not displaying my custom program selection screen. It is only displaying the logical database selection screen.
    some one help me how we can handle this.
    Thanks,
    Naresh.

  • Logical database problem

    Hi all,
    I want to use my selections along with logical database selection screen in my program.when i am trying to use it its giving some errors.if there is a get event its not allowing to select my own selection.can any advise my how to do it.
    Regards,
    Lisa
    Message was edited by: Lisa Roy

    Hi Lisa,
      Eeven I am using GET (pernr) in my scenario also.
      see my below sample code
    *             S T A R T  O F  S E L E C T I O N
    START-OF-SELECTION.
    * Get pernr
    GET pernr.
    * To Get Employee Details
      PERFORM get_data.
    *                E N D  O F  S E L E C T I O N
    END-OF-SELECTION.
    *&      Form  GET_DATA
    *       Form to get data
    FORM GET_DATA.
    * Get latest record from P0001 infotype
      rp-provide-from-last p0001 space pn-begda pn-endda.
      if pnp-sw-found = 1.
    * Check positions
        IF NOT s_plans IS INITIAL.
          CHECK p0001-plans IN s_plans.
        ENDIF.
    * Check Org.Unit
        IF NOT s_orgeh IS INITIAL.
          CHECK p0001-orgeh IN s_orgeh.
        ENDIF.
    * Check Org.Structure
    *    CHECK p0001-orgeh IN pnpobjid.
        rp-provide-from-last p0105 '0001' pn-begda pn-endda.
        clear dg_flag.
    * Form to get Activity Group
        perform get_act_group using p0001-plans.
    * Form to get profile info
        perform get_info.
      else.
        exit.
      endif.
    ENDFORM.                    " GET_DATA
    If you see my above code <b>s_palns</b> is the select-option and I am using in my program. It is working for me.
    Can you post ur code or tell me which LDB u r using.
    Thanks&Regards,
    Siri.

Maybe you are looking for

  • Chaning Apple ID on iPhone 5 for iCloud Acct

    How can I change my apple ID on my iPhone 5 for my iCloud account information?

  • Windows 7 ultimate 64-bit boot camp issues...

    Whats up guys? So here is my problem: I installed windows 7 ultimate 64-bit on my macbook. The install went great and everything works like a charm except my headphone jack is red, and i have no audio, and no wifi. I installed 3.0 drivers from my Mac

  • Regarding CO-PA CUBES

    Hai Experts,                       I want to see the co-pa releated cubes in Business Content .Can any one tell me what are the co-pa releated cubes and data sourcer present in ECC6.0 . plz dont give me the url just you give the PREDEFINED CUBE NAMES

  • Cannot save ad hoc query in sub folders in km

    Hello all, I am having an issue when I go to save a query in bex portfolio I cannot navigate past the root folder into the subfolder. The root folder XYZ is read only and it does not open to allow users to save into it. Any help would be appreciated.

  • Exception in thread "main" org.apache.axis2.AxisFault: Error in extracting

    I am getting this exception when I call the web service from the client. Please help me here. Exception in thread "main" org.apache.axis2.AxisFault: Error in extracting message properties      at org.apache.rampart.handler.RampartSender.invoke(Rampar