Change selection screen in LDB (KDF logical database - NOT HR)

Hi All,
Iu2019d like to use KDF logical database to keep the dynamic selections since user wants to use it but I need to change the selection screen itself. The existing variants for KDF donu2019t meet the user requirements. Some fields I need to hide some add. Like I want to u201Cremoveu201D the field u2018Posting periodu2019 (MONAT) (which is available in dynamic selection screen) and put it on the u201Cmainu201D selection screen.
Do I need to create my own logical database or there is a way around?
Could someone give me a practical advice or sample of solution?
Thanks a lot.

Thanks Himanshu,
I did as you suggested but problem is that it does not allow me to hide the whole block.
I have 3 filelds actually on block KD_0 I need to hide (its from selection screen of KDF logical database.)
  SELECT-OPTIONS: KD_LIFNR FOR LFA1-LIFNR MATCHCODE OBJECT KRED.
  SELECT-OPTIONS: KD_BUKRS    FOR  LFB1-BUKRS.
SELECTION-SCREEN END OF BLOCK KD_0.
PARAMETERS KD_INDEX AS SEARCH PATTERN FOR TABLE LFA1.
What I did is below.  I used sp instead of  u201C=u201D since it has many screen for field KD_LIFNR(for frame, text etc).
And when I did just for KD_LIFNR it was hidden but when I did the same for KD_BUKRS it was not hidden . The field has stars u201C*********u201D in it.
Same happen with KD_INDEX. The name of the field is hidden but field not and it filled with ********. Do you have any ideas what it can be?
I debugged it to catch all screen names but no luck
  loop at screen.
    if screen-name cp 'KD_LIFNR' or
    screen-name cp 'KD_BUKRS' or
    screen-name cp 'KD_INDEX' or
    screen-name = '%B000003_BLOCK_1000' or       
    screen-name = 'SSCRTEXTS-FRAME_TEXT' or
    screen-name = 'SSCRTEXTS-MCID_TEXT' or
    screen-name = 'SSCRTEXTS-STRNG_TEXT' or
    screen-name = 'SSCRFIELDS-SEARCH_BTN' or
    screen-name =  '%B025008_BLOCK_1000' or
    screen-name =  '%F021010_1000' or
    screen-name =  'ALCUR' or
    screen-name =  '%F022012_1000' or
    screen-name =  'EXCDT' or
    screen-name = 'SSCRFIELDS-UCOMM'.
      screen-invisible = '1'.
      modify screen.
    endif.
  endloop.

