Selection screen exit

Hi all,
I've created a selection screen with several select-options.
however after i enter the 'execute' button, the program exit without any warning and return to the main menu.
what've i done wrong here and how to correct it?
thanks

Mr Sesh, here is my code
SELECTION-SCREEN BEGIN OF BLOCK frm1 WITH FRAME TITLE text-t01 .
SELECT-OPTIONS :  sidnum FOR zcustomer-idnumber,
                  sconame FOR zcustomer-contactname,
SELECTION-SCREEN END   OF BLOCK frm1.
SELECT * FROM zcustomer WHERE ( idnumber IN sidnum    ) and
                                  ( contactname IN sconame ).
    MOVE-CORRESPONDING zcustomer TO tbl_customer.
    APPEND tbl_customer. CLEAR tbl_customer.
ENDSELECT.
loop at tbl_customer.
  itab-idnumber = tbl_customer-idnumber.
  itab-coname   = tbl_customer-contactname.
  APPEND itab. CLEAR itab.
endloop.
loop at itab.
    add 1 TO bil.
    FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
    write:/1(274) sy-uline.
    write:/1 sy-vline ,             2 bil,             7 sy-vline ,
           8 sy-vline,
       22 sy-vline ,          23 itab-idnumber,    39 sy-vline    ,
       40 itab-coname,       70 sy-vline    ,     71 sy-vline ,
           119 sy-vline    ,     120 sy-vline ,    134 sy-vline,
           135 sy-vline ,  159 sy-vline,
           160 sy-vline , 170 sy-vline,
           171 sy-vline ,     195 sy-vline,
           196 sy-vline ,     206 sy-vline,
           207 sy-vline , 236 sy-vline,
           237 sy-vline , 255 sy-vline,
           256 sy-vline ,
           274 sy-vline.
endloop.
write:/1(274) sy-uline.
TOP-OF-PAGE.
  SKIP 2.
    WRITE:/1(206) 'SENARAI FAIL PERMOHONAN LESEN PERNIAGAAN' CENTERED.
  SKIP 1.
  WRITE:/1(274) sy-uline.
  FORMAT COLOR COL_HEADING.
  WRITE:/1 sy-vline ,              2 'Bil' ,           7 sy-vline ,
         8(15) 'XXXXXX' CENTERED,                     22 sy-vline ,
        23(12) 'XXXXX' CENTERED,                       39 sy-vline ,
        40(30) 'XXXXXXXXXXXXXXXXXXXXXX' CENTERED,       70 sy-vline ,
        71(48) 'XXXXXXXXXXXXX' CENTERED,               119 sy-vline ,
       120(14) 'XXXXXX' CENTERED,                  134 sy-vline,
       135(24) 'XXXXX' CENTERED,            159 sy-vline,
       160(10) 'XXXXX' CENTERED,                  170 sy-vline,
       171(24) 'XXXXX' CENTERED,                      195 sy-vline,
       196(10) 'XXXXX' CENTERED,                      206 sy-vline,
       207(29) 'XXXXX' CENTERED,               236 sy-vline,
       237(18) 'XXXXX' CENTERED,           255 sy-vline,
       256(18) 'XXXXX' CENTERED,          274 sy-vline.
  FORMAT COLOR OFF.

