How  restet field-content selection-screen when I return to screen 1

Hi!
My case!
0) Abap report pgm with selection-screen fields.
1) I have a screen where the user send in information in
   X fields.
2) The content is shown as an ALV list.
3) Table will be updated.
4) Return to first screen where screen-output has been
   set to zero. 
5) <b>HOW DO I CLEAR THE REAL CONTENT OF THEESE FIELDS?
   WHERE CAN I SEE THE CONTENT?</b> When I debug they are ' '.
Please give me some input. The content is somewhere but I don't know where ...
Regards Christina

For example, see this progam,  I enter values in the selection screen, and execute, after displaying the list, I hit Back, and the selection screen comes with no values.
report zrich_0001.
parameters: p_chk1 type c,
            p_chk2 type c,
            p_chk3 type c.
start-of-selection.
  write:/ p_chk1, p_chk2, p_chk3.
  free memory.
Welcome to SDN!  Please be sure to award points for helpful answers and mark your post as solved when solved completely.  Thanks.
Regards,
Rich Heilman

Similar Messages

  • How to automatically open selected docs when turn on computer?

    How to open automatically selected docs when turn on computer? (Text Edit docs particularly, and others)
    I wist not that I must tediously select and open my same usual documents one by one, each time I turn on computer to work.
    I either have to find my usual documents under "File/OpenRecent"
    &/or search through the FINDER for them.
    I wonder if anybody else has every had this problem before, and found a solution?
    Has modern technology advanced to the point where this can be done automatically?
    (Now it just occurred to me that
    I could put my 'usual documents' (or Alias) into a separate Envelope
    in the finder, and
    then select them all at once and click to Open all at the same time.
    But is that the best or only solution?)
    There's a grateful thank you, two (2) "Helpful's", and 1 "Solver" award to be given out. Good luck.

    Cool. Coolidge, indeed. So wise.
    You ARE "THE SOLVER"
    & entitled to all the rights and privileges accorded therein.
    Sincere Thank yous, also,
    oh, and Kudos to you.

  • How to ensure FundCenter selection = blank when running FM drilldown report

    How to ensure blank value in the "Funds Center" selection parameter when running FM drilldown report 2FMB40* (Assigned Funds Report)?
    We tried to save a report variant with protected blank value in the "&0FICTR" variable (hierarchy node), and we also used FMEV to turn-off default value for this variable.  However, during report execution it still takes value from the user parameter "FIS".
    To prevent the system from using "FIS", we can only save the report variant with Funds Center = * (or the top-most node).  Unfortunately, these would give different extraction results which we do not want.
    Any advice how to get round this?

    Referring SAP Note 390953, I don't know how to apply the solution of "using generic symbol # as an initial value"....
    (1)  I tried to save a report variant with # in the Funds Center field, but got error message "no matching funds center found" and couldn't proceed.
    (2)  I also tried tcode FMEV to set the variables &0FICTR, &0FICTRA ... with default value # (in table TKESV), yet still got no effect ... as user parameter "FIS" was adopted during report execution.
    Any further suggestion please?

  • How to deselect the selected row when we come back again?

    Hi all,
    I have one screen(100),which contains records.User can select any one record and click 'Details' button.Then it will take to screen 110.When I am coming back to screen 110 again.The previously selected row is again in selected mode only.Now if I am selecting another row and click the 'Detail' button.I am getting the error saying that 'Please select one record'.In debugging mode also I checked using the FM get_current_cell but nothing is getting selected surprisingly.
    Even I used CALL METHOD grid->refresh_table_display in the PBO of screen 100.
    Below is the code I used in PBO of screen 100
    ODULE STATUS_0100 OUTPUT.
    SET PF-STATUS 'PF100'.
    SET TITLEBAR 'TITLE'.
    DATA: G_CONSISTENCY_CHECK TYPE CHAR1.
    DATA: G_EXCLUDE TYPE UI_FUNCTIONS.
    IF container100 IS INITIAL.
    *ex_FUNCTIONS-
    *-- Check execution mode (foreground/background)
    IF cl_gui_alv_grid=>offline( ) IS INITIAL.
    CREATE OBJECT CONTAINER100
    EXPORTING CONTAINER_NAME = 'CONTAINER100'.
    CREATE OBJECT GRID
    EXPORTING I_PARENT = CONTAINER100.
    CALL METHOD GRID->SET_TABLE_FOR_FIRST_DISPLAY
    EXPORTING
    I_BYPASSING_BUFFER = 'X'
    I_BUFFER_ACTIVE = ''
    I_CONSISTENCY_CHECK = G_CONSISTENCY_CHECK
    IT_TOOLBAR_EXCLUDING = G_EXCLUDE
    IT_TOOLBAR_EXCLUDING = IT_TOOLBAR
    I_STRUCTURE_NAME =
    IS_VARIANT = gs_layout
    I_SAVE = 'A'
    I_DEFAULT = 'X'
    IS_LAYOUT = X_LAYOUT
    IS_PRINT =
    IT_SPECIAL_GROUPS =
    IT_TOOLBAR_EXCLUDING = IT_TOOLBAR
    IT_HYPERLINK =
    IT_ALV_GRAPHICS =
    IT_EXCEPT_QINFO =
    CHANGING
    IT_OUTTAB = IT_YAPOHDR_MAIN[]
    IT_FIELDCATALOG = IT_FIELDCAT[].
    IT_SORT =
    IT_FILTER =
    EXCEPTIONS
    INVALID_PARAMETER_COMBINATION = 1
    PROGRAM_ERROR = 2
    TOO_MANY_LINES = 3
    others = 4.
    ENDIF.
    *--Register enter key for data changed event
    CALL METHOD grid->set_ready_for_input
    EXPORTING i_ready_for_input = 0.
    create object event_receiver.
    Register the 'hotspot' event handler method dynamically...
    set handler event_receiver->handle_hotspot_click for grid.
    Register the User Command event handler method dynamically...
    set handler event_receiver->handle_user_command for grid.
    Register the User Command event handler method dynamically...
    set handler event_receiver->handle_data_changed for grid.
    else.
    CALL METHOD grid->refresh_table_display.
    endif.
    ENDMODULE. " STATUS_0100 OUTPUT
    The below is the code I used in PAI of screen 110.
    MODULE USER_COMMAND_0110 INPUT.
    DATA : LT_DETAILS_MAIN LIKE YAPOPLN_ITM OCCURS 0 WITH HEADER LINE,
    LV_POP TYPE C,
    APPROVE.
    CASE SY-UCOMM.
    WHEN 'BACK'.
    CALL METHOD grid->REFRESH_TABLE_DISPLAY.
    CALL METHOD grid->GET_FRONTEND_FIELDCATALOG.
    LEAVE TO SCREEN 0.
    WHEN 'EXIT'.
    LEAVE TO SCREEN 0.
    ENDMODULE.                 " USER_COMMAND_0110  INPUT
    Please Let me know if there is any solution.
    Thanks,
    Balaji

    Hello Balaji
    The sample report <b>ZUS_SDN_TWO_ALV_GRIDS_7</b> shows basically what I meant in my previous answer. There is no row mark available on the first ALV list. Instead of bothering the user to push a button he or she can simply double-click on the ALV lists and sees the details of a customer.
    As you can see there is absolutely no need to free any object instances or rebuild grid controls.
    Final remark: based on the function module you mention I assume you are still using fm-based ALV lists. Do not use them. OO-based ALV lists are much easier to develop, to maintain and to enhance.
    *& Report  ZUS_SDN_TWO_ALV_GRIDS_7
    *& Description: Display two ALV lists either in single screen or
    *&              two screens
    *& Screen '0100' contains no elements.
    *& ok_code -> assigned to GD_OKCODE
    *& Flow logic:
    *  PROCESS BEFORE OUTPUT.
    *    MODULE STATUS_0100.
    *  PROCESS AFTER INPUT.
    *    MODULE USER_COMMAND_0100.
    REPORT  zus_sdn_two_alv_grids_7.
    TYPE-POOLS: abap.
    DATA:
      gd_repid         TYPE syst-repid,
      gd_okcode        TYPE ui_func,
      go_docking       TYPE REF TO cl_gui_docking_container,
      go_docking2      TYPE REF TO cl_gui_docking_container,
      go_splitter      TYPE REF TO cl_gui_splitter_container,
      go_cell_top      TYPE REF TO cl_gui_container,
      go_cell_bottom   TYPE REF TO cl_gui_container,
      go_grid1         TYPE REF TO cl_gui_alv_grid,
      go_grid2         TYPE REF TO cl_gui_alv_grid,
      gs_layout        TYPE lvc_s_layo.
    DATA:
      gs_knb1          TYPE knb1,
      gt_knb1          TYPE STANDARD TABLE OF knb1,
      gt_knvv          TYPE STANDARD TABLE OF knvv.
    *       CLASS lcl_eventhandler DEFINITION
    CLASS lcl_eventhandler DEFINITION.
      PUBLIC SECTION.
        CLASS-METHODS:
          handle_double_click FOR EVENT double_click OF cl_gui_alv_grid
            IMPORTING
              e_row
              e_column
              es_row_no
              sender.
    ENDCLASS.                    "lcl_eventhandler DEFINITION
    *       CLASS lcl_eventhandler IMPLEMENTATION
    CLASS lcl_eventhandler IMPLEMENTATION.
      METHOD handle_double_click.
    *   define local data
        DATA:
          ls_knb1      TYPE knb1.
        CHECK ( sender = go_grid1 ).
        READ TABLE gt_knb1 INTO ls_knb1 INDEX e_row-index.
        CHECK ( ls_knb1-kunnr IS NOT INITIAL ).
        CALL METHOD go_grid1->set_current_cell_via_id
          EXPORTING
    *        IS_ROW_ID    =
    *        IS_COLUMN_ID =
            is_row_no    = es_row_no.
    *   Triggers PAI of the dynpro with the specified ok-code
    **  CALL METHOD cl_gui_cfw=>set_new_ok_code( 'DETAIL' ). " not on 4.6c
        CALL METHOD cl_gui_cfw=>set_new_ok_code
          EXPORTING
            new_code = 'DETAIL'
    *      IMPORTING
    *        RC       =
      ENDMETHOD.                    "handle_double_click
    ENDCLASS.                    "lcl_eventhandler IMPLEMENTATION
    PARAMETERS:
      p_single  RADIOBUTTON  GROUP radi,  " single screen
      p_double  RADIOBUTTON  GROUP radi.  " two screens
    START-OF-SELECTION.
      SELECT        * FROM  knb1 INTO TABLE gt_knb1
             WHERE  bukrs  = '1000'.
      " Add dummy customer without any master sales data
      CLEAR: gs_knb1.
      gs_knb1-kunnr = 'DUMMY'.
      gs_knb1-bukrs = '1000'.
      INSERT gs_knb1 INTO gt_knb1 INDEX 1.
    * Create docking container
      CREATE OBJECT go_docking
        EXPORTING
          parent                      = cl_gui_container=>screen0
          ratio                       = 90
        EXCEPTIONS
          OTHERS                      = 6.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      IF ( p_single = abap_true ).
        PERFORM create_splitter_container.
      ELSE.
    *   Create 2nd docking container
        CREATE OBJECT go_docking2
          EXPORTING
            parent                      = cl_gui_container=>screen0
            ratio                       = 90
          EXCEPTIONS
            OTHERS                      = 6.
        IF sy-subrc <> 0.
    *     MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
      ENDIF.
      IF ( p_single = abap_true ).
    *   Create ALV grids
        CREATE OBJECT go_grid1
          EXPORTING
            i_parent          = go_cell_top
          EXCEPTIONS
            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.
        CREATE OBJECT go_grid2
          EXPORTING
            i_parent          = go_cell_bottom
          EXCEPTIONS
            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.
      ELSE.
    *   Create ALV grids
        CREATE OBJECT go_grid1
          EXPORTING
            i_parent          = go_docking
          EXCEPTIONS
            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.
        CREATE OBJECT go_grid2
          EXPORTING
            i_parent          = go_docking2
          EXCEPTIONS
            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.
      ENDIF.
    * Set event handler
      SET HANDLER: lcl_eventhandler=>handle_double_click FOR go_grid1.
    * Display data
      gs_layout-grid_title = 'Customers'.
      CALL METHOD go_grid1->set_table_for_first_display
        EXPORTING
          i_structure_name = 'KNB1'
          is_layout        = gs_layout
        CHANGING
          it_outtab        = gt_knb1
        EXCEPTIONS
          OTHERS           = 4.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      gs_layout-grid_title = 'Customers Details (Sales Areas)'.
      CALL METHOD go_grid2->set_table_for_first_display
        EXPORTING
          i_structure_name = 'KNVV'
          is_layout        = gs_layout
        CHANGING
          it_outtab        = gt_knvv  " empty !!!
        EXCEPTIONS
          OTHERS           = 4.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * Link the docking container to the target dynpro(s)
      gd_repid = syst-repid.
      IF ( p_single = abap_true ).
        CALL METHOD go_docking->link
          EXPORTING
            repid                       = gd_repid
            dynnr                       = '0100'
    *        CONTAINER                   =
          EXCEPTIONS
            OTHERS                      = 4.
        IF sy-subrc <> 0.
    *     MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
      ELSE.
        CALL METHOD go_docking->link
          EXPORTING
            repid                       = gd_repid
            dynnr                       = '0100'
    *        CONTAINER                   =
          EXCEPTIONS
            OTHERS                      = 4.
        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 METHOD go_docking2->link
          EXPORTING
            repid                       = gd_repid
            dynnr                       = '0200'
    *        CONTAINER                   =
          EXCEPTIONS
            OTHERS                      = 4.
        IF sy-subrc <> 0.
    *     MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
      ENDIF.
    * NOTE: dynpro does not contain any elements
      CALL SCREEN '0100'.
    * Flow logic of dynpro (does not contain any dynpro elements):
    *PROCESS BEFORE OUTPUT.
    *  MODULE STATUS_0100.
    *PROCESS AFTER INPUT.
    *  MODULE USER_COMMAND_0100.
      " NOTE: screen '0200' uses same flow logic as '0100'
    END-OF-SELECTION.
    *&      Module  STATUS_0100  OUTPUT
    *       text
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'STATUS_0100'.  " contains push button "DETAIL"
    *  SET TITLEBAR 'xxx'.
    * Refresh display of detail ALV list
      CALL METHOD go_grid2->refresh_table_display
    *    EXPORTING
    *      IS_STABLE      =
    *      I_SOFT_REFRESH =
        EXCEPTIONS
          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.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    *       text
    MODULE user_command_0100 INPUT.
      CASE gd_okcode.
        WHEN 'BACK' OR
             'EXIT'  OR
             'CANC'.
          IF ( syst-dynnr = '0100' ).
            SET SCREEN 0. LEAVE SCREEN.
          ELSE.
            SET SCREEN 100.
          ENDIF.
    *   User has pushed button "Display Details"
        WHEN 'DETAIL'.
          PERFORM entry_show_details.
          IF ( p_single = abap_true ).
          ELSE.
            SET SCREEN 200.
          ENDIF.
        WHEN OTHERS.
      ENDCASE.
      CLEAR: gd_okcode.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Form  ENTRY_SHOW_DETAILS
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM entry_show_details .
    * define local data
      DATA:
        ld_row      TYPE i,
        ls_knb1     TYPE knb1.
      CALL METHOD go_grid1->get_current_cell
        IMPORTING
          e_row = ld_row.
      READ TABLE gt_knb1 INTO ls_knb1 INDEX ld_row.
      CHECK ( syst-subrc = 0 ).
      SELECT        * FROM  knvv INTO TABLE gt_knvv
             WHERE  kunnr  = ls_knb1-kunnr.
    ENDFORM.                    " ENTRY_SHOW_DETAILS
    *&      Form  CREATE_SPLITTER_CONTAINER
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM create_splitter_container .
    * Create splitter container
      CREATE OBJECT go_splitter
        EXPORTING
          parent            = go_docking
          rows              = 2
          columns           = 1
    *      NO_AUTODEF_PROGID_DYNNR =
    *      NAME              =
        EXCEPTIONS
          cntl_error        = 1
          cntl_system_error = 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.
    * Get cell container
      CALL METHOD go_splitter->get_container
        EXPORTING
          row       = 1
          column    = 1
        RECEIVING
          container = go_cell_top.
      CALL METHOD go_splitter->get_container
        EXPORTING
          row       = 2
          column    = 1
        RECEIVING
          container = go_cell_bottom.
    ENDFORM.                    " CREATE_SPLITTER_CONTAINER
    Regards
      Uwe

  • How to create the select option for the Plant in screen (Module pool)

    HI,
    I am developing one module pool program and I have below requirement,
    currently plant is acting like PARAMETER and the now it should be changed to select option.
    how to create the select option in the screen
    Thanks and regarding,
    Malla
    Moderator message - Cross post locked
    Edited by: Rob Burbank on Dec 16, 2009 1:41 PM

    Steps to get SELECT-OPTIONS in module pool programs.
    1.Start one dialog program with SAPMZ_001.
    Place the below code in the TOP include of the dialog program.
    TABLES marc.
    SELECTION-SCREEN BEGIN OF SCREEN 3200 AS SUBSCREEN.
    SELECT-OPTIONS: werks FOR marc-werks.
    SELECTION-SCREEN END OF SCREEN 3200. 
    2 .Create one screen 3000.
    Go to Layout of the screen and Define subscreen area on the screen and Name it as l_subscreen.
    Place the below code in the Flow logic of the screen.
    PROCESS BEFORE OUTPUT.
      CALL SUBSCREEN l_subscreen INCLUDING 'SAPMZ_001' '3200'.
    PROCESS AFTER INPUT.
      CALL SUBSCREEN l_subscreen.
    Activate all.
    Create Transaction code for the dialog program .
    Execute the transaction code. You will see the select-option for werks how we see on Selection-screen.

  • For a call screen when displaying error message screen become disable

    Hi,
    For a call screen when i am giving a error message all the other fields are getting disabled and by enter also they are not getting enabled.
    can you please suggest how to get this in enable mode with the error message.
    the error message is given if we are trying to save the duplicate record.
    Please suggest <removed by moderator>.
    BR,
    Rajesh
    Edited by: Thomas Zloch on Nov 18, 2010 4:18 PM - priority normalized

    Try:
    message 'blabla' type 'S' DISPLAY LIKE 'E'.
    Edit.
    But you should validate the key fields before even pressing the SAVE button. Use CHAIN..ENDCHAIN for the key fields.

  • How to deal with Select Menu when it can NULL or a Value with SQL

    I have a SELECT Menu(:P_55X) with:
    "NULL DISPLAY VALUE" = NULL
    "NULL RETURN VALUE" = NULL
    The Chart query is as follows.
    SELECT NULL LINK,
    START_DATE "FOR_MONTH",
    ROUND(AVG("SLA"),3) "SLA_UPTIME"
    from SLA_TIMES_ZABBIX
    LEFT JOIN (SELECT DISTINCT NODE_NAME,OS_TYPE from CMS.CMS_NODE_OS where remove_dt is NULL) OSNODE on LOWER(SLA_TIMES_ZABBIX.NODE_NAME)=LOWER(OSNODE.NODE_NAME)
    where OS_TYPE=:P55_X group by START_DATE order by START_DATE ASC;
    How can I accout for the (:P55_X) variable being NULL sometimes and not null other times. meaning I can't use the "=" when the values is null because I need a IS NULL there.
    The column in the database either has a value or is NULL.
    Thanks
    Robert

    where (OS_TYPE = :P55_X OR (:P55_X IS NULL and OS_TYPE IS NULL))

  • HT201269 how to transfer content via icloud when OS doesn't match

    can't download to new iphone because backup OS is more current then new iphone 5S

    Set up your iPhone as a new phone to get through the activation process. Then, go to Settings>General>Reset>Erase all content and settings. Once it restarts, restore from your iCloud backup.
    ~Lyssa

  • BOXI 3.0 Selecting "parameters" when rescheduling returns error in InfoView

    All,
    Fresh installation of BOXI 3.0 and application of FP2. SQL Server Express 2005 BOXI database. Default TomCat web.
    Installation had no problems. Used the import wizard to import a couple of reports from previous BOXIR1 system.
    I go into InfoView and "schedule" a report. I set the parameters (static, from a combobox) etc... the report runs fine. I can open the report. Everything seems normal and functional to this point.
    Then I select the report again, and opt to "reschedule" from the list of actions. This opens the "Instance Title" screen as it should. However, when I then select "parameters" I get the following error :
    "An error has occurred: $Proxy4"
    This is our second installation of BOXI 3.0 - the first acted the same but resulted in a $Proxy5 error.
    What does this mean?
    Thanks!
    Rob

    ADAPT01113079
    In Infoview schedule the report to pdf format, and once it goes to success.
    Click on the reschedule option and then click on the parameter option.
    The error "An error has occurred:$Proxy4" will be thrown.
    Target Fix: XI 3.0 FP1
    Workaround: No
    There was a bug in 3.0 that was fixed in FP1 that seems to match your symptoms. You can try installing FP1. If that doesn't resolve then I'd suggest openinjg a message with support so they can verify your workflow.
    Regards,
    Tim

  • Problem with select query when it returns a NULL value

    Hi all,
    I have a d/b table called QMEL and i picked VBELN from that table. Now if the VBELN value in that table is NULL i have to wtite an if condition.
    Can i say it like this
    IF VBELN = ' '.
    write: enter into the if condition.
    ELSE.
    write: enter into the else condition.
    ENDIF.
    or should is say some thing else? my objective is ..i should execute some statments if VBELN has no value and i should execute some othet statements if VBELN has a value.
    Kindly help..as even though i put above condition..it deosnot work
    Regards,
    Jessica Sam

    hi
    check this
    if u r using selection optins  use this code
    IF NOT s_material[] IS INITIAL.
        SELECT material                             
        FROM marc
               INTO  l_material
             WHERE material IN s_material.                     
        ENDSELECT.
        IF sy-subrc NE 0 AND l_material IS INITIAL.
          MESSAGE e302 WITH space.
        ENDIF.
      ENDIF.
    if u r using parameter then
    IF NOT P_material IS INITIAL.
        SELECT material                             
        FROM marc
               INTO  l_material
             WHERE material EQ P_material.                     
        ENDSELECT.
        IF sy-subrc NE 0 AND l_material IS INITIAL.
          MESSAGE e302 WITH space.
        ENDIF.
      ENDIF.
    ~linganna
    Edited by: katigiri linganna on Apr 8, 2009 5:58 AM

  • Problem in creating a Select-option im a module pool screen

    I've been searching how to do a select option in a module pool screen, I've found this neat tutorial http://sample-code-abap.blogspot.com/2008/06/select-option-in-module-pool-screen.html
    but I'm having trouble to replicate it...
    I've created this conde in my TOP include
    SELECTION-SCREEN BEGIN OF SCREEN 201 AS SUBSCREEN.
       SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.
        SELECT-OPTIONS: s_matnr FOR mara-matnr.
      SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN END OF SCREEN 201.
    and this is my screen flow code
    PROCESS BEFORE OUTPUT.
      MODULE status_0100.
      MODULE pbo_200.
    PROCESS AFTER INPUT.
      MODULE pai.
      MODULE user_command_0200.
    in the screen 200 I have a subscreen area named subs
    but when I do this:
    MODULE pbo_200 OUTPUT.
      CALL subscreen subs including sy-repid '0201'.
    ENDMODULE.                 " pbo_200  OUTPUT
    it doesn't "compile"
    it gives me this error:
    ""." or "ID ... FIELD ..." expected after "SUBSCREEN"."
    what am I missing? it seems its not recognising the "CALL SUBSCREEN" command...

    you can't use CALL SUBSCREEN... in any ABAP section. It is reserved to dynpro flow logic. Just add it after PROCESS BEFORE OUTPUT (and also after PROCESS AFTER INPUT).

  • Selection-options on a module pool screen

    Hi all,
    How to define a field as selection-options on a module pool screen.
    Thanks,
    Chuong

    Hi Chuong,
    You will need to define the screen as a selection screen..
    Else, you can define a subscreen area in your screen, define a subscreen as selection screen and call that screen here..
    Thanks and Best Regards,
    Vikas Bittera.

  • "no content selected" error on nokia 5310

    So i bought a pretty little 5310, and am loving it so far. have hit a few speed bumps when trying to upload with my mac, but have got alomst all of them fixed. almost.
    the last time i updated my music library, i noticed my dedicated shortcut keys on the left of the phone no longer work on their own.
    when i go through the menu, or use the shortcut key to initially access the music player, the dedicated keys will work for pausing, and skipping tacks. but, say i'm at the 'home' screen of the phone , and just hit the keys on the side. .. they show a 'no content selected' error.
    when, in the past, after my first library update, if i hit those keys at ANY time, wether the music player was open or not, it would automatically play my library.
    there is probably a ridiculously easy solution to this, but to hell if i can figure it out!
    i've read every post on every board i could find, and read the manual six times.
    any suggestions?

    i've fixed the error!
    apparently, the phones have TWO music players.
    one in the menu shortcut key, and one buried in the 'media' section on the phone.
    apparently, to play a playlist from the dedicated keys on the side, you have to use the BURIED music player in the media section.
    once in there, select playlist, and choose your playlist. for me, i had to create a new playlist and manually open AND add EVERY song in my library to that new playlist, so that it would play nonstop with the keys.
    try that - it may be the same issue for you, as my problem happened after i reformatted the memory card and re-added new music.

  • How to handle the selected record

    how to handle the selected record when using alv classes

    Hi,
    use method : get_current_cell                    
      CALL METHOD grid1->get_current_cell                    
                          IMPORTING es_row_id = ls_row_id     
                                    es_col_id = ls_col_id     
                                     e_value  = l_value.     

  • Full screen playback as with 2nd screen blacked?

    I've got two Apple displays hooked up to my G5, and unlike DVD Player, which automatically blacks the second screen when I enter full screen playback, Quicktime leaves the second screen unblacked- I'm hoping I can figure out a way to get Quicktime to black the second screen as with DVD Player? As opposed to simply dimming it (since the syst. prefs don't allow for complete dim-to-black) Any other users notice this as an issue? Obviously not a soul-crushing problem, but is kinda annoying...
    Searched for previous posts on this topic, didn't see it posted already, which surprised me. But I don't see any settings in the Quicktime full screen playback settings that might address this.
    cheers,
    Jack

    Holy blackout, Batman! That did the trick- my "Full Screen" options were set to "Fit to Screen" instead of "Fill Screen", and I checked the "Background Color- show on all displays" box. Nice. Thanks much!!!

Maybe you are looking for