Problem in printing continuous invoices

Hi,
  WA_LISTHEADER-TYP = 'S'.
  WA_LISTHEADER-KEY = TEXT-029.
IF NOT S_VBELN-HIGH IS INITIAL.
   CONCATENATE S_VBELN-LOW TEXT-030 S_VBELN-HIGH
   INTO WA_LISTHEADER-INFO+24 SEPARATED BY ''.
ELSE.
    WA_LISTHEADER-INFO = P_PLANT.
ENDIF.
  APPEND WA_LISTHEADER TO INT_LISTHEADER.
  CLEAR WA_LISTHEADER.
Text-029  = 'Tide Water Oil Company Ltd Location'.
But the ALV output is not showing the Entire Text.It is showing Truncated Text as the variable 'Key' is of 20 characters only.How can i output the entire Text.Please help?
Thanks
K Srinivas

Hi write this statement befor calling REUSE_ALV_GRID_DISPLAY.
  gs_layout-colwidth_optimize = 'X'. and pass it to is_layout parameter in the FM REUSE_ALV_GRID_DISPLAY.
Thanks
Nayan

Similar Messages

  • Problem in Printing Multiple Invoice data

    Hi,
    My re quirement goes like this...
    My SMARTFORM receives 2 internal tables :
    1. Header data for all Invoices
    2.Item data for all invoices.
    Now I need to print each invoice in a new Page.
    I have done like this.
    First I am reading the header table with Index. After that I am incrementing the Index number.
    v_index = v_index + 1.
    READ TABLE HEADER index v_index.
    So, first time the fist invoice will be processed and Its item data will be printed in the main window.
    In the MAIN WINDOW after Item Table, i kept one COMMAND as Go TO NEW PAGE.
    So, that its starts processing the page again. and Next invoice will be read.
    Its working fine and Printing all the header data and footer data respective to that Invoice.
    But, its not displaying that data which is there in MAIN window. Its displaying MAIN window as EMPTY.
    I have seen in the debugging, when the NEW PAGE command is triggered, its processing all the secondory windows and PROGRAM LINES under that. But, it is not going into MAIN window Program Lines.
    Please let me know, how can I solve My problem.
    Thanks,
    Sandeep

    HI,
    You can give a page break after every new header invoice. using a command window just assign the first value of the table to a local variable when it is passing into the loop and whenever the value changes, GOTO newpage.
    Check the wiki,
    [Pagebreak in smartforms|https://wiki.sdn.sap.com/wiki/display/ABAP/PageBreakin+SMARTFORMS]
    Regards
    Sarves

  • Printing previous Invoice

    I'm having problem in printing previous invoice not the current one this happens almost 4 times a day, printing around 10000 vouchers per day can anyone explain me why?
    First i update data by using ExecuteScalar and getting Auto-Gen Number from Database
    Then I'm Updating Invoice Number to another Table for Invoice numbering system
    TicketNumberUpdate()
    lbl_Status.Text = "Updating Ticket Number..."
    Application.DoEvents()
    System.Threading.Thread.Sleep(200)
    then i wait and filter according to my ticket number and populate data to richtextbox 
    PrintFunc(" WHERE dbo.tbl_Tickets.TicketNo='" & txtTicket.Text & "' AND dbo.tbl_Tickets.Ticket_Type='" & cboTicketType.Text.Trim & "'")
    lbl_Status.Text = "Loading Ticket ..."
    Application.DoEvents()
    System.Threading.Thread.Sleep(200)
    and save that html text to temporary html file 
    rtb_TicketFormat.Rtf = rtb_TicketFormat.Rtf.Replace("Duplicate.png", "Original.png")
    Dim myFileName As String = IO.Path.Combine(IO.Path.GetTempPath, "_.html")
    rtb_TicketFormat.SaveFile(myFileName, RichTextBoxStreamType.PlainText)
    lbl_Status.Text = "Printing Ticket ..."
    Application.DoEvents()
    System.Threading.Thread.Sleep(200)
    and wait for Save that Invoice in html format after that i call for PrintTktz for printing that file
    Private Sub PrintTktz()
    Dim webBrowserForPrinting As New WebBrowser()
    AddHandler webBrowserForPrinting.DocumentCompleted, New _
    WebBrowserDocumentCompletedEventHandler(AddressOf PrintDocumentz)
    webBrowserForPrinting.Url = New Uri(IO.Path.GetTempPath & "_.html")
    End Sub
    Private Sub PrintDocumentz(ByVal sender As Object, _
    ByVal e As WebBrowserDocumentCompletedEventArgs)
    Dim webBrowserForPrinting As WebBrowser = CType(sender, WebBrowser)
    webBrowserForPrinting.ScriptErrorsSuppressed = True
    webBrowserForPrinting.Print()
    webBrowserForPrinting.Dispose()
    End Sub
    when testing this works fine do you guys think some time when printing if below code could not save the file it gives that error? 
    rtb_TicketFormat.SaveFile(myFileName, RichTextBoxStreamType.PlainText)
    Thank you every one for you kind help!...

    I'm not certain. However from the code you display you are constantly creating a WebBrowser object then never disposing of it when you are done with it. So I would imagine at some point your applications memory is getting really high as you seem to create
    10,000 of them a day or something. Which means 10,000 created objects doing nothing and never to be used again are sitting in your applications memory.
    The code is "Dim webBrowserForPrinting As New WebBrowser()".
    It's possible the code for the sub PrintTktz could be altered as below which should dispose of the WebBrowser object when the code is done with it. But you will need to test it obviously. There's two subs. One has a Using statement which may not work and
    the other has a loop that runs until the WebBrowser finishes. Both may not work really.
    If neither work the issue still needs to be corrected. Of course if the loop runs for a long time the UI could freeze. And if the end using statement occurs prior to the WebBrowser loading well that's not good either of course.
    WebBrowser.IsBusy
    Private Sub PrintTktz()
    Using webBrowserForPrinting As New WebBrowser()
    AddHandler webBrowserForPrinting.DocumentCompleted, New _
    WebBrowserDocumentCompletedEventHandler(AddressOf PrintDocumentz)
    webBrowserForPrinting.Url = New Uri(IO.Path.GetTempPath & "_.html")
    End Using
    End Sub
    Private Sub PrintTktz()
    Dim webBrowserForPrinting As New WebBrowser()
    AddHandler webBrowserForPrinting.DocumentCompleted, New _
    WebBrowserDocumentCompletedEventHandler(AddressOf PrintDocumentz)
    webBrowserForPrinting.Url = New Uri(IO.Path.GetTempPath & "_.html")
    Do Until WebBrowserForPrint.IsBusy = False
    Loop
    webBrowserForPrinting.Dispose()
    End Sub
    La vida loca

  • Problem with Bulk printing of invoices using VF31.

    Hi,
    I tried to give bulk print of invoices using VF31, for around 200+ copies. Printing was going on but suddenly stopped after 50 copies get printed.
    Situation is the same even after i retry it.
    Can someone advice on the reason please.
    Thanks.
    Best regards,
    Srikrishhna13

    Issue identified and there was a problem with Network.

  • Problem with printing invoice. please help

    Hi,
    I am trying to print an invoice from transaction VF02 for a custom sapscript assigned. I went to:
    Goto >> header >> output and gave all the printing settings there. But when I save (even though I checkmarked both 'print immediately' and 'send immediately upon saving'), it's not getting printed in the printer I assigned. It gives some status message as 'Document XXXXXX saved (pricing error)'. I also went to SP01 also to see if there are any spool requests but could not find any. Can you please help with this so that I able to print it?
    Thanks in advance.

    Hi,
      If the "Release after output" is checked then once printed it will get deleted from the Spool.
      Also go to VF03 and in the outputs check the processing log if there is any error..
    Thanks,
    Naren

  • Invoice Print Selected Invoices program is failing when language is not US

    Hi All,
    I am trying to run "Invoice Print Selected Invoices" for multiple languages.
    When language in customer setup under "Account Site Information" is 'US' then EN-US: (Invoice Print Selected Invoices) is completing successfully.
    But when I am changing the language from US to some other language let’s say "F”, then "FR-FR: (Invoice Print Selected Invoices)" getting submitted and it is completing in error.
    These are the log messages which I am getting:-
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    Arguments
    p_order_by='TRX_NUMBER'
    p_customer_id='10044'
    p_open_invoice='N'
    p_check_for_taxyn='N'
    p_choice='SEL'
    p_header_pages='1'
    p_debug_flag='N'
    p_message_level='10'
    APPLLCSP Environment Variable set to :
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    FRENCH_FRANCE.AL32UTF8
    Entrer mot de passe :
    MSG-00100: DEBUG: AfterPForm_Trigger +
    MSG-00100: DEBUG: Multi Org established.
    MSG-00100: DEBUG: AfterParam_Procs.Get_Country_Details
    MSG-00100: DEBUG: AfterParam_Procs.Switch_On_Debug
    MSG-00100: DEBUG: AfterParam_Procs.Get_Trx_Number_Low
    MSG-00100: DEBUG: AfterParam_Procs.Get_Trx_Number_High
    MSG-00100: DEBUG: AfterParam_Procs.Get_Tax_Option
    MSG-00103: lp_trx_date_clause = and a.trx_date = a.trx_date
    MSG-00100: DEBUG: BeforeReport_Trigger.Build_Where_Clause
    MSG-00100: DEBUG: P_Choice: SEL
    MSG-00100: Oracle Error in call to Before Report Trigger -6502
    REP-1419: 'afterpform': Abandon du programme PL/SQL.
    Report Builder: Release 10.1.2.3.0 - Production on Ma Avr 2 05:59:27 2013
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Can anyone please tell me what is the problem or is there any mistake in my approach?
    Regards
    Akash

    Please see the following docs.
    R12: Invoice Print Errors With REP-0069, REP-57054, REP-1419 [ID 557171.1]
    Invoice Print Error: Printing Selected Invoices (Multiple Languages) Is Erroring Out With REP-0069: Internal error [ID 731171.1]
    Thanks,
    Hussein

  • My HP laserjet 1018 printer continue printing old document

    My HP laserjet 1018 printer continue printing the a document i sent sometime back every time i restart my computer. And when i try to print a new document , a window messege appears "invalid printer setting"

    Hi @Beaglemom49779, 
    I see by your post that you replaced the toner and are now getting all black pages. I can help you with this.
    Did you have the same issue with the printer before replacing the toner?
    It could be a hardware or fuser issue with the printer.
    If the issue just started after replacing the toner then most likely it is the toner.
    Make sure the printer is connected directly to a wall outlet. (don't use a power hub or a surge protector)
    Number one cause of toner issues.
    Inspect the toner cartridge for damage:
    1. Remove the toner cartridge from the product and verify that the sealing tape has been removed.
    2. Check the memory chip for damage.
    3. Examine the surface of the imaging drum on the bottom of the toner cartridge.
    CAUTION: Do not touch the roller (imaging drum) on the bottom of the cartridge.
    Fingerprints on the imaging drum can cause print-quality problems.
    4. If you see any scratches, fingerprints, black on the drum, or other damage on the imaging drum, replace the toner.
    5. If the imaging drum does not appear to be damaged, rock the toner cartridge gently several times and reinstall it. Print a few pages to see if the problem has resolved.
    Please call our technical support if the there is a issue with the toner and inquire about a replacement, at 800-474-6836. If you live outside the US/Canada Region, please click the link below to get the support number for your region. Contact HP.
    Have a nice day!
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • Problem in Printing of mutiple form on single click

    Hi all
    I m wrking on AFS and i had created a page for printing multiple invoice print on single click.
    A range of invoice is given as input and get out in the form of print preivew or print wat v choose .
    I mean a print pop is open for multiple invoice in a single click.
    Problem in printing of multiple form is speed .its going to be slow when click for printing .OR
    v can say that creation of multiple page in printing gets more time .Is ther  any way to solve  this .
    Plz suggest me some solution for that .
    Regards,
    Ravi

    Hi
    Check if Note 353518 - Selection of outputs takes much time and Note 910976 - Selection of output from billing (VF31) are relevants.
    Other suggestion. Do a trace with ST05 and check if you have any bottleneck in the coding that you can have in your Smartform or in your SAPscript, so check in tcode V/40 what form you are using . Also see Note 185530 - Performance: Customer developments in SD.
    I hope this helps you
    Regards
    Eduardo

  • Printing multi invoices from ebay works in IE8 but not Firefox, tried all your help tips, still not working?

    I sell things on ebay. I need to print out multi invoices from ebay. When I do this from Firefox the first page has my address but no customer info. It then prints out the second page OK.
    So I have to then return to printing out invoices and check (tick) the ones it's missed. Checked printer page sizes etc, prints fine from other apps and pages.
    I asked on ebay and someone said it's a FIREFOX problem, try it on IE8, -I did and it works ok. Please fix so I don't have to use IE8!

    You have an invalid path reference. in one version of the object tag it reads ../../navbar.swf, in the other this is truncated to ../navbar.swf. Hence the browser can simply not find the file (IE and FF each look at differnt parts of the code).
    Mylenium

  • Photoshop suddenly does not print to Epson 3880 - PROBLEM: Cannot print from Photoshop  After restart error message appears:  - "There was an error opening your printer. Printing functions will not be available until you have selected a printer and reopen

    PROBLEM: Cannot print from Photoshop
    After restart error message appears:
    — “There was an error opening your printer. Printing functions will not be available until you have selected a printer and reopened any documents.”
    • All print commands are greyed out and unavailable — even to call up the printer commands cannot be done.
    The printer printed fine until about 2 weeks ago when this error message appeared.  Printing continues from Pages, I-photo, preview etc. —  only Photoshop fails.
    The printer has been turned on and off, as have open documents been closed and open etc..   Preferences reset.  Repeatedly I have read through blogs and forums and attempted to contact Adobe — all without results
    Epson support struggled to find reason and several solutions were tried and they assume this is an Adobe problem.
    Running Mac Powerbook X 10.10.2 / Photoshop CS6 13.0.6.x64
    Attempting unsuccessfully to print to Epson 3880
    What Adobe support will be of help.
    Robert Darling —  2/19, 20, 21,22,23/2015

    Probably best to ask in Photoshop General Discussion
    This forum is about the Cloud as a delivery process, not about using individual programs
    If you start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • Problem in printing German characters

    Hello Experts,
    We have one issue regarding printing of German characters.
    Issue : When an invoice is created an automatic printout is issued to printer and one is archived in Vf03 (path : invoice header data-> output -> edit -> diplay originals). In the automatic issued printout capital German characters like Ö are not getting printed in invoice. But if we see the same in VF03, the document which is archived, the German characters are appearing.
    Could you please let me know what can be the reason for this ? It cannot be a printer issue because if we take a printout from VF03 the archived document it is printing absolutely fine. Problem is with automatic printout.
    Any suggestions are appreciated.
    Ravi Teja.
    Edited by: Amaravadi on Nov 9, 2011 5:02 PM

    Hi Saurabh,
    Did you [Search|https://www.sdn.sap.com/irj/scn/advancedsearch?query=chinesecharactersin+Script&cat=sdn_all] before posting...
    and also refer to this [link|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00adf4da-76f1-2910-43aa-81ad2a67332c]
    Regards!

  • Problem with printing-- logo comes upside down

    Hi ,
    We have some problem with printing.
    While testing the print output for billing we are experiencing some problems. Every thing  in the layout looks fine in the print preview but when i take a print out in my local printer , i see the client logo comes upside down and some lines  are missing .
    Can some body suggest me how to correct the same.
    Regards,
    Sekhar.

    Hi Michael,
    Thanks....
    We have checked the printer earlier also and seems to be fine.
    Aditional info:
    1) We are getting this problem while printing Billing from "VF01" transaction.
    2) In this also we have two invoice numbers given by functional guy out of which in for one we are getting the problem that "lines of the first box are not printing" and for second "logo is coming inverted & lines of the first box are not printing"
    Regards,
    Sekhar.

  • Problem with Printing the Billing date...

    Hi Experts...
    Here im facing the problem in printing the billing date.
    The scenario is as follows.
    The posting date of Billing is 10.10.2008
      The document date of Billing is also 10.10.2008.
    At the time of printing the Billing document it is taking another date otherthan 10.10.2008,where it should be 10.10.2008.
    What modifications should i do to rectify the problem.
    Please advice.
    Regards,
    Y P.

    Prasad,
    Ask your ABAPer do debug and find out what date (Table-Field) is used in the Invoice Output program. You will know the reason and if you think that the date being used is incorrect, you can ask your ABAPer to change it to VBRK-FKDAT which is the billing date.
    Chandan

  • Cleared paper jam-printer continues to display clear paper jam-printer will not reset

    officejet 8500 909a- cleared paper jam, printer continues to display Paper Jam, clear paper jam then press OK, that does not work. followed all hp instructions and attempted to reset. does not reset. unit is less that 3 years old. can the problem be fixed or should I just buy another printer which by the way more than likely will not be another hp product

    Hello,
    Here are some common steps to clear the paper jam:
    http://h30434.www3.hp.com/t5/Other-printing-questions/False-Paper-Jam/td-p/905169
    Another helpful resource to clean paper jams:
    http://h30434.www3.hp.com/t5/Other-printing-questions/Paper-Jam-videos/td-p/331916
    Hope this helps.
    I work for HP.

  • SAPScript Duplex Printing (SD Invoice)

    Hi all gurus,
    After reading some threads and as I told on this "answered" question from Manfred:
    Re: Duplex Printing SapScript: Invoice - Printer tries but fails backside?
    We need to print SD invoices in duplex mode.
    Settings that we have changed by now:
    - Sapscript: first page printmode as DUPLEX, next as default -> OK
    - Since read from official SAP documentation, for sapscript duplex you don't need to change display type or device type from SPAD. So I left the one was been used. Anyway, to be sure, I change its print mode to DUPLEX. I have also check if the print control SPMDU appears on the device -> OK
    - The printer we use is an OCE MP 1020 which can print on duplex mode and has PCL
    - I have tried printing the text SAPSCRIPT-PRINTMODETEST from SO10 but duplex does not work. They print on different pages.
    Following those instructions, I could not manage to do it.
    I have some questions:
    - Do we need to configure the printer locally in any way?
    - About the example "SAPSCRIPT-PRINTMODETEST", do you need to configure something before testing it for duplex printing?
    Could you please explain the needed steps to accomplish SAPScript duplex print?
    Thanks in advance,
    John

    Hi Aidan,
    Thanks for your response.
    I have changed the device type from SAPWIN to HPLJ4000.
    When I try to print the text: SAPSCRIPT-PRINTMODETEST
    The SAPLPD.LOG says:
    (11:10:16) Number of processors: 4
    (11:10:16) Icon DLL loaded.
    (11:10:16)
    (11:10:16) Network Communication via SAP-NiLib
    (11:10:16) Hostname: xxxxxxxx
    (11:10:16) IP Address: 9954064.2684488.2684488.1617840
    (11:10:16)
    (11:10:16) SAPLPD Version 6.29 for Windows/NT (OPT) is listening
    (11:10:16) OS-Info: version = 6.1, build = 0/7601, text = Service Pack 1
    (11:10:16) Copyright © 1992-2001 SAP AG
    (11:10:16)
    (11:10:26)
    (11:10:26) Receive job for printer __DEFAULT (Berkeley LPD protocol / RFC1179)
    (11:10:26) send_status called
    (11:10:26) send_status called
    (11:10:26) send_status called
    (11:10:26) send_status called
    (11:10:26) send_status called
    (11:10:26) Job 002aBOrZ.IS1 for user XXXXXX queued.
    (11:10:26) Job 002aBOrZ.IS1 (raw) started on printer \XXXXXXXXXX
    (11:10:26) Job 002aBOrZ.IS1 (raw) with 4955 bytes finished
    The printer is not printing any page :S
    This is the printer model:
    http://www.oce.co.uk/products/mp1020/specifications.aspx
    It supports PCL and Postscript
    What could be the problem?
    Thanks in advance

Maybe you are looking for

  • A better way to poll

    When my Start button is clicked it changes a member variable from false to true. Here is a simplified version of my code: public class gdvdhomevideo    private boolean blnBegin;    public static void main(String[] args)       while(blnBegin == false)

  • E2E trace analysis in Solman

    Dear all, I have some question about the E2E trace analysis on solman. Hope you can help me!~ 1. We are using Solman 7.1 SP6 and we will upgrade to SP10 or SP11 in recent months. We want to use solman RCA trace analysis to trace ERP ABAP program. Cou

  • CRXI sp2 - sp4 printer woes

    Post Author: jtcrystal CA Forum: Crystal Reports I have a VB6 application using Crystal Reports XI that is imbedded within.  The problem is that the reports are viewable and legible with SP2 installed.  When we updated to SP4 the reports are now disp

  • Rapid restore for T30 2366-21 - Where to find / download

    I had to wipe the hard drive on my T30 2366-21U.  I no longer have any of the software cd's.  How / where can I find a copy of rapid restore that will work with my laptop?  Also, what is the recommended version I should be using?  Help please.

  • How to trap SOAP request and SOAP responce

    Hello, I want to trap all soap messages send by WS client. I am using jdeveloper. How could i do that. please help me. I want to directly see all soap request(Whole xml document)