Skip to Content
avatar image
Former Member

invoice printing issue

HI ...

I have an issue in printing invoice.....

invoice contains 7line items per page....

Against that particular invoice original copy which was taken print out , tha last item line is completely missing and that too

suppose ...last item 070 cs 12345 lemon tea description 4343.00 1234.00


*support* ....

In the above displayed last line item 070 line is completely missing ,but the 2nd and 3rd line of the description in next lines are being displayed.....

and this problems occurs only in the first print in ,when it is printed on a plain paper it is perfectly fine and displays the first line as well...

i want to know how to debug and find the solution in th driver porgram as i think the problem is inthe logic of driver program.

output type is rd00..and it is only single output type....

please help me solve this ticket as its on high priority.....sos

thanks in advance


Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

5 Answers

  • avatar image
    Former Member
    Apr 19, 2010 at 11:40 AM


    To debug any print program, you just need to follow the basic flow of debugging:

    1. Put the breakpoint in your source code. (In your case try to find where that table is populating)

    2. Just follow the steps that you takes to take print or print preview, either through any T-code or via program it self.

    Let me know if not clear.



    Edited by: Lokesh Tarey on Apr 19, 2010 1:40 PM

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 20, 2010 at 06:06 AM

    hi , Lokesh...

    thanks for ur reply...

    but i am not able to figure out waht i should look for to solve the problem... and its in logic of driver porgram loop....endloop iguess..

    i have set the break-point at htat point ..but i am not understanding what ishould look for ..........

    the problem is onl;y when the print out is taken fort he first time that last line item i.e. #070 line is missing ....but not its part below which says non-taxable ....this part is printing.....

    and when given reprint its fine

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member


      Is this problem occur when u see on the screen?

      please look for windows overlapping in the form.

      Generate a spool request and convert the spool request in pdf using pgm RSTXPDFT4. i think this fine

      check both pdf and screen output to get the solution


      Chandra Kavali

  • Apr 20, 2010 at 10:15 AM

    The invoice is a sapscripts or smartforms?

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Expert

      seenario 1:

      Unit price is not printed in Invoice, in case the item condition type is ZN00. Customer is demanding that every item does appear on the invoice with an unit price

      Scenaro 2 :

      Customer requires item details of the individual invoices on the invoice list; they want to see the lines for full service and rental separately. Currently smartform ZSDINVOICE_LIST_SF_PORT does not support this

      Please help me on this issues

  • Apr 20, 2010 at 12:00 PM

    Activate debugger in sapscripts and debug the form. Check if the element in main window printing the items is called for each line item. Also, if possible share the code for printing line items in driver program and script......

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 20, 2010 at 12:39 PM


    I am unable to get what exactly is your problem. Kindly elaborate explain clearly for a quick solution. If possible, attach screen shots. What I deduced is, 'Script is not printing the last line item in the original print but printing fine in the following copies". In this case just primarily debug the loop that is populating the internal table meant for line items. secondly check if all the line items are read to display (output). once again check the 2nd and 3rd copies for duplicate line items.



    Add comment
    10|10000 characters needed characters exceeded