PCUI - CRM - Text (Field Label) Replacement

Hi Friends,
I want to change the Field Label displayed on the PCUI.
In PCUI the field label displayed, is the value taken from the Medium Text of that field's respective Data Element in DDIC. Please correct me if I am wrong.
Now for example - I want to replace 'Sold-To Party' field label as 'Buyer Site', how can I achieve this without modifying the data element's medium text ?.
I tried using Text Replacement Tool (trans CRMST62), but it reads values from Header, Short text, but not from the medium text. And also it is time consuming as it runs several background job process.
Does PCUI Applications stores field labels in any table ? Or is there any config available by which we can insert field labels in the PCUI Application.
Thanks
Harsh

Hi everybody,
with a little modifcation it works fine.
See below, how I have implemented it.
Cheers,
Marc
<b>Note:</b>
Necessary modification is supposed to causing no problems during upgrade.
<b>Realization:</b>
- Customizing table controls text labels in user interface of CRM application
- Maintenance via customizing view
1. Create customizing table 'ZMAL_DDIC_C'
MANDT  type MANDT
TABNAME  type TABNAME
FIELDNAME  type FIELDNAME
2. Create text table for language dependent text 'ZMAL_DDIC_CT'
MANDT  type MANDT
TABNAME  type TABNAME
FIELDNAME  type FIELDNAME
LANGU  type SPRAS
SCR_TEXT_S  type SCRTEXT_S
SCR_TEXT_M  type SCRTEXT_M
SCR_TEXT_L  type SCRTEXT_L
3. Create method 'get_fieldtext()'
Porperties: static and public
Parameters: I_FIELD_LIST  importing  type DDFIELDS
            R_FIELD_LIST  returning  type DDFIELDS
method get_fieldtext.
DATA: field_itab type ddfields,
      ddic_ct_struc type zmal_ddic_ct,
      ddic_ct_itab like table of ddic_ct_struc.
FIELD-SYMBOLS: <field_struc> type dfies.
field_itab[] = i_field_list[].
loop at field_itab assigning <field_struc>.
at first entry we look for new lables in our
customizing table
if sy-tabix = 1.
select * from zmal_ddic_ct
  into table ddic_ct_itab
  where tabname = <field_struc>-tabname
    and langu   = <field_struc>-langu.
endif.
check if an individual lable exists
read table ddic_ct_itab
  into ddic_ct_struc
  with key fieldname = <field_struc>-fieldname.
only when text in customizing table is not empty ,
replace standard text
if sy-subrc = 0.
  if not ddic_ct_struc-scrtext_s is initial.
    <field_struc>-scrtext_s = ddic_ct_struc-scrtext_s.
  endif.
  if not ddic_ct_struc-scrtext_m is initial.
    <field_struc>-scrtext_m = ddic_ct_struc-scrtext_m.
  endif.
  if not ddic_ct_struc-scrtext_l is initial.
    <field_struc>-scrtext_l = ddic_ct_struc-scrtext_l.
  endif.
endif.
endloop.
return edited field list
r_field_list[] = field_itab[].
endmethod.
3. Mofification
Class: CL_ABAP_STRUCTDESCR
Method: GET_DDIC_FIELD_LIST()
if sy-subrc <> 0.
fill cache with negative result
   cache_wa-langu     = p_langu.
   cache_wa-not_founf = abap_true.
   insert cache_wa into table me->ddfields_cache.
   raise not_found.
endif.
START INSERT
p_field_list = <own_class>=>get_field_text( i_field_list = p_field_list).
END INSERT
fill cache
cache_wa-langu     = p_langu.
create data cache_wa-value.
cache_wa-value->* = p_field_list.
insert cache_wa into table me->ddfields_cache.

