Script issue with multiple lines printing

Dear All,
I'm trying to print multiple lines of my internal table in a script.
But only the last line is being printed all the time in all the lines.
Attached is my code.
    CLEAR GS_REGUP.
    LOOP AT GT_REGUP INTO GS_REGUP.
* Start the Form
      CALL FUNCTION 'START_FORM'
        EXPORTING
          ARCHIVE_INDEX = TOA_DARA
          FORM          =  'ZFORM'                                    "T042E-ZFORN
          LANGUAGE      = SY-LANGU                          "T001-SPRAS
          STARTPAGE     = 'FIRST'
          PROGRAM       = 'ZPROG'.
* Net Amount
      CLEAR GV_NETWR.
      GV_NETWR = ( GS_REGUP-WRBTR - GS_REGUP-PSSKT ).
* Print the Content
      CALL FUNCTION 'WRITE_FORM'
        EXPORTING
          ELEMENT  = '525'      "Header
          FUNCTION = 'APPEND'
          TYPE     = 'BODY'
          WINDOW   = 'MAIN'.
* End the Form
      CALL FUNCTION 'END_FORM'
        IMPORTING
          RESULT = ITCPP.
      IF ITCPP-TDPAGES EQ 0.       "Print via RDI
        ITCPP-TDPAGES = 1.
      ENDIF.
    ENDLOOP.
Please let me know the flaw in it.
Regards,
Deepu.K

Dear All,
As i Mentioned in my earlier post, the same coding working fine in Quality server --> Printing multiple lines in script output.
But now, I have the same reqt. in another window.
So, I did the same coding.
But, this time it's printing the last line of the internal table in all the lines.
This is happening in Quality Server only.
The only difference between the previous internal table and this int. table is:
1. The first int. table content is printing in MAIN Window. ---> working fine
2. The second int. table content is printing in VARIABLE window. ---> NOT WORKING.
Can any one tell me what's the issue with this ?
Regards,
Deepu.K

