Dynamic Text for Field lables on screen

Hi Friends
I have an internal table with fields namely fieldname, language and description. Depending on the
Field lable name declared on Dialog screen and the SAP logon language, i want to display the description on screen from internal table. Please let me know incase this is possible, if yes what's the approach.
Thanks:)

Hi,
here a short example:
TABLES: DD03M.     "Tabellenfelder mit Datenelementen, Texten, Domänen
SELECTION-SCREEN: BEGIN OF LINE.
PARAMETERS:       P_FIELDN LIKE DD03M-FIELDNAME.
SELECTION-SCREEN: COMMENT 55(40) T_DDTEXT.
SELECTION-SCREEN: END   OF LINE.
DATA: IT_DD03M TYPE TABLE OF DD03M.
DATA: WA_DD03M TYPE          DD03M.
AT SELECTION-SCREEN OUTPUT.
  READ TABLE IT_DD03M INTO WA_DD03M WITH KEY FIELDNAME = P_FIELDN.
  IF SY-SUBRC = 0.
    T_DDTEXT = WA_DD03M-DDTEXT.
  ELSE.
    CLEAR T_DDTEXT.
  ENDIF.
INITIALIZATION.
  SELECT * FROM DD03M INTO TABLE IT_DD03M
           WHERE TABNAME = 'KNA1'
             AND DDLANGUAGE = SY-LANGU.
Hope it helps.
Regards, Dieter