Similar Messages

  • How to change selection screen on LDB

    Hi everybody,
    Does anyone know how to change the selection screen on a ABAP report that uses LDB ?
    What I want to do is to suppress some fields and buttons and to add hidden fields.
    Thanks for your help.
    BT

    Hi bruno,
    1. use like this :
    2.
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
      IF SCREEN-NAME = 'MYFIELD'.
      SCREEN-INPUT = 0.
      SCREEN-INVISIBLE = 1.
      MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
    regards,
    amit m.

  • Select options for the pnp logical database.

    Hi ,
    We get a default selection screen when we use logical database in HR ABAP.
    But we always get the selection elements as "PARAMETERS" and not as "SELECT-OPTIONS".
    How can we change it to select options ....
    I tried all the options in HR- Report categories but it is not working..
    Kindly Help..
    Regards,
    Ashwin.

    >
    ASHWIN JOHARI wrote:
    > Hi ,
    > But we always get the selection elements as "PARAMETERS" and not as "SELECT-OPTIONS".
    > Ashwin.
    Which fields? Almost all of them are defined SELECT-OPTIONS.. you dont' see the range option directly.. click on he options icon & you can enter the ranges.
    ~Suresh

  • Select-options when Using PNP logical database

    Hi ,
    We get a default selection screen when we use logical database in HR ABAP.
    But we always get the selection elements as "PARAMETERS" and not as "SELECT-OPTIONS".
    How can we change it to select options ....
    I tried all the options in HR- Report categories but it is not working..
    Kindly Help..
    Regards,
    Ashwin.

    Hi,
       execute the program. In the selection screen
    For eg:
             personel Number select the Mutiple Selection option. After that select the tab select intervals and u can give the range.
    Regards,
    Srinivas

  • How to Add a new fields in the selection screen of LDB.

    Hi All,
    I want to add a new fields in the selection screen of LDB & then i need to select the data for that fields.
    So could you please tell me for that where i need to add the code for selecting the data.
    Thanks
    Roli

    Hi
    welcome to SDN forum
    If you are designing your own LDB with your own tables you can define tree structure and then the selection screen for the tables
    if you wants to modify the std LDB of SAp means take the access key and to modify that code
    if you add the extra field you have to modify the where conditions in the code also
    see the doc
    A logical database is a special ABAP/4 program which combines the contents of certain database tables. You can link a logical database to an ABAP/4 report program as an attribute. The logical database then supplies the report program with a set of hierarchically structured table lines which can be taken from different database tables.
    LDB offers an easy-to-use selection screens. You can modify the pre-generated selection screen to your needs. It offers check functions to check whether user input is complete, correct, and plausible. It offers reasonable data selections. It contains central authorization checks for data base accesses. Enhancements such as improved performance immediately apply to all report programs that use the logical database.
    Less coding s required to retrieve data compared to normal internel tables.
    Tables used LDB are in hierarchial structure.
    Mainly we used LDBs in HR Abap Programming.
    Where all tables are highly inter related so LDBs can optimize the performance there.
    Check this Document. All abt LDB's
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=%2flibrary%2fabap%2fabap-code-samples%2fldb+browser.doc
    GO THROUGH LINKS -
    http://www.sap-basis-abap.com/saptab.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9bfa35c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c6/8a15381b80436ce10000009b38f8cf/frameset.htm
    /people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
    Re: **LDB**
    www.sapbrain.com/FAQs/TECHNICAL/SAP_ABAP_Logical_Database_FAQ.html
    www.sap-img.com/abap/abap-interview-question.htm
    www.sap-img.com/abap/quick-note-on-design-of-secondary-database-indexes-and-logical-databases.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9bb935c111d1829f0000e829fbfe/content.htm
    Gothru the blog which provides info on LDB's:
    /people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
    Sample code
    TABLES: SPFLI,
    SFLIGHT,
    SBOOK,
    SCARR.
    START-OF-SELECTION.
    GET SPFLI.
    WRITE:/ ’SPFLI: ’, SPFLI-CARRID, SPFLI-CONNID,
    SPFLI-AIRPFROM, SPFLI-AIRPTO.
    GET SFLIGHT.
    WRITE:/ ’ SFLIGHT: ’, SFLIGHT-CARRID, SFLIGHT-CONNID, SFLIGHT-FLDATE.
    GET SBOOK.
    WRITE:/ ’ SBOOK: ’, SBOOK-CARRID, SBOOK-CONNID,
    SBOOK-FLDATE, SBOOK-BOOKID.
    GET SFLIGHT LATE.
    WRITE:/ ’ GET SFLIGHT LATE: ’, SFLIGHT-FLDATE.
    Regards
    anji

  • Problem in KDF Logical Database !!

    Hii Friends,
    We need to modify Tcode F.42 and add a field Business Place(BUPLA) on Selection Screen. This is the main requirement.
    So i make a copy of this program and KDF logical database.
    I am adding a field BUPLA in ZKDF custom logical database. But this Business Place is not working, if i need to debug this logical database, I am unable to debug the logical database.
    Please suggest your suggestions..
    Nitin Garg

    Hi Ramesh,
    These are the type of error messages in exetnded syntax check:
    The current ABAP command is obsolete
    In the OO context either an INTO or an ASSIGNING specification or the addition
    "TRANSPORTING NO FIELDS" must be used . be used. be used. be used. be used. be
    used.
    Internal Message Code: READ 018
    (The message cannot be hidden using pseudo-comment "#EC .., bzw. durch SET
    EXTENDED CHECK OFF/ON)
          Program:  Z_INT_I_PY_BONUSPAYMENT  Include:  Z_PY_F01_BONUSPAYMENT  Row:    279
    The current ABAP command is obsolete
    At "LOOP AT itab" one of the additions "INTO", "ASSIGNING" or "TRANSPORTING NO
    FIELDS" is required in the OO context . .
    Internal Message Code: LOOP 012
    (The message cannot be hidden using pseudo-comment "#EC .., bzw. durch SET
    EXTENDED CHECK OFF/ON)
          Program:  Z_INT_I_PY_BONUSPAYMENT  Include:  Z_PY_F01_BONUSPAYMENT  Row:    282
    The current ABAP command is obsolete
    In the OO context either an INTO or an ASSIGNING specification or the addition
    "TRANSPORTING NO FIELDS" must be used . be used. be used. be used. be used. be
    used.
    Internal Message Code: READ 018
    (The message cannot be hidden using pseudo-comment "#EC .., bzw. durch SET
    EXTENDED CHECK OFF/ON)
          Program:  Z_INT_I_PY_BONUSPAYMENT  Include:  Z_PY_F01_BONUSPAYMENT  Row:    282
    The current ABAP command is obsolete
    At "LOOP AT itab" one of the additions "INTO", "ASSIGNING" or "TRANSPORTING NO
    FIELDS" is required in the OO context . .
    Internal Message Code: LOOP 012
    (The message cannot be hidden using pseudo-comment "#EC .., bzw. durch SET
    EXTENDED CHECK OFF/ON)
    Please suggest me some way to clear these if it is possible.

  • Reg : Selection-Screen in LDB's

    hi,
    Iam  working on a report which uses Logical DataBase : PSJ.
    Iam getting output based on the standard selection screen of LDB PSJ.
    Now my requirement is :
    I need to add a new field(select option) to the Selection screen and the output should be displayed based on  new field select option values
    how to do this?
    Plz answer
    Regards
    vaja

    Hi,
    You simply add the check in the relevant GET event of the LDB.
    For example, you may have an event for DOCUMENT as follows.
    GET DOCUMENT.
      check document-ref in s_ref.    
    S_REF being your new select option.
    Hope this helps.
    Darren

  • How to disable the Selection screens of LDB's ?

    Hi,
             How to disable the Selection screens of LDB's when we r using the predefined LDB for our executable pgm ? and how to include the predefined LDB  can u write the Code for including LDb or if possible give an example of a Pgm using a Predefined LDB?
    Thanks & Regards,
    Gopi.

    Hi Gopi,
    Go through the link,
    http://www.sapdevelopment.co.uk/hr/hrhome.htm
    Regards,
    Azaz Ali.

  • Is it possible to change selection screen of logical database structure?

    I have to create a z report for a standard transaction FBL01N which is extracting data according to the vendor account number(LIFNR) at the selection screen. Now as per the requirement the system should extract details according to 'vendor name' keeping the same functionality.
    But the standard program is using some logical database structure KDB and the include for the selection screen is DBKDFSEL.So can I modify the selection screen of this transaction replacing Vendor No with Vendor Name.

    Hi..
    Refer this links
    http://help.sap.com/saphelp_46c/helpdata/en/9f/db9b8535c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/9f/db9b8535c111d1829f0000e829fbfe/content.htm
    Hope this may b very helpful to u
    Sravani
    Plz reward points

  • Infoset Query- How do I clear the in-built selection screen in LDB

    Dear Experts,
    When LDB is used in queries unwanted selection screen blocks appear.
    Please help in getting rid of the same.
    Kind Regards
    Jogeswara Rao

    Hello Jogeswara,
    1.  In the Infoset push button Extras and then select Code tab.
    2.  Select AT SELECTION-SCREEN OUTPUT for Code Section.
    Suppose your query is based on logical database KDF and you went to hide the SELECT-OPTIONS for Company Code.
    loop at screen.
      if SCREEN-NAME = '%_KD_BUKRS_%_APP_%-TEXT' OR
         SCREEN-NAME = '%_KD_BUKRS_%_APP_%-OPTI_PUSH' OR
         SCREEN-NAME = '%_KD_BUKRS_%_APP_%-TO_TEXT' OR
         SCREEN-NAME = '%_KD_BUKRS_%_APP_%-VALU_PUSH' OR
         SCREEN-NAME = 'KD_BUKRS-LOW' OR
         SCREEN-NAME = 'KD_BUKRS-HIGH'.
        screen-invisible = '1'.
        screen-active = '0'.
        modify screen.
      endif.
    endloop.
    Kind Regards,
    Rae Ellen Woytowiez

  • Modifying selection screen of LDB

    Hi,
         I copied a standard report (RFCLLIB04) in a Z Report. This Report uses a logical database BRF. I have to put a check box on the selection screen in between the fields provided by Logical Database BRF i.e i have to put a check box after the field 'Ledger'.
    How can i achieve this ?
    Thanks,
    Ibrahim

    Hi,
    You can not add a chec box in between the selection screen of a LDB but you can add as an extra field at the bottom. If the user dont want to add in this way you can also look for the other selection screen whic may have the fields like you wanted.
    To achieve this goto --> attributes >  Report category> search for the required category here. It will change the selection screen. Other wise you need to create one customisex report category.
    thanks,
    Preetham

  • Regarding selection view in ldb KDF

    Hello All,
    In logical db KDF when i go to selection view i can see three function groups ie vendor master companycode and documents with their respective ids.
    But when i execute report related with this logical database like tcode f.42 adn fbl1n i can see only two options in dynamic selections ie vendor master and company code where as documents option is missing
    How can i get documents options back in the report or is there any program to regenerate these dynamic selections
    Thanks
    SUnny

    Hi Suny,
    When I run the T-code FBL1N at my place and click on Dynamic selections button,what I see that there are all the three options--Vendor Master,Company Code and Documents available.
    You need to observe that against Vendor number there is no input box available but all the fields available under it till Company Code belong to Vendor Master.Similarly,all the fields mentioned under Comaony Code belong to Company Code and likewise all the fields mentioned under Documents like Special G/L Indicator,Assignment,Document number etc. belong to Document.
    In case you have any further clarifications,do let me know.
    Regards,
    Puneet Jhari.

  • Working with dynamic selection screen in LDB FMF

    Hi Guys,
    I am working with LDB FMF and I have a requirement where user need the selection field in initial screen which is already comming in dynamic selection option.
    Is it possible without changing the standerd LDB.
    Atul
    Edited by: Atul Dhariwal on Jun 16, 2009 6:27 AM

    Hi,
    my requirement is to list fields from dynamic selection to appear in the main selection screen.
    user doesn't want's to click on dynamic selection option and select the fields.
    I hope i am clear this time.
    Atul

  • Change selection screen mb25

    Hi all,
    The transaction MB25 uses the DB logic MMIMRKPFRESB,
    At the selection screen I want to see the block KEY (Key Fields) How can I do that ?.
    I create a new programm with attributes:
        logical database MMIMRKPFRESB and s
        selection screen with space
    and works as I want.
    How can I do, so the tx MB25 show that block of the selecction screen???
    Thanks!!!

    hi,
    go through the below attachment it will be useful for u.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0e0039a-0d79-2c10-0aaf-9f6c062c0ffb?quicklink=index&overridelayout=true

  • Function Module Changed - Selection Screen still has old values

    Hi All,
    Our data source uses a function module while extraction. (generic)
    We have changed the Text Symbols in our function module.
    In the function module we fill one particular field (master data) as per the logic.
    The changes done are reflected in the dataloads and data is fine in BW.
    our problem is the selection screen in BW and in the reports, it shows the older values as well for that particular field.
    Can anyone help us in this regard?
    thanks
    Sudeepti

    Sudeepti,
    run program
    rsdds_aggregates_maintain for the relevant infoobjects and see if the change is carried over..
    Also check if the text tables for the same refer to the older values...
    Arun
    Assign points if useful

Maybe you are looking for

  • How can I get my network home not to show up in my doc?

    I have a mac with leopard i am in a network for school and i do not want that symbol for my network in my doc and when i am not at school it is an annoying question mark. when i click remove from doc, it comes back the next time i restart or turn my

  • New Intel Mac mini: Is 1G Ram Enough?

    Hello everyone. I intend to get my dad and my sis (upgrade from her old iMac G3) each a new Intel Mac mini Core Solo. I understand that the new Intel Mac mini shares the ram memory between the processor and the "in-built" graphics... also understand

  • Global variable

    how can we declare Globalvariable in jsp and what is scope of that variable?

  • Multilanguage user content in Portal

    Hi All I'm develop multilanguage WebCenter Portal. 1. How to create select language menu for user? 2. How to user to enter contents in different languages? As a result if I choose English language - I see the content which were entered by the user in

  • PDF Comparison in batch

    Can a bunch of PDF be compared against another set in batch mode? Is there any plug in supporting this option available in Adobe?