Highlight the cursor item text

Hi,
I converted forms version 3 to 6 and using 6i too. In forms6 when a screen is opened,
the item text where the cursor is, is highlighted. But in 6i the cursor is just
blinking on the left side of the text. Can I make the text of the item highlighted ? Is there something's wrong with the installation?
Phebe.

We went to great lengths to highlight the current item in our forms. But it takes some special code. Heres what we do:
<p>Create a visual attribute with only its Background Color property set. We we named the visual attribute 'CURRENTITEM', and set the background color to yellow.
<p>In a form-level When-new-item-instance trigger:    DISPLAY_ITEM(:SYSTEM.CURSOR_ITEM,'CURRENTITEM');In a form-level Post-text-item trigger:  DISPLAY_ITEM(:SYSTEM.TRIGGER_ITEM,NULL);<p>We have some additional code that sets an item red if there is an edit error, but that gets more complicated.
...Somebody emailed me asking how, so here it is:
<p>Create a visual attribute with background color = red, foreground color = black. Name it ERRORITEM.
<p>To turn the item red, all you need is:
    DISPLAY_ITEM(:SYSTEM.CURSOR_ITEM,'ERRORITEM');<p>The tricky part is to cause the item to turn red when the error occurs in a when-validate-item trigger, and the cursor is not already in that field. We use a package variable in a Forms package, say we name the package P1, and name the variable Error_item.
<p>In a when-validate-record trigger, do this:
If :this_block.some_item = [some error condition] then
  P1.Error_item := 'THIS_BLOCK.SOME_ITEM';
  Message('This item is incorrect');
  Dummy_timer_id = Create_timer('ERROR_ITEM',20,No_repeat);
  Raise form_trigger_failure;
End if;<p>In the when-timer-expired trigger:
  If get_application_property(Timer_name) = 'ERROR_ITEM' then
    Go_Item( P1.Error_item);
  End if;<p>In the when-new-item-instance form-level trigger:
If P1.Error_item is not null then
  If :system.trigger_item <> P1.Error_item then
    Go_Item( P1.Error_item);
     Return;
  Else
    Display_item( P1.Error_item, ERRORITEM );
    P1.Error_item := null;
    Return;
  End if;
Else
  Display_item(:System.trigger_item, CURRENTITEM );
End if;

