Selection Screen Disappearing on error

Hi
I am new to ABAP.
Below is the driver program for Smartform,
after:
Step-1 Entering data at selection screen
Step-2 Pressing Execution Button
An error is displaying 'Document no. not found' but the problem is, as soon as the error appears, selection screen goes blank, its not staying.
Please suggest correction.
With warm regards.
Yogesh.
*& Report  Z_MM_GPASS
REPORT  Z_MM_GPASS.
tables: MSEG,ADRC,T001W,MAKT .
data: FM_NAME TYPE RS38L_FNAM.
*& Selection Screen
Selection-screen: begin of block b1 with frame title t1.
Parameter:   Docno   like      MSEG-MBLNR ,
             YEAR    like      MSEG-MJAHR .
selection-screen: end of block b1.
*& Comment on selection screen
At selection-screen output .
t1 = 'Selection-Screen' .
*& Data validation at selection screen
At selection-screen .
select single * from MSEG where MBLNR = docno and MJAHR = YEAR .
if sy-subrc <> 0.
message 'Document no. not found' type 'E'.
endif.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
  EXPORTING
    FORMNAME                 = 'Z_MM_PASS'
*   VARIANT                  = ' '
*   DIRECT_CALL              = ' '
IMPORTING
   FM_NAME                  = FM_NAME
EXCEPTIONS
   NO_FORM                  = 1
   NO_FUNCTION_MODULE       = 2
   OTHERS                   = 3
IF SY-SUBRC <> 0.
*  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*          WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION FM_NAME
  EXPORTING
*   ARCHIVE_INDEX              =
*   ARCHIVE_INDEX_TAB          =
*   ARCHIVE_PARAMETERS         =
*   CONTROL_PARAMETERS         =
*   MAIL_APPL_OBJ              =
*   MAIL_RECIPIENT             =
*   MAIL_SENDER                =
*   OUTPUT_OPTIONS             =
*   USER_SETTINGS              = 'X'
    DOCNO                      = DOCNO
    YEAR                       = YEAR
* IMPORTING
*   DOCUMENT_OUTPUT_INFO       =
*   JOB_OUTPUT_INFO            =
*   JOB_OUTPUT_OPTIONS         =
* EXCEPTIONS
*   FORMATTING_ERROR           = 1
*   INTERNAL_ERROR             = 2
*   SEND_ERROR                 = 3
*   USER_CANCELED              = 4
*   OTHERS                     = 5
IF SY-SUBRC <> 0.
*MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Code Formattted by: Alvaro Tejada Galindo on Jan 7, 2009 2:30 PM

*I have replaced
if sy-subrc <> 0.
message 'Document no. not found' type 'E'.
endif.
with
IF sy-subrc 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
INTO mtext
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
write:/1 mtext.
ENDIF.
*Program sintactically correct.
*but still I'm facing the same problem, for your kind knowledge I don't know what is return code
Edited by: Yogesh Pathak on Jan 7, 2009 9:45 AM
Messege posted more than one time due to "SERVER ERROR" while posting., sorry for inconvenience.
Code Formatted by: Alvaro Tejada Galindo on Jan 7, 2009 2:34 PM

