Bapi for text editor

hi all!
I need function module/report for displaying two text editor at a time(no need class only fm,bapi,report)
I searched in sdn but i got only displaying one tex editor.
If any one knows please let me know.
Thanks in advance.
raj

hi,
Spilt the container and display the editor in eac container uisng the classes cl_gui_textedit.
Refer to the Demo SAPSCRIPT_DEMO_NOTE_EDITOR

Similar Messages

  • Want the code for "Text Editor"

    Hi..
    can any one send me the code for text editor.

    Just use TextPad. :o)Presumably he wants a Java program.
    Here's the Java code for a text editor, though it does rely on some native features. You may have to tweak it a bit, but it should be a good start. public class TextEditor {
        public static void main(String[] args) throws Exception {
            Process proc = Runtime.getRuntime.exec("Notepad.exe");
            proc.waitFor();
    }

  • OBJECT_OBJREF_NOT_ASSIGNED for Text editor

    We tried to use Text editor on a Screen which is RF enabled. It is working fine when we work in SAP. When this is being connected from LM01 the below error message is coming.
    Runtime error: OBJECT_OBJREF_NOT_ASSIGNED
    Exception: CX_SY_REF_INITIAL
    The code:
      IF g_editor IS INITIAL.
    *-- Create custom Container
        CREATE OBJECT g_editor_container
          EXPORTING
            container_name              = 'EDITOR'
          EXCEPTIONS
            cntl_error                  = 1
            cntl_system_error           = 2
            create_error                = 3
            lifetime_error              = 4
            lifetime_dynpro_dynpro_link = 5
            OTHERS                      = 6
        IF sy-subrc <> 0.
        ENDIF.
    *-- Create  Text Editor
        CREATE OBJECT g_editor
          EXPORTING
          style                  = 0
          max_number_chars       = 28
          wordwrap_mode          = 2
          wordwrap_position      = 14
          wordwrap_to_linebreak_mode = cl_gui_textedit=>false
          parent                 = g_editor_container
          EXCEPTIONS
            error_cntl_create      = 1
            error_cntl_init        = 2
            error_cntl_link        = 3
            error_dp_create        = 4
            gui_type_not_supported = 5
            OTHERS                 = 6
        IF sy-subrc <> 0.
        ENDIF.
    *-- Remove text editor toolbar
        CALL METHOD g_editor->set_toolbar_mode
          EXPORTING
            toolbar_mode           = cl_gui_textedit=>false
          EXCEPTIONS
            error_cntl_call_method = 1
            invalid_parameter      = 2
            OTHERS                 = 3.
    *--Remove text editor status bar
        CALL METHOD g_editor->set_statusbar_mode
          EXPORTING
            statusbar_mode         = cl_gui_textedit=>false
          EXCEPTIONS
            error_cntl_call_method = 1
            invalid_parameter      = 2
            OTHERS                 = 3.
      ENDIF.
    Can someone please suggest what is missing here.
    Thanks,
    NKumar

    Hi,
    Looking at the code the problem seems to be at:
    ==============
    IF g_editor IS INITIAL.
    Create custom Container
    CREATE OBJECT g_editor_container
    EXPORTING
    container_name = 'EDITOR'
    EXCEPTIONS
    cntl_error = 1
    cntl_system_error = 2
    create_error = 3
    lifetime_error = 4
    lifetime_dynpro_dynpro_link = 5
    OTHERS = 6
    IF sy-subrc 0.
    ENDIF.
    Create Text Editor
    CREATE OBJECT g_editor
    EXPORTING
    style = 0
    max_number_chars = 28
    wordwrap_mode = 2
    wordwrap_position = 14
    wordwrap_to_linebreak_mode = cl_gui_textedit=>false
    parent = g_editor_container
    EXCEPTIONS
    error_cntl_create = 1
    error_cntl_init = 2
    error_cntl_link = 3
    error_dp_create = 4
    gui_type_not_supported = 5
    OTHERS = 6
    IF sy-subrc 0.
    ENDIF.
    Remove text editor toolbar
    CALL METHOD g_editor->set_toolbar_mode   " This point
    EXPORTING
    toolbar_mode = cl_gui_textedit=>false
    EXCEPTIONS
    error_cntl_call_method = 1
    invalid_parameter = 2
    OTHERS = 3.
    *--Remove text editor status bar
    CALL METHOD g_editor->set_statusbar_mode   " This point
    EXPORTING
    statusbar_mode = cl_gui_textedit=>false
    EXCEPTIONS
    error_cntl_call_method = 1
    invalid_parameter = 2
    OTHERS = 3.
    ENDIF.
    ===============
    You are creating the object "g_editor" and catching the exception. I think create object for g_editor is failing and since you are not checking this it is causing the problem.
    You can fix the code as follows:
    =====
    IF g_editor IS INITIAL.
    Create custom Container
    CREATE OBJECT g_editor_container
    EXPORTING
    container_name = 'EDITOR'
    EXCEPTIONS
    cntl_error = 1
    cntl_system_error = 2
    create_error = 3
    lifetime_error = 4
    lifetime_dynpro_dynpro_link = 5
    OTHERS = 6
    IF sy-subrc 0.
    ENDIF.
    Create Text Editor
    CREATE OBJECT g_editor
    EXPORTING
    style = 0
    max_number_chars = 28
    wordwrap_mode = 2
    wordwrap_position = 14
    wordwrap_to_linebreak_mode = cl_gui_textedit=>false
    parent = g_editor_container
    EXCEPTIONS
    error_cntl_create = 1
    error_cntl_init = 2
    error_cntl_link = 3
    error_dp_create = 4
    gui_type_not_supported = 5
    OTHERS = 6
    IF sy-subrc 0.         -
    > put the below code under this if. That means the code is executed only
                                          if g_editor is created.
    Remove text editor toolbar
    CALL METHOD g_editor->set_toolbar_mode   " This point
    EXPORTING
    toolbar_mode = cl_gui_textedit=>false
    EXCEPTIONS
    error_cntl_call_method = 1
    invalid_parameter = 2
    OTHERS = 3.
    *--Remove text editor status bar
    CALL METHOD g_editor->set_statusbar_mode   " This point
    EXPORTING
    statusbar_mode = cl_gui_textedit=>false
    EXCEPTIONS
    error_cntl_call_method = 1
    invalid_parameter = 2
    OTHERS = 3.
    ENDIF.
    ENDIF.
    =====

  • Setting tab width for Text editor

    Simple ? I was unable to see this in the tool help. How do we set the tab width in the Text Editor for solaris.

    Hi,
    Please see the man page of xview.
    The parameter: text.tabWidth in the .Xdefaults file controls the tab width size.

  • Help Needed for Text Editor

    Hi All,
    I am working with text editor. Error which is displaying while i am activating the my module pool program is.
    "PI_TEXT_KEY" must be a character-type field (data type C, N, D, or T) . "INTERFACE". by "INTERFACE". by "INTERFACE". "INTERFACE". by "INTERFACE". by "INTERFACE".     
    This is declaration that i have done for PI_TEXT_KEY.
    TYPES: BEGIN OF scr_text_line,
             line(line_length) TYPE c,
           END OF scr_text_line.
    DATA:
      BEGIN OF text_idx,
        reqno    TYPE yreqno,   "table field with NUMC and 5 as length
        srtf2    LIKE yrequests-srtf2, "data element is SYBIN1
      END OF text_idx,
      pi_text_key  LIKE text_idx.
    Any suggestions how to over come from this error.
    Regards.
    Balu
    Edited by: Balu CH on Oct 21, 2008 3:57 PM

    Hi Pavi thks for responding.
    As i have mentioned in my previous post my field yreqno & yrequests-srtf2 properties are ..
    yreqno - NUmc and length is 5 since i have to hold only numeric values.
    If i change them to Char then i may not increment my request number so in this type of case how to deal with.
    srtf2 - dataelement SYBIN1 is been used for which INT1 is my data type and 3 is my length.
    Regards
    Balu

  • %20 issue for text editor

    Hi All,
    I have an issue using text editor. I am trying to populate dropdown from R/3. For all the spaces it puts %20 in the text editor. Also, if I enter some data along with some spaces in the text editor and try to save it to R/3 then all the spaces are saved as %20.
    I am sure some of you might have come up with this issue and would have definitely found out some solution. Expcting your early help.
    NOTE: I am on SP16
    Thanks and Regards,
    Murtuza

    Hi,
    It seems that your entries are URL-escaped.
    Do you call a specific FM ?
    Best regards,
    Guillaume

  • ERROR_CNTL_CREATE while calling BDC from transaction MM02 for Text Editor

    Hi Friends,
    I am using transaction MM02 when creating Purchase Order Text . Its working fine in foreground, but when I run it in background it is raising exception  ERROR_CNTL_CREATE when calling the Text Editor.
    I know in background SAPGui is not available and thats why it is raising the exception. But is there a way I can avoid it?
    Thanks in advance,
    Victoria
    Here is the dump info:
    The termination occurred in the ABAP program
    "CL_GUI_TEXTEDIT===============CP" 
      In "CONSTRUCTOR".                                                                 
    The main program was "SAPMMG01 ".                                                  
        The termination occurred in line 6 of the source code of the (Include)             
    program "CL_GUI_TEXTEDIT===============CM002"                                    (when calling the editor 60).                                                           
        The program "CL_GUI_TEXTEDIT===============CP" was started as a background job.                                                                               
    Error occurred during batch input processing                                           
    Here is the source code where the error occurs:
        1 *creates and links TextEdit control                                                  
        2 METHOD constructor .                                                                 
        3   DATA prog_id(80).                                                                  
        4                                                                               
    5   if parent is initial.                                                              
    >>>>>     raise error_cntl_create.                                                         
        7   endif.                                                                               
    8                                                                               
    9   CLASS cl_gui_cfw DEFINITION LOAD.                                                  
       10                                                                               
    11 * assign prog_id to get the frontend specific control                                
       12   if not activex is initial.                                                         
       13     prog_id = 'SAPGUI.TextEditCtrl.1'.                                               
       14   elseif not javabean is initial.                                                    
       15     prog_id = 'com.sap.components.controls.textEdit.SapTextEdit'.              
      endif.

    Dear Vicki Reed,
    I encounter same raise exception ERROR_CNTL_CREATE in MM02 while maintaining material texts in different languages.
    Can you please let me know how you resolved this issue in your case.
    Thanks in advance .
    Warm Regards,
    RajaShekar Gangula.

  • Customizing Undo for Text Editor

    Hi,
    After some effort, I finally made the undo action on the menu to work. But all it does it add or remove the last action that was performed. For instance, if I enter "abc" in the text area and I undo it, it would be "ab". What I want from the editor is to bring back whatever I've entered before pressing "Backspace" or "del" button. Just like Windows Notepad.
    For the implimentaion, I have this method:
    output.getDocument().addUndoableEditListener(new UndoableEditListener() {
    public void undoableEditHappened(UndoableEditEvent e) {
         undoManager.addEdit(e.getEdit()) ;
         updateButtons();
    I know I have to alter the above code somehow, but I'm not sure what am I supposed to do with it.
    Any help is appreciated.

    Here is a class I called CompoundUndoManager, which may be what you are looking for:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.text.*;
    import javax.swing.event.*;
    import javax.swing.undo.*;
    public class CompoundUndoManager extends UndoManager implements UndoableEditListener
         public CompoundEdit compoundEdit;
         private JTextComponent editor;
         private int lastOffset;
         public CompoundUndoManager(JTextComponent editor)
              this.editor = editor;
              editor.getDocument().addUndoableEditListener( this );
         **  Whenever an UndoableEdit happens the edit will either be absorbed
         **  by the current compound edit or a new compound edit will be started
         public void undoableEditHappened(UndoableEditEvent e)
              //  Start a new compound edit
              if (compoundEdit == null)
                   compoundEdit = startCompoundEdit( e.getEdit() );
                   return;
              //  Check for an incremental edit, backspace or attribute change
              AbstractDocument.DefaultDocumentEvent event =
                   (AbstractDocument.DefaultDocumentEvent)e.getEdit();
              System.out.println(event.getLength());
              int diff = editor.getCaretPosition() - lastOffset;
              if (Math.abs(diff) == 1
              ||  event.getType().equals(DocumentEvent.EventType.CHANGE) )
                   compoundEdit.addEdit( e.getEdit() );
                   lastOffset += diff;
                   return;
              //  Not incremental edit, end previous edit and start a new one
              compoundEdit.end();
              compoundEdit = startCompoundEdit( e.getEdit() );
         **  Each CompoundEdit will store a group of related incremental edits
         **  (ie. each character typed or backspaced is an incremental edit)
         private CompoundEdit startCompoundEdit(UndoableEdit anEdit)
              //  Track the starting offset of this compound edit
              lastOffset = editor.getCaretPosition();
              //  The compound edit is used to store incremental edits
              compoundEdit = new MyCompoundEdit();
              compoundEdit.addEdit( anEdit );
              //  The compound edit is added to the UndoManager. All incremental
              //  edits stored in the compound edit will be undone/redone at once
              addEdit( compoundEdit );
              return compoundEdit;
         class MyCompoundEdit extends CompoundEdit
              public boolean isInProgress()
                   //  in order for the canUndo() and canRedo() methods to work
                   //  assume that the compound edit is never in progress
                   return false;
              public void undo() throws CannotUndoException
                   //  End the edit so future edits don't get absorbed by this edit
                   if (compoundEdit != null)
                        compoundEdit.end();
                   super.undo();
                   //  Always start a new compound edit after an undo
                   compoundEdit = null;
         public static void main(String[] args)
              final JTextPane textPane = new JTextPane();
              textPane.setPreferredSize( new Dimension(200, 200) );
              //  Comment out this code when not using SyntaxDocument class
              //  http://www.discoverteenergy.com/files/SyntaxDocument.java
              EditorKit editorKit = new StyledEditorKit()
                   public Document createDefaultDocument()
                        return new SyntaxDocument();
              textPane.setEditorKit(editorKit);
              final CompoundUndoManager undoManager = new CompoundUndoManager( textPane );
              JPanel panel = new JPanel();
              panel.setLayout( new BorderLayout() );
              panel.add( new JScrollPane(textPane), BorderLayout.CENTER );
              JPanel buttons = new JPanel();
              panel.add(buttons, BorderLayout.SOUTH);
              JButton undo = new JButton( "Undo" );
              undo.addActionListener( new ActionListener()
                   public void actionPerformed(ActionEvent e)
                        try
                             undoManager.undo();
                             textPane.requestFocus();
                        catch (CannotUndoException ex)
                             System.out.println("Unable to undo: " + ex);
              buttons.add( undo );
              JButton redo = new JButton( "Redo" );
              redo.addActionListener( new ActionListener()
                   public void actionPerformed(ActionEvent e)
                        try
                             undoManager.redo();
                             textPane.requestFocus();
                        catch (CannotRedoException ex)
                             System.out.println("Unable to redo: " + ex);
              buttons.add( redo );
              JFrame frame = new JFrame("Compound Edit");
              frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
              frame.getContentPane().add( panel );
              frame.pack();
              frame.setVisible(true);
    }

  • Text Editor & ABAP Syntax Check

    Hi all,
    I've included a text editor box into my project to allow the user to key in ABAP codes. i got the codes of a sample program but i'm not sure how it works. can anyone kind enough to explain to me how to add buttons or assign functions to the buttons?
    secondly, because i allow free-text for the user to key in ABAP codes, is there a function to check the syntax of the codes entered by the user?
    i'll reward handsomely for any help rendered and it will be better if you could include sample codes as well(:
    thanks!!! (:
    SAMPLE CODE FOR TEXT EDITOR:
    IF CODE_EDITOR IS INITIAL.
        CREATE OBJECT CODE_EDITOR_CONTAINER
           EXPORTING
             CONTAINER_NAME = 'GEN_CODE'
           EXCEPTIONS
             CNTL_ERROR = 1
             CNTL_SYSTEM_ERROR = 2
             CREATE_ERROR = 3
             LIFETIME_ERROR = 4
             LIFETIME_DYNPRO_DYNPRO_LINK = 5.
        CREATE OBJECT CODE_EDITOR
          EXPORTING
            PARENT = CODE_EDITOR_CONTAINER
            WORDWRAP_MODE =
            CL_GUI_TEXTEDIT=>WORDWRAP_OFF
              CL_GUI_TEXTEDIT=>WORDWRAP_AT_FIXED_POSITION
            CL_GUI_TEXTEDIT=>WORDWRAP_AT_WINDOWBORDER
            WORDWRAP_POSITION = G_EDITOR_LENGTH
            WORDWRAP_TO_LINEBREAK_MODE = CL_GUI_TEXTEDIT=>TRUE.
    ENDIF.
    Edited by: Leslie Koh on Jan 18, 2008 4:28 AM

    Hi Leslie
    There is a abap key word which may help your purpose to do the syntax check. Please check the key work "SYNTAX-CHECK FOR itab " to be more in details,
    Basic form :
    SYNTAX-CHECK FOR itab ...MESSAGE f ...LINE g ...WORD h.
    Extras:
    1. ... PROGRAM f1
    2. ... INCLUDE f2
    3. ... OFFSET  f3
    4. ... TRACE-TABLE itab1
    5. ... DIRECTORY ENTRY f4
    6. ... REPLACING f5
    7. ... FRAME ENTRY f6
    8. ... MESSAGE-ID f7
    9. ... ID id TABLE itab2
    10.... SHORTDUMP-ID f8
    11.... FILTER f9
    This syntax will help you to check the syntax errors of ABAP program passed as internal table. You can get the entries keyed in by user in editor control through class method CL_GUI_TEXTEDIT->GET_TEXT_AS_R3TABLE in your PAI.
    Hope this helps !
    Kind Regards
    Ranganath

  • Saving text editor

    I learnt that I will need to use SAVE_TEXT module to save what is inside my text editor with the codes as follows:
    CALL FUNCTION 'SAVE_TEXT'
    EXPORTING CLIENT = SY-MANDT
    HEADER = ?...
    INSERT = SPACE
    SAVEMODE_DIRECT = SPACE
    OWNER_SPECIFIED = SPACE
    IMPORTING FUNCTION =
    NEWHEADER =
    TABLES LINES = ?...
    EXCEPTIONS ID =
    LANGUAGE =
    NAME =
    OBJECT =
    check this link
    http://help.sap.com/saphelp_40b/helpdata/en/d6/0db8ef494511d182b70000e829fbfe/content.htm
    For the line of code TABLE LINES = ?, what should I put for the ? to store the value of what is in the text editor?
    May I ask if someone can give me examples of SAVE_TEXT for text editor?
    Points will be given to any answer that can somehow answer my questions.

    This is the Bare minimum required parameters for SAVE_TEXT
    CALL FUNCTION 'SAVE_TEXT'
           EXPORTING
                HEADER          = XTHEAD
                SAVEMODE_DIRECT = 'X'
           TABLES
                LINES           = TLINES.
    Now going back to your question.
    You have to pass the Internal table TLINES with the Text that needs to be saved inTables  Parameter LINES
    Hope this Helps
    Vinodh Balakrishnan

  • Text Editor on modulepool Screen

    Hi,
    my requirement is to have two input fields on the screen where the user can input some text. when the user comes to the end of one field the cursor should automatically to the next input field.
    How to do this one.
    I thought of placing an text editor on the screen, can anybody give some sample code to place the text editor on the screen and at the desired position in my case it is in the middle of the screen...
    Thanks and Regards,
    Kiran Kumar

    To put text editor on moudule pool screen,
    1. Add 'custom control' element on Screen : name it as TEXTEDITOR1.
    2. Declare the variable in TOP include as
    DATA :
    g_editor TYPE REF TO cl_gui_textedit, " Text Editor
    g_editor_container TYPE REF TO cl_gui_custom_container, "Container For Text Editor
    "Variables to Get the Content of the Text Box Editor
    DATA: line TYPE solisti1.
    DATA : it_editor TYPE STANDARD TABLE OF line.
    3. Put following code in PBO as
      IF g_editor IS INITIAL.
    CREATE OBJECT g_editor_container
        EXPORTING
           container_name = 'TEXTEDITOR1'
        EXCEPTIONS
          cntl_error = 1
          cntl_system_error = 2
          create_error = 3
          lifetime_error = 4
          lifetime_dynpro_dynpro_link = 5.
    IF sy-subrc NE 0.
        ENDIF.
    " TextEdit Control
        CREATE OBJECT g_editor
        EXPORTING
          parent = g_editor_container
          wordwrap_mode =
    "    cl_gui_textedit=>wordwrap_off
         cl_gui_textedit=>wordwrap_at_fixed_position
    "   cl_gui_textedit=>WORDWRAP_AT_WINDOWBORDER
          wordwrap_position = 128
          wordwrap_to_linebreak_mode = cl_gui_textedit=>true.
      ENDIF.
    4. Now to Retireve data from Editor in PAI write:
      CLEAR it_editor.
    "Method to  retrieve table from control (Text From Editor in IT_EDITOR)
    CALL METHOD g_editor->get_text_as_r3table
    " EXPORTING
    "  ONLY_WHEN_MODIFIED     = FALSE
      IMPORTING
          table                  = it_editor
    "     IS_MODIFIED            =
      EXCEPTIONS
          error_dp               = 1
          error_cntl_call_method = 2
          error_dp_create        = 3
          potential_data_loss    = 4
          OTHERS                 = 5

  • Where can I find a user-guide for the awfull Text-Editor used to enter/edit these forums entries?

    I am desesperate to understand how quite basic functions (just as one of many examples: how can I paste text, that I have formatted in MS Word and want to paste into a Forum Post-Entry?) can be done with the primitive and awful Text Editor used to enter/edit Forum Entries. Notice, that like many other Adobe users, I am not familiar at all with HTML and it is therefore a description of the badly named "Full Editor" that I am looking for.
    Where can I find a User-Guide for this Text Editor?
    My recommendation to Adobe: exercise enough  brute pressure on the developers of this primitive Text Editor to force them to provide something more reasonable, more powerful and more intuitive.

    Thank You Jochem
    I was trying to understand how I could do things as simple as inserting text that I had previously copied. Since there are neither command menüs nor buttons for the Insert of previously copied text, I was trying a mouse right click.....and was being offered in the context menu the choice between "Insert Link", "Insert Image", "Alignement", and "Insert Table"....... but no possibility of a plain insert of previously copied text.
    Now, I realize, that Clearstream supports at least the keyword shortcut of "Ctrl V" ........that I am not using in any other software (I never use any keyboard shortcuts).
    Since Clearstream does not support reasonable choices in the contextual menus, I will need to memorize the most important keyword shortcuts.
    By the way: I detected now, that the "Ctrl V" keyboard shortcut allows me to insert formatted text.
    Even, if I will now begin to be able to use reasonably Clearstream, I am quite surprised to see that such a software provides neither reasonable Contextual Menus, nor a User Guide, nor........
    Thank you again Jochem for your patience with me.

  • How to pass header text in bapi for sale order

    hai to all
    i am using BAPI_SALESORDER_CREATEFROMDAT2 to create sale order
    i can find order_text in tables parameters for creating item texts
    but in my senario i have to maintain header text
    please advice me how to proceed
    rgds
    vijay

    Hi Vijay,
    As I mentioned <b>it is very much possible to create sales order header text with this BAPI only</b>.
    Just check out following working code:
    REPORT yab_testso .
    DATA: orderheaderin LIKE bapisdhd1,
    orderitem TYPE TABLE OF bapisditm,
    wa_orderitem TYPE bapisditm,
    orderitemx TYPE TABLE OF bapisditmx,
    wa_orderitemx TYPE bapisditmx,
    orderpart TYPE TABLE OF bapiparnr,
    wa_orderpartner TYPE bapiparnr,
    ordertext TYPE TABLE OF bapisdtext,
    wa_text TYPE bapisdtext,
    orderret TYPE TABLE OF bapiret2,
    wa_ret TYPE bapiret2,
    lv_lines type i.
    orderheaderin-doc_type = 'ZZOR'.
    orderheaderin-sales_org = 'SS01'.
    orderheaderin-distr_chan = 'SH'.
    orderheaderin-division = 'ST'.
    wa_orderpartner-partn_role = 'SP'.
    wa_orderpartner-partn_numb = '1000000342'.
    APPEND wa_orderpartner TO orderpart.
    wa_orderpartner-partn_role = 'WE'.
    wa_orderpartner-partn_numb = '1000000342'.
    APPEND wa_orderpartner TO orderpart.
    wa_orderitem-itm_number = '10'.
    wa_orderitem-material = '000000111000000185'.
    wa_orderitem-target_qty = '10'.
    APPEND wa_orderitem TO orderitem.
    wa_text-text_id = '0012'.
    wa_text-langu = 'E'.
    wa_text-text_line = 'Test for text creation'.
    APPEND wa_text TO ordertext.
    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
      EXPORTING
      SALESDOCUMENTIN               =
        order_header_in               = orderheaderin
      ORDER_HEADER_INX              =
      SENDER                        =
      BINARY_RELATIONSHIPTYPE       =
      INT_NUMBER_ASSIGNMENT         =
      BEHAVE_WHEN_ERROR             =
      LOGIC_SWITCH                  =
      TESTRUN                       =
      CONVERT                       = ' '
    IMPORTING
      SALESDOCUMENT                 =
      TABLES
       return                        = orderret
       order_items_in                =  orderitem
      ORDER_ITEMS_INX               =
        order_partners                = orderpart
      ORDER_SCHEDULES_IN            =
      ORDER_SCHEDULES_INX           =
      ORDER_CONDITIONS_IN           =
      ORDER_CFGS_REF                =
      ORDER_CFGS_INST               =
      ORDER_CFGS_PART_OF            =
      ORDER_CFGS_VALUE              =
      ORDER_CFGS_BLOB               =
      ORDER_CFGS_VK                 =
      ORDER_CFGS_REFINST            =
      ORDER_CCARD                   =
       order_text                    =  ordertext
      ORDER_KEYS                    =
      EXTENSIONIN                   =
      PARTNERADDRESSES              =
    describe table orderret lines lv_lines.
    READ TABLE orderret into wa_ret index lv_lines.
    IF wa_ret-type = 'S'.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
      WRITE: / wa_ret-message_v2.
    ENDIF.
    Hope it helps.
    Regards,
    Akshay Bhagwat
    Note: Pls reward points if this helps you.

  • Using rich text editor (RTE) for custom applications

    Our users enter texts on two places:
    1) In Oracle Portal in text-items using the Rich Text Editor.
    2) In text-fields in a custom application using html-tags <textarea>blabla</textarea>. For formatting the users currently have to type in html-tags themselves. Now we want to provide them an html-editor.
    We would prefer to use the Rich Text Editor also for the custom application. However, that is integrated in Portal and the java-scripts are not easy to follow.
    Have you tried something similar? So, did you use the Rich Text Editor for your own application? If yes, how?
    If not, a very good alternative would be the qwebeditor (see http://www.qwebeditor.com). Did anybody replace the standard Portal rich text editor with the qwebeditor? In the Portal guides there are instructions about replacing the Portal rich text editor by another editor, but it is not clear if this will also work with the qwebeditor.
    Thanks for your respons !
    Best regards, Jan Willem Vermeer

    Hi Jan,
    I have configured FCKeditor in a few clients, and the process it's pretty straight forward, you can use the steps in the document (http://www.oracle.com/technology/products/ias/portal/pdf/cm_rte_1014_features.pdf) .
    Basically you download FCKeditor and put it in your apache server (you can put it unde rthe htdocs folder) after that, all you need to do is modify $ORACLE_HOME/portal/images/webword/buildUIHTML.html to reference the FCKeditor JS and CSS, and you can do the same type of reference for your custom apps.
    Regards,
    Juan

  • Rich Text Editor Option for Custom Metadata

    Hi,
    We have created custom profiles for our clients. In one such profile which was created for news updates, client wants to have rich text editor in case of certain custom metadata fields such as description similar to comments.
    As far i as i understand this can be achieved by creating region defintion which gives the option to create a web asset which can edited using site studio api. But is it possible to bring in rich text editor features for custom metadata fields in profiles ?
    Regards,
    Boopathy P

    I'd suggest looking into the profile rule's "Use custom include" option.
    You need to build the new control on your own, but you'll be able to plug it in via the "Use custom include" profile rule option. It's on the "Edit Rule Field" page.
    You can also override the template, but I believe that's a lil' too hardcoded for best practices. This way, you can create a ckeditor textarea and apply it to any metadata you wish (of course, it's up to you to make sure the datatypes match).
    Let us know if this helps!
    -ryan

Maybe you are looking for

  • Can i use more than 1 account on my Macbook pro?

    I have a macbook pro (wich i'm now gonna keep) Can i create and use 2 different App store accounts on the same mac?? And use Aplications like pages from 1 account, and iMovie from the second at the same time ??

  • Speedlight setup for 7d and other settings

    So I'm very new to "action photography" specific to radio controlled cars. I have a canon 7D. I have learned how to set the c1-c3 to custom settings. For now I use the green "square" setting for group photo's and still "shop" photo's. I'm perfectly h

  • Enter your name and password for the server when trying to connect PC and Mac?

    I'm trying to connect my iMac and my WIndows tablet (got it for free) together through my home network.  I open iPhoto, then "Import to Library" ; the connection fails and when I click on "Connect as" up pops this box asking me to "enter your name an

  • Lumia black update status

    My Lumia 625 not showing black update..when ever I checked it shows u r with latest updates... Please help me how to get black update in my phone Solved! Go to Solution.

  • Migrating email-enabled public folders corrupted

    We migrated our public folders from EX 2010 to 2013 but currently face 2 issues with the import: a.  All public folders/subfolders became email disabled - about 300 + folders b. More importantly there is a mismatch between folder name and assigned sm