Can we select Domain text instead of domain value for a field?

Hi all,
I have a requirement to display Domain text in the output. when I select a field from table, for example field ZZDIRECT from LFA1 table, it has domain value range as D and I with texts Direct/Indirect. is there any way to get these texts for displaying in the output.

Hi,
C the below code, it may guide u...
DATA: int_domval TYPE dd07v OCCURS 0 WITH HEADER LINE.
SELECT DOMNAME VALPOS DOMVALUE_L DOMVALUE_H
into int_domval
from dd07v
where domname = Domain Name
and ddlanguage = sy-langu.
or use this FM.
DATA : BEGIN OF int_orient OCCURS 10,
domvalue_l LIKE dd07v-domvalue_l,
ddtext LIKE dd07v-ddtext,
END OF int_orient.
DATA: ZPETS_PORTORIEN type dd07l-domname,
int_values_table TYPE dd07v OCCURS 0 WITH HEADER LINE.
CALL FUNCTION 'GET_DOMAIN_VALUES'
EXPORTING
domname = 'ZPETS_PORTORIEN'
text = 'X'
TABLES
values_tab = int_values_table
EXCEPTIONS
no_values_found = 1
OTHERS = 2.
LOOP AT int_values_table.
int_orient-domvalue_l = int_values_table-domvalue_l.
int_orient-ddtext = int_values_table-ddtext .
append int_orient.
ENDLOOP.
Regards.

