Parameter inactive in the selection screen of a report with logical datab.

I`m using a logical database in a report (PNP).
I need put as inactive some parameters of the selection screen. How can i do it ???  From customizing ???
Thanks

Hi,
Check this code..
" In screen loop You need to inactive the field. 
AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF screen-name CS 'PNPKOKRS' OR
       screen-name CS 'PNPKOSTL' OR
       screen-name CS 'PNPORGEH'.
      screen-active = '0'.
      screen-invisible = '1'.
      MODIFY SCREEN.
      CLEAR screen.
    ENDIF.
  ENDLOOP.

Similar Messages

  • Selection screen for HR report with logical database PNP

    Hi All,
       I am writing a HR report. And I use the logical database PNP. Also I create a HR report category for this report. In the report category, I can define the selection screen field. But all these fields are selection option format. My question is How can I add parameters, radiobutton group and checkbox in the selection screen. Thanks.
    Alex

    Hi Alex,
    Sorry for replying so late. Please try this tutorial:
    w w w. s a p t e c h n i c a l. c o m -> tutorials -> ABAP-HR -> Creating HR Report category in PNP logical database
    Sorry, I put it like this, because direct link doens't let me post the answer. Don't know why.
    It can also be something with your custom code in selection screen. Though it works fine for, try to remove COMMENTs and observe the result. Maybe parameters are overlapping somehow. First try this:
    SELECTION-SCREEN begin of BLOCK blk2 WITH FRAME TITLE text-002.
    PARAMETERS RefDate type DATS.
    parameter BFlag type c RADIOBUTTON GROUP grp1.
    PARAMETER FFlag type c RADIOBUTTON GROUP grp1.
    parameters days type i.
    PARAMETERS spvsr like PA0001-MSTBR.
    selection-SCREEN end of BLOCK blk2.
    If that works together with the report category, try to extend it with adding a selection-screen comment, but do this in reversed order (comment goes first and FOR FIELD addition is supplied) like this:
    SELECTION-SCREEN begin of BLOCK blk2 WITH FRAME TITLE text-002.
    PARAMETERS RefDate type DATS.
    SELECTION-SCREEN begin of line.
    SELECTION-SCREEN COMMENT 3(10) text-003 for field bflag.  "FOR FIELD, and goes first
    parameter BFlag type c RADIOBUTTON GROUP grp1.
    SELECTION-SCREEN COMMENT 16(10) text-004 for FIELD fflag.  "here two
    PARAMETER FFlag type c RADIOBUTTON GROUP grp1.
    SELECTION-SCREEN end of line.
    parameters days type i.
    PARAMETERS spvsr like PA0001-MSTBR.
    selection-SCREEN end of BLOCK blk2.
    If still not working, see if text-003 and text-004 are not too long (you expect them to be 10 chars), This may somehow affect selection screen.
    You may also try with setting cursor position explicity by:
    SELECTION-SCREEN begin of line.
    SELECTION-SCREEN POSITION 3.
    SELECTION-SCREEN COMMENT (10) text-003 for field bflag. 
    parameter BFlag type c RADIOBUTTON GROUP grp1.
    SELECTION-SCREEN POSITION 16.
    SELECTION-SCREEN COMMENT (10) text-004 for FIELD fflag.  "here two
    PARAMETER FFlag type c RADIOBUTTON GROUP grp1.
    SELECTION-SCREEN end of line.
    It is really hard to identify where can be a bug as it is working fine for me. Keep trying with different variations, it should finally run with some.
    Regards
    Marcin

  • Error when generating the selection screen '0005'of report 'XYZ'

    Hi All,
       We copied std SAP pgm and were trying to rename the one of the screen but couldnt. When I tried to transport it to test system it went in to dump giving the error  Error when generating the selection screen '0005'of report 'XYZ' .
    Please advise me on how to remove this dump.
    Regards
    Saurabh

    If you look at the selection screen, you'll probably find that there are overlapping elements (text elements over select-options) or something like that.
    Rob

  • Show the drop down list of variant on the selection screen in ALV reports

    Hi,
    i have a alv report when i execute this display will come and then i click display layout it save as a variant on the selection screen and when i go back to selection screen and press f4 on the display variant its show the drop down list of varient.
    can u send me some code for this functionality...its very urgent.
    thanks!
    Vipin

    Hi,
    try inserting this code apropietly in you program. (1 parameter + Initialization + At-selection-screen + 2 forms)
    START HERE
    PARAMETERS: pa_vari TYPE disvariant-variant.
    INITIALIZATION.
      g_repid = sy-repid.
      CLEAR e_variant.
      e_variant-report   = sy-cprog.
      e_variant-username = sy-uname.
      CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
        EXPORTING
          i_save     = 'A'
        CHANGING
          cs_variant = e_variant
        EXCEPTIONS
          not_found  = 2.
      IF sy-subrc = 0.
        pa_vari = e_variant-variant.
      ENDIF.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR pa_vari.
      PERFORM alv_variant_f4 CHANGING pa_vari.
    *&      Form  ALV_VARIANT_F4
    FORM alv_variant_f4 CHANGING pa_vari.
      DATA: l_exit(1) TYPE c.
      CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
        EXPORTING
          is_variant       = e_variant
          i_tabname_header = 'ANYTHING'
          i_save           = 'A'
        IMPORTING
          e_exit           = l_exit
          es_variant       = e_variant
        EXCEPTIONS
          not_found        = 2.
      IF sy-subrc = 2.
        MESSAGE ID sy-msgid TYPE 'S'  NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ELSE.
        IF l_exit = space.
          pa_vari = e_variant-variant.
        ENDIF.
      ENDIF.
    ENDFORM.                               " ALV_VARIANT_F4
    END
    Hope iy helps!
    Alfonso

  • How to write text  on the selection screen of a  report

    Hi all,
    I need to write some user defined text on the selection screen of an ALV GRID Report.
    Please suggest me how can i do this
    Thanks
    Ajay.

    SELECTION-SCREEN BEGIN OF LINE .
    SELECTION-SCREEN COMMENT 12(31) text-024.<-----Goto text elements and add text.
    PARAMETERS:P_FILEN LIKE RLGRAP-FILENAME .
    SELECTION-SCREEN END OF LINE

  • Error when generating the selection screen "0100" of report "SAPMZMATMAS

    How to over come this error
    SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN.
    *SELECTION-SCREEN BEGIN OF LINE.
          SELECTION-SCREEN COMMENT 1(6) TEXT-002 FOR FIELD P_STATUS.
          PARAMETERS: P_STATUS(18)  TYPE C." ZMATMAS-STATUS.
          SELECTION-SCREEN COMMENT 24(8) TEXT-003 FOR FIELD S_MATNR.
          SELECT-OPTIONS: S_MATNR FOR ZMAT-MATNR  NO-EXTENSION.
       SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF SCREEN 100 .
    100 screen i am generating as selection screen
    1100 is my main screen
    please reply,
    Thanks in Advance.
    Vamsi

    If you look at the selection screen, you'll probably find that there are overlapping elements (text elements over select-options) or something like that.
    Rob

  • Getting parameter id in the selection screen parameter

    Hi,
    There are few fields in my selection screen. I need to set the parameter id of warehouse number such that the value in the user profile should get displayed by default when the user executes the report.. The parameter id is /scwm/lgn . How do I get it? Please advise.
    I have my parameter as follows:
    parameter: p_lgnum   TYPE  /sapapo/matio_wm-lgnum obligatory.
    Moderator message: please read F1-help for "parameters", section "value options".
    Edited by: Thomas Zloch on Jan 19, 2012

    not enough research..
    Parameter: p_lgnum TYPE /sapapo/matio_wm-lgnum MEMORY ID /scwm/lgn .
    press F1 and see how it works

  • Error when generating the selection screen "1000"  for Report ztest

    Hi Experts,
    I am getting this strange error while trying to activate my report. I simply copy paste report from my other system to new system it was working fine there. I also created all include program etc.
    While I am trying to create "Selection-text" it is giving message that "Program contain some serious syntax error" while checking syntax saying that "Program is syntactically right".
    Any idea how to solve this???
    Regards,
    Gourav

    Here is the code::::
    SELECTION-SCREEN BEGIN OF BLOCK select  WITH FRAME TITLE text-sl1.
    Component
    SELECT-OPTIONS:
           s_xcide            FOR gw_zsmmess_compo-xcide
                              NO INTERVALS
                              MATCHCODE OBJECT zsm_xcide_oi.
    SELECTION-SCREEN END OF BLOCK select.
    SELECTION-SCREEN BEGIN OF BLOCK prcopt  WITH FRAME TITLE text-sl2.
    Default severity code
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT  1(30) text-dsc.
    SELECTION-SCREEN POSITION 33.
    PARAMETERS: p_dfsevc   LIKE gw_zsmglob_sever-sevco
                           OBLIGATORY
                           MATCHCODE OBJECT zsm_sevco
                           DEFAULT '3'.
    SELECTION-SCREEN COMMENT 37(30) pt_sevtx.
    SELECTION-SCREEN END OF LINE.
    Minutes to wait before re-issuing alert
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT  1(30) text-ria.
    SELECTION-SCREEN POSITION 33.
    PARAMETERS: p_aleexp(3) TYPE n
                            OBLIGATORY
                            DEFAULT '45'.
    SELECTION-SCREEN COMMENT 37(10) text-min.
    SELECTION-SCREEN END OF LINE.
    Use component specific parameters Yes/No
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT  1(30) text-cpu.
    SELECTION-SCREEN POSITION 33.
    PARAMETERS: p_usecsp   RADIOBUTTON GROUP rg1  DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 35(10) text-rby    FOR FIELD p_usecsp.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN POSITION 33.
    PARAMETERS: p_dnucsp   RADIOBUTTON GROUP rg1.
    SELECTION-SCREEN COMMENT 35(10) text-rbn    FOR FIELD p_dnucsp.
    SELECTION-SCREEN END OF LINE.
    Create/update component specific parameters automatically
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT  1(32) text-cpc.
    SELECTION-SCREEN POSITION 33.
    PARAMETERS: p_updcsp   RADIOBUTTON GROUP rg2.
    SELECTION-SCREEN COMMENT 35(10) text-rby    FOR FIELD p_updcsp.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN POSITION 33.
    PARAMETERS: p_dnccsp   RADIOBUTTON GROUP rg2  DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 35(10) text-rbn    FOR FIELD p_dnccsp.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT  1(30) text-afo.
    SELECTION-SCREEN POSITION 33.
    Fire one alert per component/error type combination
    PARAMETERS: p_afrerr   RADIOBUTTON GROUP rg3  DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 35(50) text-afe    FOR FIELD p_afrerr.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN POSITION 33.
    Fire one alert per component (= outbound XI interface)
    PARAMETERS: p_afrcom   RADIOBUTTON GROUP rg3.
    SELECTION-SCREEN COMMENT 35(50) text-afc    FOR FIELD p_afrcom.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN POSITION 33.
    Fire one alert per run
    PARAMETERS: p_afrrun   RADIOBUTTON GROUP rg3.
    SELECTION-SCREEN COMMENT 35(50) text-afr    FOR FIELD p_afrrun.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT  1(30) text-sel.
    SELECTION-SCREEN POSITION 33.
    Select messages since last run
    PARAMETERS: p_lstrun   RADIOBUTTON GROUP rg4  DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 35(40) text-slr    FOR FIELD p_lstrun.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN POSITION 33.
    Select messages in selected interval
    PARAMETERS: p_mintvl   RADIOBUTTON GROUP rg4.
    SELECTION-SCREEN COMMENT 35(40) text-sin    FOR FIELD p_mintvl.
    SELECTION-SCREEN END OF LINE.
    Message selection interval
    SELECTION-SCREEN BEGIN OF BLOCK msgfilt WITH FRAME TITLE text-msf.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT  1(10) text-icr.
    SELECTION-SCREEN COMMENT 14(05) text-ifr.
    SELECTION-SCREEN COMMENT 25(05) text-dat       FOR FIELD p_stadat.
    Select messages - start date
    PARAMETERS: p_stadat   TYPE d.
    SELECTION-SCREEN COMMENT 46(05) text-tim       FOR FIELD p_statim.
    Select messages - start time
    PARAMETERS: p_statim   TYPE t.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 14(05) text-ito.
    SELECTION-SCREEN COMMENT 25(05) text-dat       FOR FIELD p_enddat.
    Select messages - end date
    PARAMETERS: p_enddat   TYPE d                  DEFAULT sy-datum.
    SELECTION-SCREEN COMMENT 46(05) text-tim       FOR FIELD p_endtim.
    Select messages - end time
    PARAMETERS: p_endtim   TYPE t                  DEFAULT sy-timlo.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK msgfilt.
    SELECTION-SCREEN END OF BLOCK prcopt.
    SELECTION-SCREEN BEGIN OF BLOCK testopt WITH FRAME TITLE text-tso.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT  1(10) text-tst.
    SELECTION-SCREEN POSITION 33.
    List only, no updates
    PARAMETERS: p_lstonl    RADIOBUTTON GROUP rg5  DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 35(14) text-tsl       FOR FIELD p_lstonl.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN POSITION 33.
    Execute updates
    PARAMETERS: p_update    RADIOBUTTON GROUP rg5.
    SELECTION-SCREEN COMMENT 35(14) text-tsu       FOR FIELD p_update.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK testopt.
    *eject
    INITIALIZATION.

  • Error when Generating the Selection Screen?

    Hi Guys,
                   When i am executing the program with this code .I am getting this type of Error
    " Source code   ZUSFICOR00013_MM_ACNT_COSTING                Line     0
    Error when generating the selection screen "1000" of report
                 I got this Error while activating my program.The code which i wrote is the below one.
    SELECTION-SCREEN: BEGIN OF LINE.
    Select-Options : S_MATNR for MBEW-MATNR ."MatchCode Object MAT1,
    SELECTION-SCREEN COMMENT 2(10) TEXT-004 for field s_matnr.
    SELECTION-SCREEN: END OF LINE.
    Thanks,
    Gopi.

    Hi Seshu,
                  While doing EPC for the Below code
    SELECTION-SCREEN: BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(15) TEXT-004 for field s_matnr.
    Select-Options : S_MATNR for MBEW-MATNR ."MatchCode Object MAT1,
    SELECTION-SCREEN: END OF LINE.
                  I am getting an Warning like " Selection text or parameter for selection field S_MATNR is not maintained"  How to coorect this one?
                   and also for the this Below Code
    s_fieldcatalog-col_pos = 1.
    s_fieldcatalog-fieldname = 'BWKEY'.
    s_fieldcatalog-tabname = 'i_MBEW_out'.
    s_fieldcatalog-seltext_l = 'Plant'.
    append s_fieldcatalog to t_fieldcatalog.
    clear s_fieldcatalog.
    s_fieldcatalog-col_pos = 2.
    s_fieldcatalog-fieldname = 'MATNR'.
    s_fieldcatalog-tabname = 'i_MBEW_out'.
    s_fieldcatalog-seltext_l = 'Material'.
    append s_fieldcatalog to t_fieldcatalog.
    clear s_fieldcatalog.
    s_fieldcatalog-col_pos = 3.
    s_fieldcatalog-fieldname = 'MAKTX'.
    s_fieldcatalog-tabname = 'i_MBEW_out'.
    s_fieldcatalog-seltext_l = 'Material Description'.
    append s_fieldcatalog to t_fieldcatalog.
    clear s_fieldcatalog.
                     I am getting EPC Error like " Char. strings w/o text elements will not be translated:
    'Plant'"
         Can u please tell me How to correct these type of EPC Error's.
    Thanks,
    Gopi.

  • Functional area(FKBER( field in the selection screen))

    Hi,
       I have a requirement to add functional area field in the selection screen for a report painter report. This report using library 1VK and table 'CCSS'. I added functional area field in the general data selection . After the execution of report with functional area field filled with value. report not giving any output. do i need to maintain any setting to achieve?
    Regards,
    Palani

    Hi,
    How you have filled the values?
    It is 16 CHAR long.

  • How to print the selection screen variant as a report header

    I want to print the variant selected on the selection screen as a report header in the report painter.....Kindly help....The variant selected prior to generating the report painter output must be displayed on the final output screen as the header on the screen...

    Hi
    Here you've to use 'Z_HEADER_FOOTER' function module at TOP-OF-PAGE
    Just pass parameters for report_name                 as repid
                                              show_select_options  as 'Y'
                                              show_parameters       as 'Y'
                                              line_size                       as you wish
                                              action                           as 'X'
    Hope this fulfills your requirement
    Thanks
    Suren

  • Functional area(FKBER field in the selection screen of the report painter))

    Hi,
    I have a requirement to add functional area field in the selection screen for a report painter report. This report using library 1VK and table 'CCSS'. I added functional area field in the general data selection . After the execution of report with functional area field filled with value. report not giving any output. do i need to maintain any setting to achieve?
    Regards,
    Palani

    1. Call GR22 and click "Characteristics".
    2. Check FKBER and assign a position number to it.
    3. Save and close the library.
    4. Call your report in GRR2 and you should now see FKBER as an available characteristic.
    5. Use it in the General Data Selection or as a Lead Column, as per requirement.
    Or,
    1. Call GR21 and create a custom library. Provide a name and description and also provide a library you can copy from (scan for the best-fit library).
    2. Now follow the steps 2 through 5 above to achieve your result.
    Hope this helps.
    Cheers.

  • Splitting the date based on the selection screen input

    Hi all,
    In the Selection screen of my report i had maintained two fields
    SELECT-OPTIONS  : S_DATE    FOR TPCDATE-FROM_DATE.
    PARAMETERS      : P_NUMBER  TYPE ZMMAREA-NUMBER.
    I need to code such that
    S_DATE should be splitted into P_NUMBER times
    for example if P_NUMBER is 4 i need  S_DATE should be splitted into 4 equal parts or near by equal parts
                        IF  P_NUMBER is 2 i need  S_DATE should be splitted into 2 equal parts or  near by equal parts
    Please suggest me the code of if any Function module exists fot this date splitting
    Thanks in advance
    Ajay.D

    though date question are not allowed, this requirement sounds little different.
    you can take a difference between those days by: S_date-high - S_date-low.
    then divide the difference by p_number. now you get the split positions.
    now in a do enddo you can negate the dates by the split amount you got from the divisions.
    like...
    PARAMETERS: num type i.
    select-OPTIONS: s_date for sy-datum.
    data : gv_split type i, gv_temp type sy-datum.
    gv_split = s_date-high - s_date-low.
    gv_split = gv_split / num.
    gv_temp = s_date-high.
    do num times.
      gv_temp = gv_temp - gv_split.
      WRITE / gv_temp.
    enddo.

  • About table control in the selection screen

    i want to create a table control in the selection screen of my report.i can create the table control using SE51.but how to program with the table control in the report.for example i should fetch the data for the personnel nos entered in the table control of the selection screen.how to do this.can any of u provide sample code for this.
    thanks.

    Hi vadivel,
    Create internal table and create table control using same internal table
    e.g.
    data : begin of it,
           end of it.
    start-of-selection.
    call screen 100.
    If you create table control using wizard then code automatically come here.
    Now, Put one push button in same screen where table control is available. let's say push button Display report.
    Now, use export <IT> to memory id <ID> and submit report <report name> and return. now, define same internal table in this submitted report and use import <IT> from memory id <ID>. Now, table control data is available in internal table, use that data and make code as per your requirement. If you dont want to use push button then use menu bar and at user-command event.
    Hope this help
    Regards,
    Parag

  • 'Error when generating the selection screen "0500"

    Dear all,
    I have copied a function group QEES to ZQEES through SE80. In that I have copied all screens, includes, function modules etc..
    Now when I activate the ZQEES, I get an error 'Error when generating the selection screen "0500" of report "SAPLZQEES'.
    There is no problem with screen 0500, I have activated it.
    But when I activate ZQQES, I get the error.
    Please let me know the reason for this.
    It will be highly appr
    Thanks in advance,
    Sachin

    Hi Sachin,
    there could be a problem while copying in renaming, delete the Function group ZQEES  and recopy the  Standrad function group and only rename  the  the FM QEES_SHOW_SELECTION_SCREEN to ZQEES_SHOW_SELECTION_SCREEN and copy and activate it will work.
    regards,
    Srini

Maybe you are looking for