Similar Messages

  • Call selection screen exit

    Hi,all
    I've found a problem arising from this sentence "call SELECTION-SCREEN 1001 STARTING AT 10 10",in the main screen. (here the type of screen 1001 is 'Modal Dialog Box')
    The 'close' button on the right-top correr of the screen has no effect to close the
    screen 1001,so how can I catch the event of click on that button?
    Thanks

    you need to write the code as below
    case sy-ucomm.
    when 'EXIT'.
    leave to screen 0.  " always use screen 0 for modal dialog box.
    when "BACK'
    leave to screen 0
    WHEN 'CANC'.
    leave to screen 0
    endcase.
    Please activate buttons in Menu Painter.
    Thanks
    Seshu

  • Need selection screen values in Search help user exit in same report

    Hi Experts,
    I am using Logical Data Base PNP.
    Created a custom search help to validate the records for IT000 based on the selection screen dates.
    Enter the DATEs for Data Selection Period and Person selection period in the selection screen.
    When I for search help for PERNR field in the same report, I need the selectin screen DATE values to be in user-exit of search help.
    This will help me in validating the records for specific employees within the date range of given DATE in selectin period.
    As of now it's picking the employees based on the DATE selection of selection screen,
    Regards,
    Prasad

    Hi,
    Go Ahead as mentioned by Satyesh T - (Option two).
    Reading Select Options from DYNP_VALUES_READ
    reffer the above link for getting more clarity for using  'DYNP_VALUES_READ'
    Regards.
    Arun

  • How to run the variable exit without calling the variable selection screen?

    Hi all
    I have a query with 2 variables 0P_PRQUA (Previous Calendar Quarter (SAP Exit)) and ZCCDAT02.
    ZCCDAT02 is a Key Date variable that is derived based on the last day of the quarter that is entered in 0P_PRQUA. The exit code works correctly when calling up the variable screen and ZCCDAT02 is derived properly.
    The problem is that 0P_PRQUA is set to "Can be changed in query navigation". So if the user changes the value of the quarter the exit is not triggered and the value of ZCCDAT02 does not change.
    Is it possible to trigger the exit or is there another way to do it? Ideas would be appreciated. I am trying to create a Web Template with a Dropbox box for the Quarter.
    Query is written in BW 3.X.
    Regards
    Chami

    Hi guys
    Just to restate the requirement. I want the user to be able to change the value of the variable, WITHOUT calling the variable selection screen.
    I want the user to be able to change the value of the quarter by using a dropdown box from within the web template. Once that is selected I want the value of ZCCDAT02 to be derived from the new value of the quarter.
    Regards
    Chami

  • User exit or Badi to add custom fields in selection screen of tcode CATS_AP

    Hi Guys,
    I want to add a custom field to the selection screen of report RCATS_APPROVE_ACTIVITIES (tcode CATS_APPR_LITE).
    I also want to display filtered by this custom fields.  Please let me know the user-exit (prefebly) or BADI.
    I will appreciate if somebody can share the steps.
    Thanks,

    Hi,
    Yes there is, the BADI name is CATS_REPORTING.
    It can be views in transaction SE17.
    thanks.
    JB

  • How to use 'at selection screen on exit command'

    Hi,
    How do I use the above event in the following scenario.
    Scenario: I have a report program which has two radio buttons on the selection screen to which user command is assigned. On selection one, some fields should get disappeared on the selection screen. But one of the fields is a mandatory field, which doesn't allow to proceed unless we enter some value in that(which is redundant since anyway it will be disappearing).
    I thought 'on exit command' event works, but the user command assigned to the radio button is not of type E.
    Issuing a message at selection screen instead of making the field mandatory will work, but I don't want to do that.
    Can anyone please tell me how to handle this?
    Incorrect answers will be suitably punished.
    Thanks,
    Sumanth
    Edited by: Julius Bussche on Sep 26, 2009 12:40 PM
    Silly comment suitably modified.

    do not make that field mandatory using obligatory. so now your radio button work is done.
    now, how to make the field look like and work like mandatory field on execution:
    at selection-screen output.
    loop at screen.
       if screen-name = 'P_MAN'. " lets say this is the field which you want to make mandatory.
          screen-required = 2. "this will just  put a tick mark on the input , looks like mandatory.
       endif.
    endloop.
    now, how to check the mandatory option.
    at selection-screen.
    if p_man is initial.
      display your message to fill this.
    endif.
    hope this helps...
    and as per forum rules, kindly do not encourage people by talking about forum rules.

  • Selection screen values in global variable user exit

    Hi all,
    I made a project report global variable of type 3 (User Exit) and I develop the related code in enhancement KKDR0001 component EXIT_SAPLKYP1_003. In this code I need the value of project definition that user entered on selection screen.
    Does anybody know how can I get this data?
    Thanks!

    Hi,
    You can do the following for getting project in Earlier screen
    Data: l_string(20) type c
    Field-symbols: <fs> type any.
    l_string = '(Screen)variable name'.
    assign l_string to <FS>.
    Just try above...

  • User exit for selection screen of Tcode VL31N, VL32N

    Dear Experts,
    I want to modify selection screen of tcode VL31N, VL32N. Please help me to send user exit Tcode VL31N, VL32N.
    Thanks and regards,
    DucTV1.

    Hi Patrik,
    The ALV report is generating from  a query AQZZ/SAPQUERY/MEMEVL31========, in which the field catalogue of the ALV is coming from normal list dispaly structure only, structure of which is coming from %goo structure.
    Either try to find out an enhancement here , so that you can add fields over there.
    Thanks and Regards,
    Antony Thomas

  • Code for i_step = 2 in user exit ZXRSRU01 for selection screen validation

    Hello Experts,
    I have BI report, in which on selection screen I have 4 formula variable.
    I want to check, what number user has entered in these variables and summation of these fields should not be getter than 100 or less than 100. It should be 100 only. If that summation is not 100 then, I have to display message and again go back to selection screen so that user will make the correction.
    I came to know that for this I have to write a code in user exit ZXRSRU01, when  i_step = 2. I have written the code but it's not working. I have declare one more variable which is not ready for input and which I am checking in the code.
    Can anyone help me out in this regards.
    Thanks
    Chetan

    Hi
    Have you gone through the proper steps for creating and activating the enhancement?
    You can find more detailed documentation in the[ SAP Help|http://help.sap.com/saphelp_nw70/helpdata/en/f1/0a56f5e09411d2acb90000e829fbfe/frameset.htm].
    Regards

  • Need User-Exit / Badi For CO11N selection screen

    Hello Gurus,
    I need to add an extra functionality in the selection screen of the Tcode CO11N .Can you suggest some user exit or badi for the same .
    The Functionality is : We need to make the field 'Reason' as mandatory whenever there is an entry in the field 'Scarp' .
    Waiting for your valuable suggestion on this .
    Regards,
    Abhijit Mandal

    Hi,
    Followings are Enhancement or BADI for Tcode-CO11N
    CONFPP01                                PP order conf.: Determine customer specific default values
    CONFPP02                                PP order conf.: Customer specific input checks 1
    CONFPP03                                PP order conf.: Cust. specific check after op. selection
    CONFPP04                                PP order conf.: Customer specific input checks 2
    CONFPP05                                PP order conf.: Customer specific enhancements when saving
    CONFPP06                                PP Order Confirmations: Actual Data Transfer
    CONFPP07                                Single Screen Entry: Inclusion of User-Defined Subscreens
    CONFPS01                                PS confirmation: Determine customer specific default values
    CONFPS02                                PS confirmation: Customer specific input checks 1
    CONFPS03                                PS confirmation: Customer specific check after op. selection
    CONFPS04                                PS confirmation: Customer specific input checks 2
    CONFPS05                                PS confirmation: Customer specific enhancements when saving
    CONF0001                                Enhancements in order confirmation
    CONFPI01                                Process order conf.: Calculate cust.specific default values
    CONFPI02                                Process order confirmation: Customer spec. input checks 1
    CONFPI03                                Process order conf.: Cust. spec. check after op. selection
    CONFPI04                                Process order conf.: Customer specific input checks 2
    CONFPI05                                Process order conf.: Cust. spec. enhancements when saving
    CONFPI06                                Process order confirmation: Actual data transfer
    CONFPM01                                PM/SM order conf.: Determine cust. specific default values
    CONFPM02                                PM/SM order confirmation: Customer specific input checks 1
    CONFPM03                                PM/SM order conf.: Cust. spec. check after op. selection
    CONFPM04                                PM/SM order conf.: Customer specific input check 2
    CONFPM05                                PM/SM order conf.: Cust. specific enhancements when saving
    Regards.

  • Assigning Conversion Exit to a Select-Option on Selection Screen.

    Hi,
    Is it possible to assign Conversion Exit (Like ALPHA) to a Select-Option on a Selection Screen. If so can anyone please tell me how is this achieved.
    Thanks & Regards,
    Goutham.
    P.S.: Points will be definitely awarded.

    Hi Anjaneyulu,
    Thanks for the Reply.
    But the problem comes here, when he enters both the ranges as well as single values, using the extension button provided for the select-option.
    One option i found was in the layout of selection screen, to the select-option i assigned the ALPHA as conversion exit. But it says that this will be over-written once program/screen is generated.
    Kindly let me know if any one has a solution for this.
    Thanks & Regards,
    Goutham.

  • At selection-screen on exit-command

    hi to all  my querry is as  follows . pls tell what is the usse of
    at selection-screen on exit-command  event where do we  use it . can u pls give some sample coding . points will be rewarded definitely .

    Hi
    We use<b> exit-command </b> in Module pool programs to come out of the Program, without entering data in the madatory fields  on screen.
    We don't use exit commands for selection screens in Reports
    So you are asking this exit command for selection screens
    see the sample code for Module pools programs
    PROCESS AFTER INPUT.
    Forced Exit from the transaction
      MODULE exit AT EXIT-COMMAND.
    *&      Module  exit  INPUT
    Exit from the Transaction
    MODULE exit INPUT.
      CASE okcode.
        WHEN 'EXIT' OR 'CANCEL'.
          CLEAR okcode.
          LEAVE PROGRAM.
      ENDCASE.
    ENDMODULE.                 " exit  INPUT
    Reward points for useful Answers
    Regards
    Anji

  • Use Field-Exit in selection-screen

    Hi,
    I have actived the field-exit of data element p_pernr program RCATSC01 screen 1000.
    But the result is the same like before.
    It is possible to use field-exit in screen 1000 (selection screen) of transaction CAPS ?
    Julien.

    Hi
    I believe the field-exit works for screen of module pool only.
    Max

  • Restrict filter values that are shown in the selection screen

    Hi Experts
    1) Is it possible to restrict the filter values that are shown in the selection screen in BEx web? When a user are asked to enter a material number and uses the selection button in BEx web, he should only see material numbers for one specific plant. How is this done? 
    2) Is it possible to remove the selection button for å characteristic filter in the selection screen in BEx web? The selection button I am talking about is the button to the right of where you enter the filter value (two white papers on top of each other). If there is no solution for question 1 we have to go for question 2 solution.
    We are using BI 04s, SP 09.
    Kind regards
    Erik

    Hi Erik,
    It seems that you would like the user to see value for 1 single plant. If the Plant Value is fixed then you can use this value in the Query and hardcode it.> in the query go to the Plant Chrac and keep a constant value of the Plant.
    How ever if you need this value to be dynamic then use a variable for customer exit and populate this value using ABAP.
    Regards,
    Jasprit

  • From ALV output list to selection screen

    Hi,
    I created one ALV report.
    After executing the program, it displays an ALV list.
    When I click on the back/exit/cancel buttons on the screen, it should take me to the selection screen.
    But that is not happening. it is taking to one screen which shows the report heading. IF i click back/cancel/exit buttons in this screen, it is taking me to the selection screen.
    I checked the program for any write statement, but therre are no write statements.
    Even i tried to remove the end-of-selection event in the program. but not working.
    Can any one help me on this how to overcome this issue.
    Thank you.
    Kumar

    hi check this example...
    REPORT zalv_sel_screen .TABLES: mara.DATA: BEGIN OF i_alv OCCURS 0,
          matnr TYPE mara-matnr,
          mtart TYPE mara-mtart,
          matkl TYPE mara-matkl,
          groes TYPE mara-groes,
          maktx TYPE makt-maktx,
          END OF i_alv.DATA: alv_container  TYPE REF TO cl_gui_docking_container.
    DATA: alv_grid       TYPE REF TO cl_gui_alv_grid.
    DATA: layout    TYPE lvc_s_layo.
    DATA: fieldcat  TYPE lvc_t_fcat.PARAMETERS: p_check.INITIALIZATION.  PERFORM get_data.AT SELECTION-SCREEN OUTPUT.  DATA: variant TYPE  disvariant.
      DATA: repid TYPE sy-repid.  repid = sy-repid.  variant-report = sy-repid.
      variant-username = sy-uname.  layout-zebra = 'X'.
      layout-edit_mode = 'X'.  CHECK alv_container IS INITIAL.  CREATE OBJECT alv_container
                  EXPORTING repid     = repid
                            dynnr     = sy-dynnr
                            side      = alv_container->dock_at_left
                            extension = 1500.  CREATE OBJECT alv_grid
             EXPORTING
                   i_parent          =  alv_container.*  ALV Specific. Data selection.
    Populate Field Catalog
      PERFORM get_fieldcatalog.  CALL METHOD alv_grid->set_table_for_first_display
        EXPORTING
          is_layout        = layout
          is_variant       = variant
          i_save           = 'U'
          i_structure_name = 'I_ALV'
        CHANGING
          it_outtab        = i_alv[]
          it_fieldcatalog  = fieldcat[].
    START-OF-SELECTION.
    FORM GET_DATA
    FORM get_data.  SELECT * INTO CORRESPONDING FIELDS OF TABLE i_alv
            FROM mara
              INNER JOIN makt
                ON maramatnr = maktmatnr
                       UP TO 100 ROWS
                   WHERE makt~spras = sy-langu.  SORT i_alv ASCENDING BY matnr.ENDFORM.                    "get_data***************************************************************
         Form  Get_Fieldcatalog - Set Up Columns/Headers
    FORM get_fieldcatalog.  DATA: ls_fcat TYPE lvc_s_fcat.
      REFRESH: fieldcat.  CLEAR: ls_fcat.
      ls_fcat-reptext    = 'Material Number'.
      ls_fcat-fieldname  = 'MATNR'.
      ls_fcat-ref_table  = 'I_ALV'.
      ls_fcat-outputlen  = '18'.
      ls_fcat-fix_column = 'X'.
      ls_fcat-key        = 'X'.
      ls_fcat-col_pos    = '1'.
      APPEND ls_fcat TO fieldcat.  CLEAR: ls_fcat.
      ls_fcat-reptext    = 'Material Type'.
      ls_fcat-fieldname  = 'MTART'.
      ls_fcat-ref_table  = 'I_ALV'.
      ls_fcat-outputlen  = '10'.
      ls_fcat-fix_column = 'X'.
      ls_fcat-key        = 'X'.
      ls_fcat-col_pos    = '2'.
      APPEND ls_fcat TO fieldcat.  CLEAR: ls_fcat.
      ls_fcat-reptext    = 'Material Group'.
      ls_fcat-fieldname  = 'MATKL'.
      ls_fcat-ref_table  = 'I_ALV'.
      ls_fcat-outputlen  = '12'.
      ls_fcat-col_pos    = '3'.
      APPEND ls_fcat TO fieldcat.  CLEAR: ls_fcat.
      ls_fcat-reptext    = 'Size'.
      ls_fcat-fieldname  = 'GROES'.
      ls_fcat-ref_table  = 'I_ALV'.
      ls_fcat-outputlen  = '30'.  ls_fcat-col_pos    = '4'.
      APPEND ls_fcat TO fieldcat.  CLEAR: ls_fcat.
      ls_fcat-reptext    = 'Material Description'.
      ls_fcat-fieldname  = 'MAKTX'.
      ls_fcat-ref_table  = 'I_ALV'.
      ls_fcat-outputlen  = '40'.  ls_fcat-col_pos    = '5'.
      APPEND ls_fcat TO fieldcat.ENDFORM.                    "get_fieldcatalog
    regards,
    venkat