Similar Messages

  • How to display texts automatic. besides entered value for a field in Trans.

    How to display texts automatically besides the entered value for a field in a standard transaction screen. For example you have a value table and a text table associated to it. Then on entering the value field and pressing enter the text associated should get displayed immediately besides the value. Like if you have 'LOC' as the value and 'Location' as the text associated to it, on entering this value 'LOC', you automatically get the text 'Location' printed besides it automatically in a transaction screen ?
    Message was edited by: Sarika Kedia

    Hi sarika,
    Welcome to SDN.
    1. first of all, such display of text,
       is not automatic.
       (it appears to be automatic)
    2. At design time,
       a) take one extra field for text
         and mark it as OUTPUT ONLY
    3. Then in PBO coding,
        call some module, and in that module
        write code
    4. The code should be to
       select from TEXT Table
       into the work area.
    EG. THE SCREEN TEXT FIELD NAME IS
    T510A-FIELDNAME.
    CLEAR t510a.
      SELECT SINGLE * FROM t510a INTO t510a
      WHERE trfar = FIELVALUE.
    5. This will take care of
       displaying the text value of that field.
    regards,
    amit m.

  • Selection Screen - Text instead of Key in the value help

    Hi ,
    I have implemented selection options for Web dynpro.
    The value help for the selection fields displays the key of the selected value (standard).
    I would like to know if there is an option to display the text (instead of the key) in the field.
    Key Text
    01    AAAA
    02    BBBB
    03   CCCC
    So if I select say - 01 and 03 in the value help, Can I display AAA, CCCC in the field (or next to the field)
    Thanks,
    Sri
    Edited by: Sri on Sep 29, 2010 8:19 AM

    HI,
    You can dispaly it as dropdown and it shown the text:Use the beloe code refernce;
    DATA lt_valueset TYPE wdy_key_value_table.
      DATA ls_valueset LIKE LINE OF lt_valueset.
      ls_valueset-key = '1234'.
      ls_valueset-value = '1234test'.
      APPEND ls_valueset TO lt_valueset.
      ls_valueset-key = '1235'.
      ls_valueset-value = '1235test'.
      APPEND ls_valueset TO lt_valueset.
      ls_valueset-key = '1264'.
      ls_valueset-value = '1236test'.
      APPEND ls_valueset TO lt_valueset.
      CALL METHOD wd_this->lo_select->add_selection_field
        EXPORTING
          i_id = 'CAND_ID'
      it_result                    = lt_range_table
          i_as_dropdown                = abap_true
          it_value_set                 = lt_valueset
    *      i_read_only                  = ABAP_FALSE
    *      i_dont_care_value            =
    *      i_explanation                =
    *      i_tooltip                    =
    Regards,
    madhu

  • How Can I replace newScale Text Strings with Custom Values?

    How Can I replace newScale Text Strings with Custom Values?
    How can I replace newScale text strings with custom values?
    All  newScale text is customizable. Follow the procedure below to change the  value of any text string that appears in RequestCenter online pages.
    Procedure
    1. Find out the String ID of the text string you would like to overwrite by turning on the String ID display:
    a) Navigate to the RequestCenter.ear/config directory.
    b) Open the newscale.properties file and add the following name-value pair at the end of the file:res.format=2
    c) Save the file.
    d) Repeat steps b and c for the RmiConfig.prop and RequestCenter.prop files.
    e) Stop and restart the RequestCenter service.
    f) Log  in to RequestCenter and browse to the page that has the text you want  to overwrite. In front of the text you will now see the String ID.
    g) Note down the String ID's you want to change.
    2. Navigate to the directory: /RequestCenter.ear/RequestCenter.war/WEB-INF/classes/com/newscale/bfw.
    3. Create the following sub-directory: res/resources
    4. Create the following empty text files in the directory you just created:
    RequestCenter_0.properties
    RequestCenter_1.properties
    RequestCenter_2.properties
    RequestCenter_3.properties
    RequestCenter_4.properties
    RequestCenter_5.properties
    RequestCenter_6.properties
    RequestCenter_7.properties
    5. Add the custom text strings to the appropriate  RequestCenter_<Number>.properties file in the following manner  (name-value pair) StringID=YourCustomTextString
    Example: The StringID for "Available Work" in ServiceManager is 699.
    If you wanted to change "Available Work" to "General Inbox", you  would add the following line to the RequestCenter_0.properties file
         699=General Inbox
    Strings are divided into the following files, based on their numeric ID:
    Strings are divided into the following files, based on their numeric ID:
    String ID  File Name
    0 to 999 -> RequestCenter_0.properties
    1000 to 1999 -> RequestCenter_1.properties
    2000 to 2999 -> RequestCenter_2.properties
    3000 to 3999 -> RequestCenter_3.properties
    4000 to 4999 -> RequestCenter_4.properties
    5000 to 5999 -> RequestCenter_5.properties
    6000 to 6999 -> RequestCenter_6.properties
    7000 to 7999 -> RequestCenter_7.properties
    6. Turn off the String ID display by removing (or commenting out) the line "res.format=2" from the newscale.properties, RequestCenter.prop and RmiConfig.prop files
    7. Restart RequestCenter.
    Your customized text should be displayed.

    I've recently come across this information and it was very helpful in changing some of the inline text.
    However, one place that seemed out of reach with this method was the three main buttons on an "Order" page.  Specifically the "Add & Review Order" button was confusing some of our users.
    Through the use of JavaScript we were able to modify the label of this button.  We placed JS in the footer.html file that changes the value of the butt

  • ALV Report displays space instead of '0.00' for qty field. why?

    Hello friends,
    I am facing a problem to display 0 value for the field
    field - ZZQTY (Predefined Type at Domain level)
         QUAN 21,2
    In the program I am clearing the field and I can see its value as 0.00 while debugging.
    As soon as field ZZQTY is displayed on ALV, it becomes blank (Space).
    My requirement is to display '0.00' on ALV report.
    What should I do?
    Regards,
    Ronny Hanks

    Hello
    Search for
    LS_FIELDCAT-NO_ZERO = 'X'.
    for this field in programm and comment this.

  • How can we prevent a user from entering a value in Parameter Field?

    how can we prevent a user from entering a value in Parameter Field and Select-options Field?

    make it invisible, make it inactive, make it display only.
    if the field is not there or not to be seen the user WILL have problems inputting data.
    BUT once the field is there you can NOT prevent that the user fills it with data.
    all you can do is on PAI check if the data the user inputted was good or bad, and clear his inputs, but you can NOT prevent him inputting something.

  • Finding short text description of Fixed values for value range for domain

    Hi,
    When I got to Dictionary: Dispaly Domain and click on tab value range; I get the template showing Fix. Val and its associated short text.
    I want to fetch the short text for a particular fix. val for a domain.
    How can I do that ? What table can I use it ? Or do I need to use some function module ?
    Lets say I want to fetch the short text for a given Fix val. for domain VBELN.
    Please help me out.

    Hi,
    You can use Function Module 'FM_DOMAINVALUE_CHECK' to get the fixed values of any domain.
    Regards,
    Atanu

  • Can't select vertical text formatting since Win 7

    Please help.
    Have recently upgraded to win 7 and now I cannot select any text formatting options in the drop down text menus. I can see them, but the drop down menu buttons don't work.
    Has anyone had this happen?
    I have spent so much time on the computer and it's so hard to get any work done.
    Advice would be much appreciated
    I would like to go back to XP but the computer guy says that's not possible.
    Thanks
    ZeeBud

    Thank you so much for responding Peter. I feel one step closer to being able to get my work done.
    Your solution means that I can now use the tools in the tools palette, but no luck with being able to use the text selection drop down menus.
    It's quizzical. I can select the fonts by clicking through file the file path> type> font. Just not through drop downs.
    Any thoughts anyone?
    Zj

  • Can't select CMYK text colour for text fields in Acrobat Pro forms?

    I have designed a business card template in Indesign, and now want to use Acrobat Pro to add in text fields so that a client can edit the contact details on the cards in future.
    I need to select a specific text colour for the fields, so that it matches the rest of the design. The cards will obviously need to be printed and the document has been set up in CMYK, but when I enter the CMYK colour breakdown in the Properties > Text Colour panel, it won't apply the colour to that field. The text either stays at the default black, or reverts to RGB - which isn't suitable for printing and doesn't match the colour I need.
    Can anybody PLEASE shed some light on this? Other similar posts have either not been answered or people have suggested JavaScript..? I have no idea what I'm supposed to do with a JS code..? Surely there's an easier explanation?
    Thanks in advance.

    This is for a text field that you create in Acrobat, whether the form is used offline or online. The script is a custom Format script, which you can place by bringing up the Properties dialog for the field, select the Format tab, set a format category of Custom, and you should see where you can enter the script. Change the string "Instructional text goes here" to the text you want to display when the field is blank.

  • Can't select code text

    Hello all,
    I'm new to dreamweaver and searched the forum, but couldn't
    find an answer. I am helping out a friend who has a HTML website
    that was done by someone else. He wants me to simply change the
    background image. I open it in dreamweaver and when I move the
    mouse of the image I get the "circle with a slash" symbol, i.e. its
    not selectable. If I go to the coding area, all of the text is
    grayed out and I can't select it.
    I know this thing must be "locked" somehow, but have no idea
    how to unlock it.
    Can someone help out this very green newbie?
    Thanks,
    Danny

    Danny,
    Without the code to look at I am guessing. Is the page a
    template and are you trying to access a locked uneditable area? Is
    the background image applied using css (which I recommend that it
    is whatever your answer!)?
    Check those points and come back to the forum with your code
    if you can't figure it out.
    regards
    Nick Barling
    www.barkingweb.com

  • Keynote data labels, can I show category names instead of data values?

    I'd like to recreate the chart below in Keynote. The chart below is an excel line chart with the lines removed. In excel I can opt to show category names instead of values for the data labels. Can I do this in Keynote?

    You can select member name or alias or both in the Dimension property while creating the form.
    It is in the same window as explained earlier, you need to just select both the Member and its Aliase to be displayed on the form.
    Thanks,
    Ravi

  • How to show text instead of blank value in SelectOneChoice list.

    Hi,
    I have a requirement where I need to show some string like 'Please Select Value' instead of blank item in the select one choice list. So instead on blank value, this string will be displayed in the choice list and if user doesnt select any value it should be treated as normal blank value and validation should be fired.
    May I know is there any property which we can set declaratively or any workaround for this?
    My JDev version : 11.1.1.7.0
    Many thank in advance.
    Regards,
    Dileep.

    Hi,
    In the VO list of values, check "Include no selection item", choose "Labelled item first of the list" from the drop down and give your custom label.
    Thanks

  • I can't read the text in my Acrobat pro fill forms fields

    I used to be able to render text with my acrobat pro, now the function is missing.  I can't read what people put in the fields I create in my forms if they don't fill it out with acrobat when they email them back.  This didn't used to be the case. One month ago I could render the text.  I had help from a tech at Adobe about a year ago on this and he changed my acrobat somehow so now I can't update it because it's been "modified".  How can I make my text visible?   Thanks!

    Read this:
    Renderable Text?

  • I can't select a Payment Method and a key for Terms of Payment Key...

    Hi All,
    I've created a G/L account with open item management but it isn't a reconciliation account.
    When I post a document on this G/L account, I'd like to select a Payment Method and a key for Terms of Payment Key.
    I can't find the fields to select them....
    Why does it happen?
    Thanks

    Hi Umberto Gandalf,
    I got you. Payment Terms are objects used to excecute incoming and aoutgoing payments, and Payment Method are used to define net due date and conced discounts.
    Srikanth said above a way to post an invoice by FB01. If you are trying to post an invoice you should not use an Open Item acount. You must use Customes and Vendors Master data to do it. Your GL Account must be assigned in those masters data to take place on GL balance. Payment Terms and Payments Mathods will be entered during Invoice posting process.

  • Match code in report selection screen does not show any values for 0FISCPER

    Hi Experts,
    I have problem with selection screen in several reports. When I use match code for fiscal period selection I get only # as a possible value. I have checked the master data they seem to be correct. I work with 7.0 BW system. Can you please give me any hint what I should check?
    Thank you,
    Michal

    Hi,
    maybe I ask different way - how do you add characteristic values for a characteristic in the BEx? Is it automated somehow in SAP (e.g. from master data)? For the fiscal period I use custommer exit to fill in the default value, which is the current fiscal period. But this is something different, right?
    <removed by moderator>
    Michal
    Edited by: Arun Varadarajan on Nov 14, 2008 3:55 PM

