Dynamic screen field label

HI Experts,
                How can I change the screen fields label name on basis of some conditions. Lets say for 1 condition it shows
:Code       :
for condition 2, it wil show
:Company :
I mean it should be dinamic.
Thanks.
Khan.

Hi,
See the following code.
write this  module FIELD_STAUS_9010  in PBO of the screen number.
*&      Module  FIELD_STAUS_9010  OUTPUT
      text
MODULE field_staus_9010 OUTPUT.
  LOOP AT SCREEN.
field name
    CASE screen-name.
      WHEN 'WA_LC_BG_HDR_ELBCNOT'.
        CASE g_security.
Set the title
          WHEN 'LC'.
            wa_lc_bg_hdr_elbcnot = 'External LC number'.
          WHEN 'BG'.
            wa_lc_bg_hdr_elbcnot = 'External BG number'.
        ENDCASE.
    ENDCASE.                      " CASE wa_LC_BG_HDR-suity.
  ENDLOOP.
ENDMODULE.                 " FIELD_STAUS_9010  OUTPUT
Regards,
Raju.

Similar Messages

  • Dynamic screen field values

    Hi,
    One quick question, I have created a screen with reference to a custome table fields and it is working fine. When I enter values for the first time, the values look ok in debug but when I change the values on the screen, the new values are not updated in the screen fields in debug. Old values are shown in the debug.
    I guess there is some kind of logic to do this. Like using the dynamic screen fields read or ....
    Can someone help me on this?
    Regards,
    Roopesh Singh

    hi there...
    when u first enter the values, they get into the work area related to the screen fields.....
    but when u change the values, they dont get changed in the workarea associated with the fields. since the data does not get updated in the fields, it wont show in the debugging mode. so chk ur code and make sure u update the data in the variables associated with the fields.
    do reward if helpful or get back with further queries.

  • Dynamic screen field layout - ABAP webdynpro

    Hi,
    I am rather quite new to ABAP webdynpro - one of my requirements is that based on a Custom table (so to say a custom built customizing table) I need to display fields - the Customizing table could say that for region America - we need the following fields to be supressed, the same set of fields for Japan could be Mandatory, and for Latin America could just be display only.
    Is there anyway this could be acheived in Webdynpro (ABAP) - I presume that the supressed fields for America region will not be displayed but instead the common fields for America and Japan would be out of sync as far as screen layout is concerned. An ideas or guidance on how to accomplish this would be greatly appreciated.
    Regards....

    Hi,
    you can loop on your table which gathers all the fields in it, add an attribute to your
    table stating the required or not parameter and adding it to the 'state' parameter in
    the new_inputfield method.
    In the Wiki I added a page for dynamic UIelement creation based on DDIC properties
    (wiki is down, so i don't have a link to it)
    or you can visit these logs by Thomas Szues:
    <a href="/people/thomas.szcs/blog/2005/12/28/dynamic-programming-in-web-dynpro-abap--introduction-and-part-i-understanding-ui-elements:///people/thomas.szcs/blog/2005/12/28/dynamic-programming-in-web-dynpro-abap--introduction-and-part-i-understanding-ui-elements
    <a href="/people/thomas.szcs/blog/2006/01/03/dynamic-programming-in-web-dynpro-abap--part-ii-handling-viewelements:///people/thomas.szcs/blog/2006/01/03/dynamic-programming-in-web-dynpro-abap--part-ii-handling-viewelements
    grtz
    Koen

  • Getting screen field values during runtime

    Hi everyone,
    In debugger for dynamically getting the screen field values we will be using  (SAPLMGMW)CALP-ENDPA this format to get the value of the field CALP-ENDPA.
    But this will give only for fields.My question is that how to get the screen field labels values in debugger.
    Take a look at following picture.

    Hi,
    Try putting a watch point on the screen field name and see where it is changing.
    If your need is before that it won't be possible to get it as it is a processed value.
    Also if it is updating on screen but still you are not getting that means the value is not transported from the Screen to the program in that case use the FM DYNP_VALUES_READ to get the values the documentation has the usage else there are lot of blogs just search it.
    Regards

  • How to change standard selection-screen fields

    hi i am kishore.
    i have requirement.
    i have to change selection-screen label purchase order to purchase docuement in request for quatation.
    pls suggest that how to change the standard selection screen field labels.

    Hi.
    This is possible.
    Just try out this way.Heres is an example. 
    TABLES: pernr.
    data: i_tab type standard table of RSSELTEXTS with header line.
    initialization.
    i_tab-name = 'PNPPERNR'.
    i_tab-kind = 'S'.
    i_tab-text = 'Employee ID'.
    append i_tab.
    CALL FUNCTION 'SELECTION_TEXTS_MODIFY'
      EXPORTING
        program                           = 'ZESO_TEST'
      tables
        seltexts                          = i_tab
    EXCEPTIONS
      PROGRAM_NOT_FOUND                 = 1
      PROGRAM_CANNOT_BE_GENERATED       = 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.
    Thanks and regards,
    Maheshwari.V

  • Changing Field Labels of module pool screen dynamically

    Hi All,
    Can anybody tell me how to change field label of text field in dialog screen dynamically.
    The Screen/Transaction is standard one.
    I have created a Enhancement point for this change in one of PBO module's subroutine for this screen.
    This Field label is defined as a 'Text' field only. We can't change it any more as it is standard one.
    Can anybody tell me the solution for the same.
    I have to change this label value as per some validations and its corresponding text field value will remain as is.
    Thanks,
    Deep.

    Hello,
    I think it is not possible, but try changing the name by Looping on screen table on PBO,
    Bye
    Gabriel

  • 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

  • How to change the  attribute of screen field to drop down list dynamically

    Hi All,
      Col X                   Col Y
      A                        input field
      B                       drop down list
    This is a tabular disply where the Screen field attribute for Col y  is NO DROP DOWN BOX.
    My requirement is to change the attribute of COl Y to DROP DOWN list depending on the value of
      COL X  dynamically.

    Dear Ajay,
    Actually this requirement is to enhance the standard screen for Tcode :EHSVU21.
    So depending on the 1st Column(Test no)  value ,i have to change the 3rd Column(Low.norm.result)
    property either to DROP Down or not.
    So in the PBO only the changes to be made and there is no field in SCREEN internal table for changing the attribute to DROP down. I checked SCREEN internal table where the field VALUE_HELP and REQUEST is useful but not  suitable for my case.
    Any solution available?

  • Dynamic naming for screen fields possible?

    Hi.
    I am trying to loop through some screen fields, and hence need to dynamically name the fields. I use the following codes, but it gave me an error:
    IF MAND_CHECK = 'X' AND (TXT_FILE) IS INITIAL.
    "TXT_FILE is a variable that contains the name of the screen field.
    SET CURSOR FIELD TXT_FILE.
    "TXT_FILE is a variable that contains the name of the screen field.
    ENDIF.
    Error: Fehlerhafter logischer Ausdruck "(TXT_FILE)": Nach "(".......

    Do the following:
    field-symbols: <fs> type any.
    assign txt_file to <fs>.
    if mand_check eq 'X' and <fs> is initial.
    Regards,
    Michael

  • How to change the attributes of screen fields dynamically

    <b></b>
    well i have created a table by name empmaster_data with following fields.
    *emp_id.
    *emp_fname.
    *emp_lname
    *dob.
    *doj.
    *dept.
    *desig.
    now using a single screen i want to create,change and display the information.even i am using save and exit button.
    now i want to change the attributes of screen fields dynamically like active,input,output,invisible.

    Hi,
    Have Different Radio Buttons for the purposes what you have and use AT Selection Screen Output, Under the event Use loop at screen and with continue with your requirement.
    Hope This Info Helps YOU.
    <i>Reward Points If It Helps YOU.</i>
    Regards,
    Raghav

  • Dynamic field labels in table control

    Hi experts,
        My requirement is to display dynamic field labels in table control can we do this. I am much aware
    that we can do it in alv_grid. Please let me know.
    Thanks in advance.
    Sri

    Hi Anubhab,
         Thanks. With your help i could able to solve the problem. Let me put this in some
    more detail.
    When we are pulling the field from a table to table control we need to make sure the fields should have a data elements. After pulling all the fields to a table control ,we need to drag out  and delete the current table control column headings and then drop in the (new) I/O fields into their place.  I then set the text on these new fields within the PBO.  If we try to drop the (new) I/O fields on top of the existing ones with out deleting it won't work.
    Thanks & Regards.
    Srikanth

  • Dynamic Field Label

    Hi,
    In the Lead application <b>appl=CRMD_BUS2000108&blview=MKT_LEAD_M</b> , in the tab General using the structure <b>CRMT_BSP_LEA_OVERVIEW</b> , the meaning of the field PARTNER_NUMBER_2 is indicated by the field PARTNER_FCT_DESCRIPTION_2.
    How can I show the PARTNER_FCT_DESCRIPTION_2 as the field label of the field PARTNER_NUMBER_2, instead of the default label from data dictionary of the field, when it is displayed as a form?
    Regards,
    Tony

    Hi Przemyslaw,
    Thanks for your hint!
    Making the PARTNER_FCT_DESCRIPTION_2 looks like a field label by showing as a no label textfield is an interesting solution. However, during new lead creation, this field is empty and making the screen weird. It makes this solution is not a good solution for user.
    Finally, I simply show the PARTNER_NUMBER_2 with the field label renamed, although this is also not a perfect solution.
    Regards,
    Tony

  • 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

  • Dialog screen fields: Can I name them dynamically in the modules?

    Hi.
    I am using dialog screens for my program.
    I need to dynamically refer to the screen fields on my dialog screen.
    I tried the following, but encountered errors:
    DATA: TXT_FILE(10) TYPE C VALUE 'TXT_FILE1'.
    MODULE GET_FILE10.
        (TXT_FILE) = XFILETABLE-FILENAME.
      ENDIF.
    ENDMODULE.            
    Error encountered: Field "(TXT_FILE) is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement.

    Try using field symbols here.
    DATA: TXT_FILE(10) TYPE C VALUE 'TXT_FILE1'.
    MODULE GET_FILE10.
    Field-symbols: <fs>.
    assign (txt_File) to <fs>.
    <fs> = XFILETABLE-FILENAME.
    ENDMODULE.
    Regards,
    Rich Heilman

  • Changing Screen field position dynamically

    Hi,
    Is there a way to change the position of screen fields dynamically in a module pool program?
    My requirement is that based on the value of a variable, I need to arrange a few input and text fields on a subscreen in different order.
    Points will be rewarded for helpful answers..
    Regards
    Abhishek

    Hi,
    For this what I can think of is that u need to create the fields multiple times on the same screen and then using SCREEN variables, u need to make them visible/invisible.
    e.g. Say, u want Matnr at first position at one time and 6th position at another. In that case, what u can do is create the field MATNR twice and them hide/unhide it depending upon the condition.
    Hope this helps.
    Regards,
    Himanshu

Maybe you are looking for

  • Is it possible to display a tag at the selection screen in the output.

    Hi all,    When you go to se38 and in the program editor screen, at the bottom right end of the screen you find a value called NUM and when you place your cursor on that it displays a tag that says "Num Lock Mode. Double click to toggle."    My query

  • Error in depreciation run- number assignment

    HI ALL, After upgrading to ECC 6.0, I am not able to run the depreciation. I get the below mentioned error Create document number range 03 using internal number assignment     Message no. AA776 Diagnosis     Processing terminated because the document

  • Creating a Search help  error

    Hi guys ,  i did a search help and now trying  to assign it to my select-options field following this procedure : Using the Screen Painter                             a.      Open the Object Navigator, navigate to the required screen and then open it

  • Animated iPhoto Slideshow: Cannot recreate my original slideshows

    In early 2011, I created 7 different animated iPhoto Slideshows to use as part of my acting and modeling marketing program.  The iPhoto Slideshow software was amazing in how it took still photography and, in a seemingly simple and easy way, transform

  • Help i need to recover deleted videos off of an sd card

    can someone plz tell me an application that works that i can use to recover these videos