Modifying the Field labels dynamically at runtime.

Hi,
Is it possible to change the field labels dynamically at runtime . My
requirement is when the user has to edit the quantity part ,he  presses  a fn key (F7 in my case ) that is displaying  a new field with the old label (quantity ) and old qnty label should be changed dynamically to '  previous quantity ' .
Thanks For Your aniticpated responses.
Message was edited by:
        Khaleel S.Mohammed

Have you added teh Label as a text field?
If you have done that, try replacing the label with a Input/Output type field in the display mode by selecting 'Output Only' in the attributes->Program Tab of Screen Painter.
Now from the program , when the user presses F7, you can code to change the value of the Label (Input / Output field).
This will work out. Please let me know if you have any issues.
Regards,
Anish Thomas

Similar Messages

  • How to dynamically hide the Field Label in the overview page's form view?

    Hi Experts,
    How to dynamically hide, for certain condition, the Field Label in the overview page's form view?
    Please reply me.
    Regards,
    Vishal

    Hi Vishal,
    It is not possible to dynamically hide/display fields if the UI is build using configurations.
    The work around is to have multiple configurations, and based on the condition, load the
    corresponding configuration at runtime.
    The other approach is to code the complete htm view(htm coding) without using the configuration provided by the framework.
    Regards,
    Leon

  • Remove the assignment blocks dynamically at runtime

    hello friends,
    i want to remove the assignmnet blocks dynamically at runtime but based on the condition data avilable or not . example for opportunity window, whether the item list assignment block is empty then only i want to delete it . for this case i have to put a validation . im using  DETACH_STATIC_OVW_VIEW method for deleting the assignmnet blocks . but in my case based on validation only i want to delete . how to do the validation. please help me out .
    thanks in advance.
    regards
    sashi

    Hello there,
    I believe the Method DETACH_STATIC_OVW_VIEWS as you mentioned is the correct one to achieve this functionality.
    Here what exactly has to be done in your scenario is not clear from your question.
    However if we consider your example; you can refer to the code excerpt below
    UI COmponent : BT111H_OPPT  ( Header Component of Opportunity)
    Class: CL_BT111H_O_OPPORTUNITYO0_IMPL
    Method : DETACH_STATIC_OVW_VIEWS
    It already has in place
    * get Details CuCo
      lr_cuco ?= me->get_custom_controller( controller_id = 'BT111H_OPPT/OpptDetailsCuCo' ).
    then it checkes the Product Items.
    You can put ou validation logic in place and do like following:
    * Competitor products on Item level
      IF lr_cuco->is_competitor_available( iv_mode = lc_item ) = abap_false.
        ls_viewid-viewid = 'BT111H_OPPT/CompProdItemOV'.
        INSERT ls_viewid INTO TABLE rt_viewid.
         ENDIF.
    Please reply if this helps.
    Best Regards,
    Vinamra.

  • Modify the Field Type of standard Table fields in a Query

    Hello. I have a question.
    Is there a way to "modify" the field type for standard table fields that are included in a Query?
    I made a simple query out of a join of tables, but several fields have a lot of decimals, and I would like to present them in the query without any decimals, just as a regular "N" field.
    I tried the possibility of creating extra local fields where all I do is transfer the value to the new "N" field, but I have many fields like this, so if there's a better way; I'd prefer that.
    Maybe somewhere in the InfoSet there's a way to modify the type of the standard table fields?
    Thank you.

    Hi,
    This document may help you out.
    [http://help.sap.com/saphelp_erp60_sp/helpdata/en/d2/cb4468455611d189710000e8322d00/frameset.htm|http://help.sap.com/saphelp_erp60_sp/helpdata/en/d2/cb4468455611d189710000e8322d00/frameset.htm]
    Cheers,

  • Problem to modify the field "location" in an AP on WCS

    Hello everybody,
    I have a problem to modify the field "location" in an access point on WCS.
    In fact, when i try to modify this field and then apply the modification, i have this error message :
    "Error(s): You must correct the following error(s) before proceeding:
    Error:Global Username and Password are not configured on the associated controller.  Please configure username and password on the associated controller before disabling 'Override Global Username Password'."
    I made the modification on Chrome and Firefox but I always have the error message.
    Nevertheless, i don't have this error message with other access points and other access points are configured without the option "Override Global Username Password".
    I'm obliged to make the modification directly in the controller and not in WCS.
    The problem is that i want to make the modification directly in WCS.
    Could you help me please ?
    Thank you in advance.

    When i make the modification directly in WCS, i have no problem, it syncs good.
    The version of WCS is 7.0.230.0.
    The version of the controller is 7.0.240.0 and the field recovery image version is 7.0.112.21.
    Version
    7.0.230.0
    Version
    7.0.230.0
    Version
    7.0.230.0

  • Modify the field TXJCD_ST of RFC_CALCULATE_TAXES_DOC

    HI,
    I have a requirements to modify the field TXJCD_ST of RFC_CALCULATE_TAXES_DOC with the ShipTo jurisdiction code.
    What i found is the user exit exit_saplfytx_user_001 that sends to the RFC a list of fields that are modified. The field TXJCD_ST is not in the list of the user exit.
    At this point i don't know how to do it , meaning pass the modified value of the TXJCD_ST to the RFC_CALCULATE_TAXES_DOC.
    Does anyone know how to?
    Regards, Oli

    No, I did not see this particular scenario yet. If the Taxware guys say they can not configure their side like that, then this won't work. I just thought they could be able to do this because they can configure the structure of the USER_DATA field on their end. It is entirely possible that those fields that are explicitely part of the interface can not be added to USER_DATA.
    You can still try my first suggestion
    I wonder if that'll work. Theoretically it should since by looking at the related code and backtracking the calls, it looks like MOVE-CORRESPONDING statements are used - so having the TXJCD_ST as part of the allowed fields might just work OK.

  • How to put an asterisk in the field label rather than on the field in Infopath

    For a mandatory field in Infopath, we know that the red asterisk shows up always on the control. Is there a way we can make it appear on the label instead. 
    In the figure below, can we have the red asterisk on the label where ? symbol is present ?

    Hi Prajk,
    From your description, my understanding is that you want to put an asterisk in the field label rather than on the field in Infopath.
    By default, the asterisk is on the field, not the field label. If you want to put an asterisk in the field label, per my knowledge, you need to develop the column to do it.
    For developing InfoPath controls, I suggest you create a new thread on Visual Studio Tools for Office forum, more experts will assist you with Office development.
    VSTO:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vsto
    Thanks,
    Wendy
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Modifying the Data Binding value at runtime

    Hi
    just wondering if there is a programmatic way of adding or removing the Default Binding value at runtime? This is the value that is showing up on the Binding Tab of the Object Tab.
    thanks,
    John

    Have you added teh Label as a text field?
    If you have done that, try replacing the label with a Input/Output type field in the display mode by selecting 'Output Only' in the attributes->Program Tab of Screen Painter.
    Now from the program , when the user presses F7, you can code to change the value of the Label (Input / Output field).
    This will work out. Please let me know if you have any issues.
    Regards,
    Anish Thomas

  • How to pass the text from a table to the field label on the selection scre

    hi guru's
      i have requirement were in i have to pass the text from a table as field label for
       a input field on the selection screen.
      EX:    selection screen  
                (xxxxxxx )  __________   
                field label    
      please help 
    regards,
    vara

    hi all,
    can you please check the code, and suggest am i doing wrong any were.
    types: xtab(200).
    data : ttab type table of xtab,
    w_so type xtab.
    data: routine(32) value 'TEMP_ROUTINE',
    program(8),
    message(128),
    line type i.
    AT SELECTION-SCREEN OUTPUT.
    select field text DATA_ELEMENT from zauthgrptxt into table t_fieldlabel where STARALLOWED EQ c_asteriks.
    DESCRIBE TABLE t_fieldlabel LINES N.
    w_so = 'REPORT ZTEMP_PROGRAM.'.
    append w_so to ttab.
    w_so = 'FORM TEMP_ROUTINE.'.
    append w_so to ttab.
    loop at t_fieldlabel.
    w_field = t_fieldlabel-field.
    CONCATENATE 'SELECT-OPTIONS: ' ' P_' w_field zspace ' FOR ' ' T_FIELDLABEL-' w_field ' NO INTERVALS NO-EXTENTION.' INTO w_so.
    append w_so to ttab.
    endloop.
    w_so = 'ENDFORM.'.
    append w_so to ttab.
    generate subroutine pool ttab name program
    message message
    line line.
    if sy-subrc = 0.
    perform (routine) in program (program).
    else.
    write:/ Message.
    endif.
    The sy-subrc = 4. nothing is coming into 'program' at generate subroutine pool
    very urgent requirement please help
    thanks,
    vara

  • How to modify the field lengh of file upload

    Hi All,
       I am facing a problem with u201Cuploadu201D filed length in BSP application.
    When we upload the file in BSP page, the path displayed should be the full path (i.e. from where the file is being upload the file)
    Now this field is appearing 20 char length
    Now I want to increase the length of the upload field (Input field) to be 100 char so that the path is visible.
    In the current application the file upload is being done through a structure (attributes)
    In this structure the fields are like this
    PAGE_NAME
    ID
    FOR
    TAGS
    ROW_INDEX
    COLUMN_INDEX
    OTR_NAME
    REQUIRED_NAME
    MAXLENGTH
    SIZE
    TABLE_NAME
    ON_SELECT
    VALUE
    DISABLED
    ONCLICK
    TEXT
    TYPE
    Using this method:
    CALL METHOD cl_htmlb_fileupload=>factory
              EXPORTING
                Id      = ls_form_save-id
              RECEIVING
                Element = lv_fileup.
            bee_table->add ( level = 2 element = lv_fileup ).
    This cl_htmlb_fileupload is named as class interface.
    Which has the CLG_HTMLB_FILEUPLOAD (it is a class) it is defined in attributes.
    In this class it has the attribute u201CSIZEu201D by default string 20.
    Now I need to change this attribute length from 20 to 100
    For this I copied the standard class CL_HTMLB_FILEUPLOAD into ZCL_HTMLB_FILEUPLOAD.
    This ZCL_HTMLB_FILEUPLOAD contains all attributes of the standard class CL_HTMLB_FILEUPLOAD
    Including the one class (CLG_HTMLB_FILEUPLOAD), this is defined as an attribute (ABOVE MENTIONED?)
    This class is appearing in non editable mode, so   I have copied this class into zclass (ZCLG_HTMLB_FILEUPLOAD).but still I am not able to edit the attribute called u201Csizeu201D
    And also I am not bale to add the zclass in place of the ZCLG_HTMLB_FILEUPLOAD
    Kindly tell me how to modify the length of the field u201Csize u201Cand also how to add the zclass in the attributes of one class (syntax)
    Thanks in advance
    Rambabu.A

    Hi,
    Class CLG_HTMLB_FILEUPLOAD is a class automatically generated when a BSP Element is created. You should not change/create such a class, unless by creating your own BSP Element.
    As per your requirement, you can use the SIZE parameter of method factory:
    ls_form_save-size = '100'.
    CALL METHOD cl_htmlb_fileupload=>factory
    EXPORTING
    Id = ls_form_save-id
    Size = ls_form_save-size
    RECEIVING
    Element = lv_fileup.
    Regards,
    Tanguy

  • Rename the Field Label  in the sales order application.

    Hi,
              Please suggest me how to rename one of the field name in the sales order application.
            I have add a new field called YOUR_REF_SHIP and simultaneously have to  rename it from your reference to Carrier Account No. this field  is available in the filed group SLO_DETAILS_GENERAL1.
             This field is located in the General data tab of the sales order application.
    I have created the Text Key in the Define Interface Texts and used the same text key in the Rename Field Label, but it is not working.
    and i dont want to change it with the CMOD transaction.
    Please suggest me where i have went wrong.
    Thanks.
    Anilkumar

    Hello Anil,
    The field groups are to be regenerated.
    However, I have done a similar thing and in the past, the layout generation helped me. In the recent example, the name is not reflected as per the interface text.
    Let me know if you find anything on this.
    Regards
    Priyanka

  • Modify the field value in itab1 using itab2

    Hi experts
    I need some help.
    My question is : I have ITAB1 contains IBLNO field it is a legacy value.
    I want to modify this field.
    Another internal table  ITAB2 contains sap, legacy value of IBLNO(Cross refrenced table).my requirement is  IBLNO of  ITAB1 is modified with corresponding sap IBLNO in ITAB2.
    plz help
    Durga Parsad

    Hi Durga,
    You want to get following results -
    1. You have ITAB1 containing IBLNO.
    2. ITAB2 has IBLNO.
    3. Modify ITAB1-IBLNO from ITAB2-IBLNO.
    4. There must be some common value between the two tables. It has to be there otherwise the two records won't match.
    Kindly find the following code for doing so -
    LOOP AT ITAB2 INTO WA_ITAB2.
    * Modify ITAB1 from workarea of ITAB2 for matching records
      MODIFY ITAB1 FROM WA_ITAB2     
        TRANSPORTING IBLNO                " Modify only IBLNO of ITAB1 for matching records
        WHERE FIELD1 = WA_ITAB2-FIELD1.   " Some common field between the ITAB1 & workarea of ITAB2  
      CLEAR WA_ITAB2.
    ENDLOOP.
    Hope this helps.
    PS If the answer solves your query, plz close the thread by rewarding each reply and marking it Solved.
    Regards

  • Translation of the Field label that is passe in the field catalog on ALV

    Hiii
    i there a way to make ALV column field label in different language
    let say i have 3 radio button language english , french , and dutch
    depending on the radio button selected i want my alv column fields to be display in that language.
    note i am using field catalog merge and alv list.
    i know that can be done by forcing value in the fieldcat-fieldname
    something like that
    IF english
    fieldcat-fieldname = English
    If frence
    fieldcat-fieldname = french
    if dutch
    fieldcat-fieldname = dutch
    but suppose i have 50 field then i must do that with all 50 field for each language
    i there some more easier way like setting sy-langu or setting language in the fieldcat

    Hi newbie82 c,
    the easiest way is to use the SAP logon language and have all texts in program defines as text fields. The text fields are translated once and fetched always correct according to logon language.
    If you want to switch languages by radiobutton, you may define one create_fieldcat routine for each language.
    Regards,
    Clemens

  • Modify the field u00AB Account u00BB in FB03 Transaction (ECC6)

    Hello,
    I have to modify the value of the field u201CAccountu201D in the general screen and in the item screen of the transaction FB03. (to put inside the alternative account)
    I have tested all the user exit of the transaction but none is useful.
    Then, u201CI_AUTHORITY_ITEMu201D is the only one BADI for the transaction, but it occurs too early in the program to change data.
    Ie, with it I can change the field in the intern table (SAPLF064)XBSEG but this field is replaced with another value later in the process. And I canu2019t change this other value because of checks on it in the program.
    Have you got any suggestion before I run the specific solution of the ZFB03 ?
    Regards.

    Alfred
    Check BADI "ACC_DOCUMENT",  it is filter dependent, so set the appropriate filter once you create the Implementation...
    Thanks
    Amol Lohade

  • Search Field Overlapping on the field label

    Hello All,
    I have created a Custom Component With a Search Field when I try to resize the window I see that the search field is overlapping on the Label. I have used the configuration Tab to place the field in the view.
    Thanks in Advance.
    Ravi Veerubhotla

    Solved.
    This requer a enhancement in Java.
    Thanks.
    Nadim.

Maybe you are looking for

  • ITunes update server could not be contacted error!!  HELP!! :)

    ok.. I have the exact same issue as everyone else does.. My internet connection is fine.. I am able to browse the internet.. go into the itunes store in itunes.. download music.. Stream video previews.. but I just dont get how or why itunes can not b

  • IPad 2 download error - iOS 5

    Everytime I try to download iOS 5 on my iPad 2, it gets to almost the end and stops. Then, it asks me what it asked me for in the beginning: to read and agree to the terms. Then, it starts all over and says there was an error with my internet conncec

  • Create an intercompany(IV) based on commercial invoice(F2)

    Dear Experts, Understand intercompany invoice can be created againest delivery but Is there any transaction to create intercompany invoice (IV) based on comercial invoice (F2). Actulay i want to consolidate muliple invoice(f2) to one IV. Regards Visw

  • Change all spaces to underscores in href attribute

    Hello, I've just realised all my linked documents are referenced incorrectly in my HTML code: I've used spaces in the file names and didn't replace the spaces by %20 in the URLs in the code. After reflexion, I decided to rename all my files so they c

  • Purchase Orders going to suppliers with incorrect Currency

    HI All, We are using SRM 4.0 and classical scenario.  We have maintained different currencies for the vendor at plant level and purchase org level in R3 system. When shopping cart is converted into PO it is picking the currency at Purchase org level