Text field in Bol layer

Hi Guys,
I am trying to append text lines into a particular NOTES section in Webui. Here is what i am using in my code,
  DATA: lr_ent1   TYPE REF TO cl_crm_bol_entity,
        lr_texts  TYPE REF TO cl_crm_bol_entity,
        lr_result TYPE REF TO cl_crm_bol_entity.
  DATA: lv_lines TYPE string,
        lv_note TYPE string,
        lv_tdid TYPE string.
  lr_ent1 = lr_adminh.
  lr_ent1 = lr_ent1->get_related_entity( iv_relation_name = 'BTHeaderTextSet' ).
  IF lr_ent1 IS BOUND.
    lr_ent1 = lr_ent1->get_related_entity( iv_relation_name = 'BTTextHAll' ).
      IF lr_ent1 IS BOUND.
        lv_note = 'Blah Blah Blah'.
        IF lr_ent1->switch_to_change_mode( ) EQ abap_true.
          lv_tdid = lr_ent1->if_bol_bo_property_access~get_property_as_string( iv_attr_name = 'TDID' ).
          IF lv_tdid = 'ZABC'.
            lr_ent1->if_bol_bo_property_access~set_property( iv_attr_name = 'CONC_LINES'
                                                             iv_value     = lv_note ).
          ENDIF.
        ENDIF.
      ENDIF.
    ENDIF.
  lr_core->modify( ).
The problem here is, I wanted to add text for a particular text id, 'ZABC' but its adding text for the first available text id. Is there a way I could mention the text id along with the lines

HI,
Try this in SET method of the context nodes attribute.
add this public atribute in your context node  class :
GV_LINES is public attribute with type NAME_KOMP
DATA: current TYPE REF TO cl_crm_bol_entity,
        dref    TYPE REF TO data,
        copy    TYPE REF TO data.
  FIELD-SYMBOLS: <nval> TYPE ANY,
                 <oval> TYPE ANY.
  current ?= collection_wrapper->get_current( ).
  CHECK current IS BOUND.
  TRY.
      dref = current->get_property( gv_lines ).
    CATCH cx_crm_cic_parameter_error cx_sy_ref_is_initial
          cx_sy_move_cast_error cx_crm_genil_model_error.
      RETURN.
  ENDTRY.
  CHECK dref IS BOUND
  ASSIGN dref->* TO <oval>.
  CREATE DATA copy LIKE <oval>.
  ASSIGN copy->* TO <nval>.
TRY.
      CALL METHOD if_bsp_model_util~convert_from_string
        EXPORTING
          data_ref = copy
          value    = value.
    CATCH cx_sy_conversion_error.
      RAISE EXCEPTION TYPE cx_bsp_conv_failed
        EXPORTING
          name = 'ATTRIBUTE_NAME'.                                   "#EC NOTEXT
  ENDTRY.
IF <nval> NE <oval>.
   current->set_property( iv_attr_name = gv_lines
                           iv_value     = <nval> ).
  ENDIF.
  CALL METHOD me->check_encoding
    EXPORTING
      iv_value = <nval>
    EXCEPTIONS
      not_fine = 1
      OTHERS   = 2.
  IF sy-subrc <> 0.
    current->set_property( iv_attr_name = gv_lines
                           iv_value     = <oval> ).
    EXIT.
  ENDIF.
Try this or modify as per your requiement.
/Cheers
Sunita