Maybe you are looking for

  • Closing the browser windows created by web.show_document and javascript

    From Forms I am issuing a http request using web.show_document and javascript:window.open(). The http request makes a remote procedure call to a coldfusion component on a JRun appserver. I want this rpc to fire in the background so that the current f

  • Solaris 8 (Intel) Crash & Burn

    Having troubles installing Solaris 8 (Intel Platform) on a Gateway PC (PIII 733 MHz, 128 MB RAM, 20 GB HD). Seems no matter what I do, using web start or using interactive install, the screen goes all white and the system hangs just after the followi

  • SAP Business One 2007 - SQL Security best practice

    I have a client with a large user base running SAP Business One 2007.  We are concerned over the use of the sql sa user and the ability to change the password of this ID from the logon of SAP Business One. We therefore want to move to use Windows Aut

  • Wallet and dbms_crypto

    Hello, I intend to use DBMS_CRYPTO and use personal key that is already stored in a wallet (file). Which steps must i take to bring this key as a parameter to DBMS_CRYPTO.ENCRYPT for encypting BLOB. Al examples i found till now use only self created

  • Number precision too large

    THE FOLLOWING SIMPLE CODE IS GIVING ERROR even though i have given the definition (2,3) which is larger than the length of value 3.14 ? declare pi constant number(2,3):=3.14; r number(5) ; a number(5); begin r:=2; a:=pi*power(r,2); dbms_output.put_li