Similar Messages

  • How to configure the delivery item text is required text

    Dear All,
            I have issues about delivery item text.  I would like to know how configure to delivery item text is required text (if not enter the text then cannot save delivery and show error message).
           In configuration about delivery text in text control. I configure the delivery item text is (text is obligatory) but the delivery item is only show at incompletion log but not requried field.
           In configuration about incompletion control for deliveries. No table and field is about delivery item text. I trial to enter PTEX(item texts) in field: Screen for creating missing data. The result can detect missing delivery item text but cannot specific delivery item text. If I enter other item text then the delivery can be saved. In additional, when I open screen delivery item text and not enter the delivery item text, the delivery can be saved.   These are incorrect. I would like to check the delivery item text is required text.
           Please suggest me how to solve this issue. Thank you very much. 
    Best Regards,
    Lek Lexus

    the

  • How to add the line item text in the Ledger line item report

    Hi SAP Gurus,
    I having one requirement from the user. He wants the line item text which we will enter in FB60/FB70/FB50 has to be shown in the Ledger line item report. Right now this field is not available. Is there any possible we can make this line item text in the ledger line item report i.e. FBL1N/FBL3N/FBL5N?
    advance thanks for the help.
    Regards,
    Deva.

    Hi,
    You can do the below to get this. (You can change the names of the function modules as per your wish/ organization naming convention):-
    Step 1:-
    Create function module Z_GET_SGTXT as below:-
    Import:-
    BELNR LIKE BKPF-BELNR
    BUKRS LIKE BKPF-BUKRS
    BUZEI LIKE BSEG-BUZEI
    GJAHR LIKE BKPF-GJAHR
    Export:-
    PRCTR LIKE BSEG-SGTXT
    FUNCTION Z_GET_SGTXT.
    ""Local Interface:
    *" IMPORTING
    *" VALUE(BELNR) LIKE BKPF-BELNR
    *" VALUE(BUKRS) LIKE BKPF-BUKRS
    *" VALUE(BUZEI) LIKE BSEG-BUZEI
    *" VALUE(GJAHR) LIKE BKPF-GJAHR
    *" EXPORTING
    *" VALUE(SGTXT) LIKE BSEG-SGTXT
    SELECT SINGLE SGTXT FROM BSEG INTO SGTXT WHERE GJAHR = GJAHR
    AND BELNR = BELNR
    AND BUKRS = BUKRS
    AND BUZEI = BUZEI.
    ENDFUNCTION.
    Step 2:-
    Then create the Function Modules as below:-
    Z_LINE_ITEMS_GET_SGTXT (Copy of SAMPLE_INTERFACE_00001650)
    FUNCTION Module Z_LINE_ITEMS_GET_SGTXT.
    ""Local Interface:
    *" IMPORTING
    *" VALUE(I_POSTAB) LIKE RFPOS STRUCTURE RFPOS
    *" EXPORTING
    *" VALUE(E_POSTAB) LIKE RFPOS STRUCTURE RFPOS
    Initialize Output by using the following line
    E_POSTAB = I_POSTAB.
    E_POSTAB = I_POSTAB. "<-- important
    CALL FUNCTION 'Z_GET_SGTXT'
    EXPORTING
    BELNR = I_POSTAB-BELNR
    BUKRS = I_POSTAB-BUKRS
    BUZEI = I_POSTAB-BUZEI
    GJAHR = I_POSTAB-GJAHR
    IMPORTING
    SGTXT = E_POSTAB-SGTXT
    EXCEPTIONS
    OTHERS = 1.
    ENDFUNCTION.
    Step3:-
    Transaction FIBF:-
    Settings -> Products -> of a Customer
    SGTXT Text in Line Item Display Active
    Settings -> P/S Module -> of a Customer
    00001650 SGTXT Z_LINE_ITEMS_GET_SGTXT
    Step 4:-
    Create the layout for FBL*N with display of the TEXT.
    Regards,
    Gaurav

  • Is there any report to get the header/item text at GR stage together?

    Hi gurus,
    Is there any report to get the header/item text at GR stage together with a date range?
    at the point of goods receipt?  Or a report that could be run to search for header/item text at GR stage together with a date range?
    Text that was entered at the point of goods receipt?

    Hi
    Check MB51 report with posting dates for materials/vendors and use the display variant document header text (which is GR header text). I hope this is the one you are looking for.
    Thanks

  • The Line item text transfer from SD-Billing Document to FI Doc(Accounting)

    Hi Experts,
    Actually in Standard process the Line item text doesnu2019t get transferred to FI Doc-Accounting Document.
    But we have a need to ensure that the Line item text of a material gets transferred from a Billing Document to  Accounting document.
    Please advice how can we achieve this.
    Thanks in Advance
    Montee

    Hi,
    If you want to populate the field SGTXT in FI tables (BSID, BSAD, BSEG,...) check the enhancement SDVFX002. So, in the function EXIT_SAPLV60B_002 you can populate XACCIT-SGTXT when you run the invoicing process.
    I hope this helps you
    Regards,
    Eduardo

  • How to retrieve the Line item Text

    Hello,
    I need to retrieve the Line item Text in the PO (Material PO text). Can anyone provide me a sample code? i need to display this in a smartform.
    I could not retrive it from the Function Module READ_TEXT.
    Can any one help me regarding this?
    Regards,
    kvsskirankumar

    HI,
    Use function module READ_TEXT to fetch PO line item text by passing id, language, name and object.
    For Ex:-
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
        CLIENT             = SY-MANDT
        id                      = 'F01'
        language          = 'E'
        name                 = << concatenate PO number & line item>>
        object                = EKKO
      tables
        lines                   = g_t_ltext.
    Thanks & Regards
    Sudheer Madisetty

  • How to Customize the Web item " Text Elements"in WAD

    Hi All,
    Can any one let me know how to customize the web item TEXT ELEMENTS. When we place the web item Text element in the web template, it displays the query details and the info provider details.
    I question is I do not want to list all the list that is displayed in the text elements. I want to see only part of the list....can any one whether this is possible or not..if possible how...?
    Thanks in Advance,
    Hash

    yes you need to specify the variable name
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="TEXTELEMENTS_1"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_TEXT_ELEMENTS"/>
             <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
             <param name="GENERATE_CAPTION" value="BORDER"/>
             <param name="GENERATE_LINKS" value=""/>
             <param name="SHOW_COMMON_ELEMENTS" value=""/>
            <b> <param name="ELEMENT_TYPE_1" value="VARIABLE"/>
             <param name="ELEMENT_NAME_1" value="0H_CCTR"/></b>         ITEM:            TEXTELEMENTS_1
    </object>
    Regards
    Raja

  • How to hide the cursor in text entry boxes

    I didn't see this answer in the forum, and it took a while to figure this out so I thought I'd post my
    solution.
    The issue is that a question requires that the user know where to click before typing, then type the correct value.
    The problem is that a text entry field shows the cursor; a dead give-away as to where the user is supposed to type.
    My solution is:
    1) Hide the text entry box (give it a name and uncheck 'Visible' in the options).
    2) Add a transparent button (with default text if needed) over the area where the user must click.
         - Set the 'Success' option to 'Show', and make the 'Show' item the name of your text entry box.
         - Disable all captions (unless they get points for clicking in the right place).
    3) Set the object timing so the button displays until clicked, then end the button display.  Start the display of the text entry field immediately after the end of the button display.
    The effect is that the user clicks the correct area, then the cursor displays in the correct location, ready for the text entry.

    Brilliant!
    You get a gold star for this idea.  Very original thinking.

  • Query regarding the headetand item text in a PR

    hello
    i have a problem in finding the table where the header and item text for a purchase requisition
    Could any body help me
    regards
    rama

    You cant extract this Text data directly.
    Its  SAP Scripts.
    Get the information from READ_TEXT Function module.
    Enter these below values
    Client      -- Your client
    ID            --  B01
    Language  -- EN
    Name       -- PR Number
    Object       --   EBAN
    This info stores in STXH and STXL tables.
    Hope this helps.
    Rammohan.

  • Flash menu that highlights the selected item when changing page?

    Hi all,
    I'm trying to create a menu in flash that will highlight the
    current
    selected menu item when selecting a specific page.
    Example menu:
    - home
    - products
    - product 1
    - product 2
    - product 3
    - contacts
    - email
    - form
    Imagine you have a link in a page that opens the contact >
    email page.
    Is there a way to get the flash menu to highlight the
    "contacts > email"
    item when displaying this page?
    Something similar to this
    http://tinyurl.com/5c9993
    Is there an application that can do this easily?
    Thanks in advance for any idea.
    Tony

    here is a link to a rar file i just updated for ya.
    it is a flash movie and 2 web pages. showing how u can send
    variables to flash with java script.
    http://www.wholesalegranitedist.com/home/tutorials/jsquery.rar
    if you can't get this file let me know i will just post it
    here.
    you will have to change the menu depending on which variable
    u send. to flash. it can change on which page you visit;). ask more
    questions if you need to. or private message me.

  • How to change the size of the web item text in WAD 7.0

    Dear All
    I am quite new to WAD and I am having a problem with changing the font size of a web text item
    I have searched already and someone suggested changing the Design property to  HEADER1 or HEADER2 etc and then I should be able to change the font / size.
    I have done this but to no avail
    I want to have large heading across the top of the web template
    am I using the wrong web item ?
    I know I can key the text directly into the web template and change the font from the menu bar  but I need it in an item as I want to export them through to PDF later
    Would be grateful of any help
    thanks
    Sandra

    Thank you all for your quick responses (I will award points once this is sorted)
    On the information you have supplied this has opened up yet another new part of WAD that I have not experienced ...TAGs
    Shubhranshu - I have done what you said but as I have never used tags I have just had a look around and found that I can insert Any Tag but not sure if I should be doing that.  If it is inert any tag , I chose FONT from the drop down and cbmAttributes defaulted into the custom tab for the class name but not sure what it wants in the Attributes and CSS Style tab, it won't accept what I am putting which is leading me to believe that I shouldn't be doing it that way.
    Venkat - thanks for the links they will prove very useful.  I've had a look and although they talk alot about the XHTML code for tags they don't actually say how you do it in the editor - I would like to produce one that way first and then see the code it generates for it.  I'm a bit apprehensive with changing the code direct as I don't want to mess anything up.
    Thanks again for your help

  • How to change the menu item text

    Hi,
    in cj20n transaction, for one of menu item i have to change the text of the item. How can i change the text.
    Regards,
    Ram

    HI,
    First try to find the exists available for that transaction and find menu exit in that exist. Once you find the exits create project in tcode cmod then go to that menu exit.
    Just double click on that exit, it will show the existing text, if you want to change the text then click on change mode, it will asks for package, you have to provide package then give the text whatever you want and save it and activate it.
    The new text will be available in your transaction.
    Regards,
    Venu

  • How to show the cursor in text frame?

    I need to enable the type tool (cursor tool )  in a particular text frame.... Please help me!

    Hi,
    Set selection to this textFrame.insertionPoints - any of them, lets say the first one.
    app.selection = mTextFrame.insertionPoints[0];
    Jarek

  • Copying the item text in case of multiple line items

    Hi All,
                    I have a scenario where the sales order gets created in our SAP through a 850 idoc. The incoming idoc has only one item segment which carries the total order quantity ( for example say 1000). Since my company has contractual agreements with the end customer for doing multiple shipments , our sales department splits the total quantity into multiple line items in the sales order. Say splitting the 1000 quantities into 5 line items of 200 each.
    The problem here is that when the sales order got created , all  the related item text were copied only to the first line item ( of 1000 qty) and which is standard SAP. Since the order quantity was manually split, the related item text are not carried to the subsequent line items. The issue comes when an outbound (810) idoc is sent to customer . As I told earlier since only the first line item has the item text , the 810 idoc which was created for  the first line item only has the item text . The rest of the 810 which were subsequently created for multiple shipments/invoices on different dates didn't have the item text in the 810's. This is becoming a major problem as the 810 files are failing at our trading partners end because of missing text.
    Now my question is, Is there a way that I can make the item text copy automatically when multiple line items are created manually by business. Like is there a way where I can modify MV45AFZZ  to copy the item text in their respective segemnts ( z003,z004 etc) to "N" number of line items.
    Also please suggest if there is a better way of doing it. Suggstions are most welcome !!!.
    Regards
    Amrith

    Hi,
    First of all try to avoid doing select into corresponding fields. THis would improve the performance of the program.
    Try to do a single fetch from the BSIS table . fetch the hkont, belnr, dmbtr fields in to a master internal table. Manipulate and play with the data as required.  Don't hit the data base table more than once (unless it is required) . This would improve the performance of your code.
    Try to code this way.
    types: begin of ty_bsis,
                 hkont type hkont,
                 belnr type  belnr_d,
                 dmbtr type dmbtr,
              end of ty_bsis.
    data: it_bsis type standard table of ty_bsis,
             wa_bsis type ty_bsis,
    select hkont belnr dmbtr
              from bsis
              into table it_bsis
              WHERE HKONT IN S_RACCT
            AND PRCTR IN P_PRCTR
              AND MONAT IN S_POPER
             AND BUKRS EQ P_BUKRS
             AND GJAHR EQ P_GJAHR
              AND PRCTR IN S_PRCTR.
    Using the data availabe in the it_bsis, you can manipulate as required.
    Hope this would be helpful
    Regards
    Ramesh Sundaram

  • To save PO item text at the time of creation

    Hello Friends,
    I have a requirement to save PO item text while creating from ME21N....
    I need to display the Material Classification(particular characteristics) data in the po Item text..
    I have done my coding in the particular User exit....
    i am getting the material classification data and passing it to SAVE_TEXT function Module and after that doing COMMIT_TEXT.....
    Code running fine without any error but not saving the text to PO item text....
    We have code for PO Header text in the same user exit and its working fine.... Can you please focus on this and let me know any way to proceed....
    CALL FUNCTION 'INIT_TEXT'
            EXPORTING
              id       = 'F08'
              language = 'E'
              name     = fname            - PO NUM
              object   = 'EKPO'
            IMPORTING
              header   = head
            TABLES
              lines    = in_text1
            EXCEPTIONS
              id       = 1
              language = 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.
          CALL FUNCTION 'SAVE_TEXT'
            EXPORTING
              header    = head
            IMPORTING
              newheader = head
            TABLES
              lines     = in_text         - HAVING CLASS DATA TO BE DISPLAYED
            EXCEPTIONS
              id        = 1
              language  = 2
              name      = 3
              object    = 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.
        ENDIF.
      ENDLOOP.
        CALL FUNCTION 'COMMIT_TEXT'
        EXPORTING
          keep = 'X'.
    Waiting for you reply...
    Regards,
    SAM

    Hello
    Use
    CALL FUNCTION 'COMMIT_TEXT'
    EXPORTING
    SAVEMODE_DIRECT = 'X'.
    instead
    CALL FUNCTION 'COMMIT_TEXT'
    EXPORTING
    keep = 'X'.