Maybe you are looking for

  • Issues while saving the Webi Report locally in pdf and Excel Format

    Hi, I am getting issues with the images on a Webi Report when I try to save the reports locally on my machine in either a pdf format or in an Excel Format. I think the issue is that when I am trying to save the report it saves the address of the imag

  • Encrypt/decrypt in c++ and java

    Hi, I have a problem in encryt a file using RC2 in java and decrypt in c++. I am using the bouncycastle.org as my RC2 provider in JCE. Here is the code in c++ void CEScoreDlg::encrypt(BYTE *pData, unsigned long dwDataSize, unsigned long *dwOutSize)  

  • Problem with Encore menus

    I have been using Premier and encore cs3 with video for some time. I have had no problems. My latest prodject involves Encore and still photos. I have put the photos in to 9 slideshows. I have set up a main menu and a sub-menu. With a button for each

  • Private Labeling in IDPAK 2005Q4M3

    I'm trying to do private labeling on IDPAK 2005Q4M3, on Tomcat 4.1 IDM Deployment Guide stated that to change the header image, I have to override the background image in td.admin_header_image tag in style.css file to the image i wanted. Having added

  • Installing Lightroom on Vista x64

    I've already opened a support case about this... but I figure many of you are better than Adobe support anyways. So, here goes. I'm trying to install Photoshop Lightroom 1.1 (the latest downloadable version) on Windows Vista Ultimate 64-bit. I've rea