Appending a text line

Hi,
  In my scenario i have to concatenate all the contents of the text and then pass to a FM.
The sample contents is like this.The vendor details should be taken from internal table.The value to be passed to internal table is present in gi_objtxt.In my case all the lines are coming in a single line.How to get it like the below mentioned contents.Please help.
Code:
gv_text0 = 'Hi,'.
*Getting vendor number
  LOOP AT gi_vendor INTO gw_vendor.
    CONCATENATE gv_vendor gv_text4 gw_vendor-lifnr INTO gv_vendor  SEPARATED BY space.
    CONCATENATE gv_line gv_text4 gw_vendor-lineitems INTO gv_line   SEPARATED BY space.
    gv_text4 = ','.
  ENDLOOP.
  CONCATENATE gv_text0 gv_text gv_vendor gv_text1 gv_line gv_text2 gv_text3 INTO gv_mtext SEPARATED BY space.
  gv_text5 = 'Please check .'.
  gv_text6 = 'Thanks.'.
  CONCATENATE gv_mtext  gv_text5 gv_text6 INTO gv_mtext.
  APPEND gv_mtext TO gi_objtxt.
Hi,
   The vendors 71,72 are not paid due to this reason.
Please check.
Thanks.

Hi,
do like this
APPEND gv_mtext TO gi_objtxt.
APPEND gv_text5 TO gi_objtxt.
APPEND gv_text6 TO gi_objtxt.
or try this
DATA:BEGIN OF ls_delimiter,                 "<CR/LF> delimiter
         up_crlf(2)       TYPE c,              "CR/LF (ASCII Hex'0D0A')
        END OF ls_delimiter.
CALL FUNCTION 'FI_DME_CHARACTERS'
            IMPORTING
              e_crlf = ls_delimiter-up_crlf.
CONCATENATE gv_mtext ls_delimiter-up_crlf gv_text5 ls_delimiter-up_crlf gv_text6 INTO gv_mtext.
Regards,
Nagaraj
APPEND gv_mtext TO gi_objtxt.

