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.

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.

  • 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

  • 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

  • LDB (Logical Database) results

    Dear All,
    I have an requirement where I have get the selection screen fields list of logical database(LDB) in my custom program.
    Also after getting the selection screen fields, whatever criteria is filled in those, once again i have to take those inputs and get the  results by executing the LDB.
    Is anyone can help me......
    Regards
    Munish Garg

    You will need to call LDB_PROCESS, but you will have to map the data from LDB to internal table (how do your report "knows" which nodes and which fields from those nodes are to be included in the internal table ?)
    So many dynamic statements like CREATE DATA <dref> TYPE REF TO (LBDA-DDIC_TYPE) using the parameter <formname> = LBDA-LDBNODE in a generic FORM <formname> USING <nodename> LIKE LDBCB-LDBNODE and then many ASSIGN statements to map the desired fields to the returned internal table records. At each call of this generic FORM, map each and every "corresponding" fields, add the record to the internal table at the lower level node.
    Regards,
    Raymond

  • 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

  • Getting results from LDB (Logical Database)

    Hi All,
    I have a requirement where i need to pass LDB results to external application. It can be any LDB. Like in SE36 we put the LDB name and execute and final results are shown in ALV. I dont need it to display in ALV but from my custom program, need that output table which stores these results.
    I tried using LDB_PROCESS but that need custom subroutine names to pass in that, i tried  passing the same and results also came but thing is every logical database will have different tables in that, it'll be impossible to create those many subroutine to handle each and every table. So i need a generalized solution like se36 processes the data for any LDB.
    Is anyone knows how can i achieve this?
    Regards
    Munish Garg
    9041793217

    Hello
    Generally any LDB will have a event which triggers the data to be populated in the tables/memory. Now these data retrieval is written in a sub-routine "Perform PUT_<eventnamt>". So any LDB will have the sub-routine named "PUT_<eventname>" in its main program. May be you can create the sub-routine name dynamically using this method.
    Regards
    Ranganath

  • LDB(logical database)

    Hello all,
    I have LDB is BAM. This BAM is used in ME57(RM06BZ00)...when we execute ME57 the selection screen is coming from LDB..My req is i have to insert the new field like POGROUP in ME57 selection screen...so wat i did ultimately i was inserted the new field , which is in LDB select-options...when i execute the LDB inserted newfield is displying in the screen.....
    But my problem is when i used the same LDB(which new field inserted) in ME57(RM06BZ00) program this newly inserted Field(POGROUP) is not displying....
    Please anyone tell me how to insert the new field in ME57.....

    You will need to call LDB_PROCESS, but you will have to map the data from LDB to internal table (how do your report "knows" which nodes and which fields from those nodes are to be included in the internal table ?)
    So many dynamic statements like CREATE DATA <dref> TYPE REF TO (LBDA-DDIC_TYPE) using the parameter <formname> = LBDA-LDBNODE in a generic FORM <formname> USING <nodename> LIKE LDBCB-LDBNODE and then many ASSIGN statements to map the desired fields to the returned internal table records. At each call of this generic FORM, map each and every "corresponding" fields, add the record to the internal table at the lower level node.
    Regards,
    Raymond

  • 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

Maybe you are looking for

  • Use the value of a field as column-name of a dynamic table

    Hi All I have the following situation: a) Internal table TB_ORDER_CONDITION ==>  data: tb_order_condition type standard table of bapicond.      sample of the internal table TB_ORDER_CONDITION: CONT_TYPE # CONDVALUE# CONDBASEVAL       ZR00         #  

  • Does a Database Control use Prepared Statements?

    When I add a method to a database control I have to supply the SQL for that method. Under the covers does the database control convert that SQL into a prepared statement? Is this documented anywhere? Thanks for the help! Rob

  • ESata for T420s with docking station

    I notice the Mini Dock Plus Series 3 - 90W 433810U (as apposed to Mini Dock Series 3 - 90W 433710U) has a eSata port. Will this work with a T420s (which doesn't)? I'm planning to buy a docking station and use it to connect my 30" 2560x1600 display us

  • SAP to XI configuration

    Hi All, Can any1 tell the clear procedure of the following 1. The required to be configuration type of 3rd party system in SLD (System Landscape Directory) for a Business System. 2. And how Partner Profile should be configured for the Outbound and In

  • IPhone SDK running on phone

    I can run an app in the simulator, but when I set the Target to the phone it gives me an error "Error: not device found". This despite the fact that the phone shows up in the Organizer window with a green light, so it obviously found the phone. Has a