Similar Messages

  • Asfunction/Hypertext/Dynamic Text Fields

    I have the following code to create a hypertext link to
    another frame label w/in a dynamic text field. I'm pretty sure it
    will work, but I don't know where to implement the code. If I put
    it in the dynamic text field's actions layer it wipes out my other
    text in the field but gives me a working hyperlink. Any advice?
    Beat_Poets.htmlText = "<a
    href=\"asfunction:gotoAndPlayF,Howl\">Howl</a><br>";
    function gotoAndPlayF(fLabel) {
    _root.gotoAndPlay(fLabel);
    }

    Beat_Poets.htmlText = "<a
    href=\"asfunction:gotoAndPlayF,Howl\">Howl</a><br>";
    is htmlText assignment. if you have other text that you want
    to appear before this use:

  • HT5392 How can I use an Action List to re-order my layers in iAd Producer?  It looks like there's a tool for this, but I can't figure out how to use it.  I want to use a button to switch between a text field and a drawing pad layer.

    I am working on an iBooks Author Widget and want to allow the user to switch between drawing-pad functions and a text field on screen.  I'd like to create an action that will automatically re-order the layers so that the text field is accessible when typing but covered when writing by hand.  Then, I'd like the opposite to be available, so that the text field is accessible when typing, but the drawing pad is left alone.

    Have you tried using the selections in the Encore menu viewer that show you selected and activated states?

  • Displaying the value of text field A in text field B

    I have a PDF form with 2 layers. Layer 1 has information, a textfield, and a button. Layer 2 is a certificate design. The user inputs their name in to a textfield called NameEntry.
    When they hit the button, layer 1 disappears -- the instructions and NameEntry box become hidden. Layer 2 is the certificate design and I need a new textfield (which is called NameDisplay) to be populated from inputted information in text field NameEntry.
    The simple answer, I know, is to name both text fields the same. This does not work for me as I need the input textfield to be styled differently (background and border) due to decisions out of my control vs the NameDisplay which will have no background and no border.
    Any ideas? Thanks!

    Use this custom calculation script:
    event.value = this.getField("NameEntry").valueAsString;

  • Marketing attribute in the text field, interactive script

    Hello Gurus,
    We are facing a problem in the interactive script, of the sap crm 7.0.
    We know the possibility of set some of the customer data into the
    script by filling bdc field inthe test field and then adding this text
    field to a script question.
    We did it in the customer data "***" by filling the bdc field with "ext
    field marketing attribute interactive script" and this data is showed
    in the script, but we can not show marketing attribute data in the
    script by using text field and bdc field.
    There is a possiblility of showing the marketing attribute in the text
    field or it is imposible due the structure of bol in crm.
    Thanks  in advance.

    Hello ,
    To display or change the marketing attributes of a business partner in the script follow these steps:
    1.  Run the Interactive Script Editor.
    2.  Create a new Question and in the Answer Area drag and drop the "Marketing Attribute" dynamic answer.
    3.  Select the "Marketing attribute will display here when executing the script" object and go to tab "Dynamic Content Parameters".
    4.  Select the attribute set and the attribute name.
    5.  Save the question.
    6.  Drag and drop the question to your script.
    7.  Change the template of the question node to either "Person Marketing Attributes" or "Organization Marketing Attributes" depending on what type of business partner is expected to be confirmed at run time in the IC_AGENT role.
    8  Save the script.
    9.  Run IC_AGENT or similar IC role.
    10. Confirm an organization ( if you used "Organization Marketing Attributes" ).
    11. Run the script.
    When you reached the question maintained above, the marketing attributes will render for that business partner, if they exists or will be created if they don't exists . To be created a button that will do a navigation is required. It means that the question will have to be linked to a next question or to itself by this button (to itself is required only if it is the last or the only question in the script). To suggest to the user that he or she has to click on the button, to save, is probably better to name the button "Save".
    Octavian

  • How to change solid size automatically to a text field?

    Does anyone know how to make a solid change the scale parameter automatically when the layer above it goes longer / shorter then it? I’m trying to have a text field that can be changed and need the solid underneath it to change the scale parameter when the text goes longer or shorter then the solid. Sounds like an expression…

    I got this working with the following expression:
    xExtra=effect("xExtra")("Slider")
    yExtra=effect("yExtra")("Slider")
    x=thisComp.layer("Text 1").sourceRectAtTime().width + xExtra;
    y=thisComp.layer("Text 1").sourceRectAtTime().height + yExtra;
    [x,y]
    The Problem:
    it resizes from the middle out. I need the text justified left (which it is not, because then it is not lined up and if I drag the shape layer over to line it up as I add text it still goes from the middle out and does not completly cover the whole text) and have this expression change only the length of the box below on the right side and keep the left justified.
    Any Ideas?

  • How to resize the text field through the expression?

    It is necessary that another layer was at 150 pixels to the right of the right side of the text field.

    PACK
    Syntax
    PACK source TO destination.
    Effect:
    This statement, which is forbidden in classes, converts the content of the data object source to the data type p of length 16 without decimal places. In contrast to the conversion rules for elementary data types, a decimal separator in source is ignored. This assigns the converted content to the data object destination.
    The data type of source must be character-type, flat, and its content must be interpretable as a numeric value. The data type of destination must be flat. If destination has the data type p, the interim result is assigned to it from left to right. Surplus characters are cut off on the left, and the decimal places are determined by the data type of destination. If destination does not have the data type p, the interim result is converted to the data type of destination according to the rules in the conversion table for source field type p.
    Notes:
    The function of the statement PACK is based on the second half-byte of the code corresponding to a character in most character representations of the BCD representation for the corresponding numeric value. This compilation is generally known as "packing".
    If the source field contains a number without a decimal separator, and the target field has dobj2 of data type p with sufficient length and without decimal places, the result of the PACK statement (which is forbidden in classes) corresponds to the result of the statement MOVE.

  • Mapping to BOL layer

    Hi,
    I am trying to map the field  STRUCT.E_MAILSMT in component BP_CONT view:ContactDetails to the BOL layer.
    How do i go about?
    Regards
    Shilpi

    Hi Shilpi,
    The easiest way to find out is:
    a) Open the CN02 class of WorkAddress context node.
    b) Go to attribites tab.There you will see the Base_Entity_Name.This is the original name of BOL entity-BuilContactStandardAddress.
    c)Now go to genil_model_browser.Open the Component Set BP_APPL.Search for BuilContactStandardAddress under dependent objects.
    Hope this helps!
    Thanks and Regards,
    Rohit

  • Add a text field in ToolBar

    Hi,
    I'd like to add a text field in my toolbar like the one used by Acrobat for the Zoom. I also want to attached a menu to it. It will help me to show the user the document's list of layers, and my 'active' layer will be shown in the text field.
    I couldn't find any explanation neither in the API reference nor in the snippets exemples of the SDK.
    If someone knows...
    Thanks

    The APIs necessary to put non-buttons in a standard Acrobat toolbar are not exposed to 3rd parties at this time :(.
    if you want/need to do something like this, I would suggest using OS functionality to create a floating palette of your own.
    Leonard

  • Laying text fields on top of a graphic

    I thought the reason to use Fireworks was it's enhanced image
    compatibility with Dreamweaver.
    Is there a trick to laying a form object like a text field on
    top of a Fireworks image that was imported into dreamweaver as
    HTML?
    Thanks
    jerry H

    And either approach is troublesome, which is why you don't
    often see it done
    by experienced developers.
    Change the text size in the browser, and both methods can
    break your careful
    alignment.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "P@tty Ayers ~ACE"
    <[email protected]> wrote in message
    news:fluolr$d5m$[email protected]..
    >
    > "dream_kitchen" <[email protected]>
    wrote in message
    > news:flum2q$amb$[email protected]..
    >>I thought the reason to use Fireworks was it's
    enhanced image
    >>compatibility
    >> with Dreamweaver.
    >
    > It is. But once the image is brought into an HTML page
    (in Dreamweaver, or
    > any editor), it still has to fit within the way HTML
    works. You generally
    > can't just stack things on top of each other in HTML.
    >
    >> Is there a trick to laying a form object like a text
    field on top of a
    >> Fireworks image that was imported into dreamweaver
    as HTML?
    >
    > There are two ways I know of that you could do that. (1)
    Make the image
    > into a background image, or (2) put the text field in an
    absolutely
    > positioned div ("layer") on top of the image.
    >
    >
    > --
    > Patty Ayers | Adobe Community Expert
    > www.WebDevBiz.com
    > Free Articles on the Business of Web Development
    > Web Design Contract, Estimate Request Form, Estimate
    Worksheet
    > --
    >
    >

  • Split imported XML data into multiple text fields

    I should first describe my final project because it is very possible that I am going about this entirely wrong!
    I am trying to create an interactive PDF file which is the floor plan of our office, when you mouse over the office spaces it would popup the info for the person in that office, in fact when you click on the office space it would show additional info like computer MAC and jack numbers
    I placed the floor plan as a layer and them created a second layer with no fill/no stroke rectangles over the offices and made them buttons (office01, office02)
    I then made text fields with the info for the people, one for regular info and one for extra info (office01-data, office01-Xdata) I made these text fields buttons as well and had them "hidden until triggered"
    These info fields are all on top of one another, as in the are all the same size and in teh same location
    Then I went to the office buttons and created events "On Roll Over" "Show/Hide Buttons and Forms" and changed the visibility of the corresponding info button.
    This works like a charm!
    I hope I am clear up to this point.... my problem now is I would like to import this data both regular and extra from an excel spreadsheet or an XML file.
    That way when we get new staff or people move offices or whatever I can update the spreadsheet or XML file, rerun my InDesign file and create a new interactive PDF
    I have created the XML file
    <staffMap>
         <staff>
              <name>John Doe</name>
              <computerName<gfth56df</computerName>
              <phoneMAC>00:08:00:AB:CD:EF</phoneMAC>
         </staff>
    <staff>
              <name>John Smith</name>
              <computerName<gfth06cb</computerName>
              <phoneMAC>00:08:00:11:22:33</phoneMAC>
         </staff>
    </staffMap>
    Created a new InDesign document
    Imported the XML and placed it in a text field
    saved as a template and closed it
    Reopen and import the XML data again... and it brings it all into the text field... wonderful and useful but not what I need.
    Is it possible to import the XML data into separate test fields, or into some other separate field that I can make into a button and show/hide?
    I may end up just entering all the data directly into InDesign as I know this will work, it just does not seem like the right way to do it.
    Thanking you all in advance 

    I am still looking to get some help with this.
    I would love to know if it is not possible or any ideas at all

  • Help With TLF Text Fields and UI Scrollbar

    I've been trying to get one scrollbar to work with three TLF text fields. They are alligned from top to bottom like a column. It would seem better to just make one text field but because there are graphic symbols in the way that block the text, I made the middle text field smaller then the top, and the bottom smaller then the middle.
    Now I'm trying to figure out how to get the text from the bottom text field to scroll to the top while the text fills the empty space of each text field properly. Is there anyway to make the UI scrollbar work like this? I cant find any info.
    thanks,
    Daniel

    There is no way to do this directly from the authoring environment. You can change the code to another solid color using code.
    But you don't sound like you are a coder.
    So the best solution for you would be to turn off the back ground and just draw some artwork behind the textfields. Perhaps put it on a different layer so that it is easier to manage.

  • How to provide text formatting options to user from a text field

    Hi,
    My requirement is - in the interactive form, a comments field needs to be provided where user should be able to enter text with formatting options like
    Headers
    indentations
    bold/italic
    bullet points and numbers
    Once user enters the formatted texts in a text field, data needs to be displayed/printed in the same format. Could you help me on how to provide these formatting options to the user for a particular text field?
    I understand that once I define the text field with format XHTML (with RTF), user formatting can be captured and displayed in the same way. But I am not sure on how to provide the formatting options for the text field.
    Thank you,
    Madhu

    Hi,
    if you select a text field for Rich Text and the press Ctrl + E you'll get a bar for all available text formatting options in Acrobat/Reader.

  • Wrap a single word in a text field

    Hello everyone!
    I currently have a problem with text data that is displayed in a Flex text field <mx:Text>.
    It's a narrow textfield (100px wide) in a animated ad banner that displays content from a database. There are some words that are too long for the available space, so flash wraps some letters to the next line. I have attached a screenshot that shows the actual problem.
    The text is shown in a Java web-application as well, and since that Java app is displayed as a normale webpage, there is a lot more space for the text. I cannot put hyphens into the text because it would look weird in the normal web view.
    Is there a way to make automatic hyphenation happening when Flash wraps a single word?
    It would be perfect to get language-specific correct hyphenation, but a hyphen at the wrong spot is still better than no hyphen at all.
    Thanks for your time and help!

    I think your simplest bet would be to use mx:label and use the op
    tion truncateToFit="true". Also adjust the width so that the text appears prope
    rly. Hope this helps..!!

  • Sales order CARRIER TEXT field

    Hi,
    I am creating query through SQVI, I would like to use sales order carrier text field with the query.please advice which table and field should I use for query ?
    Thanks in advance

    Sorry, by mistake I posted the message again.
    Pls ignore it.
    Hi JK,
    Where are u entering the sales order carrier data. Is it Header Data or Item Data. Is it a long text?
    Please give more details.
    Regards,
    Vinod

Maybe you are looking for