Similar Messages

  • Can't hide text field label..only text field

    I'm trying to display text field boxes on a form to fill out when a box is checked.  I'm able to do this for the actual text field, but can't figure out how to hide then show the associated text field label.  Can you tell me what I'm doing wrong?
    Thanks!
    var nHide =
    event.target.isBoxChecked (0) ? display.visible:display,hidden;
    this.getField ("Name").display = nHide; this.getField

    First of all, you're using Acrobat JavaScript in an XFA form, which doesn't work.
    LiveCycle Designer has its own interpretation of JavaScript, which is different to Acrobat.
    There is also a second scripting language called FormCalc available.
    Its syntax is much easier to learn and is matches perfectly to manipulate XFA forms.
    Check the help (F1 button) in Designer to get the Designers scripting guide.

  • How to define the same font size,color for a text field label

    hi all,
    In my project i need to define the same font size & color for all the text field lables in the application.how do we can achieve this?
    Thanks & regards,

    ...or you could use declarative components....
    Not sure if skinning would prevent developers from overriding a look and feel??? hmmm not sure..
    Grant

  • PCUI - CRM - Text Label Colour

    Hi Friends,
    Is there any way by which I can change colour of fields in the PCUI ? And also if I can change some of the fields only ?
    Please let me know if anyone has an info on it.
    Thanks
    Harsh

    Tiest,
    Thanks for your reply. Can you please point the location where I can have a look at the stylesheets used by the PCUI Application ?
    We have Theme Editor in portal, with which we can set custom style sheets for Portal Pages. Similarly is there any theme editor/ location from where the PCUI's field rendering can be modified.
    Thanks
    Harsh

  • Text Field Label?

    I have created a form with expandable fields. I have a couple fields that I want to have text label in but I want the label to disappear when the user types in the field. Is this possible? I found where I can add a label of sorts but it needs to be manually deleted when the user enters text.

    Refer to this old thread in which Niall and Bruce had provided some nice samples for a similar question..
    http://forums.adobe.com/message/2516823#2516823
    Thanks
    Srini

  • How to change the text of label dynamically

    Hi all,
    I have done a dynpro program.It requires to implement the dynamically display the label text, for example: there is a label, sometimes, we want to display "Purchase Order" and sometimes we want to display "Sales Order". Can anyone tell me how to change the text of label according to my requirements? thanks in advance!

    Hi Wei,
    AS of now you will not be able to change the Text Field ( Label ) dynamically or at runtime. This is a limitation.Refer to this link:
    http://help.sap.com/saphelp_nw04/helpdata/en/e4/2adbef449911d1949c0000e8353423/frameset.htm
    But, there is a way around.
    You can make a text field Visible / Invisible based on your program logic. So, based on what you want, you can process a module which will take care of that.
    Have a look at these DEMO Code. You can have a good idea to implement the logic.
    DEMO_DYNPRO_MODIFY_SCREEN - Demonstration of Dynamic Screen Modifications
    Thanks,
    Samantak.

  • Print just what is typed in the text field without printing the text fields

    Hello,
    I'm trying to print a form after I filled in the text fields, but would like it to print just what I typed in the field, not the text field and the color in the text field. I use CS3.
    Any help would be appreciated!

    Hello Teddy and wellcome to the group!
    If you want to change fonts or other things then you might need to use the PrePrint method. What I normally do is select PrePrint from the "Show" section in the Script Editor (If you do not have it go to the toolbar at the top, Windows, and select Script Editor). After you select PrePrint you can now either type the name of the subform and field you want to change (or you can put your cursor in the Scripting Dialog box, hold CTRL and then select the field with your mouse) and then type in the JS to change the font. it is something like TextField1.fillcolor = "255, 255, 255"; (that changes the background fill to white). You can also replace fillcolor with font or border to change the color of the font or the border. I put a link to an Adobe website that goes over JS color changes below. You just need to add a PrePrint method for each field that you wish to remove the necessary highlighting on. Then once the user either hits a Print button that you have on the form or uses CTRL+P to print the form it will remove any highlighting.
    Now On the Text Field not printing itself that I am not sure what you are asking for. Are you asking for the caption not to print or for there not to be a box around the data that is entered? If you do not want to have a box surround the text field that is in the Object section of the field (see image below). You just need to select None if you just want the text. If you want to change that with JS I put another link below that has the code to change the border color to white and the user cannot see it. If you do not want the caption to print the only method is to delete the caption from the text field and replace it with static text that can be hidden, but I am assuming that is not what you are talking about (correct me if I am wrong though).
    http://partners.adobe.com/public/developer/en/livecycle/designer/pdfs/ChangingFieldAndSubf ormBGColors.pdf
    https://forums.adobe.com/thread/1409617

  • Check box or radio button to control image opacity and text field. javascript

    This is a little over head and skill set so I am reaching out to you fine people.
    I am using Adobe acrobat pro x
    I have radio buttons now but I can switch to check box if needed.
    What I need the Java script to do is...
    If Yes is checked then a text field labeled comments appears and an image labeled box changes the opacity to 100%.
    If No is checked then it does the opposite. Text field disappears and image goes to 0% opacity.

    This is the Adobe Reader forum.  You are more likely to receive a helpful answer if you ask in the appropriate Acrobat forum (e.g. Acrobat SDK).

  • Standard field label change and drop down

    Hello,
    I need to change a text field label and create a drop down for a input down field. The problem is that they are standard fields in sap. I am not sure if by code i can do this change.  Because I tried doing the change through cmod to change the field text and  append for the drop down in the domain, but for some reason it did not work. Any help would greatly appreciated.

    >
    David Rivera wrote:
    > Hello,
    >
    > I need to change a text field label and create a drop down for a input down field. The problem is that they are standard fields in sap. I am not sure if by code i can do this change.  Because I tried doing the change through cmod to change the field text and  append for the drop down in the domain, but for some reason it did not work. Any help would greatly appreciated.
    What is the program?
    You can change the field text in CMOD but you cannot do a dropdown in CMOD.
    Dropdown is for the screen element and you need to change the screen for this and need to populate the field. Find if there is any user exit for your requirement.

  • Required Field labels

    Is there any reason why only text field labels carry the required "*" asterisk field (and incidentally, the "!" exclamation error on the field", when set to required?
    I cannot get my checkboxes and radiobuttons to do it.
    I dropped a checkbox, set a label on the checkbox, and set it to required. No asterisk by the label. Also, when no value is given when running the app, the cool "!" exclamation beside the label is not there.
    Only on text boxes does this work. Bug?

    I believe we have a bug filed for this, but it is scheduled to be fixed for a future release. I'll post back shortly once I find the reported CR.
    sqad
    - Creator Team

  • Search and Replace values in the text field before values are stored to DB

    Hi,
    In my application there is a question - text area and answer - text field. Problem is, some answers are stored with the single quotes to the DB and I have a problem while retrieving it from the DB. I need to replace the 1 single quotes with 2 single quotes. The values are stored to the DB when the submit button is clicked.
    So I am using the following javascript code:
    italics
    <script type="text/javascript">
    function test()
    var str="&P2_S1.";
    document.write(escape(str));
    </script>
    italics
    I need to call this javascript function, when the submit button is clicked but BEFORE the values are stored to the DB. How can i get this done?
    Please let me know.

    Hi,
    Thanks for the reply.
    Yeah I planned to drop the Javascript idea.
    Now, I am using the PL/SQL code. This is what I am planning to do.
    When the user enters any word like this, Test's, this single quote should be replaced by some special character, #@@#, - what is the PL/SQL code for this?
    Right now my PL/SQL code is:
    begin
    update test set S1=:P2_S1 where name=:APP_USER;
    end;
    so the replacing part should come somewhere before the update statement.... how can I do it?
    from the DB when the values are retrieved, I use the following code:
    select REPLACE(s1,'''','') from test where NAME=:APP_USER; // this works fine.
    Please help me with the replace of the single quote before the update process...

  • How do I create visible field labels in a pdf form that can be overwritten by text? I have tried add

    I am creating a very straight forward fillable form and want to add a description of each field that can be visible to the user, but goes away when the person enters the appropriate data in the field. I have tried to suggested custom scripts. The script command were: if (!event.value) event.value = event.target.name; and
    if (!event.value) {event.value = event.target.name; event.target.display = display.noPrint;} else {event.target.display = display.visible;}. Both allow the lables to be visible but neither allow the user to either replace the label with the relevant information and if it does, then the replacing data does not print/remain viewable.
    I am confident this is doable as I have seen forms that say something like "add your name here" and when you enter the data that field label is replaced with the information I enter.

    Hi George,
    I have tried this. What I get is a field label, and I can type into the field, but the label does not go away and the page prints blank. Should I try: if (!event.value) {event.value = event.target.name; event.target.display = display.Print;} else {event.target.display = display.visible;}, removing the .noPrint?
    You have no idea how frustrating it is to try this and have such a simple function not work. Is there anothe script I can try?

  • 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

  • Automate replacing font in a text field in thousands of documents

    Hi,
         We recently discovered that bar codes we use on our forms do not scan accurately when printed on certain types of prined. To resolve this issue, we replaced this font with a new font.
    Going forward any new form that we create will use the new font. But we have thousands and thousands of existing forms with the old bar codes. Can anyone give any suggestion on how to automate changing the bar code fonts in this forms.
    If we manage to automate this, we will save months of manual effort.
    Please get back to me if you have any suggestions that might help us.
    Thanks for your time and help
    - George

    I answered my own question regarding this with the following code
    1. Set the TextField value to a variable strChar
    2. Based on the indexOf value of strChar "UserName: Some UseName" which is 9.
    3. Separate the first 9 chars using a Left javascript function and assign the to a variable strLeftChar = "UserName"
    4. Separate the remainig chars using a Right javascript function and assign the to a variable strLRightChar = "Some UserName"
    5. Then do the following:
    //Make the caption visible
    pricingNodes.item(i).caption.presence = "visible"
    //Set the text field caption text equal to strLeft
    pricingNodes.item(i).caption.value.text.value = strLeft;
    //set the text field value text equal to strRight
    pricingNodes.item(i).rawValue = " " + strRight;
    //set the caption font weight equal to bold
    pricingNodes.item(i).caption.font.weight = "bold";
    Not that neat as a solution, but it does the job if this helps anyone.

  • PDF Text Field Form Label

    Hello everyone.  I was wondering if there was a way to make a label viewable in normal mode for a PDF text field form.  I am making my PDF a form with a fillable text box in it.  Well, I'd like the box name to show up when someone opens the PDF, not just if they only go into the edit form view.  I hope I'm making sense.  So far, the only thing I can think of is making a Button with the label above the fillable text box or make the text box a combo box.  However, with a combo box, I can't edit how the text will look when it's typed in.  Right now, though, when a person opens the PDF normally, the highlighted fillable text boxes show up but not the labels with them even though I have names entered in on Name and Tooltip.
    Any suggestions?

    Oh my gosh... I feel like such a dork!!  I took a fresh look at it this morning, and the ONLY mistake I had was that I put the ending quotations in the wrong spot!  I forgot to include (Optional) inside the quotations for the label!
    I had this:  if (!event.value) event.value = "Company Information" (Optional);
    Instead of this:  if (!event.value) event.value = "Company Information (Optional)";
    Oi!!  That was it! lol!  I'm sorry about that.  And yes, without those quotations, my text form fields don't work.  I hadn't seen your message before (until now) asking for me to clarify that.  I'm sorry!  That's the only spot I needed quotations.  If I don't have them, Adobe tells me that I'm missing characters.
    THANK YOU SO MUCH!!!  I wish there was a way to give brownie points or something on here either than "Right Answer".  You have helped me so much and deserve a lot of brownie points!   Thank you!!
    If Adobe is reading this, please give George Johnson a reward or something, please!  He was very helpful and patient with me.

Maybe you are looking for

  • How can I fix auto-pairing once and for all?

    My iPhone 3G will sometimes auto-pair (and sometimes not) with my Bluetooth handsfree speaker phone (Blueant S1). I think it's a radio problem with the iPhone because it's an intermittant problem. To fix it, I have to dig down in settings, turn off B

  • DTW for PO's and Customer payments applied to oldest invoices.

    Hi everyone in this forum, I'm so glad that there is a community like this one so we can request to expert and not so expert SAP users. This thread is made with the intention of request help in the following matter: The company I started recently to

  • Why does it take an hour to add a mp3 cd book to library?

    Is there any way to speed up this copy?  This is an mp3 cd audio book. Each chapter has itunes sit and spin about 5 minutes.  This 2 cd book has about 80 chapters. First cd took over an hour to add 41 chapters to library.  No music cd ever took so lo

  • How to relate STEPUID/DMUID in RSDDSTAT_DM to STATUID in RSDDSTATTREXSERV

    I am trying to troubleshoot slow performance of a query in BIA. It spends more than 250 secs on DB (BIA). How to relate STEPUID/DMUID in RSDDSTAT_DM to STATUID in RSDDSTATTREXSERV. I can get StepUid and DMUID from the query statistics. I know that I

  • Storage location missing in Inbound delivery

    Hi , When I am getting the ASN or confirmation for my purchase order. automatically Inbound delivery is getting created. But here the problem is missing the storage location in inbound delivery. I maintained the storage location determination (with s