Maybe you are looking for

  • Can you fast forward in movies?

    When I view a video, if I click the center button I sometimes see the "timing" bar (that shows time played and time remaining) although it doesn't seem to work all the time. Even when I see the bar displayed, it looks like I can't use the wheel to se

  • Business Events related to AME Rules in iRecruitment

    Hello all, We have a Seeded AME rule and want to know which business event is firing that rule. Is it possible to find this out? The reason i want to know is we have a seeded rule called "Apply For Job - Manager Rule" which is related to iRecruitment

  • Where is documentations for Groups NWDI 7.11 like types NWDI.*  ?

    Where is documentations for Groups NWDI 7.11 like types NWDI.*  ? *NWDI.Administrators* **NWDI.Configurators     ** **NWDI.Developers     ** **NWDI.Guests     ** **NWDI.Operators     ** **NWDI.QManagers     ** *NWDI.XDevelopers*

  • Installing Lion on my mac book

    I have already bought and installed Lion on my imac but i also wanted to install it on my mac book, do i need to buy it again on the mac book or can use the already installed version from my imac ?!! thanks Ammar

  • Auto Rotate Maps iOS4??

    Does anyone know if it is possible to set the live 'maps' view to automatically rotate the map so the direction being traveled is always facing up? I read somewhere this (apparently) was a feature in version 3, but I can't seem to get this to work in