Similar Messages

  • Create ecatt script for one sales order creation with multiple line items

    Hi ,
    I want to create a ecatt script for one sales order creation with multiple line items. Preferably SAP GUI.
    This selection of data will be from an external file/ variants which will have only one row of data in it.
    Firstly: I have to sort the external file having same PO Numbers in an order.Group them together.
    Second: I have to create sales order for those many line items having same PO Number.
    Best Regard
    Taranum

    Hi Micky
    Firstl you should upload the Line items for a particular sales Order in an Internal table
    and then pass that internal table to your BAPI during your coding corresponding to a particu;lar sales order
    In case of any issues pls revert back
    Reward points if helpful
    Regards
    Hitesh

  • Printing PDFs with Multiple lines enabled

    Hi, I need some help with Designer. I have no clue how to really use it, I've been playing with it for a week, but some things I can't figure out.
    I have a text field that fits about 1 line of text on it. I enabled multiple lines in the field, because people are going to be typing a lot. However, when I print it, only 1 of the lines shows up. Is there any way that I can fix the settings so that the box expands as the text is typed, and that if it can expand, the entire page shrinks to keep it to the same amount of page numbers instead of bumping everything down the page? If someone out there knows, please help!!!
    Thanks!!!

    Hi,
    Maybe this can help:
    1 - Save your form as a Dynamic Form
    2 - Place a subform with Flow content
    3 - Place a text box with multiple line in the sub form. Make it expand to fit (layout tab) and Data Format XHTML (binding tab)
    4 - Put the contents in the field
    5- Click outside the field and print it.
    regards

  • Printing Text with multiple Lines

    Hello,
    i want to print a list and in that is text with multiple lines.
    In the PrintPreview and in the Printout i get only one line.
    How is the best way to do this?
    Thank you,
    Markus
    Private Function Print_Remarks_Control_Get(ByVal pstrText As String) As TextBox
    Dim TextBox_Out As New TextBox
    With TextBox_Out
    .Text = pstrText
    .HorizontalAlignment = Xaml.HorizontalAlignment.Left
    .VerticalAlignment = Xaml.VerticalAlignment.Top
    .FontSize = 16
    .Margin = New Thickness(15)
    .AcceptsReturn = True
    .MinWidth = 800
    .MinHeight = 600
    End With
    Return TextBox_Out
    End Function
    Sub PrintPageList_Prepare()
    Dim i As Integer
    Dim objVM As clsTextVM
    Dim lstText_List As ObservableCollection(Of clsText)
    Dim ctrPrint_StackPanel As StackPanel
    Dim ctrPrint_Title As TextBox
    Dim ctrPrint_Description As TextBox
    Dim ctrPrint_Remarks As TextBox
    Dim objText As clsText
    mPrintPageList.Clear()
    objVM = DirectCast(Me.DataContext, clsTextVM)
    lstText_List = objVM.CustomClass_List
    ctrPrint_StackPanel = Print_StackPanel_Get()
    For i = 0 To lstText_List.Count - 1
    objText = lstText_List.Item(i)
    If objText.Name.Length > 0 Then
    ctrPrint_Title = Print_Title_Control_Get(objText.Name)
    ctrPrint_StackPanel.Children.Add(ctrPrint_Title)
    End If
    If objText.Description.Length > 0 Then
    ctrPrint_Description = Print_Description_Control_Get(objText.Description)
    ctrPrint_StackPanel.Children.Add(ctrPrint_Description)
    End If
    If objText.Remarks.Length > 0 Then
    ctrPrint_Remarks = Print_Description_Control_Get(objText.Remarks)
    ctrPrint_StackPanel.Children.Add(ctrPrint_Remarks)
    End If
    Next
    mPrintPageList.Add(ctrPrint_StackPanel)
    End Sub
    Private Sub OnGetPreviewPage(sender As Object, e As GetPreviewPageEventArgs)
    ' Das ist die MessageBox
    ' Windows.UI.Popups.MessageDialog()
    PrintPageList_Prepare()
    mPrintDok.SetPreviewPage(e.PageNumber, Me.mPrintPageList(e.PageNumber - 1))
    End Sub

    Yes, not only RichEditBox but also RichTextBlock can also do this. Besides TextBox also have TextWrapping functionality.
    -James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Text with multiple lines limit each line to 10 digits

    Im trying to create a Numeric Field with multiple lines and limit the character per line to 10
    ideally I want the users to be able to paste in a 10 digit number similar to this:
    0001234567
    0001234568
    0001234569
    I can set my pattern to num{zzzzzzzzzz} but not sure how to allow multiple lines
    Im using Adobe LC ES2 Verison 9.0
    Thanks!

    better option is to use INCLUDE statement in SCRIPTS. its a script control command and you no need to use READ_TEXT and to loop it and send each line to script.
    if you use the above INCLUDE control command, SAP will take care of printing total text of that Object.
    here is the syntax :
    <b>/: INCLUDE name [OBJECT o] [ID i] [LANGUAGE l] [PARAGRAPH p] [NEW-PARAGRAPH np]</b>
    here /: indicates its an Control command.
    you have to use NAME, ID, LANGUAGE adn OBJECT here.
    if you give these details in the Text editor of script layout,automatically data will be printed on the screen.
    ex:
    /: INCLUDE &EKKO-EBELN& OBJECT EKKO ID X LANGUAGE E
    Hope you got the Idea.
    <b>here is brief help about INCLUDE:</b>
    Use INCLUDE to include the contents of another text into your text. The text to be included exists separately from yours and is only copied at the time of the output formatting. With INCLUDE, since the text is only read and inserted during the output formatting, the most current version of the required text is always available.
    and IF you are very specific about using READ_TEXT to display the contents,
    then you have to LOOP that table and call the WRITE_FORM to print the line on the layout.
    LOOP AT IT_TDLINES.
      CALL FUNCTION 'WRITE_FORM'
    ENDLOOP.
    Regards
    Srikanth
    Message was edited by: Srikanth Kidambi

  • Creating SVG Chart with multiple lines

    Hi All,
    I want to create a chart with multiple lines.
    Ex: I have one emp table with empno, sal and deptno columns.
    I want to print deptno in x axis and no of employees on y axis.
    I want to print one line for employees with sal > 15000 and one more line for employee with sal =< 15000
    So one line will show no of employees with sal more than 15000 for each dept. Similar case for the other line and these 2 lines should be in different colors.
    For one line the query will go as
    select link, deptno, count(empno)
    from emp where sal > 15000 group by null, deptno
    Is this possible to draw this chart?
    Thanks,
    Manoj

    I wasn't able to do something like what you describe, but I was able to do this:
    I defined column A of the table as a Header Row, selected the cells in the table, and chose this chart type (2D 2 Axis):
    Then I clicked the chart and in the pane at the right checked 'Axis Name' in the Axis tab and added the axis names.
    Maybe this can give you an idea of how you can illustrate the relationships that you want to show.
    SG

  • String with multiple lines

    hi
    i have a string with multiple lines inside it eg.
    hello this is
    my string with
    mutiple lines inside it
    how could i get it to print out line by line
    iv used "\n" so it detects the new lines but it doesnt seem to work
    this is my following code that doesnt seem to detect the newline
    if(multiString.equals("\n")){
    }

    nicchick wrote:
    i have a string with multiple lines inside it eg.
    hello this is
    my string with
    mutiple lines inside itWhere do you have this String? In a file? in a JTextArea of a Swing GUI? Details are important.
    if(multiString.equals("\n")){But the whole string isn't an "\n" so this won't do. Again, much will depend on the current state of the String. You may need to split it based on the current line separator.

  • Import remarks with multiple lines

    Hi,
    How can I import using DTW for Item remarks with multiple lines?

    Hi,
    Check the thread
    Importing Multiple Lines in a remarks (user_Text) of items using DTW?
    multiple line import through DTW (user_text for oItems)
    *Close the thread if issue solved.
    Regards
    Jambulingam.P

  • How to Restrict Single Delivery Date for PO with Multiple Line Items

    Dear Experts,
    How to Restrict Single Delivery Date for PO with Multiple Line Items.
    System needs to through Error Message if User Inputs Different Delivery Dates for PO with Multiple Line Items in ME21N Tcode.
    Can we achive this by Some Enhancement in SAP or Not ???
    If so how to do it.
    Any Inputs is highly appreciated.
    Thanks and Regards,
    Selvakumar. M

    Hi Selvakumar,
    we can resrict the PO to have a single delivery date in all the line items by means of giving a error message or overwiting the delivery date keyed/determined in the line item.
    You can use the BADI -> ME_PROCESS_PO_CUST. In which you need to implement the method PROCESS_SCHEDULE.
    (for technical aid - This method will be called for each and every PO line item, From the imporing parameter im_schedule we can get all the details of current PO line, even we can change the data in the current PO line. )
    Regards,
    Madhu.

  • Since I've installed Mountain Lion, I am having lock up issues with multiple programs. MS Outlook has crashed and I've lost all my folders. HELP?

    Since I've installed Mountain Lion, I am having lock up issues with multiple programs. MS Outlook has crashed and I've lost all my folders. HELP?

    okay I've finally been able to get tor and all the other programs to work according to my plan the only thing that's still making problems is that iptables doesn't work as I want it to, when I start chromium without proxy settings privoxy doesn't seem to forward the information to polipo.. do I need to add another rule to iptables.rules in order for the program to know it has to reroute the information again or how can I get this to work? and is there any way to run rtorrent with proxy support?
    anyway, problem 2 and 3 are still to be solved.
    and does anybody know where i can get a good dansguardian blacklist that was not designed for 6 year old children and for which I don't need to subscribe? I'm still getting these partypoker popups -.-
    //e: with iptables it's the same thing as described in the first post. https works, http doesnt. I get the output "Invalid header received from client." on http sites. still no idea why though.. (and the https-version of torcheck.xenubite says i'm tor unprotected while starting the browser with iptables)
    Last edited by deF291 (2011-04-23 16:16:31)

  • We run an iMac 3.4 GHz I7 for our church worship service; we haven't upgraded to Mavericks because we heard about issues with multiple screens crashing.  Has this issue been resolved?  Thank you!

    We run an iMac 3.4 GHz I7 in our church worship service; we have front screens and a stage display monitor ; we haven't upgraded to Mavericks because we heard about issues with multiple screens crashing.  Has this issue been resolved?  Now that we are 2 upgrades behind, I'm getting little concerned.  Thank you!

    Oh, well that was a whole other kettle of fish:
    Oh the G4 I attempted to install iLife '08 before Lepoard was available. About the only thing that installed cleanly was iPhoto. I ended up reinstalling everything back to iLife '06, and then upgrading back to the current stable version of the iLife '06 version. I didn't attempt a reinstall until after I upgraded to Leopard.
    When I did reinstall, I made a iLife '06 folder, copied all iLife apps into it, and upgraded. Seemed to work, except for the part where iMovie gets left behind and iDVD is only mostly functional.
    When I installed on the other 2 machines, it was after installing Leopard and all upgrades. On those 2 machines, I didn't bother with the copy, I just moved everything to the iLife '06 folder I created, and did a fresh install.
    I didn't have to do anything with the iPhoto Libraries, that I can recall.
    I always do an upgrade, never an archive and install. I've never had a problem with this back to 10.1 or 10.2.

  • Error Message with multiple line

    Hi
    How to display a error message with multiple line?
    Example
         Goods movement not possible for material 101
         Goods movement not possible for material 102
         Goods movement not possible for material 103
    is it possible is ABAP? If so please advice me.
    Best Regards
    Asheek

    Hi Anoop,
    You can use same thing like this
    I suggest write ur message through this.
    First set the obecj.
    CALL FUNCTION 'APPL_LOG_SET_OBJECT'
    for local memory
    FUNCTION 'APPL_LOG_WRITE_MESSAGES'
             EXPORTING
                  OBJECT              = OBJECT
                  SUBOBJECT           = SUBOBJECT
                  UPDATE_OR_INSERT    = UPDATE_INSERT_FLAG
             TABLES
                  MESSAGES            = MESSAGE_TABLE
             EXCEPTIONS
                  OBJECT_NOT_FOUND    = 1
                  SUBOBJECT_NOT_FOUND = 2
                  OTHERS              = 3.
    the call for physical memory
    CALL FUNCTION 'APPL_LOG_WRITE_DB'
    In this process you only need to provide the Itab with error messages.
    Reg,
    Arpit

  • Partial goods receipt for PO with multiple line items

    Hello All,
    While doing MIGO, for a PO with multiple line items, if one line item is having error, will we be able to go ahead with goods receipt? Or entire material document is blocked for doing MIGO?
    We will be doing a development - in case if there is problem in goods receipt (checking of any parameter, and if it is missing - we will be posting error message)...is it possible to ahead with next line item and still post the material document?
    If partial goods receipt if possible for PO with multiple line items, how do we do it?
    Regards,
    RJS

    Hi
    While doing MIGO, for a PO with multiple line items, if one line item is having error, will we be able to go ahead with goods receipt? Or entire material document is blocked for doing MIGO?
    No. You cannot post the MIGO, if even one of the PO line item is having problem or giving error.
    We will be doing a development - in case if there is problem in goods receipt (checking of any parameter, and if it is missing - we will be posting error message)...is it possible to ahead with next line item and still post the material document?
    If you skip a line irem and do GR with next line item, how will you match quantity & value with the vendor Invoice at LIV ?
    If partial goods receipt if possible for PO with multiple line items, how do we do it?
    Partial goods receipt is possible for PO line items. That means, if PO has 100 qty for line item 1 then you can do GR for 50 now and 50 later depending on the vendors delivery.
    Hope this is what you mean by "Partial Goods Receipt".
    Edited by: Arun R on May 10, 2010 2:03 PM

  • Word property with multiple lines

    Good Morning,
    I have a Document Library with an Word template, I fill some properties of the library so I can put this properties in the template. I am trying to write a line break, Any idea?
    Thanks.

    Hi,
    According to your post, my understanding is that you want to use Word property with multiple lines.
    Per my knowledge, you can remove two updates: KB2760769 and
    KB2760758.
    The working version of office is 14.0.6129.5000.
    Here is a similar thread for your reference:
    http://sharepoint.stackexchange.com/questions/77759/inserting-multi-line-text-field-quick-part-from-sharepoint-crashes-word
    More information:
    Office 2010 Update KB2760758 Incorrectly Checks Multi-Line Columns
    As this question is more relate to Word, I suggest you post it to the corresponding forum, you will get more help and confirmed answers from there.
    http://social.technet.microsoft.com/Forums/en-US/home?forum=officesetupdeployprevious
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Unable to create PO with multiple line items through LSMW-BAPI method

    Hi All,
    I have a requirement of creating PO through LSMW. I can't use LSMW standard batch input program since there are some fileds not available and also it has many limitations. I'm using LSMW-BAPI method ( Business object BUS2012) which create IDOC and uses BAPI_PO_CREATE1 to ultimately post the PO in the system. I am trying to create PO from a single file which contains both Header and Item data.
    Now my problem is that everytime PO is being created with Single line item only. Everytime I am giving multiple item data in the source file LSMW is preparing multiple IDOCs for multiple line items. As per my understanding this is happenng since header and item is in the same hierarchy level of IDOC type PORDCR102 and the control record is inserted for every line item in the source file.
    It seems that through LSMW-BAPI  it is not possible to create PO with multiple line items. Can anybody provide some input regarding this? Thanks in advance.
    BR,
    Atanu Mukherjee

    Solved by myself.
    Earlier the problem was that LSMW was not being able to recognize items under same header. It was creating new IDOCs every time it gets a new item. To enable this we need to create two structure HEADERDATA and ITEMDATA.  Two additional identifier fields with identifier value 'H' and 'I' should be added in these two structures respectively. Then we need one sequential file with the identifiers field followed by the header and Item data. Example:
    H~header data
    I~item data
    I~item data 
    This would help the standard program to understand what are the items under same header and ultimately create PO with multiple line items.
    BR,
    Atanu Mukherjee

Maybe you are looking for

  • How do I install a JRE?, how do I install a JRE?

    I'm trying to use my MBA, Mountain Lion, and Safari to access Defense Travel System (DTS). It is a CAC-enabled website. Here is the message I receive when trying to login: Loading Applet ... You have reached this page because you want to use DTS. Bef

  • How do I get iCloud to actually sync podcasts?

    I've turned on podcast syncing on all my devices. Here's what they all currently say I have available: Mac (iTunes): 41 podcasts, 1 station iPhone: 25 podcasts, 5 stations iPad: 13 podcasts, 5 stations Apple TV (the new 6.0): 0 podcasts, 4 stations (

  • What can i do if i cant redeem my itunes card. It shows there "not properly activated"

    I tried to redeem my itunes card. it shown "not properly activated". What should i do?

  • Video app hangs on loading iTunes Library through Home Sharing

    Hello, On my 4th gen iPad I try loading my iTunes Library, which is on a mid-2011 iMac. Home Sharing is configured and working, but when loading my library it hangs during load. See attached screenshot. The library is huge, but that shouldn't be a pr

  • Classic getting hung-up

    Also when I am writing a text message and I need infor from someplace else eg: the calandar or the internet and I go through the browser, I sae the text so I can come back to it, but when I do it gets hung-up and freezes.  It sometimes takes 3 to 5 m