Similar Messages

  • Agentry - Dynamic text for Platform wizard button?

    Hi,
    I want to reuse the same screen set navigating from 2 different places.
    The text for the "Move to the Next Screen (cannot back up) platform wizard button should be different in each case to make it easier to understand for the end user. Apparently the only option is to hardcode a text, but I would like to know if it could be possible to use a rule or something to display a dynamic text for the wizard button.
    Thank you,
    Marçal

    Hi Marcal,
    Unfortunately that idea was shot down a while ago, though it would be nice.  The general dividing rule I use is if the question is appropriate for Agentry regardless of whether it is installed standalone (like Work Manager 5.3) or on any version of SMP, then it should be in SAP for Mobile.  These are usually application development or customization types of questions.  The Agentry landing page is in SAP for Mobile for that reason.  Though the line is definitely getting blurry now that Agentry apps are moved or moving to the SMP.
    If the question relates to Agentry issues which directly involve SMP (usually installation, implementation, or configuration), then it should be in SAP Mobile Platform Developer Center.
    I am planning to put together a blog or several to help go through where and why different posts should be placed.  Also one about tagging!
    Thanks, Mike
    SAP Customer Experience Group - CEG

  • Dynamic Text for Recurring Documents

    Hello all,
    I want to know how to use dynamic texts for Document Header field in recurring documents.
    We run the recurring program each month (F.14). I would like the document header text to have the dates of that month eg "01/06/08 - 30/06/08". If we hard code this in, each month we need to go into the recurring template and change the dates for the appropriate month - this defeats the purpose of having recurring documents.
    Any help would be greatly appreciated.
    Thanks,
    Belinda

    hi Belinda,
    Welcome to SDN
    I think this could be done with a substitution exit. Prerequisite will be the recurring document number and if that matches, the text has to be built up acc. to the current periods. It requires some coding, but I believe it is makable.
    hope this helps
    ec

  • AddressBook:  Only 8 characters for field lables, cannot begin to describe

    Frustrated that lables for each field box only allows like 8 letters to explain.
    Like lables for fields: 'Phone', 'Email', Address, web page, etc.
    Only 8 characters then "..." dot dot dot ...
    What goood is it to onlly have 8 characters or letters> Does everything have to be abbreviated in the briefest, or code?
    Really, for mmany fields, 8 spaces is not adequate to even Begin to describe.
    I know, i should upgrade. Perhaps newer versions allow more space for field lables descriptions.But for those of us still loyal to Panther, and constrained by $$ limits, is there not a soolution?
    The highly coveted award of 'SOLVER' awaits the one who can proovide a solution to this vexing problem.
    Muchly appreciative.
    Still a Panther, using:
    Address book 3.1.2 (v321), 2003. Yeah, we're old & obso.

    @silverzhao I use a manual dhcpcd/wpa_supplicant way of setting up my wlan0 using http://git.r-36.net/conn and I have the same problem.
    I have to kill my wireless and restart after seeing a message like:
    May 20 10:12:33 x220 kernel: wlan0: AP a4:b1:e9:55:25:2f changed bandwidth, new config is 2462 MHz, width 2 (2452/0 MHz)

  • Dynamic text for checkbox

    I am displaying a selection screen a checkbox  and a select-option in the same line
    the code is like this:
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: p_check AS CHECKBOX MODIF ID bk1.
    SELECTION-SCREEN COMMENT 2(9) text-100 FOR FIELD p_check.
    SELECTION-SCREEN POSITION POS_LOW.
    SELECTION-SCREEN COMMENT 12(18) text-101 FOR FIELD s_bwart1.
    SELECT-OPTIONS:s_bwart1 FOR mseg-bwart DEFAULT 411 TO 412.
    SELECTION-SCREEN POSITION POS_HIGH.
    SELECTION-SCREEN END OF LINE.
    now I want to edit the checkbox text and can change and can pass it to the output as a header.
    Can we do this?
    please help me...
    in my ALV (using function modules)

    Hi SC,
    you could try the following code snippet:
    PARAMETERS: p_xcheck AS CHECKBOX.
    AT SELECTION-SCREEN OUTPUT.
      %_p_xcheck_%_app_%-text = 'hola'.
    (extracted from [SAP ABAP Help - Dynamic Parameter Texts in Selection Screen|http://help-abap.zevolving.com/2009/04/dynamic-parameter-texts-in-selection-screen/] and Dynamic changes to the text field label on a screen
    Kind regards,
    Alvaro

  • Dynamic Text for data series ?

    Hi, is posible setting dynamic text in data series when use dynamic value ?
    We need show Actual Year value and Last Year value in Label for Series.
    Thank you.

    This is not possible unless you have enhancement pack 1 for visual composer which I think is still in rampup...
    Here is the enhancement noted in the article below.
    Taken from blog:
    Option to dynamically define element titles
    For chart views, form views, table views, HTML views, nested iViews and popup iViews (popup signal), you can now define dynamic titles using the Expression Editor. A new (ellipsis) button to the right of the field in the Configure Element task panel displays the Title Editor dialog box, in which you enter either or define a custom expression.
    /people/judy.kestecher/blog/2008/08/26/whats-new-in-visual-composer--enhancement-package-1-for-sap-netweaver-70

  • Tool Tip Text for field values in ALV report

    Hi,
    How to get the tool tip text for the field values in ALV report.
    Thanks & Regards,
    Pallavi.

    Hi,
    In fieldcatalog specify the TOOLTIP.
    <b>
    LVC_S_FCAT-TOOLTIP
    </b>
    In this speicfyteh tooltip you want.
    Then append this to the fieldcatalog.
    Hope this solves ur problem.

  • Help Text for Field Name.....

    Hi Experts,
    In ALV Report there is Feild names like Order No., Qty, etc.
    When the user moves the cursor to the Feild Name i.e. Qty, it should show help text "This Qty is for A-B...".
    How to bring help text for Feild name when the cursor move to feild name ?
    Pl. guide.
    Yusuf

    Hi Shiva,
    There is no field TOLLTIP in SLIS_FIELDCAT_ALV.
    My sintex is :
      w_fcat-col_pos     = 9.
      w_fcat-fieldname = 'FACTOR'.
      w_fcat-seltext_l = 'Stock Value (55 %)'.
      w_fcat-outputlen = 18.
      w_fcat-do_sum = 'X'.
      APPEND w_fcat.
      CLEAR w_fcat.
    Is there any other way becaz there is no field like tooltip?
    Yusuf

  • Enabling Key and text for the Variable Selection screen

    I need to display key and text for a characteristic when selecting the drop down menu in the variable selection screen of a web report. In the Business Explorer tab within the info-object, I changed the General Settings to display Key and text, but when I open the drop down menu for this characteristic, it is still displaying the key only. Is there some other place where this change needs to happen?

    Hi,
    Did you try to log out and log in again into BEx?
    Best regards,
    Eugene
    Message was edited by: Eugene Khusainov

  • F4 for field at selection screen

    Hi all.
    I have a field at selection screen without any standard F4 on it.
    SELECT-OPTIONS: S_EXCMSG FOR  T458A-AUSKT.        "Exception message
    How can I implement F4 for this field?
    Thanks,
    Rebeka

    Hi,
    Try using the FM " F4IF_INT_TABLE_VALUE_REQUEST "
    A Sample Examle:
    REPORT  Z_TEST_F4_HELP.
    TABLES: ZEMPLOYEE,MARA.
    DATA: BEGIN OF ITAB OCCURS 0,
           ENO LIKE ZEMPLOYEE-ENO,
           ENAME LIKE ZEMPLOYEE-ENAME,
           EAGE LIKE ZEMPLOYEE-EAGE,
           SALARY LIKE ZEMPLOYEE-SALARY,
           END OF ITAB.
    PARAMETERS: P_ENO LIKE ZEMPLOYEE-ENO,
                P_MATNR LIKE MARA-MATNR.
    TYPES: BEGIN OF ts_mara,
    matnr TYPE matnr,
    ersda TYPE ersda,
    ernam TYPE ernam,
    END OF ts_mara.
    DATA : lt_mara TYPE TABLE OF ts_mara.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_MATNR.
    SELECT MATNR ERSDA ERNAM FROM MARA INTO TABLE LT_MARA UP TO 10 ROWS.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
      EXPORTING
      DDIC_STRUCTURE         = ' '
        RETFIELD               = 'MATNR'
      PVALKEY                = ' '
       DYNPPROG               = SY-CPROG
       DYNPNR                 = SY-DYNNR
       DYNPROFIELD            = 'P_MATNR '
      STEPL                  = 0
      WINDOW_TITLE           =
      VALUE                  = ' '
       VALUE_ORG              = 'S'
      MULTIPLE_CHOICE        = ' '
      DISPLAY                = ' '
      CALLBACK_PROGRAM       = ' '
      CALLBACK_FORM          = ' '
      MARK_TAB               =
    IMPORTING
      USER_RESET             =
      TABLES
        VALUE_TAB              = LT_MARA
      FIELD_TAB              =
      RETURN_TAB             =
      DYNPFLD_MAPPING        =
    EXCEPTIONS
       PARAMETER_ERROR        = 1
       NO_VALUES_FOUND        = 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.
    Regards,
    Ruthra

  • Header Text for Field Catalog ALV Grid doubt ..

    Hi everybody
    I have an ALV Grid List Report (REUSE_ALV_LIST_DISPLAY)
    but i have a trouble:  the header texts for the fields are always truncated to 10 positions.
    The code for fill the Field Catalog are:
      CLEAR l_field_cat.
      l_field_cat-COL_POS       =  2.
      l_field_cat-FIELDNAME     =  'AVERAGE'.
      l_field_cat-TABNAME       =  'T_REPORT'.
      l_field_cat-REF_TABNAME   =  'RPSCO'.
      l_field_cat-REF_FIELDNAME =  'WLP00'.
      l_field_cat-SELTEXT_S   =  TEXT-004. <- 'AverageAmount' 20 lenght
      l_field_cat-DDICTXT       =  'S'.
      l_field_cat-KEY           =  ' '.
      l_field_cat-KEY_SEL       =  ' '.
      APPEND l_field_cat  TO  p_field_cat.
    But, although the column appears with 20 characters lenght, the header text appears 'AverageAmo', and it is in the same way for all the fields, even with fields with 40 characters lenght.
    What am i doing incorrect ?
    Thanks in Advanced
    Frank

    That is because of field I_field_cat-SELTEXT_S.
    This will always display 10 char long text.
    To avoid truncating you can specify length for the header.
    Try this
            x_fieldcat-seltext_l = TEXT-004.
            x_fieldcat-outputlen = 20.
            x_fieldcat-ddictxt   = c_l.
    Message was edited by: Ashish Gundawar
    Message was edited by: Ashish Gundawar

  • How Can i SEt Dynamic Variant For WEEK on SELECTION Screen.pls help me..

    <b>Hi ALL..
    Pls Help Me for this Problem..i am very confused how can i do that...plese tell me proper process..
    i  want set Dynamice Varient for WEEK on Selection screen..
    I have ALrady SET Dynamice Varient for DATE on Selection Screen.ther isd option is D...but in case of WEEK there is a no option...
    Plese help me..
    thaks in advance..
    pls help me..</b>

    Hello,
    Define your select-option in TVARV (assume Z_THISWEEK). And use a program like:
    DATA:
      zlv_week TYPE KWEEK.
    call function 'DATE_GET_WEEK'       
       exporting date = syst-datum
       importing week = zlv_week.
    SELECT SINGLE *
          FROM tvarvc
         WHERE name = 'Z_THISWEEK'
           AND type = 'S'
           AND numb = '0000'.
    tvarvc-low = zlv_week.
    IF syst-subrc <> 0.
        tvarvc-name     = 'Z_THISWEEK'.
        tvarvc-type     = 'S'.
        tvarvc-opti     = 'EQ'.
        tvarvc-sign     = 'I'.
        tvarvc-numb     = '0000'.
        insert tvarvc.
    ELSE.
      update tvarc.
    ENDIF.
    Regards,
    John.

  • How to do dynamic selection for fields

    Hi,
    Can you please help me on this.
    I am adding the custom fields to the standard trasactions CJI3, CJI4, CJI5 for dispalying the line items. For this I am using COOMEP01 CO-OM: Information system -> line item reports enhancement.
    I am displaying the custom fileds for line items.
    The problem is...In all three t.codes I am having dynamic selection icon. user wants, selection is based on my custom fields...How to get my custom fileds on the selection screen?
    Please assist me as soon.
    Regards,
    Ravi

    Hai reddy
    This example shows how different transactions codes can be used to produce different selection options for the same program. The example allows for lookups on Sales Order number, Purchase Order Number, Delivery Number or Invoice number.
    *--- SELECTION OPTIONS -
    SELECTION-SCREEN BEGIN OF BLOCK SO WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS: S_VBELN FOR VBAK-VBELN,"Sales order number  
                   S_VBELND FOR LIKP-VBELN,"Delivery number    
                   S_VBELNI FOR VBRK-VBELN,"Invoice number     
                   S_VBELNP FOR VBKD-BSTKD."PO number          
    SELECTION-SCREEN END OF BLOCK SO.                           
    *--- EVENT AT SCREEN OUTPUT -
    AT SELECTION-SCREEN OUTPUT.                                      
      CASE SY-TCODE.                                                 
        WHEN 'ZEDI6'.                                                
          LOOP AT SCREEN.                                             
            CASE SCREEN-GROUP4.                                      
              WHEN '001'.                  "Sales order select       
                SCREEN-ACTIVE = '1'.       "1=Active, 0=Don't display
                MODIFY SCREEN.                                       
              WHEN '002'.                  "Delivery select          
                SCREEN-ACTIVE = '0'.       "1=Active, 0=Don't display
                MODIFY SCREEN.                                        
              WHEN '003'.                  "Invoice select           
                SCREEN-ACTIVE = '0'.       "1=Active, 0=Don't display
                MODIFY SCREEN.                                       
              WHEN '004'.                  "PO Select                
                SCREEN-ACTIVE = '0'.       "1=Active, 0=Don't display
                MODIFY SCREEN.                                       
            ENDCASE.                                                 
          ENDLOOP.                                                    
        WHEN 'ZEDI6D'.                     "Delivery select           
          LOOP AT SCREEN.                                             
            CASE SCREEN-GROUP4.                                       
              WHEN '001'.                  "Sales order select        
                SCREEN-ACTIVE = '0'.       "1=Active, 0=Don't display 
                MODIFY SCREEN.                                        
              WHEN '002'.                  "Delivery select            
                SCREEN-ACTIVE = '1'.       "1=Active, 0=Don't display 
                MODIFY SCREEN.                                        
              WHEN '003'.                  "Invoice select            
                SCREEN-ACTIVE = '0'.       "1=Active, 0=Don't display 
                MODIFY SCREEN.                                        
              WHEN '004'.                  "PO Select                 
                SCREEN-ACTIVE = '0'.       "1=Active, 0=Don't display 
                MODIFY SCREEN.                                        
            ENDCASE.                                                  
          ENDLOOP.                                                    
        WHEN 'ZEDI6I'.                     "Invoice select                  
          LOOP AT SCREEN.                                                  
            CASE SCREEN-GROUP4.                                            
              WHEN '001'.                  "Sales order select             
                SCREEN-ACTIVE = '0'.       "1=Active, 0=Don't display      
                MODIFY SCREEN.                                             
              WHEN '002'.                  "Delivery select                
                SCREEN-ACTIVE = '0'.       "1=Active, 0=Don't display      
                MODIFY SCREEN.                                             
              WHEN '003'.                  "Invoice select                 
                SCREEN-ACTIVE = '1'.       "1=Active, 0=Don't display      
                MODIFY SCREEN.                                             
              WHEN '004'.                  "PO Select                      
                SCREEN-ACTIVE = '0'.       "1=Active, 0=Don't display      
                MODIFY SCREEN.                                              
            ENDCASE.                                                       
          ENDLOOP.                                                         
        WHEN 'ZEDI6P'.                     "PO select                  
          LOOP AT SCREEN.                                              
            CASE SCREEN-GROUP4.                                        
              WHEN '001'.                  "Sales order select         
                SCREEN-ACTIVE = '0'.       "1=Active, 0=Don't display  
                MODIFY SCREEN.                                         
              WHEN '002'.                  "Delivery select            
                SCREEN-ACTIVE = '0'.       "1=Active, 0=Don't display  
                MODIFY SCREEN.                                          
              WHEN '003'.                  "Invoice select             
                SCREEN-ACTIVE = '0'.       "1=Active, 0=Don't display  
                MODIFY SCREEN.                                         
              WHEN '004'.                  "PO Select                  
                SCREEN-ACTIVE = '1'.       "1=Active, 0=Don't display  
                MODIFY SCREEN.                                         
            ENDCASE.                                                    
          ENDLOOP.                                                     
      ENDCASE.                                                        
    Thanks & regards
    Sreenivasulu P

  • Dynamic generation of fields in the screen

    Hi all,
    I have to generate dynamic screen fields.
    The scenario is , i will have a selection screen for choosing the fields.
    The selected fields has to showed in the new screen.
    Yours help will be more appreciated.
    Thnz for the help in advance.
    Cheers
    Faheem

    Hi,
    Copy paste this code in se38 and check if this is useful.
    parameters: p_nofld(10) type c,
                p_field1(10) type c modif id 1,
                p_field2(10) type c modif id 2,
                p_field3(10) type c modif id 3,
                p_field4(10) type c modif id 4,
                p_field5(10) type c modif id 5,
                p_field6(10) type c modif id 6,
                p_field7(10) type c modif id 7,
                p_field8(10) type c modif id 8,
                p_field9(10) type c modif id 9.
    at selection-screen output.
      loop at screen.
        if screen-group1 > p_nofld.
          screen-active = '0'.
        endif.
        modify screen.
      endloop.
    Regards,
    Senthil

  • How to set dynamic value for field Month when running background job ?

    Dear guys,
    I have a Z* report in our company, in the selection screen there is a period field (Month and Year) and this report running in background job periodically. My Question is how i can set for Month field become dynamic follow month value of date when this report executed ?
    Example :
    When Z* report running in background on 16.04.2008, Month Value will be 04 and when running on 16.05.2008, Month Value will be 05.
    Please advice.
    Regards
    Gunawan

    Dear guys,
    I have a Z* report in our company, in the selection screen there is a period field (Month and Year) and this report running in background job periodically. My Question is how i can set for Month field become dynamic follow month value of date when this report executed ?
    Example :
    When Z* report running in background on 16.04.2008, Month Value will be 04 and when running on 16.05.2008, Month Value will be 05.
    Please advice.
    Regards
    Gunawan

Maybe you are looking for

  • Mid-2010 MacBook Pro '13 Dead.

    So I've had an issue for the past week with my Mid 2010 MacBook Pro 13-inch. For a little while, it has been losing the time, and shut down randomly a few times, but last sunday, it shut down, and wouldn't boot back up. When I press the power button,

  • M-Audio Revolution 7.1 PCI Static in speakers

    I have a Blue and White Power Mac G3 with the DayStar 600 mhz G4 processor upgrade, M-Audio Revolution 7.1 surroundsound PCI card and Creative Labs Inspire 7.1 surroundsound speakers and I'm running OS X 10.4.4. My speakers sound fine in stereo only

  • How To Save Modified Fields After query From The Database

    I Have This Customer Information Form That's Sort of an Ordering Forms , I Made It By LiveCycle v9.0 And I Want To be able to search for Specific Record and Modify it and Save It Again to The DataBase I believe That We All Saw The (( Data Connected F

  • Empty rows in a table should not be displayed

    Hi, I have an ADF table which contains 10 rows and 5 columsns, in which i have rendered all the values in 5 columns of 5 rows to false. But when displaying the table,the empty rows are displaying by overlapping.. I do not want to display those empty

  • Muliple/PopUp window/pane help!

    Hey I was wondering if when i click a button (say jButton1) how that can open up a different window with different options? *for example you clicked options and it opened the options window. Also, I was wondering how I can use multiple panes, for exa