Place Cursor In Screen Fields

Hi abapers and experts!
In my module pool screen there is
Date:
Department:
Username:
Password:
I want to place the cursor in Date field: after entering it, the cursor must automatically placed into Department.
Kindly help out as early as possible.
Thanks for ur valuable solutions.
Arvind NN

Hi Arvind,
Try this way.
<li>Flow logic
PROCESS BEFORE OUTPUT.
  MODULE init_100.
PROCESS AFTER INPUT.
<li>Code for module init_100.
*  MODULE init_100 OUTPUT
MODULE init_100 OUTPUT.
  date = sy-datum.  "DATE -screen field for date
" During PBO processing, SET CURSOR statement sets the cursor in the screen layout of the current screen.
  SET CURSOR FIELD 'DEPARTMENT'."DEPARTMENT is the screen field for the department
ENDMODULE.                    "init_100 OUTPUT
Thanks
Venkat.O

Similar Messages

  • Suppressing decimal places in the screen fields

    Hello All,
    I need to display a quantity fields which is referring to the domain MENGE(10+3)
    While displaying, it appears as 1234567890.000
    here how to suppresss the zero's.
    Screen field is got from program(not dictionary)
    can you help me out.
    Regrds,
    Subramanian.

    Hi,
    Try the following..
    in the attributes for the menge field give the Reference field (down below the attributes screen)...
    Also Check the check box Right justified..
    Thanks,
    Naren

  • How to display the link dynamically on placing the cursor on a field?

    Hello Experts,
    I have a requirement like, if i place the cursor on the prospect name in the details window of opportunity, prospects' email id should appear as a link. (Example: as tool tip appears when we place cursor on a field). I should be able to click on that email id to navigate from opportunity window to compose mail window.
    How can I achieve this functionality?
    Regards
    DNR Varma

    It's an interesting question.
    And I plan to write blog or wiki post on it.
    But right now out of time to design it in a beautiful big-post-style.
    So I'll just give you some ideas and later I'll publish detail scenario for this.
    1. First of all you need to put a javascript function in your view htm page and include jquery and cluetip in it too as described in mentioned blog.
    2. Then you need to create your own bsp element (tag) which will create a link with attributes onmouseover and rel since there is no standard element with such attributes. For this create your own bsp extension and copy bsp element Link from THTMLB bsp extension into it (enharite classes from thtmlb:link too). Then add two attributes 'rel' and 'onmouseover' to z-element and redefine DO_AT_BEGINNING method of element handler class:
    some problems with posting the code so [take a look at screenshot here|http://twitpic.com/7cp563].
    3. Then you need to implement chtmlb form iterator interface in some class. Good place is your view controller class. Put the IF_CHTMLB_FORM_ITERATOR on its interface tab. And implement the only method it has IF_CHTMLB_FORM_ITERATOR~RENDER_CELL_START (remember that this is a quick example so you need to adjust the code to your needs):
    also [take a look at another screenshot|http://twitpic.com/7cp5ot].
    4. Set chtmlb form iterator for your page.
    <%@page language="abap" %>
    <%@extension name="thtmlb" prefix="thtmlb" %>
    <%@extension name="chtmlb" prefix="chtmlb" %>
    <%@extension name="bsp" prefix="bsp" %>
    //!!! here must be jquery and cluetip includes with definition of CallTooltip function
    <%
    * Form iterator
    cl_chtmlb_config=>set_iterator( controller ). //!!! here we set iterator for chtmlb form
    %>
    <chtmlb:config mode = "RUNTIME"
                  xml  = "<%= controller->configuration_descr->get_config_data( ) %>" />
    That's it!
    Hope this will help you.

  • Set cursor on screen

    hi,
    i want to set cursor on screen field. i used SET CURSOR FIELD field_name command on PBO ,but it is not working. if any body has solution then please reply me....
    Thanks
    Regards
    Rakesh

    Hi
    Check Rich Heilman's reply for code sample in the thread:-
    Re: Cursor setting in Screen fields
    Hope this solves your problem.
    Thanks & Regards,
    Tarun Gambhir

  • How to make a screen field as selected when we place the cursor in the fiel

    Hi,
       I have a requirement like, needs to be automatically select a screen field value when i place the cursor in that field.
        The screen field value should be displayed in blue color as like we select the value using shift-end. when a new value is entered in that field, it should over-write the existing value.
         Any pointers would be appreciated.
    Thanks,
    Gopi.R

    Hi Gopi,
    you can look into some examples in transaction
    DWDM or BIBS
    Thanks,
    Krishan

  • Set cursor on error field in selection screen

    Hi ALL,
    How to place the cursor on a particular selection screen field?I am doing validation if validation fails for a particular field the program should give error mesg and the cursor should place on the error field only but it's going to the Ist field on the selection can somebody tell me how do this? I tried with set cursor field <fieldname) but not working I am doing validations on at-selection screen.
    Thanks&Regard
    mahesh

    Hi chandrasekhar find my code below
    this code i am writing under  at selection-screen.
    *&      Form  Z_VALIDATE_TVKOV
    FORM z_validate_tvkov .
      DATA: i_vtweg LIKE vbak-vtweg.
      IF NOT s_vtweg-low IS INITIAL.
        SELECT SINGLE vtweg FROM tvkov INTO i_vtweg
                     WHERE vtweg = s_vtweg-low.
        IF sy-subrc <> 0.
        set cursor FIELD 'S_VTWEG-LOW'.
        MESSAGE e000(z_sd) WITH text-052.
        ENDIF.
       ENDIF.
      IF NOT s_vtweg-high IS INITIAL.
        SELECT SINGLE vtweg FROM tvkov INTO i_vtweg
                            WHERE vtweg = s_vtweg-high.
        IF sy-subrc <> 0.
          MESSAGE e000(z_sd) WITH text-052.
        ENDIF.
      ENDIF.
    ENDFORM.                    " Z_VALIDATE_TVKOV

  • Populating the screen field when the cursor moves to that field

    hi every one,
    I want to populate the screen field(MODULE POOL) When the cursor moves to that field.
    So can any one help me out with this.
    EXAMPLE..
    I want to populate 'S10_TOT_PRICE' (Total Price). When the fields like 'S10_PIECES' (Number of Pieces) will be entered. I want to populate 'S10_TOT_PRICE'  without pressing any button on the screen nor when enter is hit. When the field 'S10_PIECES''  will be entered with some value and the cursor moves to 'S10_TOT_PRICE' . The Total Price field should be populated. Please help me out with this.
    THANKS & REGARDS.
    Mahanta.
    POINTS WILL BE REWARDED.

    Sorry but look at this SAP documentation <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/54/0608162d0711d295520000e8353423/frameset.htm">User Actions on Screens</a>
    Extract :
    <i>User Actions on Screens
    There are various ways in which users can interact with screens.
    Filling Input Fields
    Users can enter values in any input field on the screen, or change the value using the mouse, in the case of radio buttons and checkboxes. The contents are placed in the corresponding screen field. Filling an input field does not normally trigger the PAI event. Exceptions to this are Checkboxes and Radio Buttons with Function Codes and input fields with Drop Down Boxes.</i>
    So, i fear that you cannot "take hand" when user fill a numerical field to perform calculations and update the screen.
    Regards

  • Dialog programming - How to place a select-option field in a dialog screen

    Hi all,
    In Dialog Programming, How to place a select-option field in a dialog screen.
    Kindly give me some example code...
    Thanks,
    Jaffer Ali.S

    hi Ali,
    U can add select-options in ur module pool by using  SELECTION-SCREEN BEGIN OF SCREEN <scrn> AS SUBSCREEN  command.
    check this link for reference.....
    http://help.sap.com/saphelp_47x200/helpdata/en/e7/deb237b9a9a968e10000009b38f8cf/frameset.htm
    Example Code :
    DATA : ok_code TYPE sy-ucomm.
    SELECTION-SCREEN BEGIN OF SCREEN 1010 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS: p_rad1 RADIOBUTTON GROUP grp1 DEFAULT 'X',
                p_rad2 RADIOBUTTON GROUP grp1,
                p_rad3 RADIOBUTTON GROUP grp1.
    SELECT-OPTIONS: s_matnr FOR  mara-matnr,
                    s_matkl FOR  mara-matkl,
                    s_mtart FOR  mara-mtart.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN END OF SCREEN 1010.
    START-OF-SELECTION.
      CALL SCREEN 100.
    *&      Module  STATUS_0100  OUTPUT
    MODULE status_0100 OUTPUT.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'xxx'.
    CALL SCREEN 1010 .
    ENDMODULE.                    "status_0100 OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
          text
    MODULE user_command_0100 INPUT.
      CASE ok_code.
        WHEN 'EXIT'.
          LEAVE PROGRAM.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    SCREEN 100 ****************
    PROCESS BEFORE OUTPUT.
      MODULE status_0100.
      CALL SUBSCREEN sub_1010 INCLUDING sy-repid '1010'.
    <b>***** where sub_1010 is name of sub-screen area</b>
    PROCESS AFTER INPUT.
      CALL SUBSCREEN sub_1010.
      MODULE user_command_0100.
    <<< REMOVED BY MODERATOR >>>
    Harimanjesh AN
    Edited by: Marcelo Ramos on Dec 17, 2008 7:54 PM

  • How position the cursor in selected screen field insted of defualt field

    Hi All,
    Can you pls let me know , how to position the cursor in selected selection-screen filed. My requirement is i have 3 selection-screen fields, By default cursor is positioned on field screen field, but i want the cursor to be positioned at 3rd screen field to enter input, i want to do this coz i am filling first 2 screen fields with default values, so i need to position the cursor at 3 rd screen filed. let me know if it is possible to achieve this.
    Thanks in advance.
    Regards
    Vishal

    You will need to point it to the LOW field.
    report zrich_0001.
    tables: reguh.
    select-options :
    s_bukrs for REGUH-ZBUKR default 'US10',
    s_laufd for REGUH-LAUFD default sy-datum,
    S_LAUFI FOR REGUH-LAUFI .
    at selection-screen output.
    <b>set cursor field 'S_LAUFI-LOW'.</b>
    Welcome to SDN!  PLease be sure to award points for helpful answer and mark you post as solved when solved completely.  Thanks.
    Regards,
    Rich Heilman

  • How do I place the cursor in a field programmatically?

    In my application I have a sub-VI that pops up for user input. The field that the user has to fill in does not have the cursor in it by default. I would like the sub-VI to pop up with the cursor in the field that the user has to fill in. Is there a way to do that programmatically? Thanks for the help.

    That did it. I was looking too deep for this one for it to be that simple. Thanks again for the help.

  • 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

  • How to assign F1 help to the selection screen fields

    Hi All,
    I have a requirement.I have to create a button named "HELP" at the side of Execute button in the selection screen.If I place my cursor in the selection screen field and I press that "HELP" button, I should get the Documentation help for that field.
    Please suggest me on this.
    Thanks in advance.
    Sreeharsha Singuru

    Hi sreeharsha,
    here a short example:
    TABLES: MARA.
    TABLES: SSCRFIELDS.
    TYPE-POOLS: ICON.
    DATA: CURSORFIELD(20).
    SELECTION-SCREEN: BEGIN OF LINE.
    SELECT-OPTIONS: S_MATNR FOR MARA-MATNR.
    SELECTION-SCREEN: END   OF LINE.
    SELECTION-SCREEN: BEGIN OF LINE.
    SELECT-OPTIONS: S_MTART FOR MARA-MTART.
    SELECTION-SCREEN: END   OF LINE.
    SELECTION-SCREEN: SKIP 3.
    SELECTION-SCREEN: BEGIN OF LINE.
    SELECTION-SCREEN: PUSHBUTTON (10) PB01 USER-COMMAND HELP.
    SELECTION-SCREEN: END   OF LINE.
    AT SELECTION-SCREEN.
      GET CURSOR FIELD CURSORFIELD.
      CASE SSCRFIELDS.
        WHEN 'HELP'.
          CASE CURSORFIELD.
            WHEN 'S_MATNR-LOW'.
              CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT' "Make your own Text
                EXPORTING
                  TITEL        = 'Information'
                  TEXTLINE1    = 'Information for field:'
                  TEXTLINE2    = 'S_MATNR-LOW'
                  START_COLUMN = 10
                  START_ROW    = 15.
            WHEN 'S_MTART-LOW'.
              CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT'  "Make your own Text
                EXPORTING
                  TITEL        = 'Information'
                  TEXTLINE1    = 'Information for field:'
                  TEXTLINE2    = 'S_MTART-LOW'
                  START_COLUMN = 10
                  START_ROW    = 15.
          ENDCASE.
      ENDCASE.
    INITIALIZATION.
      CONCATENATE ICON_INFORMATION 'Help' INTO PB01.
    START-OF-SELECTION.
      SELECT * FROM MARA WHERE MATNR IN S_MATNR.
        WRITE: / MARA-MATNR.
      ENDSELECT.
    Hope it helps.
    Regards, Dieter

  • Hiding screen fields at an event

    hi,
    assume that i am having 3 fields in a screen.
    after antering the values on the first field and if i place the cursor on the second or third fields then these  fields (second and third ) should be disabled.
    can anyone help me out in this. For me it works only by pressing the enter key. I want that to work if the cursor has been placed on other fields.is there any event available for that.
    or pls tell me how to do this.
    regards,
    Phyrose.

    Hi,
    check the below.
    *& Report ZHAR_DYN_SELSCR.
    *& This program demonstrates how easy it is to set selection screen
    *& element properties dynamically
    *& The program uses 3 radio buttons to set the display and input
    *& properties of selection screen fields dynamically
    *& URL: http://allaboutsap.blogspot.com
    REPORT ZHAR_DYN_SELSCR.
    DATABASE TABLES
    tables : mara.
    SELECTION SCREEN
    selection-screen begin of block b1 with frame.
    *--- Radio buttons to set properties
    PARAMETERS:
    rad1 RADIOBUTTON GROUP rad default 'X' USER-COMMAND radio,
    rad2 RADIOBUTTON GROUP rad,
    rad3 RADIOBUTTON GROUP rad.
    *--- Selection Screen fields
    SELECT-OPTIONS:
    s_matnr FOR mara-matnr MODIF ID MI1,
    s_mtart FOR mara-mtart MODIF ID MI1,
    s_mbrsh FOR mara-mbrsh MODIF ID MI2,
    s_matkl FOR mara-matkl MODIF ID MI2.
    selection-screen end of block b1.
    AT SELECTION SCREEN
    at selection-screen output.
    loop at screen.
    *--- If Radio Button 1 is checked
    IF rad1 = 'X'.
    IF screen-group1 = 'MI2'.
    *--- Fields with MODIF ID MI2 disappear from the screen
    screen-input = 0.
    screen-invisible = 1.
    ENDIF.
    *--- If Radio Button 2 is checked
    ELSEIF rad2 = 'X'.
    IF screen-group1 = 'MI1'.
    *--- Fields with MODIF ID MI1 are input-disabled
    screen-input = 0.
    ENDIF.
    *--- If Radio Button 3 is checked
    ELSEIF rad3 = 'X'.
    IF screen-group1 = 'MI1' or screen-group1 = 'MI2'.
    *--- All fields will appear input-enabled
    screen-input = 1.
    ENDIF.
    ENDIF.
    *--- MODIFY SCREEN mandatory addition to apply changes to the screen
    Modify screen.
    endloop.
    Reward if helpful.
    Regards,
    Harini.S

  • Screen Fields Not getting Updated with DYNP_VALUES_UPDATE

    Hi All,
    I am using FM DYNP_VALUES_READ to read the screen field values and then modifying those values and passing the modified table to DYNP_VALUES_UPDATE. But the problem is screen fields are not populated with these values . The values I wish to populate are footer values . I am using OO ALV for this wherein I am handling an event for filter of records and accordingly I need to modify my footer. Any Suggestions??
    *&      Form  footer
          Caslculate Total items, number of hits/Miss and percent MSP
    -->  p1        text
    <--  p2        text
    FORM footer .
      CLEAR : io_totitems,
              io_tothit,
              io_totmiss,
              io_permiss.
    IF NOT l_flag EQ 1.
    Get total items
      DESCRIBE TABLE i_outdata LINES io_totitems.
      LOOP AT i_outdata INTO wa_outdata.
      calculate number of hits
        IF wa_outdata-hit_miss  = 'HIT'.
          io_tothit = io_tothit + 1.
        ENDIF.
      calculate number of Miss
        IF wa_outdata-hit_miss  = 'MISS'.
          io_totmiss = io_totmiss + 1.
        ENDIF.
        CLEAR wa_outdata.
      ENDLOOP.
    calculate percent MSP
      io_permiss = ( ( io_totitems - io_totmiss ) / io_totitems ) * 100 .
      IF l_flag EQ 1.
        wa_dynpread-fieldname = 'IO_TOTITEMS'.
        APPEND wa_dynpread TO t_dynpread.
        wa_dynpread-fieldname = 'IO_TOTHIT'.
        APPEND wa_dynpread TO t_dynpread.
        wa_dynpread-fieldname = 'IO_TOTMISS'.
        APPEND wa_dynpread TO t_dynpread.
        wa_dynpread-fieldname = 'IO_PERMISS'.
        APPEND wa_dynpread TO t_dynpread.
        CLEAR wa_dynpread.
        d020s-prog = sy-repid.
        d020s-dnum = sy-dynnr.
        CALL FUNCTION 'DYNP_VALUES_READ'
                EXPORTING
                   dyname               = d020s-prog
                   dynumb               = d020s-dnum
                   translate_to_upper   = 'X'
              REQUEST              = ' '
                TABLES
                   dynpfields           = t_dynpread.
        MOVE io_totitems TO io_totitem.
        CONDENSE io_totitem NO-GAPS.
        MOVE io_tothit TO io_tothits.
        CONDENSE io_tothits NO-GAPS.
        MOVE io_totmiss TO io_totmis.
        CONDENSE io_totmis NO-GAPS.
        MOVE io_permiss TO io_permis.
        CONDENSE io_permis NO-GAPS.
        LOOP AT t_dynpread INTO wa_dynpread.
          CASE: wa_dynpread-fieldname.
            WHEN 'IO_TOTITEMS'.
              wa_dynpread-fieldvalue = io_totitem .
              MODIFY t_dynpread FROM wa_dynpread.
            WHEN 'IO_TOTHIT'.
              wa_dynpread-fieldvalue = io_tothits.
              MODIFY t_dynpread FROM wa_dynpread.
            WHEN 'IO_TOTMISS'.
              wa_dynpread-fieldvalue = io_totmis.
              MODIFY t_dynpread FROM wa_dynpread.
            WHEN 'IO_PERMISS'.
              wa_dynpread-fieldvalue =  io_permis .
              MODIFY t_dynpread FROM wa_dynpread.
          ENDCASE.
          CLEAR wa_dynpread.
        ENDLOOP.
        CALL FUNCTION 'DYNP_VALUES_UPDATE'
          EXPORTING
            dyname               = d020s-prog
            dynumb               = d020s-dnum
          TABLES
            dynpfields           = t_dynpread
          EXCEPTIONS
            invalid_abapworkarea = 1
            invalid_dynprofield  = 2
            invalid_dynproname   = 3
            invalid_dynpronummer = 4
            invalid_request      = 5
            no_fielddescription  = 6
            undefind_error       = 7
            OTHERS               = 8.
        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.
    Get all fotter details in a internal table
    this is used to download footer in Excel
      wa_footer-fldname = 'Total Items '.
      wa_footer-value = io_totitems.
      APPEND wa_footer TO i_footer.
      wa_footer-fldname = 'Number of HIT'.
      wa_footer-value = io_tothit.
      APPEND wa_footer TO i_footer.
      wa_footer-fldname = 'Number of MISS'.
      wa_footer-value = io_totmiss.
      APPEND wa_footer TO i_footer.
      wa_footer-fldname = 'Percentage MISS '.
      wa_footer-value = io_permiss.
      APPEND wa_footer TO i_footer.
      CLEAR wa_footer.
    ENDFORM.                    " footer

    data: t_dynfields1 type table of dynpread with header line.
    CALL FUNCTION 'DYNP_VALUES_READ'
    EXPORTING
    dyname = d020s-prog
    dynumb = d020s-dnum
    translate_to_upper = 'X'
    REQUEST = ' '
    TABLES
    dynpfields =  t_dynfields1.
    <b>read table t_dynfields1 index 1</b> “ I hope this is missing
    I will be selecting from a list .
    Because once the value is read we need to update the screen field with that value .
    Here the selected value will be in the first place
    Now
    Your operation is to populate the fields with some variables .
    In the same when I do this there is only one value then
    Im expecting only one entry here …
    LOOP AT t_dynpread INTO wa_dynpread.
    CASE: wa_dynpread-fieldname.
    WHEN 'IO_TOTITEMS'.
    wa_dynpread-fieldvalue = io_totitem .
    MODIFY t_dynpread FROM wa_dynpread.
    WHEN 'IO_TOTHIT'.
    wa_dynpread-fieldvalue = io_tothits.
    MODIFY t_dynpread FROM wa_dynpread.
    WHEN 'IO_TOTMISS'.
    wa_dynpread-fieldvalue = io_totmis.
    MODIFY t_dynpread FROM wa_dynpread.
    WHEN 'IO_PERMISS'.
    wa_dynpread-fieldvalue = io_permis .
    MODIFY t_dynpread FROM wa_dynpread.
    ENDCASE.
    CLEAR wa_dynpread.
    ENDLOOP. */
    Comment this for a while and
    Change the code as
    t_dynfields1-fieldname = ' '. "<--- header name
    t_dynfields1-fieldvalue = ' '."<----val  
    append t_dynfields1.
    t_dynfields1-fieldname = ' '.
    t_dynfields1-fieldvalue = ' '.
    append t_dynfields1.
    t_dynfields1-fieldname = ' '.
    t_dynfields1-fieldvalue = ' '.
    append t_dynfields1.
    And check .
    CALL FUNCTION 'DYNP_VALUES_UPDATE'
    EXPORTING
    dyname = d020s-prog
    dynumb = d020s-dnum
    TABLES
    dynpfields = t_dynfields1.
    regards,
    vijay

  • How to set cursor in perticular field Table Maintence generator?

    Hi
    All
    I have created a table with 2 fields  Start_date and End_date. Now my requirement is i have to validate the both date field as Start_Date must be LESS than or EQUAL to End_Date. In table maintenance maintenance generator i have created a event VALIDATE_DATE in event 21. Its validating perfectly. The issue is after the ERROR message the Cursor is going to the key field. I want to set the cursor at End_Date field.
    I used
    data:ly_pos type i.
    IF NOT start_date LE end_date.
        SET CURSOR FIELD 'TABLE_NAME-END_DATE' LINE sy-linno OFFSET lv_pos.
        MESSAGE exxx(MsgClass).
    ENDIF.
    Its working for the FIRST time i am entering the new data. Next time the cursor going to the KEY field.  I have been asked not to write code in SE80. Anyhow i have to set the cursor in table maintenance maintenance generator event.
    Can anybody help?

    Hi Sourav,
    Please follow the below method:
    Go to Maintainance Screen (where you want the cursor setting). Goto Status - > Remember the screen name -> Double click on Program name.. Open Object list and expant Screen Tree -> double click on the same screen Number -> Go to its first tab attributs -> Change Mode -> Do F4 on Cursor Position field -> Choose the field where you want the cursor.
    But this way will always set the cursor at the HardCoded Field Name.
    Thanks,
    Preyansh

Maybe you are looking for

  • How can I access Pandora from Apple TV?

    How can I access Pandora on Apple TV?

  • Unable to update to Mountain Lion 10.8.1 from 10.8 (NSURLErrorDomain)

    I've been trying to update to Montain Lion 10.8.1 from 10.8 via the Mac App Store since it's release. Unfortunately after the bundle is downloaded I keep receiving the following error: The operation couldn't be completed. (NSURLErrorDomain error -110

  • Passing Dynamic Internal Table values to another program

    Hi, I have a program ZSAPNEW. In this I have created a Dynamic internal table <fs_emp>. The number of fields differ for each run. The values are passed into <fs_emp> in this program.  Now I need to submit thsi program from a main program ZHEAD and th

  • Windows 2008 R2 KMS server not activating Windows 8.1

    We have a 2008 R2 server running VAMT 3.1 and with KB2757817 installed. I added our Windows Server 2012 and Windows 2012 R2 KMS product keys to the KMS host as well as our Windows 8.1 KMS key, and restarted the system. So that when I look at the list

  • Urgent requirement

    Hi all,                I have a problem with the selection screen . I have a selection screen with three fields. I want to make it in such a way that it will take the value of other two fields automatically if I give only one value on the selection s