Sorting invoices to be printed

Hello everybody,
Is there any relation between an output message (NAST) and the generated spool order (TSP01)?  I have a list that shows all the spool orders and I need to know the SD document associated. Is it possible?
I have to create a program to sort invoices depending on its number pages (this information is contained into spool order) and its country (information contained into the SD document).
Thanks in advance,
Ricard.

Hello Ricard,
Did you evaluate the use of the sort fields in VF31 (output from billing)?
The field "Sort order for output from billing documents" controls the sorting of output.
As customizing depending on the output type, you can print billing document ordering with the right sort order in a standard way.
I know it does not fit 100% of your business requirement, but maybe it is "good enough" and it would be standard functionality, easier to maintain, etc.
Regards,
Franck

Similar Messages

  • How to get that the invoice has been printed or not?

    Hi Experts,
    I have a issue in Printing Invoice. I have to make 2 copies of an invoice. One is Original and another is Duplicate. I have made that with copy windows. But the requirement is that when the original copy of a selected invoice has been printed then from the second time only the duplicate copy will be printed. How to do that in ABAP? How to get the information that the invoice has been printed or not?
    Regards,
    SURYA

    Hi Surya,
    Try the below approach, i think this is better than the previous approach and takes care of the print from "text menu" as well
    select from z table.
    if sy-subrc eq 0.
      call "SMARTFORM_COPY"
    else.
    While calling the smartform, make sure you import the "JOB_OUTPUT_INFO" parameter,
    and after you call the smartform,
    call "SMARTFORM_ORIG"
    exporting...
    Importing...
    job_output_info = w_job_output_info
    exceptions...
    If sy-subrc eq 0.
      if w_job_output_info EQ 'X'.
        update the Z table.
      else.
        do not update the z table
      endif.
    endif. 
    endif.
    Regards,
    Chen

  • Report for no of invoices sent for print

    Hi Gurus,
    Report is needed that indicates how many invoices should be printed daily from SAP.  we are printing and mailing invoices; report should detail how many need to be mailed vs. were sent edi/faxed.
    How i can achive this ?
    Regards,
    Sujit Shinde.

    The output records can be found from table NAST. I suppose you could create a query based on it.

  • How to Hit Request of Invoice NO In print Option Conditionaly

    Dear Friend
    i want display to my print option enable and disable according to condition.So i have done some code in my Sql Query.Print Option is display me enable and disable condiotanly correctly but where Print option is ebalbe to print ,When i press print Link then it does not display me invoice details in PDF File to print .My Invoice no do not Hit invoice no as request to Print.
    What Shou.ld i do to pass invoice no to print Invoice.
    My print code which i have use to print
    CASE
                  WHEN NVL(VID.CONTROLSUM, 0) = NVL(VID.SUM, 0)
                  THEN
                     '<a href=http://org:1545/reports/rwservlet?SERVER=rep_inv_ora10gias+REPORT=REP_667.RDF+DESTYPE=CACHE+DESFORMAT=PDF+USERID=UDS/UDS@PROD+P_SBU_CODE=0002+P_INVOICE_NO=INVOICE_NO>Print</a>'
    WHEN NVL (VID.CONTROLSUM, 0) <> NVL (VID.SUM, 0)
                  THEN
                     'PRINT'
               END
                  AS the_PRINT,
    Here Request of inoice No Does not Hit.
    *P_SBU_CODE=0002+P_INVOICE_NO=INVOICE_NO*My Code
    This is my View code which i use in my Sql Query Report.View Name *VW_INVOICE_DTL_REPORT*
    SELECT   am.INVOICE_NO,
               CASE WHEN am.INVOICE_TYPE = 'C' THEN 'BLUE' END the_color,
               CASE
                  WHEN am.CURR_CODE = 'GBP' THEN 'GREEN'
                  WHEN am.CURR_CODE = 'EUR' THEN 'purple'
               END the_gbp,
               am.INVOICE_NO AS invoice,
               am.INVOICE_TYPE,
               am.INVOICE_DATE,
               am.CONSULTANT_NAME,       
    DECODE (am.INVOICE_TYPE,
                       'I', (NVL (SUM (al.AMOUNT), 0)),
                       (NVL (SUM (al.AMOUNT), 0)))
                  AS SUM,
               um.user_name,
               cm.name,  
             NVL (am.inv_dtl_amt, 0) AS CONTROLSUM,
               CASE
                  WHEN NVL (am.inv_dtl_amt, 0) <> NVL (SUM (al.AMOUNT), 0)
                  THEN
                     'RED'
               END
                  the_sum, 
               Inv_in_apps (Am.Invoice_no) AS apps_FLG
        FROM   AR_INVOICE_MAS am,
                AR_INVOICE_DISTRIBUTION_DTL al
       WHERE       am.invoice_no = al.invoice_no(+)
    GROUP BY   am.ID,
               am.invoice_no,
               am.INVOICE_TYPE,
               am.INVOICE_DATE,
               am.inv_dtl_amtThis is my Report SQL Query
    select
    VID.*
                  CASE
                  WHEN NVL(VID.CONTROLSUM, 0) = NVL(VID.SUM, 0)
                  THEN
                     '<a href=http://org:1545/reports/rwservlet?SERVER=rep_inv_ora10gias+REPORT=REP_667.RDF+DESTYPE=CACHE+DESFORMAT=PDF+USERID=UDS/UDS@PROD+P_SBU_CODE=0002+P_INVOICE_NO=INVOICE_NO>Print</a>'
    WHEN NVL (VID.CONTROLSUM, 0) <> NVL (VID.SUM, 0)
                  THEN
                     'PRINT'
               END
                  AS the_PRINT,
    CASE VID.APPS_FLG
                  WHEN  'N'
                  THEN
                     '<a href="f?p=&APP_ID.:5:&SESSION.:MODIFY:&DEBUG.:5:P5_SBU_CODE,P5_INVOICE_NO:
                     || VID.SBU_CODE
                     || ','
                     || VID.INVOICE_NO
                     || ':"><img src="#IMAGE_PREFIX#edit.gif" alt="Edit"></a>'
                  WHEN 'Y'
                  THEN
                     '<img src="#IMAGE_PREFIX#edit.gif" alt="Invoice Transfered">'
               END
                  AS the_Edit,
               CASE VID.APPS_FLG
                  WHEN 'Y'
                  THEN
                     '<font color ="Gray"></b>Revenue</b></font>'
                  ELSE
                     '<a href="f?p=&APP_ID.:41:&SESSION.:MODIFY:&DEBUG.:41:P41_sbu_code,P41_Invoice_no:'
                     || VID.SBU_CODE
                     || ','
                     || VID.INVOICE_NO
                     || ':">
    <font color =GRAY><b>Revenue</b></font></a>'
               END
                  AS Revenue
    FROM VW_INVOICE_DTL_REPORT VIDHow to Do This ?
    Thans
    Edited by: Vedant on May 17, 2013 12:03 AM

    I can, but I am usually not using my mbp at home and I wouldn't like to carry a keyboard around with me just to hit a right alt key. I am sure there's a solution for this...
    Thank you

  • Printing SAP invoice on SAP printer using custom SAP report

    Hi SAP Experts,
    We have the following requirement.
    We need to create a custom report in ABAP to print the Invoice on the printer specifed in the input selection screen.We don't want to use the external commad using GUI.Can annyone please suggest how can we create a spool directly using the invoicve no in sap.
    Thanks,
    Prathamesh

    Hi Prathamesh,
    Follow this approach.
    Get NAST entry corresponding to invoice number(invoice number = objky).
    insert this piece of code :
         gwa_nast-vstat = 1.
         gwa_nast-erdat = sy-datum.
         gwa_nast-eruhr = sy-uzeit.
         gwa_nast-usnam = sy-uname.
         gwa_nast-manue = 'X'.
         gwa_nast-vstat = 0.
         gwa_nast-LDEST = P_printername_from_selection_screen.
         CLEAR gwa_nast-datvr.
         CLEAR gwa_nast-uhrvr.
         CLEAR gwa_nast-cmfpnr.
       MOVE gwa_nast TO nast.
       PERFORM einzelnachricht_dialog IN PROGRAM rsnast00 USING sy-subrc.
       IF sy-subrc NE 0.
         PERFORM objekt_entsperren IN PROGRAM rsnast00.
         IF sy-subrc EQ 9.
           RAISE print_error_dial.
         ELSE.
           RAISE print_error.
         ENDIF.
       ENDIF.
       SET SCREEN 0.
       PERFORM objekt_entsperren IN PROGRAM rsnast00.
       COMMIT WORK AND WAIT.
    the above will generate a spool.
    Thanks,
    Anil

  • HT4356 I have a iPad 2 and want to print of a invoice can I print from my iPad 2 on my hp photos art 3110 all in one

    I have a iPad 2 and need to print of a invoice can I print on my hp photos art 3110 all in one if so how do I go about it please

    your printer doesn't appear in the compatible Airprint printers listed in this basic article: http://support.apple.com/kb/ht4356
    There might be an app HP has to help you out, but there's no Apple supported way, as it's not an Airprint printer.
    Anyways, hope this helps
    Good luck
    Stijn

  • Item AR Invoice Status: "Open - Printed"

    Hi
    I upgraded SAP B1 8.81 PL07.
    In new verson, i have a problem in AR Invoice
    In case of Service Invoice: Status: "Open", which is correct.
    In case of Item Invoice, Status: "Open - Printed"
                            even i did not print that document.
    Is it bug in new verson?
    Nilesh Shah

    Hi,
    Check whether the document you are talking about which has the 'Open-Printed' status is using the Manual numbering series.
    If yes, then you can check this Note. Note No. : [1577486|https://b1-support.wdf.sap.corp/sap/support/notes/1577486]
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • I need guidance putting an invoice together and printing it out...

    My next big task is pulling informaton from my DB, organizing it into an invoice template and then printing it out.
    I know the DB stuff but what do I need to use in order to organize that information into a pre-designed invoice and then printing it out with a single press of a button?

    nise_k,
    My program handles customer accounts and all of the transactions that I do with them. I need to get my program to print out invoices with certain information taken from the DB and organize it into an easy to read and professional looking invoice.
    I have allready figured out how to use the Print Class so I'm pretty sure I have the information I need to create these invoices.
    The "Single press of a button" comment was referring to just pressing a "Print Invoices" button located somewhere in my program that would print all of the invoices instead of going to a customer account, clicking "Print Invoice", preview the invoice, and then print it before going on to the next customer.
    I think the only way you could help me at this point would be if you know about a class that will take a .txt or .doc file, replace words like %CUSTOMERID% with the correct information from the DB and then printing that document without changing the layout of the invoice.

  • VF31 is not printing invoices; it is printing only the list

    In VF31 I get so far as to see the list of invoices I want to print displayed on the screen. When I execute the request, what prints out is what I'm seeing on the screen - just the list, plus another page of stats. The actual invoices do not print out. Please help!

    hi, and thank you for your response!
    I think i've got this figured out. Thank you.
    Edited by: A1199704 on Aug 10, 2010 5:34 PM

  • How to sort Invoices through Personalization!!

    Dear All,
    Kindly give me some solutions about how to sort invoices on GL date through personalization?
    Please reply urgently!!
    Regards,
    Younus

    Hi,
    you try like this..
    with the help "Folder Tools",
    1)move the "GL date" column into first position.
    2)Goto "Folder" menu, then select "Sort" submenu
    3)then select ascending or descending order.
    check it and update the status
    regards
    mahes

  • Sorting Invoice line items after they've been summed

    Hi,
    I'm working on a template for the out-of-box invoice using the XML it generates. The body of the document contains the line items, and I've successfully been able to print and sum (net amount and tax) these line items by Item Description and Unit Price using the following code:
    <?for-each@section:G_INVOICE?>
    <?for-each-group:G_LINE_TOTAL;./LIST_G_LINES/G_LINES/LINE_ITEM_DESCRIPTION[../LINE_TYPE='LINE']?>
    <?for-each-group:current-group();./LIST_G_LINES/G_LINES/LINE_UNIT_SELLING_PRICE[../LINE_TYPE='LINE']?>
    <?./LIST_G_LINES/G_LINES/LINE_ITEM_DESCRIPTION[../LINE_TYPE='LINE']?>
    <?sum(current-group()/./LIST_G_LINES/G_LINES/LINE_QTY_INVOICED[../LINE_TYPE='LINE'])?>
    <?./LIST_G_LINES/G_LINES/LINE_UNIT_SELLING_PRICE[../LINE_TYPE='LINE']?>
    <?sum(current-group()/./LIST_G_LINES/G_LINES/LINE_ITEM_AMOUNT[../LINE_TYPE='LINE'])?>
    <?sum(current-group()/./LIST_G_LINES/G_LINES/LINE_EXTENDED_AMOUNT[../LINE_TYPE='TAX'])?>
    What I need to do now is also SORT the summed line items by Item Description and Unit Price, but everything I've tried is giving me errors.
    One thing I've tried is adding the SORT command to the element that is printing the Item Description as in the following:
    <?sort:./LIST_G_LINES/G_LINES/LINE_ITEM_DESCRIPTION[../LINE_TYPE='LINE'];'ascending';data-type='text'?>
    I've also tried adding a separate field to do the sorting, but I'm getting different errors then.
    Thanks in advance for any suggestions.

    Thanks! This helped to some extent.
    Adding the sort for the LINE_ITEM_DESCRIPTION after the for-each-group for it worked to sort the lines by item description, but when I added the sort command for the LINE_UNIT_SELLING_PRICE within its for-each-group, I get the following error:
    FOProcessor setLocale: en-us
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at oracle.apps.xdo.common.xml.XSLT10gR1.invokeProcessXSL(XSLT10gR1.java:593)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:390)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:208)
         at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:161)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1019)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:972)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:211)
         at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1577)
         at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:952)
         at RTF2PDF.runRTFto(RTF2PDF.java:626)
         at RTF2PDF.runXDO(RTF2PDF.java:460)
         at RTF2PDF.main(RTF2PDF.java:251)
    Caused by: java.util.EmptyStackException
         at java.util.Stack.peek(Unknown Source)
         at java.util.Stack.pop(Unknown Source)
         at oracle.xdo.parser.v2.XSLTContext.popCurrentGroupingKey(XSLTContext.java:905)
         at oracle.xdo.parser.v2.XSLForEachGroup.processGroups(XSLForEachGroup.java:468)
         at oracle.xdo.parser.v2.XSLForEachGroup.process01(XSLForEachGroup.java:282)
         at oracle.xdo.parser.v2.XSLForEachGroup.process(XSLForEachGroup.java:210)
         at oracle.xdo.parser.v2.XSLForEachGroup.processAction(XSLForEachGroup.java:94)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLForEachGroup.processGroups(XSLForEachGroup.java:465)
         at oracle.xdo.parser.v2.XSLForEachGroup.process01(XSLForEachGroup.java:282)
         at oracle.xdo.parser.v2.XSLForEachGroup.process(XSLForEachGroup.java:210)
         at oracle.xdo.parser.v2.XSLForEachGroup.processAction(XSLForEachGroup.java:94)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLForEach.processAction(XSLForEach.java:142)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLTemplate.processAction(XSLTemplate.java:191)
         at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:508)
         at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:485)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:264)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:150)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:187)
         ... 16 more
    I would appreciate to know what is wrong with this and, also, how to interpret these errors.....is there any sort of error code manual?

  • A/R Invoices entered and printed directly from FI

    We enter a fair amount of our Accounts Receivable invoices directly in FI.  They are not part of the SD module.  Besides using transactions FB12 (Request Correspondence) and F.64 (Maintain Correspondence) is there another way to print these invoices?
    Any help would be greatly appreciated.
    Thanks,
    Sue

    You could call the print program (RFKORD50) in a user-exit when the Invoice is saved after entering.
    A good ABAPer should be able to put something togther in less than a day.

  • Invoice is not printing

    Hi Friends
    In VF02, when I try to print invoice , system is throwing error pop up that u201Cdate 10 15 2009 period T is not validu201D .
    When I click on error below message will be displayed .
    Message No VD 35
    Diagnosis:The format of the date entered is invalid .
    Procedure :
    Check the period indicater and date entered and whether they match .What could be the reason and how I can resolve it .
    This billing doc was created on 10 15 2009 . all other billing doc are printing properly .
    Thanks in Advance

    Hi,
    As per the error message you are not entering the date in proper format.
    1.Date should be in DDMMYYYY format
    2.Date should be entred without any spaces
    3.Date value either contains '.' or '/' as a seperator.
    Hope now your problem will be solved.
    Pooja

  • Excise Invoice not getting printed directly.

    Hi ;
    Our client earlier using J1Ip with sp01 for printing excise invoices.
    As per new requirement through J1IP only direct printing is required so that there is no need to go SP01.
    I have using print immediately setting in VF02. As well as VV31 also maintained.
    Still system is genearting spool request & need to go to Sp01 to print the invoice.
    Can somebody help me in this regards;
    Thanks;
    Anita

    Hi
    Anita
         As told by u everthing is corect. Please check the SAP LPD is getting open or not while u firing print out ? Please load lpd files again.
    Hope this will help u.

  • Excise Invoice (vendor return) print

    Hi frieds,
    I am creating excise invoice for purchase return to vendor. i am using the t..code J1IS and creating and posting the excise invoice.
    Now, how to take print out of this excise invoice. in J1IP, I am not able to see this invoice (but other ivoices created for factory sales are visible)
    Reward guarrented for helpful answers.
    Sumit

    Hi Prakash,
    I used the program for SD Excise Invoice and did modification in that.
    SELECT SINGLE * FROM J_1IEXCHDR
         WHERE TRNTYP = 'OTHR'
         AND   RDOC   = NAST-PARNR
         AND   RIND   = 'I'
         AND   STATUS = 'P'.
    INSTEAD OF
    SELECT SINGLE * FROM J_1IEXCHDR
         WHERE TRNTYP = 'DLFC'
         AND   RDOC   = NAST-OBJKY(10)
         AND   RIND   = 'N'
         AND   STATUS = 'C'.
    Regards
    Indra

