Dynamic selections in ABAP HR

Hi,
What is meant by dynamic selections in ABAP HR report using a LDB?

hi,
use this.
SELECTION-SCREEN DYNAMIC SELECTIONS FOR NODE|TABLE <node>.
Also check this.
[https://forums.sdn.sap.com/click.jspa?searchID=20295165&messageID=5678733]

Similar Messages

  • Dynamic Selection Screen ABAP

    Hi all ,
    In ECC 6.0 , i want to create a dynamic screen .
    Requirement is as follows :
    I will maintaining a Z table which will contain Program Name (Zreport1 , zreport2 , zreport3 , etc ) all with a common selection parameter PAYROLL AREA .   Now , the selection screen of the new program needs to be such that if I maintain Zreport 1 and 2 in this Z table , then Report 1 and report2 description and the payroll area should come in sel screen
    eg
    THIS IS REPORT 1
                    Payroll Area : ____________
    This is REPORT 2
                    PAYROLL AREA ...
    Thus the sel screen of the new program should differ based on the Z table entires .
    Pls lemme know suggestions on the same

    Hi Supriya,
    You can check the below URL, it may help you.
    http://wiki.sdn.sap.com/wiki/display/Snippets/ABAPProgramtogenerateselect-options+dynamically.
    Seee that if you can try of LDB.
    Thanks
    Arbind

  • Using dynamic select (xsl:value-of) in XSLT (ABAP)

    Hi folks,
    I did a quite extensive search in the archive but couldn't find an answer on my question. If it has been answered before please just provide me with the link :).
    I need to make a dynamic select in a xsl-value-of in an ABAP XSLT. I do not know the structure of the input message (can be of any kind) and I want to perform a xpath query on the input message. The result of the transformation should be the value (if any) of the xpath query. As the query is not known in before I want to pass the query at runtime using a parameter in XSLT. If I pass my query as a string parameter the value-of just returns the string and not the value of the xpath query. Creating the parameter as a node-set doesn't work either for me.
    So is there any way to use a parameter as input to an xpath query?
    Or is my last resort using a JAVA XSLT processor. This is running inside a ABAP proxy, so a call to JAVA would be a greater hassle.
    Kind regards
    Joscha

    What DB version?
    The following SQL
    select xmltransform(XMLTYPE('<song>
      <title>Isn''t she lovely?</title>
    </song>'), XMLTYPE('<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
      <xsl:output method="xml" encoding="UTF-8"></xsl:output>
      <xsl:template match="//song">
        <out>
          <xsl:value-of select="title" disable-output-escaping="yes"></xsl:value-of>
        </out>
      </xsl:template>
    </xsl:stylesheet>'))
      from dual;produces this on 11.1.0.6
    <?xml version="1.0" encoding="UTF-8"?>
    <out>Isn't she lovely?</out>and this on 10.2.0.4
    <out>Isn&apos;t she lovely?</out>I found a couple of previous discussions regarding this at
    {thread:id=679397}
    {thread:id=879301}
    The last discussion provides a workaround if you need it.

  • Dynamic selection screen for custom ABAP report

    Hi,
    His it possible to create a custom ABAP report with a dynamic selection screen. The report doesnot use a logical database. If possible sample code will be appreciated.
    Regards,
    Chandra Kumar

    hi
    use this link
    Dynamic selection screen
    Cheers
    Snehi

  • Dynamic selection screen with ABAP web dynpro

    Hi all.
        How can I create dynamic selection screen with ABAP web dynpro? Thank you in advance.

    hi yinglak.....
             this is possible........ all the ui elelments has the property called visible and enabled.... just assign an attribute of type wdui_visibility to the visible property....
    in the wddomodify method..... check for the radio button value and pass the value true or false to this attribute and it gets changed automatically.
    ---regards,
       alex b justin

  • How to Debug  ABAP/4 routine in Dynamic Selection?

    Problem:
            I am not able to debug the ABAP/4 routine in data dynamic selection.
    Analysis:
            I typed /H on  transaction command prompt. I entered to ABAP/4 debug mode.
    Then I am not  able to debug my routine. Give me solution for this problem?

    Hi Surya,
    If you want to debug the routines in transformation
    GOTO Transformation you need to debug -- seelct the tranformation id
    To debug these routines we need to go to the generated program of the Transformations in two ways:
    We can get the Program ID for the Transformation ID (6HkDSDsHJNQO0VTU3HK01MH7) from table RSTRAN.
    You can get the program id from the table... append GP to the program id you will get the report program for transformations.
    Now goto Tcode : se38 enter the program name and set the break points.
    On going with display we will be to the ABAP editor of the Report Program.
    The other way of getting to this program is from the Transformations itself.
    Go to Extras -->Display Generated Program. It directly takes us to the ABAP editor of the Report Program.
    Set a break point at the code you want to debug, i.e. at your selections at start routine and at your update
    routine.
    Now after setting the Break points run the DTP in the debug mode.(Select the Processing Mode Serially in the Dialog process (for Debugging)).
    If you are on BW 3.x
    /people/pavan.bayyapu/blog/2006/09/06/debugging-data-upload-in-bw
    Regards
    KP
    Edited by: prashanthk on Jul 25, 2010 10:05 AM

  • ABAP Help: Dynamic Selection Screen

    Hi,
    I have a requirement to be able to pick the list of fields in a selection screen. (List processing)
    Similar to SE16 choosing "fields for selection".
    I've debugged SE16 and realized it deletes the report and regenerates a new report with the updated selection screen.
    I could not do the same as it will also delete all the variants users have created in the report.
    Has anyone done something similar before?
    What is the best approach for this scenario?
    Regards,
    Michael Pang

    Hi Michael
    Hoping you have solved your problems with ALVs, I think it may be helpful to inspect FMs <b>"FREE_SELECTIONS_INIT"</b> and <b>"FREE_SELECTIONS_DIALOG"</b> for this issue. They have some <i>Function Module Documentation</i>.
    If you are dealing with logical databases, then only in the INCLUDE program DB<i>ldb</i>SEL of logical database <i>ldb</i>, you can use some selection-screen definition variants as:
    1.SELECTION-SCREEN BEGIN OF VERSION vers TEXT-xxx.
    2.SELECTION-SCREEN END OF VERSION vers.
    3.SELECTION-SCREEN EXCLUDE ... .
    4.SELECTION-SCREEN DYNAMIC SELECTIONS FOR TABLE dbtab.
    5.SELECTION-SCREEN FIELD SELECTION FOR TABLE dbtab.
    6.SELECTION-SCREEN DYNAMIC SELECTIONS FOR NODE node.
    7.SELECTION-SCREEN FIELD SELECTION FOR NODE node.
    You can get more info from SAPHelp for these...
    *--Serdar

  • Dynamic Selection in SAP ABAP

    Hi Guys,
    I am working on 1 program in which I need the information of dynamic selection value.So can anybody tell me the any FM or Table name in which dynamic selection value saved.
    like FM "RS_VARIANT_CONTENTS" stores the value of normal selection data but not the dynamic selection data (Free Selection). but in my case I need the FM which stores the value of dynamic selection also.
    thanks for your help.
    Lalit Soni

    Hi Suhas,
    Actually in my report user will enter program name & variant name, based on this I need to find out the value for that variant & print that report. so for normal selection I can get the detail using FM: "RS_VARIANT_CONTENTS" but for dynamic selection (Free selection), I am not getting the detail using this FM.
    So I need any FM or Table Name which gives me the value for dynamic selection based on the report & variant.
    Thanks & Regards,
    Lalit Soni

  • Is it possible to display only dynamically selected fields in the out put?

    Is it possible to display only dynamically selected fields in the out put? i need to display set of columns in the selection criteria, but in the output i have display only input given fields. because i need to convert it into .csv file. So i have to display selected fields from internal table. In oracle they are using"execute immediate". is there any equivalent in SAP?
    thanks in advance.

    Hi Remya,
    Are you talking about dynamic programming in ABAP ?
    If yes, there are concepts like RTTS which facilitates it.
    Yes, the select query also supports dynamic selection of fields. ( Please care about ( ) in dynamic sql ).
    Do more research on Field Symbols and statements like ASSIGN COMPONENT OF.
    Regards,
    Philip.

  • How can i dynamically select columns based on the input parameter?

    I have an input parameter which takes single numeric value.
    Based on this value i have to dynamically select table-columns .
    For eg: if i have following fields in my table :
    SEM_1
    SEM_2
    SEM_3 and SEM_4.
    And if i give numeric input as 2 , then i have to select "SEM_2" column only.
    if the input is 3 then i have to select "SEM_3" only and leave the rest of the columns.
    how do i achieve this dynamic feature in the "Select .....  From...... table...." statement in the ABAP??

    Hi,
    you should try something like this.
    TYPES: cond(72) TYPE c.
    data: condtab TYPE TABLE OF cond,
             condw type cond.
    data: lv_field(30) type c value 'SEM_'.
    write p_num to lv_field+4(1).
    condw = lv_field.
    append condw to condtab.
    SELECT (CONDTAB) FROM table INTO.....
    Kostas
    Message was edited by:
            Kostas Tsioubris

  • Adding of new field in dynamic selection for financial statements

    Hi ALL,
    I want to add Trading partner in dynamic selection fields of financial statement report at document level not yet GL master level: S_ALR_87012284 - Balance Sheet / Profit and Loss Statement .
    Can any one tell how to proceed?
    I have referred notes: Note 188663 - Enhancing selection views and dynamic selection.
    But exactly I am unable to find which logical database has to be given?
    regs,
    ramesh b

    Hi,
    If you want to add extra field in your report you can do the setting in Layout selection. If it is not available kinldy check any SAP notes available or not. Otherwise do Zreport with your ABAPer.
    Regards,
    Mohan.

  • How to get dynamic select options from logical database?

    Hi,
    in one of my extended reports (means - overwritten standard SAP functionality in Z-namespace) I'm using LDB 'DDF'. I've been requested to validate some of the dynamic selection options (for example - field HKONT at Document level) and to split the logic depending on the particular value(s).
    Tracking what is happened in the LDB program I found that this select option is added as dynamic WHERE clause to the SELECT statement - in a way:
    WHERE bukrs = p_burks AND ... AND
    (where_tab)
    Is there a way to get values of these LDB dynamic select options into my report and if yes - how?
    Thanks in advance.
    Regards,
    Ivaylo Mutafchiev
    Senior SAP Abap Consultant

    Hi,
    Try to use the following fm in your report and check
      call function 'RS_REFRESH_FROM_DYNAMICAL_SEL'
        exporting
          curr_report        = sy-cprog
          mode_write_or_move = 'M'
        importing
          p_trange           = gt_dyn_trange
        exceptions
          not_found          = 1
          wrong_type         = 2
          others             = 3.
    PS please make a whereused of this fm , how it has been used in LDB's to get dynmic selection values

  • How to save a variant with dynamic selections parameters

    Anybody knows how to save a variant for an ABAP that uses a Logical database with Dynamic Selections?
    Have a look for example to the following:
    SE38 - DEMO_PROGRAM_GET - Execute - Shift F4 - Connection Number.
    How to save 0820 as Connection Number?
    Function Group SVAR seems good but FREE SELECTIONs are not easy to manage...

    Hello,
      I tried to save the variant of DEMO_PROGRAM_GET with dynamic selection field (Connection Number) filled. It gets saved without any problem. Just click 'SAVE' and enter the variant name and description.
    Thanks,
    Venu

  • Dynamic Select disadvantage... eventhough the records getting zero still it

    HI,
    This is the select statement which I am using
    select * from (w_access_fields-seltabname)
    into corresponding fields of table <t_table>
    where (t_where_clause) order by primary key.
    Plrease find the screen shot in the attachment
    in the 1st case the where condition is
    FROM MVKE
    WHERE
    "MANDT" = ? AND "MATNR" = ? AND "VKORG" = ? AND "VTWEG" = ? AND "PMATN" ?
    in the second case the where condition is
    From MARA
    WHERE
    "MANDT" = ? AND "MATNR" = ?
    in the 3rd case
    From Mara
    WHERE
    "MANDT" = ? AND "MATNR" = ? AND "PMATA" ?
    My Questions:
    1)The Above three SQL statements on tables MARA/MVKE are originated from the dynamic conditions in ABAP. How can we reduce the executions?
    2)How can we avoid the accesses with u201C0u201Drecords in such scenario?
    Thanks in advance.
    Regards
    Ravinagh Boni

    Hi BI,
    Option 1:
    Please check KPI update modes at transformation rules of each KPI.
    That setting might me summation or addition - change that option and try
    Option 2:
    Check data in the cube according to the request ID, that is filter it to one request id in cube and compare that data with source data - You will get some idea
    If u r facing same problem in DSO, then check data in change log
    Hope It will help u.
    Thanks
    Tony

  • Dynamic select

    hi to all,
            i am working in the dynamic select scenario. i want to select the fieldnames  from the tables dynamically using report editor as per the requirement as new to abap can some one please help me out and also kindly mention the table name for example DD03L.
    Thanks,
    Devi

    Hi priya...
    I am sure about its may help you....please mention if you solve your questions..
    REPORT  ZNKS_TEST19.
    *TABLES : SFLIGHT.
    type-pools : slis.
    data : it_tab  type table of SFLIGHT,
          wa_tab  like line of it_tab.
    data: fieldcatalog type slis_t_fieldcat_alv with header line,
          gd_layout    type slis_layout_alv,
          gd_repid     like sy-repid,
          g_exit type c,
          ispfli type table of spfli.
    parameters :
                carrid  type SFLIGHT-CARRID,
                connid  type SFLIGHT-CONNID,
                date  type SFLIGHT-FLDATE,
                price  type SFLIGHT-PRICE.
    data l_where(100) occurs 0 with header line.
    start-of-selection.
      perform data_retrivel.
      perform build_fieldcatalog.
      perform display_alv_report.
    form build_fieldcatalog .
      fieldcatalog-fieldname   = 'CARRID'.
      fieldcatalog-seltext_m   = 'carrid'.
      fieldcatalog-col_pos     = 0.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'CONNID'.
      fieldcatalog-seltext_m   = 'connid'.
      fieldcatalog-col_pos     = 1.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'FLDATE'.
      fieldcatalog-seltext_m   = 'date'.
      fieldcatalog-col_pos     = 2.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'PRICE'.
      fieldcatalog-seltext_m   = 'price'.
      fieldcatalog-col_pos     = 3.
      fieldcatalog-outputlen   = 20.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
       fieldcatalog-fieldname   = 'CURRENCY'.
      fieldcatalog-seltext_m   = 'currency'.
      fieldcatalog-col_pos     = 4.
      fieldcatalog-outputlen   = 20.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
       fieldcatalog-fieldname   = 'PLANETYPE'.
      fieldcatalog-seltext_m   = 'planetype'.
      fieldcatalog-col_pos     = 5.
      fieldcatalog-outputlen   = 20.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
    endform.                    " BUILD_FIELDCATALOG
    form display_alv_report .
      gd_repid = sy-repid.
      call function 'REUSE_ALV_GRID_DISPLAY'
        exporting
          i_callback_program      = gd_repid
          i_callback_top_of_page  = 'TOP-OF-PAGE'  "see FORM
          i_callback_user_command = 'USER_COMMAND'
          it_fieldcat             = fieldcatalog[]
          i_save                  = 'X'
    *      IS_VARIANT              = G_VARIANT
        tables
          t_outtab                = it_tab
        exceptions
          program_error           = 1
          others                  = 2.
      if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    endform.                    "DISPLAY_ALV_REPORT
    form data_retrivel .
      if carrid is not initial.
    append 'CARRID = carrid' to l_where.
    endif.
    if connid  is not initial.
      if l_where is initial.
        append ' and ' to l_where.
      endif.
      append 'CONNID = connid' to l_where.
    endif.
    if date  is not initial.
      if l_where is initial.
        append ' and ' to l_where.
      endif.
      append 'FLDATE = date' to l_where.
    endif.
    if price is not initial.
      if l_where is initial.
        append ' and ' to l_where.
      endif.
      append 'PRICE = price' to l_where.
    endif.
    select * from sflight into corresponding fields of table it_tab
    where (l_where).
    endform.                    " DATA_RETRIVEL
    form top-of-page.
    *ALV Header declarations
      data: t_header type slis_t_listheader,
            wa_header type slis_listheader,
            t_line like wa_header-info,
            ld_lines type i,
            ld_linesc(10) type c.
    * Title
      wa_header-typ  = 'H'.
      wa_header-info = 'Z  report'.
      append wa_header to t_header.
      clear wa_header.
    * Date
      wa_header-typ  = 'S'.
      wa_header-key = 'Date: '.
      concatenate  sy-datum+6(2) '.'
                   sy-datum+4(2) '.'
                   sy-datum(4) into wa_header-info.   "todays date
      append wa_header to t_header.
      clear: wa_header.
      call function 'REUSE_ALV_COMMENTARY_WRITE'
        exporting
          it_list_commentary = t_header.
    endform.    
    // Dynamic Selection
    Thanks and Regards ,
    Niraj Sinha

Maybe you are looking for

  • TS1398 The internet on my Iphone 4 doesn't work when I use the Wifi

    The internet on my Iphone 4 doesn't work when I use the Wifi at home. My Mac works fine. On the Iphone it shows it's connected but it doesn't open any app. Anyone knows what to do? Thanks

  • Problem with payment block code in MIRO

    Hi experts, I've a problem during invoice verification, the system doesn't set the payment block code R -Invoice verification but another payment block code and in this way the transaction MRBR doesn't show the invoice blocked. Is there in customizin

  • SGE2000 Web Interface not loading

    Getting a white screen in both frames of the web interface after logging in. Can't figure out why it won't load. SW ver 3.0.0.18 Boot: 2.0.0.03 HW Ver: 00.00.01 Have tried using Easy Upgrade tool and get a warning : Did not find device information. A

  • Need mail.app

    Hi, I threw away Mail because it makes me mad, but I did not set the preferences for the default mail client before I did. Is there a way to tweak the com.apple.mail.plist to make Entourage the default mail app? I have that set on my own account, but

  • Batch script to test if Oracle instance is up on windows 2003

    I create the batch job from command line to test the oracle 10g, if the instance is up return oracle_sid is ready, this is running on windows 2003, test.bat ======================================= @echo off set ORACLE_SID=TESTDB echo sqlplus DBAUSER/