Similar Messages

  • WD application-selection screen - Parameter passing error

    Hi,
    In my WD application selection screen I am using a parameter(COSP-VERSN)
    When i read this using read context i am getting an error saying "Could not find attribute KOKRS"
    In context I have created a node with COSP-VERSN. My Kokrs will be contstant everytime.
    For getting my version I need to pass KOKRS values.How can overcome this issue?
    Here is the read context for versn which I have created in context Create-> NODE Option
    DATA lo_nd_pversn TYPE REF TO if_wd_context_node.
          DATA lo_el_pversn TYPE REF TO if_wd_context_element.
          DATA ls_pversn TYPE wd_this->element_pversn.
    *     navigate from <CONTEXT> to <PVERSN> via lead selection
          lo_nd_pversn = wd_context->get_child_node( name = wd_this->wdctx_pversn ).
    *     get element via lead selection
          lo_el_pversn = lo_nd_pversn->get_element(  ).
    *     get all declared attributes
          lo_el_pversn->get_static_attributes(
            IMPORTING
              static_attributes = ls_pversn ).
    Rgds
    Vara

    Resolved myself by creating a custom Dropdownbykey.
    Rgds
    vara

  • Selection screen time parameter error.

    I see a display error on the selection screen to the left of the Run Time field.  When my mouse hovers over the display error, another display then appears below the Run Time field.  I believe an = sign should appear to the left of the Run Time.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-034.
    PARAMETERS: p_jobnam TYPE tbtco-jobname MODIF ID 1.
    SELECT-OPTIONS: s_runda FOR tbtco-strtdate DEFAULT sy-datum TO sy-datum MODIF ID 1 ,
                    s_runti FOR tbtco-strttime DEFAULT time_0 TO time_24 MODIF ID 1.
    PARAMETERS:     p_supjob  AS CHECKBOX .
    SELECTION-SCREEN END OF BLOCK b1.

    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        " if radio button display on screen i sselected then make subject,sheduler
       and user email disable and if radio button send email is selected make
       the same fields enable.
        IF screen-group1 = '3' .
          IF p_disp = 'X'.
            screen-input = 0.
          ELSEIF p_email = 'X'.
            screen-input = 1.
          ENDIF.
       ENDIF.
    *if check box report on job status is selected making jobname,rundate,runtime fields
    disable and if it is not checked maiking these fields enable.
        ELSEIF screen-group1 = '1'.
          IF p_re_sts = ' ' .
            screen-input = 0.
          ELSEIF p_re_sts = 'X'.
            screen-input = 1.
          ENDIF.
       ENDIF.
    *if attach .csv check box is seleted then making the fields status,application path
    *and file enable otherwise disable.
        ELSEIF screen-group1 = '2'.
          IF p_att = ' '.
            screen-input = 0.
          ELSEIF p_att = 'X'.
            screen-input = 1.
          ENDIF.
          CLEAR : p_apdir1.
    MODIFY SCREEN.
        ENDIF.
    this code am  using i have a check box if i check that am making above selction screen parameters enable disable .
    i found out that if i commented this loop at screen code am getting no error .
    please help

  • Selection Screen in web error

    Dear All,
    I am executing a report in web in Java runtime (BI 7 enviornment). I get the selection screen.
    I have a variable for which I have to give the range. I press F4. A new sub window openes where I can give from and to value. I click on F4 again for giving the From value. All valus for the characteristic are displayed in a new sub window. On top right corner in this window, there is a setting button. When I click on this, it gives error
    500 Internal Server Error
    The initial exception that caused the request to fail was:
    java.lang.NullPointerException
    Has any one faced this error. Any pointer to solve this will be helpful.

    Hi Niraj,
    Apply the below note which is very similar to your issue...
    SAP Note Number: 856741
    Find the below thread...
    500 Internal Server Error when clicked on Add/Remove Button
    Also find the below search links which are very helpful to you...
    https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=500InternalServer+Error&adv=false&sortby=cm_rnd_rankvalue
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=java.lang.nullpointerexception&cat=sdn_all
    Assign points if this helps u...
    Regards,
    KK.

  • Selection screen disappeared from CRM_UI

    Hi All,
    When I click on reporting link in CRM_UI, it is taking me directly to result of the report. No selection screen appears for pre-filter.
    I executed particular report on Bex analyzer as well as on Java portal, its working fine there. I'm getting selection screen for per-filter in Bex analyzer and Java portal. I dont know why selection screen is not coming on CRM_UI.
    Does anyone have any comment on this? Why this is happening only on CRM_UI?
    Thanks and Regards,
    Alok

    Hello Vijay,
    In general, please note that the Enterprise Portal URL is not supposed to be called in an <IFRAME> and it should be the top container in the browser, otherwise EPCM (Enterprise Portal Client Framework) will not work correctly.
    Please check for SAP Note #1738027 - Embedding Enterprise Portal content in another webpage to see how it should be done correctly.
    BR, Gilad B.

  • Back to selection screen after error

    Hello ABAPers,
    I have a executable program (REPORT) to do some processing (e.g. read a standard table with the parameters and select-options and save the data in a Z table).
    When occurs an error (e.g. when sy-subrc <> 0 after select) and a message of type E is showed, the program show the message in a "clean" screen with title SAP. Then, after ENTER or ESC, it leaves to initial screen of SAP (SAP Easy Access).
    The message of type E is triggered from a routine (FORM) called from START-OF-SELECTION event. And the program don´t write nothing in list (only return a status message if everithing is ok).
    How can I force the program to back to selection screen after some error?
    Thanks in advance.
    Best regards,
    Charles Oliveira

    hi,
    Do the following for your requirement.
    in the message give the following
    start-of-selection.
    Perform <routine>.
    Form <routine>.
    if <condition>.
      message 'xxxx' type 'S' display like 'E'.
      exit.
    endif.
    endform.
    This way the control returns to selection screen even after the message is triggered.
    Thanks
    Sharath

  • Error in adding selection screen fields

    Hi All,,
    I am getting error when i add a selection screen parameters in module pool.
    I copied stadard program to custom one, when I add an input field to screen it gives information message saying
    "Selection screen: Report generation makes screen changes ineffective". 
    If though if i add the selection screen, when i relogin newly added screeen disappears.
    Can any one y this is happening?

    Hi,
    You can find a lot of posts on the SDN. Please search for them.
    [What create docking container on a subscreen?]
    [Query Regarding 'cl_gui_docking_container'] are a few

  • Custom error messages in selection-screen

    Hello All,
    I have one query. I have developed a vendor aging report. In the SELECT-OPTIONS, there are 5 fields namely company code, business area, vendor group, vendor code and cash management group. What the user wants is if he enters any invalid value in any of the 5 fields, custom error message should be displayed like 'invalid company code' etc. I think we have to write these messages in 'at-selection-screen' event. Can u help me out with a sample code snippet w.r.t the above program? I have written the code as:
    AT SELECTION-SCREEN.
      IF S_BUKRS ne BSIK-BUKRS.
      MESSAGE e000. 'invalid company code' TYPE 'E'.
      ENDIF.
    But not giving the correct output.i.e. even if I enter a valid company code, the error message is displayed. Can u help me in solving this problem?
    Thanks and Regards,
    Satvik
    Edited by: Satvikpanchal on Jul 22, 2011 9:42 AM

    Hi,
      use AT SELECTION-SCREEN on S_BUKRS-low.
    Use select query for checking the Company code in T001 table check the
    Company code already exist or not? If it is not there show the message.
    Code like
    AT SELECTION-SCREEN on S_BUKRS-low.
    select single bukrs into lv_bukrs
          from T001 where bukrs = s_bukrs-low.
    if sy-subrc NE 0.
    MESSAGE e000. 'invalid company code' TYPE 'E'.
    ENDIF.
    i think you company code is select option so you have to check S_BUKRS-high also.
    using the event AT SELECTION-SCREEN on S_BUKRS-high.
    Regards,
    DHina..

  • Error Message in selection screen Status bar is getting truncated

    Hi Guys,
    Error Message in selection screen Staus bar is getting truncated (full message is not getting displayed).... can anybody tell me how to reslove this

    Hi
    Maimum we can give the error message length is 50 char. If you give more than that it will get truncated.
    What you can do this split 50 and 50 like that you can give 200 chnars.
    Data : Text1 type char50
              Text2 type char50
    If sy-surc ne 0.
    Message Text1 Text2  TYPE "E'' or 'S'
    endif.

  • Error in calling a selection-screen...

    Hello experts,
    Please look at my code below:
    SELECTION-SCREEN BEGIN OF SCREEN 500 AS WINDOW.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pr_upld RADIOBUTTON GROUP grp2.
    SELECTION-SCREEN COMMENT 2(20) text-007 FOR FIELD pr_upld.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 03(15) text-a11 FOR FIELD p_flnme.
    PARAMETERS: p_flnme LIKE rlgrap-filename DEFAULT 'C:'.
    SELECTION-SCREEN END OF LINE.
    PARAMETERS: pr_list1 RADIOBUTTON GROUP grp2.
    SELECTION-SCREEN COMMENT 2(7) text-003 FOR FIELD pr_list1.
    SELECTION-SCREEN END OF SCREEN 500.
    SELECTION-SCREEN BEGIN OF SCREEN 1500 AS WINDOW.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(22) text-002 FOR FIELD p_dcode.
    PARAMETERS: p_dcode LIKE vbak-kunnr,
                p_name1 LIKE kna1-name1.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pr_list2 RADIOBUTTON GROUP grp.
    SELECTION-SCREEN COMMENT 2(7) text-003 FOR FIELD pr_list2.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pr_add  RADIOBUTTON GROUP grp.
    SELECTION-SCREEN COMMENT 2(3) text-005 FOR FIELD pr_add.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pr_edit RADIOBUTTON GROUP grp.
    SELECTION-SCREEN COMMENT 2(4) text-006 FOR FIELD pr_edit.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 03(20) text-a12 FOR FIELD p_code.
    PARAMETERS: p_code LIKE zts0001-cdseq.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF SCREEN 1500.
    IF v_compflag EQ space.
      CALL SELECTION-SCREEN 500.
    ELSE.
      CALL SELECTION-SCREEN 1500.
    ENDIF.
    Now, what I want to do is that the program will call a selection-screen based on a given variable(v_compflag). But its generating an error saying that 'error generating the selection-screen'. Why is this so?
    Again, thank you guys and take care!

    Corrected code.
    REPORT  ztest_errror                            .
    data: v_compflag.
    SELECTION-SCREEN BEGIN OF SCREEN 500 AS WINDOW.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pr_upld RADIOBUTTON GROUP grp2.
    SELECTION-SCREEN COMMENT 2(20) text-007 FOR FIELD pr_upld
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 03(15) text-a11 FOR FIELD p_flnme.
    PARAMETERS: p_flnme LIKE rlgrap-filename DEFAULT 'C:'.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pr_list1 RADIOBUTTON GROUP grp2.
    SELECTION-SCREEN COMMENT 2(7) text-003 FOR FIELD pr_list1.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF SCREEN 500.
    *************SELECTION-SCREEN BEGIN OF SCREEN 1500 AS WINDOW.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(22) text-002 FOR FIELD p_dcode.
    PARAMETERS: p_dcode LIKE vbak-kunnr,
              p_name1 LIKE kna1-name1.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pr_list2 RADIOBUTTON GROUP grp.
    SELECTION-SCREEN COMMENT 2(7) text-003 FOR FIELD pr_list2.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pr_add  RADIOBUTTON GROUP grp.
    SELECTION-SCREEN COMMENT 2(3) text-005 FOR FIELD pr_add.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pr_edit RADIOBUTTON GROUP grp.
    SELECTION-SCREEN COMMENT 2(4) text-006 FOR FIELD pr_edit.
    SELECTION-SCREEN END OF LINE.
    *************SELECTION-SCREEN END OF SCREEN 1500.
    IF v_compflag EQ space.
      CALL SELECTION-SCREEN 500.
    ELSE.
      CALL SELECTION-SCREEN 1500.
    ENDIF.
    Regards
    vijay

  • Error while using selection option variable in the selection screen

    Hi All,
    I am facing an issue while using selection option variable in the selection screen for one of my reports.
    Scenario: For the field "Region From" we need to have wild card logic () in tes selection screen, for example if we put "BE" in the selection screen for the field Region From then the query should be executed only for those "Region From" values which begin from "BE".
    Approach: For the above requirement I have made a selection option variable for "Region From". This allows use wild card
    But when the report is executed we get the following error:
    "System error in program CL_RSR_REQUEST. Invalid filter on ETVRGNFR".
    (ETVRGNFR is technical name of the info object Region From)
    Though the report is executed it displays all the values for the field "Region From" irrespective of the selection given in the selection screen.
    Please give suggestions / alternate solutions to crack this issue.
    Thanks in advance
    Regards
    Priyanka.

    Hi,
    Try to use a variable of type Customer Exit and do the validation inside the exit to display according to your request.
    This is just my view, i am not sure if u are already using this or Char. Variable.
    Cheers.
    Ranga.

  • Displaying error message while entering selection screen fields

    Moderator message: don't offer points
    hi experts...
    i generated a report.
    in that report, the selection screen fields are plant and material type..
    now my rqmt  is like this :
    if user enters any plant except '8210' in  the selection screen, then a pop up should appear like.. enter 8210 plant only, and the cursor should remain in the same screen allowing user to enter correct plant.
    and then same with the case of material type also..user should enter 'mcfe' material type only..
    im using message classes like this:
    if so_bwkey-low ne '8210' or so_bwkey-high ne '8210'.
      message i000(zts).
      endif.
    if so_mtart-low is not initial and so_mtart-high is not initial and so_mtart-low ne 'mcfe'
       or so_mtart-high ne 'mcfe'.
      message i001(zts).
      endif.
    with this logic, when i enter plant..it is prompting
    1) enter plant 8210 only..
    and then when i press enter key it is again prompting
    2)enter material type mcfe only..
    but iam not entering material type here..
    i want to get 2nd error message if and only if i enter material type..
    help me regarding this issue..
    <<text removed>>
    thanks in advance,
    harini.
    Edited by: Matt on Feb 9, 2009 10:14 AM

    Hi,
    Use Error type message in SELECTION SCREEN EVENT.It will place the cursor in the relevant Field.
    At SELECTION-SCREEN ON SO_BWKEY-Low.
    if so_bwkey-low ne '8210' .
    message E000(zts).
    endif.
    At SELECTION-SCREEN ON SO_BWKEY-HIGH.
    if  so_bwkey-high ne '8210'.
    message E000(zts).
    endif.
    At SELECTION-SCREEN ON so_mtart-LOW.
    if so_mtart-low is not initial and  so_mtart-low ne 'mcfe' .
    message E001(zts).
    endif.
    At SELECTION-SCREEN ON so_mtart-HIGH.
    if so_mtart-high is not initial 
    and so_mtart-high ne 'mcfe'.
    message E001(zts).
    endif.
    This will resolve the issue..
    Regards,
    Gurpreet

  • Error while transporting the Custom  Selection Screen to Production

    Hi All ,
    I have created a custom selection screen based on selecting the HR REPORT CATEGORY which gets selected under attributes section of an Executable Program.
    Every selection  screen got replicated till quality  but  at Production unable to see the same selection screen
    Please provide any suggestion to resolve my probs...
    Regards,
    Dheeraj

    Hi,
    This happened to me once.
    I have checked my transport logs and found that everything was successfully transported in order and without errors. But the selection screen was not coming in Productio system. So i have tried activaing and generating the program once which solved my problem.
    Hope it helps you too.
    Thanks,
    Venkatesh.

  • 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 message disble the Fields in Selection Screen

    Hi,
    In my Report i am validating some fields as mandatory.
    If the field is initial then one Error message should be display in the screen and user has to modify the selection screen.
    But after displaying the errro message my selection screen is input disable except the mandatory field.
    I want all the fields should be input enable.
    Sample code for Error message,
    MESSAGE E018 WITH 'Enter Plant'.
    Please provide the code for this.

    Performing checks on SELECTION-SCREEN
    - if the check uses only one independent field (e.g.: value exist in a table) use a[ AT SELECTION-SCREEN ON <field>|http://help.sap.com/abapdocu/en/ABAPAT_SELECTION-SCREEN_EVENTS.htm#!ABAP_ALTERNATIVE_2@2@], the field will be editable when error is raised
    - if the check uses some fields, group them using [SELECTION-SCREEN BEGIN OF BLOCK <block>/END OF BLOCK <block>|http://help.sap.com/abapdocu/en/ABAPSELECTION-SCREEN_BLOCK.htm] and then [AT SELECTION-SCREEN ON BLOCK  <block>|http://help.sap.com/abapdocu/en/ABAPAT_SELECTION-SCREEN_EVENTS.htm#!ABAP_ALTERNATIVE_4@4@], each field of the block will be editable when error is raised
    So, if you really want that each and every field be editable when an error is raised, declare every parameter and select-options in a big block, and perform the check in a unique AT SELECTION-SCREEN ON BLOCK xxx.
    Use Error message, Warning and Information don't break the flow of the report.
    Regards,
    Raymond

Maybe you are looking for

  • SQL query problem - select max (case... aggregate function)

    Hi, I have a problem with below sql query, it gives me problem/error message 'ORA-00937: not a single-group group function', why? select sag.afdeling, sag.sagsnr, to_char(sag.start_dato, 'yyyy-mm-dd'), sag.stat, BOGF_TRANS.TRANSTYPE, max (case when B

  • How to attach an Excel document with the Workflow notification?

    Hi, I need to pass an Excel document through workflow process in several notification nodes. Do you have any demonstration example which shows how to implement it? I found some threads like this, but nobody send me the example. I think I need the exa

  • Need Suggestions for Reception Lobby Music

    Can anyone suggest some good, inexpensive music mix CDs on the iTunes Music Store that would be appropriate for a business's reception lobby? We have a Mac Mini running a plasma screen and connected to the sound system. I'm tasked with finding music.

  • Where is the window border stored?

    If you open a finder or system prefs window, or even the top of an app like firefox, you have that ugly gray border where the search bar and window-resize buttons are. I just want to know where the resource for it is. I know it should be in disk Libr

  • Missing Pantone colors in CS4

    How do I add the missing Pantone in the 700's colors into the swatch list in Illustrator CS4? They are in my latest Pantone swatch books but are not in the color lists in the Pantone Swatch book group in Illustrator. Message was edited by: deesign1