Similar Messages

  • Append a text line on blob data.

    Hi All,
    I need append a text line on blob data.
    I haven't found prosper example or guide yet.
    Following is example blob data which i should handle with.
    Date: Thu, 29 Oct 2009 18:36:56 +0900 (KST)
    From: IBM
    To: IBM
    Subject: JavaMail Attachment
    Mime-Version: 1.0
    Content-Type: multipart/mixed;
         boundary="----=_Part_10_1177830964.1256809016187"
    ------=_Part_10_1177830964.1256809016187
    Content-Type: text/plain; charset=us-ascii
    Content-Transfer-Encoding: 7bit
    Ideas
    ------=_Part_10_1177830964.1256809016187--
    and I should add a new line on head of above blob data like this,
    Message-ID: <1631215930.1256809016203.JavaMail.SYSTEM@ibm-demo>
    so what i want is every blob data which doesn't have Message-ID line, update with random msg id.
    please give me an tip or sample for this.
    Thanks in advance,
    Beomwoo.

    I have to develop some program which correct abnormal email data of Oracle Collaboration Suite mail 10g.
    OCS store the mail body into a blob column named as body on es_body table.
    Normal mail body have to include Message id header information like following.
    Message-ID: <[email protected]>
    Date: Sat, 31 Oct 2009 19:48:04 +0900 (KST)
    From: bbuser1 kim <[email protected]>
    To: bbuser1 kim <[email protected]>
    Subject: 111111111111111
    Mime-Version: 1.0
    Content-Type: text/plain;charset=US-ASCII
    Content-Transfer-Encoding: 7bit
    Accept-Language: en-US
    X-Mailer: Oracle Collaboration Suite Web Access 10.1.2.4.3
    When a message body doesn't have the message id line on first line.
    I want add random message id on first line.
    So, What i want exactly is how to update blob column data with adding a line like 'Message-ID: <[email protected]>'.
    Any idea?
    Thanks in advance,
    Beomwoo.

  • How to append new text line to Notification header long text

    In sevice notification , I  append new text to notification header long text . I try FMi write_text, but it will overwrite the existed text , PLS HELP!

    Hi,
    Make  use of the FM "IQS0_ADD_NOTIFICATION_LONGTEXT".
    This will append the new lines to the existing long text.
    Make sure to put "X" for the import parameter "POST".
    Hope this will help you.
    Regards,
    Smart Varghese

  • Append report text.vi

    Hi all,
    Is there a way to amend this vi so that it will centre text or perhaps invent a new one?
    I would greatly appreciate it as i need to centre alot of text on the page i print and can find no easy way to do it
    Its just a standard report not an excel or word
    Thanks
    Mike
    Message Edited by MikeW1973 on 03-11-2008 12:08 PM

    You can certainly open the Append Report Text vi and modify it as you please.  You should rename it though.  If you ever re-install the report generation toolkit, it would overwrite your changes if you didn't rename it.  However, I don't know how you would go about centering the lines you want to append.  Perhaps counting the number of characters in the line to determine the number of blank spaces needed to be inserted in order to center the line.
    - tbob
    Inventor of the WORM Global

  • Trouble using read() to append html text to JEditoPane()

    Trouble using read() to append html text to JEditoPane()
    I`ve created the method bellow in my GEditorPane class, wich extends JEditorPane. The problem is that, after each appended text, an undesired line break is added. I checked the getText() of the pane, and there was no <br> (but a \n) where the line breaks are localized, what is strange, since html doesn`t break lines with \n.
    Someone can help me ? Thankyou. SrLontra
    public void append(String str) {
    try {
    Document doc = getDocument();
    if (str == null || str.equals("")) {
    return;
    Reader r = new StringReader(str);
    HTMLEditorKit kit = (HTMLEditorKit) getEditorKit();
    kit.read(r, doc, doc.getLength());
    } catch (IOException ioe) {
    UIManager.getLookAndFeel().provideErrorFeedback(this);
    System.out.println("IOException :: appendHTML() :: GEditorPane");
    System.out.println(ioe.getMessage());
    } catch (BadLocationException ble) {
    UIManager.getLookAndFeel().provideErrorFeedback(this);
    System.out.println(     "BadLocationException :: appendHTML () :: GEditorPane");
    System.out.println(ble.getMessage());
    }

    Hello lukik,
    This is not exactly my problem, in my case, the break is not desired. For some reason, just before the appended text, a line break (\n) is inserted in the Document. And I don`t want this to happen. Added to this, why the HTML text breaks with the \n?
    Anyway, the threads were very instructive ^^.
    Thankyou. SrLontra.

  • Append Long Text LSMW

    Hi guys,
    Currently when I use the Direct Input program, if Long Text Lines currently exist prior to running the direct input program, these are overwritten. Is there any way to cause the text lines to be appended to those currently existing in a Long Text field?
    Thanks in advance,
    - Neil

    Hi Neil,
    You have to enter a code in the LSMW to read the text  using FM read_text and assign the new text after the existing text.
    Ravi

  • [svn] 4694: Don't remove text lines from the container if it isn' t the container the lines were added to.

    Revision: 4694
    Author: [email protected]
    Date: 2009-01-27 14:35:21 -0800 (Tue, 27 Jan 2009)
    Log Message:
    Don't remove text lines from the container if it isn't the container the lines were added to. When there is a state change the displayObject can be switched out from under the TextGraphic and TextBox.
    QE Notes: need to add tests - will attach my test program to bug
    Doc Notes:
    Bugs: SDK-18923
    Reviewers: Gordon
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-18923
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/TextBlockCompose r.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/TextFlowComposer .as

    Yup, you guys pointed me in the right direction.
    I changed my adjustmentListener to the following:
    JScrollBar scrollBar = (JScrollBar) e.getSource();
    int endLoc = document.getLength();
    try {
        Rectangle end = outputArea.modelToView(endLoc);
        if (end != null) {
            int n = scrollBar.getValue() + scrollBar.getVisibleAmount();
            boolean locked = (end.y >= n && n <= (end.y + end.height));
    } catch (BadLocationException ex) {
    }By comparing scrollbar position with the visible rectangle of the end of the document, I can now easily tell if the user has moved the tracker back or not.
    To go to the next step of automatically pausing scrolling whenever the user is moving the slider back, I also had to disable the automatic scrolling performed by DefaultCaret. Because there was no way to tell if the user was scrolling or if the output was adjusting from the adjustmentListener, I also had to flag whenever I was autoscrolling.
    The end result is a JTextPane that can be appended to at all, and locked by the user by using the slider. If new data arrives, the window is not scrolled, and any text selection the user has is not cleared. Perfect!

  • Text lines in the BW query variables screen

    Hi gurus.
    The bw users ask me to display some text lines in the BW query variables prompt.
    The text lines are saved in a custom table.
    The only idea that I've got is to use customer exit text variables and fill them in CMOD when I_step = 1.
    I don't like this solution (I should have more the 10 text lines and so I have to mantain more than 10 Text variables) but I can't find any other solution.
    Any new idea or solution?
    Is there in Bex enviroment a functionality (that I don't know) for doing somenthing like this ?
    Thanks fo any help.
    S.

    Hi,
    to resolve it you should create all the prompts in the BW query. You are using a query with 2 parameters and then a dynamic list of values. the dynamic list of values can only work after you entered the other values.
    Ingo

  • Sales Order Text Lines in SAP Query

    I have a requirement to output several text lines into a SAP query based around sales orders.
    I have included some code to read the details into my query and get no syntax errors, however the report gives a blank output for each of the text fields included, despite there definitely being some text with the specified attribute ID and text object in the table STXL.
    Where am I going wrong?
    Please find the coding below for one of the text field I'm trying to extract:
    TABLES:STXL.
    DATA:
        VBELN LIKE VBAP-VBELN,
        POSNR LIKE VBAP-POSNR,
        TDNAME LIKE STXL-TDNAME,
        MYLINE LIKE TLINE-TDLINE,
        ZE18_LINE(1200) TYPE C.
    DATA:BEGIN OF LINES OCCURS 0.
            INCLUDE STRUCTURE TLINE.
    DATA:END OF LINES.
    DATA:BEGIN OF MYHEADER.
            INCLUDE STRUCTURE THEAD.
    DATA:END OF MYHEADER.
    CLEAR TDNAME.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
      INPUT = VBAP-VBELN
    IMPORTING
      OUTPUT = VBELN.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
      INPUT = VBAP-POSNR
    IMPORTING
      OUTPUT = POSNR.
      CONCATENATE VBELN POSNR INTO TDNAME.
    CALL FUNCTION 'READ_TEXT'
        EXPORTING
            ID = 'ZAT2'
            LANGUAGE = SY-LANGU
            NAME = TDNAME
            OBJECT = 'VBBP'
         IMPORTING
            HEADER = MYHEADER
         TABLES
            LINES  = LINES
    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.
      LOOP AT LINES.
        MOVE LINES-TDLINE TO TEXT.
        ENDLOOP.
    ENDIF.

    Hi -
    Please check in debuging.
    check the value of TDNAME correctly populated with sales order no and sales order item.
    You can cross check with the table STXH with TDNAME and see if any entries is available for TDID 'ZAT2' as your case.
    Here are sample code.
    DATA :    lv_tdname TYPE tdobname,
                     lw_line TYPE tline,
                    li_line TYPE STANDARD TABLE OF tline.
    CLEAR : lv_tdname , li_line[],
    cocatenate w_vbak-vbeln w_vbap-posnr into lv_tdname.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
        id                      = 'ZAT2'
        language                = 'E'
        name                    = lv_tdname
        object                  = 'VBBP'
      TABLES
        lines                   = li_line
      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.
      CLEAR lw_line.
      loop at li_line INTO lw_line .
    * Put your logic
      endloop.
    ENDIF.

  • How to put text line just for a moment ?

    Hi,
    Do you know how to put a text line  just  for one photo? I mean I have more photos  in one portfolio but i need the text line to be seen just for one photo for the others no.
    Thank you in advance.

    You can use composition for this , where you can insert text frame for that specific photo where you want to add some description and for rest dont use text frame.
    Thanks,
    Sanjit

  • How to create a subtotal or text line in a service sales order ?

    Hi ,
    is there a way to add text line in sales order for service ? when we switch from item sales order to service sales order , the "type" column disappear , and we can not create line other than service line . we use B12007A SP01 PL07
    i've not seen this limitation in the B1 help . is it a setup problem ? or is it impossible to add those lines to service sales order ?
    thanks for help
    regards

    Hi,
    This is not setup problem this is limitation you cannot add line as text or subtotal using type option in service order like item type order. If you want to add text for your service line you can do this through linewise  udf.
    Thanks
    Sachin

  • PLD - SO needs to display Text line

    Dear All,
    Our customer's marking documents has text type lines. When I tried to print it on A/R invoice and A/R down payment invoice, it works good. When I tried to print it on Sales Order, text lines have always been printed first. Then items and subtotals. I use exactly the same way to print it.
    Field_1: Sys Var 157 (line type)
    Field_2: Field_1 == 'T'
    Field_3: Field_2 != 'T'
    Field_4: Sales Order - Rows.Text, link to Field_2
    Other item fields link to Field_3
    One more question for PLD is, I found in system PLD almost all the fields link to itself. It there any specfic reason we have to do that?
    Thanks a lot.
    Regards,
    Yuka

    Dear Yuka,
    You may check these threads first to see if there are any helps:
    Re: Row Type: "Text" >> in A/P invoice, not being displayed in PLD
    PO PLD Add line text....
    Line type text not printing
    Thanks,
    Gordon

  • My group box is causing problems when searching for a text line in a text file.

    I am developing a booking system, so for this I need to ensure that no two clients can book the same appointment slot. So, on testing my code which prevents double booking, the system doesn't seem to find the text line being searched for in the text file
    when it (purposefully) should.
    I have tried isolating the problem using breakpoints, and I've found that when the 'SearchLine' (referring to my code below) does not include the 'TimeComboBox.text' piece and instead this value is written into the code, the system is able to find the SearchLine
    without any problems. But, when assigning the group box's value to a variable and using this in the SearchLine instead, or without even using a loop and just doing a simple line by line search, the program can't find this line of text in the file.
    I'm lost for ideas. I have tried everything I can think of. Could anyone make any suggestions as for what is the problem with my group box? (I'll explain the code beneath it).
    'Setting the value of the SearchLine (which is a String)
    SearchLine = String.Concat(DateTimePicker1.Value.Date & " " & TimeComboBox.text)
    Dim FoundApp As Boolean
    Dim objReader As New System.IO.StreamReader(basicfilepath & "Text Files\Client Booked Appointment DatesTimes.txt")
    FoundApp = False
    'Reading the file's contents and checking for the SearchLine
    Do While (objReader.Peek() <> -1) or (FoundApp = True)
    If (TextLine = SearchLine) Then
    'Line contains SearchLine. Appointment already exists.
    FoundApp = True
    Else
    'Line doesn't contain SearchLine. Carry on searching.
    Msgbox("Line not found.")
    End if
    Loop
    Explanation
    When the line is searched for, the 'FoundApp' value must be set to 'True' when it is found. If it is not found, it remains false.
    To isolate the problem, I've displayed the SearchLine in a message box in the past to make sure that the correct line of text is being searched for.
    In basic terms, my program is searching for the exact line of text which exists in the text file, but for some reason it is not coming up as 'Found'. The error occurs when the group box's value is used. The text file which is being read is
    definitely correct. Please help, any suggestions would be appreciated.
    Thank you

    Hi
    It would appear that your snippet doesn't actually read the file at all.
    Here is my test which works fine.
    Option Strict On
    Option Infer Off
    Option Explicit On
    Public Class Form1
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles Me.Load
    Dim SearchLine As String = "18:09:38 : XTaskSettings.Load PARAMS: begin"
    Dim FoundApp As Boolean = False
    Dim TextLine As String = Nothing
    Dim objReader As New IO.StreamReader(Application.StartupPath & "\Data\Report Q1.txt")
    FoundApp = False
    Do While (objReader.Peek() <> -1) Or (FoundApp = True)
    ' this was missing
    TextLine = objReader.ReadLine
    If (TextLine = SearchLine) Then
    'Line contains SearchLine. Appointment already exists.
    FoundApp = True
    MsgBox("Line found.")
    Else
    'Line doesn't contain SearchLine. Carry on searching.
    MsgBox("Line not found.")
    End If
    Loop
    End Sub
    End Class
    Regards Les, Livingston, Scotland

  • Dropping characters in text lines (FM8)

    I'm experiencing problems with dropped characters in text lines. Also, I've noticed the history doesn't seem to log all changes made to text lines. The problem can be duplicated as follows:
    1. Open a new portrait blank document and add an anchored frame. (recorded in history)
    2. Add a text line inside the anchored frame from the Tools Palette. In the text line, type "1234" (recorded in history).
    3. Save the file. (history cleared)
    4. Click the cursor after the "4" in the text line and hit a carriage return to create a new text line. (not recorded in history)
    5. In the new text line, type "1234567890"(not recorded in history)
    6. Save the file.
    7. Refresh the screen (cntl l) and the second text line now reads "12346890" (dropped the 5 and 7). Printing the file in steps 5 and 6 also show the 5 and 7 are missing.
    8. Add a new text line inside the anchored frame from the Tools Palette. In the text line, type "12345" (recorded in history).
    9. Save the file. (history cleared)
    10. Click the cursor after the "5" in the text line from step 8 and hit a carriage return to create a new text line. (not recorded in history)
    11. In the new text line, type "1234567890"(not recorded in history)
    12. Save the file.
    13. Refresh the screen and the second text line now reads "12345790" (dropped the 6 and 8).
    Has anyone else seen this problem (or can duplicate it)?
    Also, can someone explain why some of the steps above are not recorded in the history.
    FYI, while trying to find a repeatable sequence to demonstrate this problem, Frame crashed on me.
    I'm running a trial version of Frame 8, version 8.0p273, with XP Pro, on a fairly new Dell Optiplex 740.
    Thanks,
    Jeff Schweiner

    Hi Jeff,
    I have now tried what you're doing and get the same result!
    I have also added a text line with characters a to z. After saving ad doing a ctrl-l, the character after the last one, and the character second after that, in the previous line, was removed. (I first typed "abcd", saved, made a new line, typed "abcdefghi", saved, made ctrl-l, the characters "e" and "g" were removed).
    I have the same version of FrameMaker + SGML, but this is a licensed version, running on Win 2000.
    Regards
    Mikael Sten

  • Can text be formatted when using 'Append report text.vi'?

    The example that ships with LabVIEW 7 'Generate Report from Template (Word).vi' uses 'Append report text' to insert text into a word template via bookmarks.
    My question is can this text be formatted in any way (e.g. fontsize, fontcolor, ...)? It seems I can't format the bookmark and I can't format the transmitted text. It always appears in Normal Arial 12pt.
    Thanks!

    Thank you,
    this works well for formatting the whole report. I also found that the Word Format Text.vi placed directly behind the Append Report Text.vi changes the attributes for the previously inserted text at the bookmark.

Maybe you are looking for

  • Mac keeps trying to connect to a server when opening excel

    i worked for a week at a production house and they had me log into their server to access files that we all used.  obviously i forgot to eject their server before i left and instead just closed my computer and left.  now, since Lion makes all documen

  • Suggesitions required for JDBC in Web Dynpro

    Hi SDN, I am working on Web Dynpro project, till now we are working with SAP R/3 as backend database. Now we need to store the data in sql server along with SAP R/3 with the same project. Our people suggested to use EJBs. I need to know how to create

  • Does spline-interpolation work? (what's it supposed to do?)

    Hello!       I was told (by a co-worker) that Spline_Interpolation[Xi] should exactly match a "tabulated" Y (input) if Xi was one of the "tabulated" X input values.  I don't know if this is correct - if it is, then the function isn't working as expec

  • How to bind Temporary Queue to Context in FioranoMQ

    I have two JMS clients sending messages to each other via FioranoMQ. And one client creates a temporary queue, for example Temporary Queue auction1Queue = qSession.createTemporaryQueue(); My question is how to bind this auction1Queue to Context? so t

  • Audio out of sync h.264 file. Premiere CS5.5

    After building a new machine with Premiere CS5.5, using NVIDIA Q4000 card, I'm having troubles wioth my audio being out of sync. I am exporting DSLR footage which the same sequence was previously fine on export on my old computer. Now, when I export,