CUSTOM CONTROL  ( long text )

Hi,
I have to implement a custom control in a dynpros of a Module Pool.
The object must have the following functions:
-read data from a field of a transaction.
-edit over new data.
-save this data, that are saved in a field of a transaction, the CJ20N.  (PS MODULE)
Anyone have a code that I can use?

Hi,
Search with the key word "[Custom Control|Custom Container in module pool program]" you will get many threads related to this.
Thanks,
Sri.

Similar Messages

  • Custom Messages Long Text not appearing

    Hi Everybody!
    We are having a problem displaying the long text of custom messages.
    After we click on the "More Information" link beside the message short text, we should get a pop-up message with the long text.
    Instead, we get a pop-up message showing an internet explorer 400 error.
    We are OK displaying long text of standard messages. Should we do something extra to display long text of custom messages?
    Thanks
    Gabriel

    Hi Atul,
    Regarding the long-text option, yes, I have marked: The "Self-Explanatory" checkbox is not checked.
    Here is the source code!
    ** VARIABLES **
      DATA: t_partner          TYPE TABLE OF bbp_pds_partner,
            x_partner          TYPE bbp_pds_partner,
            u_vendor_set       TYPE TABLE OF bbp_vendor_getlist_s,
            x_vendor_set       TYPE bbp_vendor_getlist_s,
            w_xfeld            TYPE xfeld,
            e_message          TYPE bbp_smessages_badi,
            w_guid_crmt_object TYPE crmt_object_guid,
            w_guid_bbp_guid    TYPE bbp_guid,
            w_partner_no       TYPE  bu_partner_guid,
            w_nombre           TYPE bdl_logfun,
            w_process          TYPE bbp_proc_type,
            w_status           TYPE xfeld,
            w_header           TYPE bbp_pds_po_header_d.
        CALL FUNCTION 'BBP_PD_PO_GETDETAIL'
          EXPORTING
            i_guid          = iv_doc_guid
            i_with_itemdata = 'X'
          IMPORTING
            e_header        = w_header
          TABLES
            e_partner       = t_partner.
        IF iv_cv_updated_active_doc = space.
          w_guid_bbp_guid   = iv_doc_guid.
          w_guid_crmt_object = w_guid_bbp_guid .
          LOOP AT t_partner INTO x_partner WHERE partner_fct = '00000019'.
            w_partner_no = x_partner-partner_no.
    *     This function check if the partner is valid.
            CALL FUNCTION 'Z_BC_BLOQ_GET'
              EXPORTING
                iv_bu_partner_guid = w_partner_no
              IMPORTING
                ev_xfeld           = w_xfeld.
            IF w_xfeld IS NOT INITIAL.
    *  Get the name of the vendor.
              CALL FUNCTION 'BBP_VENDOR_GETINFO'
                EXPORTING
                  partner_guid       = w_partner_no
                  x_with_name        = 'X'
                  x_show_inv_parties = 'X'
                  purch_pd_org_type  = 'O'
                TABLES
                  vendor_set         = u_vendor_set.
              READ TABLE u_vendor_set INTO x_vendor_set INDEX 1.
              CLEAR e_message.
              e_message-msgty   = 'A'.
              e_message-msgid   = 'ZSRM_ERRORES'.
              e_message-msgno   = '005'.
              e_message-msgv1   =  x_vendor_set-partner.
              e_message-msgv2   =  x_vendor_set-vendor_name.
              e_message-msgv3   =  x_vendor_set-vendor_no.
              APPEND e_message TO et_messages.
            ENDIF.
            CLEAR x_partner.
          ENDLOOP.
      ENDIF.
    ENDMETHOD.

  • Creation of New Message by Customer - No Long Text

    I am creating test messages as an end-user in our Service Desk. After I send the message and review it, the long text has disappeared. Has anyone else experienced this?
    Thanks.
    Jackie

    Hi Jackie,
    Is your Basis part of the message is getting created.
    Are you using the standard transaction type.
    Check the Text in the Transaction data ---Overview tab
    Both short text and long text should be present with other system details.
    Regards
    Prakhar

  • Customer Specific long text object to be create

    Hi all,
    I have to create and maintain Long text in my module pool program , just like some std. transaction have it at header.
    I know new text object can be created at SE75 with textid. But don't know how to call MS-editor create, save and display
    long text , just like most of std. transaction in SAP.
    Please help me with some sample codes and steps in this regards.
    Thanks in advance,
    Vinit

    hi Vineet,
    Not sure this wud wrk or not but give it a try...
    Use some message no of a message class created in txn se91 if that message gets display where u need to show the long text. Just remove the tick from the checkbox which says self explainatory goto longtext and write the remarks over there
    I hope i am clear..

  • Customizing SE91 Long Text  - External Link

    Somebody knows how to customize an external link in messages long text?
    i had a look in "creating additional infomation?
    but don't understand that form... i think there it is possible via command or link. but i can't find out the syntax..

    try this:
    Tip n°6: how to add hyperlink inside message long text

  • How to create customized long text in IDOC status record in WE02?

    Hi,
    In WE02 you can see the status of the idoc. If you double click on the short text that is coming in the status, you can see the long text. How do i customized my long text to that screen?

    To create a message long text in SE91:
        1. Place the cursor on the corresponding message.
        2. Click the Long text pushbutton.
        3. Enter the long text.
        4. Save the data.
    Edited by: YTL on Jun 27, 2011 5:51 PM

  • Long text field required in customer field

    HI everybody,
      We are in the implementation of SRM 5.0. Here requirement is using z include structure, the customer fields have to be added.
    In structure, i can add my own fields. But customer wants long text in customer fields.
    If i maintain a field with 300 character means, screen displayed as single field as lengthy one.
    But customer wants long text.Main worry from customer side is, they want to able to copy and paste paragraph into SRM customer field.
    So please suggest me that how can i acheive this issue.
    Txns in advance

    Hi.
    You call read/write this field with FM REAd_TEXT of WRITE_TEXT, check this example:ù
    ztdline       TYPE tline           OCCURS 0   WITH HEADER LINE,
            CALL FUNCTION 'READ_TEXT'
              EXPORTING
                client                  = sy-mandt
                id                      = 'F01'
                language                = 'I'
                name                    = ekko-ebeln
                object                  = 'EKKO'
              TABLES
                lines                   = ztdline
              EXCEPTIONS
                id                      = 1
                language                = 2
                name                    = 3
                not_found               = 4
                object                  = 5
                reference_check         = 6
                wrong_access_to_archive = 7
                OTHERS                  = 8.
            IF sy-subrc <> 0.
         MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                 WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
            ENDIF.
    the table ztdline have the long text.

  • Line-logging and protected text on custom control, protect_lines

    I have a module pool with various screens which contain texts.  Because of other requirements, it was necessary to create custom controls which show those texts as a sort of preview pane, that it, a white box which shows the text and allows one to enter new text.  Now the customer would like the text to have log lines and have it be protected.  That is to say, once you enter a text and save your work, both the log line and the new text are preserved and grayed-out allowing only new lines to be entered - you can't go back and change old lines.  Research I've done in the past leads me to believe that using the method protect_lines in the C_TEXTEDIT_CONTROL class is the way to go.  However, I have been having all kinds of trouble with it.  Are there examples which show how to use this?  For example, how do I put a protected log line in the white box, allow the customer to add a new line, protect that line on save and, at the same time, if they don't enter a new line, don't save the log line?
    I've mostly accomplished the above, however, the following still eludes me:
    I have used CL_GUI_TEXTEDIT class to create a custom control for text entry. I am using the PROTECT_LINES method to afix a date/time stamp and then make it non-editable. The problem is, when I am in the editable area and I hit back-arrow until the cursor jumps up to the end of the protected date/time stamp, when I begin typing again, it pulls the last part of the protected text down into the editable area. For example, if your protected text ends in a phone number, say "555-1212", after back-arrowing up to the end of it and beginning to type again, the "1212" will be down in the editable area and will be changeable. Can anyone tell me what I am doing wrong?
    Edited by: Buckman Michael on Dec 3, 2008 6:37 PM

    Further research has led me to believe that the PROTECT_SELECTION method solves this problem.  Specifically, if you look at include file LIQS0F50 at about line 1065 you can see how QM01/QM02 handles this on screen 7710 of SAPLIQS0 when you have line-logging turned on.

  • Custom long text error

    Hi
           We created a long text id 'XYXX' for long text object 'MATERIAL' to store additional material long text like basic data, internal comment , inspection text. When I am creating material/Changing material custom additional long text is saving perfectly with text id 'XYXX'.
          But when we are updating material using IDOC it is giving an error 'ID 'XYXX' for long text object MATERIAL does not exit'.
    Please suggest what might be the issue.

    The easiest solution would be to put a breakpoint or a watchpoint at the error message and analyze the condition while an IDOC is being processed.  Have you tried that?

  • Hide the custom control while changing the tab

    Hello Experts,
    I am using many screens & subscreens in my application. In a tabstrip control, I am calling one subscreen which has Custom Control to display the text editor.
    When I change the tab say for ex from TAB1 to TAB2, the custom control with text editor remains at the same place. In TAB2 I dont want custom control of TAB1.
    Thank you to go through my query.
    Regards,
    Bhavina
    Edited by: Rob Burbank on Aug 23, 2010 5:12 PM

    Hello Alej,
    I have created one subscreen which i need in a tabstrip control. Now this subscreen has one Editor Control (CL_GUI_TEXTEDIT->TEXT_EDITOR)  which I put on Custom Control. Custom Control is placed in the subscreen with SE51.
    to put the editor control  of CL_GUI_TEXTEDIT, I need Custom Control on screen. And I didnt find any property using which we can hide custom control.
    Is there any way using classes or methods, can we put Editor Control without using the custom control of screen.
    I think in your prob, you had ALV, that we can put on another subscreen, but in my prob how can we remove custom control Please Explain.
    Thanks & Regards,
    Bhavina

  • Long text creation in custom screens

    Hi
    Can we add the functionality of adding a long text in the custom screen.
    The long text should be same as the one which SAP provides in standard transactions.
    If possible please tell me the solution.
    Thanks & Regards
    Kapil

    HI,
    yes you can add using TEXT AREA control here is the sample code.
    insert a custom control area in the screen and create a object of the text editor.
    check this code for PBO and PAI.
    here TEDITOR is the custom contorl area name on screen
    <b>MODULE PBO OUTPUT.
      IF EDITOR IS INITIAL.
    *   set status
    SET pf-status '1111'.
    *   create control container
        CREATE OBJECT TextEdit_Custom_Container
            EXPORTING
                CONTAINER_NAME = 'TEDITOR'
            EXCEPTIONS
                CNTL_ERROR = 1
                CNTL_SYSTEM_ERROR = 2
                CREATE_ERROR = 3
                LIFETIME_ERROR = 4
                LIFETIME_DYNPRO_DYNPRO_LINK = 5.
        if sy-subrc ne 0.
    *      add your handling
        ENDif.
        mycontainer = 'TEDITOR'.
    *   create calls constructor, which initializes, creats and links
    *   TextEdit Control
        create object editor
              exporting
               parent = TextEdit_Custom_Container
               WORDWRAP_MODE =
    *               cl_gui_textedit=>wordwrap_off
                  cl_gui_textedit=>wordwrap_at_fixed_position
    *              cl_gui_textedit=>WORDWRAP_AT_WINDOWBORDER
               WORDWRAP_POSITION = line_length
               wordwrap_to_linebreak_mode = cl_gui_textedit=>true.
    *   to handle different containers
        container_linked = 1.
        refresh mytable.
      ENDIF.
    ENDMODULE.                 " PBO  OUTPUT
    MODULE pai INPUT.
    case ok_code.
    WHEN 'SAVE'.
    *   retrieve table from control
    clear: txt.
          call method editor->get_text_as_r3table
                  importing table = mytable.
          loop at mytable into wa.
             concatenate txt wa into txt
             separated by '|'.
          endloop.
          shift txt left.
          length = strlen( txt ).
          ztext-CLUSTR = length.
          ztext-text   = txt.
          modify ztext.
          clear: ztext.
          refresh: mytable.
            call method editor->set_text_as_r3table
                  exporting table = mytable.
          Message s000(zwa).
    when 'DISP'.
          select single * from
          ztext
          where fund = ztext-fund.
         SPLIT ztext-text AT '|' INTO TABLE mytable.
            call method editor->set_text_as_r3table
                  exporting table = mytable.
    endcase.
    clear: ok_code.
    ENDMODULE.                 " pai  INPUT</b>
    Regards,
    Wasim Ahmed

  • How to create a custom control of a button where the look will be applied to all others but not the Boolean text?

    Hi all
    I would like to create a customized button as a master so that if I change the look of the master all other buttons will change too.
    I have done this with a custom control as a "strict type def" otherwise the look will not change BUT If I do this as a strict type def I cannot change the Boolean text anymore which should be different on every button.
    How can I create a master control of a button where the look will be applied to all others but not the Boolean text?
    Stay Hungry, Stay Foolish
    Solved!
    Go to Solution.

    Steve Chandler wrote:
    I don't think you can do that. I just looked and as I suspected the Boolean text property is read only for strict typedefs so you cannot use property nodes to change the text.
    As a workaround just make it a typedef. When you want to change the look open the typedef and make it strict, make your changes, then make it non strict again. You will have to update the Boolean text again for all instances. Kind of a pain. Maybe this is something for the idea exchange.
    Kudos for being sneaky.
    I like these creative work-arounds!
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How to show long text in TextView control in formatted form?

    Hi,
    I have requirement to show long text from backend text edit control to WD application. I am using READ_TEXT Fm to read the long text and passing it to text view UI element.
    The text is shown in simply one long line but I want it to show in the same format as stored in backend textedit control.
    If I take textedit UI control then it shows the text in formatted form.
    Could you please let me know how to achieve these for TextView control? My requirement is that I have to use only TextView control.
    Thanks,
    Chandra

    Hi,
    The Problem solved to some extend but still the exact formatting is not happening though i am using cl_abap_char_utilities=>newline.
    for eg. if the long text is as below.
    "To display the external component, you can now embed an interface view of any window of this component in a window of your current embedding a view of oneu2019s own component. By setting up navigation from one outbound plug of a view of your inbound plug of the inter external component, you enable the external component to be displayed. New line ."
    and if in backend the Last line " New line ." is on next line, on WD it is not displayed on next line.
    Thanks,
    Chandra

  • How to store long text in Rich Text Format in custom table

    Hi
    I have a requirement to store long text in the RTF in custom table.. Is this possible..
    I am aware of a way to store them as Standard texts (SO10).. But not sure on if we can store them in tables..
    Plz advise
    Thanks
    Geetha

    Not that familiar with RTF, but you could try and create a field of type (x)string in your table and store the data there.

  • Long text in table control lines

    If i put long text  buttons on the  table control coulum, when the line  is deleted  from the table, the text for tha line  are permenantly deleted before the screen is saved in the user command. how do i correct the problem ?
    regards
    Rendani

    Use the FM for text delete when u press save button and not at table control delete command.
    physically delete the line from table control and put it in internal table which can be used for deletion purpose at time of actual deletion...

Maybe you are looking for

  • Hierarchy

    I have a table coming in from ECC. Based on this table details, I need to build a custom hierarchy in BW. Can you please guide me the steps to achieve this. I am trying to get details as to how i would link the parent, child and especially the next I

  • How to find out what products are installed 10G

    I have been getting questions lately "Is OLAP installed, locator... " in 10G, normally there are tables sys tables that tell generally whats installed but not specifically. Then in the 11G enterprise manager I saw the database configuration pack that

  • ...last question :  what's the best quality codec for exporting a clip?

    I have to export a Motion clip with the best possible quality (with no loss of image or compression whatsoever). what do you guys suggest? H264? or is there any better codecs? (I noticed that H264 create 'bleeding stains' on gradient backgrounds...)

  • Why does Labview allow a cursor in a indicator?

    Hello,     Why does Labview allow the user to position the cursor with the mouse inside a numeric indicator? Users think that just because they can put a cursor they should be able to type something and enter data. Is there a way to disable/stop the

  • CS5 Error 23 :: 46 when rendering

    Using AE CS5 I get this error whenever I try to render: After Effects error: Could not convert Unicode characters. (23 :: 46) I searched online and found this solution to the same error code for CS3 and CS4, but I tried it and it didn't work, I'm sti