Maybe you are looking for

  • Printing with an HP Laserjet P1009 through a time capsule

    hello I have an HP Laserjet P1009 and a macbook Pro. I can print from the macbook to the laserjet just fine if it is connected directly (USB), but I am trying to connec the printer to my time capsule and print through there. I saw a previous post wit

  • Error: Illegal use of when -style tag without choose as its direct paren

    Hi, I'm using the Code: <c:choose> <c:when test="${empty param.usernaseme}" > <B>Hello <c:out value="${param.usernaseme}" /></B> </c:when> <c:otherwise> unknown user name. </c:otherwise> </c:choose> and keep geting the Error: Illegal use of <when>-st

  • HT4623 Email problem after resetting my iphone 4S

    I recently had trouble with my iphone 4S and wound up having to restore it. When I did, the email lost 2 folders. How can I get that feature back? Thanks in advance

  • Oracle Report 6.0 - DESTYPE=MAIL

    Anybody can give some info. on using DESTYPE=MAIL and what other settings are required to run these report. An early reply would be appreciated Thanks, Pash null

  • How to set Flash CS3 "custom" classspath

    Hello Flash Forum, I am following a tutorial on how to create a class. this class requires a package like: todd.interactive (a tutorlal from Lynda.com) I have created my on dir where I keep fla files: D:\Flash\, and then have created the following di