Capturing the creation of an invoice by jpeg or PDF.

Hello all.
Im trying to write an add on that takes an invoice before it printed and capture the file or image (or pdf) of that invoice by using UI API.
1. is it possible ?
2. if not by extracting the data using getdata method how do i know if its draft (112) or invoice (13) cant find that property.
3. if needed to create my own pdf does the XML should look like this ? and is there a dictionary to understand the tags?
<?xml version="1.0" encoding="utf-16"?>
<!-- 
     Item Types Legend
     NullType = 0
     Page Header = 1
     Report Header = 2
     Repetitive Header = 3
     Repetitive Body = 4
     Repetitive Footer = 5
     Report Footer = 6
     Page Footer = 7
     Item = 13
     Content Types Legend
     Text = 1
     Variable = 2
     Database = 3
     Formula = 4
       -->
<Document>
  <Pages>
    <Page>
      <Area Type="1" Id="F_001">
        <Item Type="13" Id="F_142               " Value="CUST. NO."></Item>
        <Item Type="13" Id="F_137               " Value="INV. DATE"></Item>
        <Item Type="13" Id="F_136               " Value="APPLY TO"></Item>
        <Item Type="13" Id="F_127               " Value="INVOICE NO."></Item>
        <Item Type="13" Id="F_190               " Value="OEC Computers"></Item>
        <Item Type="13" Id="F_100               " Value="C20000"></Item>
        <Item Type="13" Id="F_175               " Value="01/05/2010"></Item>
        <Item Type="13" Id="F_155               " Value=""></Item>
        <Item Type="13" Id="F_010               " Value="89"></Item>
        <Item Type="13" Id="F_189               " Value="1901 Maynesboro Drive&#xD;Suite 200&#xD;New York NY  19065&#xD;USA(610) 768-7465"></Item>
        <Item Type="13" Id="F_177               " Value=""></Item>
        <Item Type="13" Id="F_176               " Value=""></Item>
        <Item Type="13" Id="F_128               " Value="INVOICE"></Item>
        <Item Type="13" Id="F_103               " Value="1"></Item>
        <Item Type="13" Id="F_147               " Value="BO"></Item>
        <Item Type="13" Id="F_141               " Value="WORK ORDER NO."></Item>
        <Item Type="13" Id="F_139               " Value="PAGE NO."></Item>
        <Item Type="13" Id="F_203               " Value="Original"></Item>
        <Item Type="13" Id="F_171               " Value="S H I P  T O"></Item>
        <Item Type="13" Id="F_170               " Value="S O L D  T O"></Item>
        <Item Type="13" Id="F_186               " Value="Ship to"></Item>
        <Item Type="13" Id="F_009               " Value="Norm Thompson"></Item>
        <Item Type="13" Id="F_174               " Value="300 Billings Drive&#xD;Suite 500&#xD;Havertown PA  19083&#xD;USA"></Item>
        <Item Type="13" Id="F_012               " Value="300 Billings Drive&#xD;Suite 500&#xD;Havertown PA  19083&#xD;USA"></Item>
        <Item Type="13" Id="F_113               " Value="TERMS"></Item>
        <Item Type="13" Id="F_112               " Value="F.O.B."></Item>
        <Item Type="13" Id="F_111               " Value="SHIP VIA"></Item>
        <Item Type="13" Id="F_110               " Value="PURCHASE ORDER NO."></Item>
        <Item Type="13" Id="F_109               " Value="DUE DATE"></Item>
        <Item Type="13" Id="F_034               " Value="2P10Net30"></Item>
        <Item Type="13" Id="F_162               " Value=""></Item>
        <Item Type="13" Id="F_108               " Value="UPS Ground"></Item>
        <Item Type="13" Id="F_101               " Value=""></Item>
        <Item Type="13" Id="F_059               " Value="02/04/2010"></Item>
        <Item Type="13" Id="F_118               " Value="TERRITORY"></Item>
        <Item Type="13" Id="F_117               " Value="SALESPERSON"></Item>
        <Item Type="13" Id="F_116               " Value="LOCATION"></Item>
        <Item Type="13" Id="F_115               " Value="DATE REQUESTED"></Item>
        <Item Type="13" Id="F_114               " Value="BUYER"></Item>
        <Item Type="13" Id="F_163               " Value=""></Item>
        <Item Type="13" Id="F_047               " Value="Sales Manager"></Item>
        <Item Type="13" Id="F_164               " Value=""></Item>
        <Item Type="13" Id="F_106               " Value=""></Item>
        <Item Type="13" Id="F_165               " Value="Norm Thompson"></Item>
      </Area>
      <RepetitiveArea index="1">
        <Area Type="3" Id="F_017">
          <Item Type="13" Id="F_124               " Value="EXTENSION"></Item>
          <Item Type="13" Id="F_123               " Value="UNIT PRICE"></Item>
          <Item Type="13" Id="F_223               " Value="Qty Shipped"></Item>
          <Item Type="13" Id="F_224               " Value="Backorder"></Item>
          <Item Type="13" Id="F_121               " Value="QTY ORDER"></Item>
          <Item Type="13" Id="F_120               " Value="Description"></Item>
          <Item Type="13" Id="F_119               " Value="ITEM NO."></Item>
        </Area>
        <Area Type="4" Id="F_022">
          <Rows>
            <Row>
              <Item Type="13" Id="F_025               " Value="$ 3,000.00"></Item>
              <Item Type="13" Id="F_198               " Value="$ 600.00"></Item>
              <Item Type="13" Id="F_225               " Value="5.000"></Item>
              <Item Type="13" Id="F_226               " Value="0.000"></Item>
              <Item Type="13" Id="F_191               " Value="5.000"></Item>
              <Item Type="13" Id="F_023               " Value="IBM Infoprint 1312"></Item>
              <Item Type="13" Id="F_087               " Value="A00001"></Item>
            </Row>
            <Row>
              <Item Type="13" Id="F_025               " Value="$ 1,500.00"></Item>
              <Item Type="13" Id="F_198               " Value="$ 300.00"></Item>
              <Item Type="13" Id="F_225               " Value="5.000"></Item>
              <Item Type="13" Id="F_226               " Value="0.000"></Item>
              <Item Type="13" Id="F_191               " Value="5.000"></Item>
              <Item Type="13" Id="F_023               " Value="IBM Infoprint 1222"></Item>
              <Item Type="13" Id="F_087               " Value="A00002"></Item>
            </Row>
            <Row>
              <Item Type="13" Id="F_025               " Value="$ 2,250.00"></Item>
              <Item Type="13" Id="F_198               " Value="$ 450.00"></Item>
              <Item Type="13" Id="F_225               " Value="5.000"></Item>
              <Item Type="13" Id="F_226               " Value="0.000"></Item>
              <Item Type="13" Id="F_191               " Value="5.000"></Item>
              <Item Type="13" Id="F_023               " Value="IBM Infoprint 1226"></Item>
              <Item Type="13" Id="F_087               " Value="A00003"></Item>
            </Row>
            <Row>
              <Item Type="13" Id="F_025               " Value="$ 3,750.00"></Item>
              <Item Type="13" Id="F_198               " Value="$ 750.00"></Item>
              <Item Type="13" Id="F_225               " Value="5.000"></Item>
              <Item Type="13" Id="F_226               " Value="0.000"></Item>
              <Item Type="13" Id="F_191               " Value="5.000"></Item>
              <Item Type="13" Id="F_023               " Value="HP Color Laser Jet 5"></Item>
              <Item Type="13" Id="F_087               " Value="A00004"></Item>
            </Row>
            <Row>
              <Item Type="13" Id="F_025               " Value="$ 3,000.00"></Item>
              <Item Type="13" Id="F_198               " Value="$ 600.00"></Item>
              <Item Type="13" Id="F_225               " Value="5.000"></Item>
              <Item Type="13" Id="F_226               " Value="0.000"></Item>
              <Item Type="13" Id="F_191               " Value="5.000"></Item>
              <Item Type="13" Id="F_023               " Value="HP Color Laser Jet 4"></Item>
              <Item Type="13" Id="F_087               " Value="A00005"></Item>
            </Row>
          </Rows>
        </Area>
        <Area Type="5" Id="F_027"></Area>
      </RepetitiveArea>
      <Area Type="6" Id="F_091">
        <Item Type="13" Id="F_217               " Value="REMARKS"></Item>
        <Item Type="13" Id="F_216               " Value="&quot;� ����� ���� 1."></Item>
      </Area>
      <Area Type="7" Id="F_063">
        <Item Type="13" Id="F_215               " Value="DEPOSIT"></Item>
        <Item Type="13" Id="F_179               " Value="Tax"></Item>
        <Item Type="13" Id="F_180               " Value="DISCOUNT"></Item>
        <Item Type="13" Id="F_178               " Value="SUBTOTAL"></Item>
        <Item Type="13" Id="F_196               " Value="$ 14,310.00"></Item>
        <Item Type="13" Id="F_214               " Value=""></Item>
        <Item Type="13" Id="F_199               " Value="$ 810.00"></Item>
        <Item Type="13" Id="F_200               " Value=""></Item>
        <Item Type="13" Id="F_201               " Value="$ 13,500.00"></Item>
        <Item Type="13" Id="F_168               " Value="PLEASE REMIT THIS AMOUNT"></Item>
        <Item Type="13" Id="F_125               " Value="INVOICE NO."></Item>
        <Item Type="13" Id="F_105               " Value="89"></Item>
      </Area>
    </Page>
  </Pages>
</Document>
thanks in advance.

Hi Guys i am on the my brink of destruction here ....
i was able to extrct the A/R invoice Data like this.
query = "SELECT DocEntry FROM OINV WHERE DocNum = 55";
                        rs = (SAPbobsCOM.Recordset)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);
                        rs.DoQuery(query);
                        Console.WriteLine("aantal regels {0}", rs.RecordCount);
                        if (rs.RecordCount > 0)
                            string tmp = rs.Fields.Item(0).Value.ToString();
                            SAPbobsCOM.Documents oDoc;
                            oDoc = (SAPbobsCOM.Documents)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices);
                            oDoc.GetByKey((int)rs.Fields.Item(0).Value);
                            if (oDoc.Printed == PrintStatusEnum.psNo)
                                printeventInfo.MarkAsPrinted();
                                oDoc.SaveToFile(@"C:\Dev\Beehive\Testforsap\SapBusinessOneAdaptor\SapBusinessOneAdaptor\bin\Debug\tmp.xml");
                                string tmp1 = oDoc.GetAsXML();
can i use this data to create pdf file with crystal report using the user template of this invoice ?
some code would be nice
a smile will be given to the helper
thanks
Guy

Similar Messages

  • Control the creation of excise invoice without chapter id

    Hi All
    If Chapter ID is not maintained for a material in J1ID, can we control the creation of the sales excise invoice (J1IIN) for that particular material.
    Thanks in advance
    regards
    Ram A

    Hi Rajesh
    Thanks for your reply.
    Eventhough the chapter ID is not maintained in the Material Master or in J1ID, the system will allow the creation of the sales excise invoice (J1IIN) without any excise duties in case of TAXINJ and with excise duties in case of TAXINN.
    My requirement is that the system should restrict the creation of sales excise invoice for the materials without chapter ID.(Any User exits ???)
    regards
    Ram A

  • BAPI for the creation of SD - Invoice

    Dear All,
    Please suggest any BAPI or function module for creating SD billing document from delivery.
    Note : BAPI or FM for VF01.
    Regards,
    Subhash

    Hi,
    for creating invoice BAPI_INCOMINGINVOICE_CREATE
    This wont work.It is for creating MIRO, through MM. He needs creating of SD invoice.
    Regards,
    Amit

  • Creation of excise invoice before billing document

    Hello Experts,
    Our user is creating excise invoice for xyz material (own manufactured products) dispatched from the plant after creation of the commercial invoice.
    Now it is required to create the excise invoice before creation of billing documents.
    How this is to be done? suggestions please.
    Regards,
    Raj

    First, U Need to Change the SPRO Setting Like Below:
    In VTFL, you should maintain both copy controls for
    u2022     Delivery (LF) --> Proforma (F8)
    u2022     Delivery (LF) --> Commercial Inv (F2)
    Once you do PGI, in VF01, you have to select manually the billing type F8 and save the proforma. Based on this proforma, when you access J1IIN, system will ask for Billing document reference where you can input proforma reference.
    Creation of Proforma Invoice is required for the creation of Excise Invoice for Sale.
    The transaction codes are :- VF01 :- for creation of Proforma Invoice
                                              VF02 :- for change of Proforma Invoice
                                              VF03 :- for display of Proforma Invoice
    While creating Proforma Invoice the Billing Type to be changed to u201C Pro Forma Invoice for Delivery u201C as shown in the screen shot and then Delivery Number to be entered in u201CDocument u201C field . After executing and Saving the transaction Proforma Invoice will be generated.
    So restriction in Authorization is required to allow only Billing Type u201C  Pro Forma Invoice for Delivery u201C for those who will prepare Proforma Invoice .
    P Kamal Kumar

  • Creation of freight invoice

    Hi ,
    I am a technical consultant. but wnated to clear some doubt abt the creation or freight invoice.
    firstly , this freight invoices are created against the freight cost for shipping the goods if i am not wrong.
    secondly when I create the invoice for this cost in Tcode MIRO how do i go about doing this as in do i do it on the basis of PO as i only have a PO as a base MM doc.
    thirdly , If i do this based on the PO there where are these costs manintained in the PO and how are these picked while invoice creation
    Thanks for the help in advance
    Nikhil

    Hi Nikhil
    1. freight invoices are based on shipment documents. On basis of an transport you create a shipment cost document.
    2. Whithin the shipment cost document you assign a cost item to a purchase order. This order can also be created by the shipment cost document (depends on customizing) The invoice is posted against this PO.
    3. This PO is using service functionality. If you settle your shipment cost document, the PO is filled with services.  These service items are the base for MIRO.
    Hope that helps
    Regards
    Rauno

  • SAP-MM CIN Error: JTAX Access sequence missing at the time of excise invoice creation in J1IS

    Dear Sir,
    During creation of excise invoice with ref to material doc system give a error massage JTAX access sequence is missing. Access sequence and tables are already exist in system.
    1.PO
    2. GR with excise capture& post here Part-I&II are genarated.
    3.Invoice
    4.Return delivery with reference to above goods receipt document.(122 m.type)
    5. J1IS- Creating outgoing excise invoice w.r.to return delivery material document.
    JTAX Access sequence missing at the time of excise invoice creation in J1IS

    The same error coming while consignment stock issue to cost center.
    1.Consignment Info record with excise tax code.
    2.PO consignment purchase order.
    3.GR with excise capture & post here Part-I&II documents are created.
       Material document created but there is no accounting document.
    4.While doing Consignment stock issue to cost center system generate an error message
    Access sequence JTAX missing  ( ) Message no. VE306"

  • Reg: How to capture the Excise Invoice with respect to Inbound delivery

    Hi All,
    Please give the process follow for capturing the excise invoice with respect to inbound delivery.
    Thanks & Regards
    Siva

    Hi Siva,
    Please check this link
    CIN with Example..?
    Regards,
    Bijoy Kumar

  • Capture the Freight charges from incoming invoice

    Hi Guru,
    The requirement is to capture the Freight charges from incoming invoice . Is it possible to capture that amount in INVOIC01 idoc.
    The Analysis what I have done is INVOIC01 IDOC type is having only two segments (E1EDS01,E1EDP26)  with Amount field . Based on the qualifier the value is getting populated . My assumption is, if we find the right qualifier for freight this may get resolved .Please let me know if there is anyother way or rigt qualifier for capturing thefrieght charge
    The FM to post is ZIDOC_INPUT_INVOIC_MRM.Pls find the attached screenshot too.

    Hope you have not read the Invoice Idoc type whcih is used for EDI invoice.
    The Invoice idoc type does not support the functionality of Planned delivery costs ( Freight )
    Please go through the link
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/44/f50abcea3b11d194dc0000e83dd751/content.htm

  • Capture the Freight charges from incoming invoice in an IDOC

    Hi,
    The requirement is to capture the Freight charges from incoming invoice . Is it possible to capture that amount in INVOIC01 idoc.
    The Analysis that I have done is INVOIC01 IDOC type is having only two segments (E1EDS01,E1EDP26)  with Amount field . Based on the qualifier the value is getting populated . My assumption is, if we find the right qualifier for freight this may get resolved .
    The FM to post is ZIDOC_INPUT_INVOIC_MRM.Pls find the attached screenshot too.
    Pls let me know if there is anyother approach or right qualifier to populate the freight charge

    Hope you have not read the Invoice Idoc type whcih is used for EDI invoice.
    The Invoice idoc type does not support the functionality of Planned delivery costs ( Freight )
    Please go through the link
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/44/f50abcea3b11d194dc0000e83dd751/content.htm

  • IDoc segment to capture the freight cost (XML/EDI invoice)

    Folks,
    How to capture the freight cost on an EDI incoming invoice. Any idea which IDoc segment can be useful in this regard.
    Any thoughts/suggestions/comments would be deelply appreciated.

    Hope you have not read the Invoice Idoc type whcih is used for EDI invoice.
    The Invoice idoc type does not support the functionality of Planned delivery costs ( Freight )
    Please go through the link
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/44/f50abcea3b11d194dc0000e83dd751/content.htm

  • While P.O creation material automatic capture the last Purchase value

    Dear all
    Please guide me for the following :
    I need a scenario like while creation of new P.O if material already purchase then system automatic capture the last purchase value as per the given material....
    Thanks & Regards,
    Neha

    Prompt the last Purchase Order Price for the Material
    If you want the system to take the price from the last Purchase Order, then do not maintain the conditions in the info record because it has precedence over the last PO. This means that the netprice field in the info record should be left blank.
    In the case when you have already maintained the conditions in the info record (or netprice), try to delete them or make them invalid by changing the validity date.
    Even though no price was maintained, the info record will still keep track of the Order price history.
    To check the Order price history, go into the material info record and click Environment -> Order price history
    Edited by: Sachein on Oct 20, 2011 6:54 AM

  • When capturing images from a Nikon D600, they show in Bridge, but when clicked to load into CS6,an error message says that it is the wrong type of document, even jpeg files. This is a NEW frustration.

    When capturing images from a Nikon D600, they show in Bridge, but when clicked to load into CS6,an error message says that it is the wrong type of document, evne jpeg files. This is a NEW frustration.

    Nikon raw files would open up in Adobe Camera Raw and so should jpegs.
    If you select one in Bridge and give the command "Ctrl r" (Windows), what happens?
    Also what is the version of ACR in the title bar?
    Gene
    Note: unmark your question as "answered". the green balloon next to the subject shows it as "solved".

  • Capture the Invoice Split Reason and update it in the invoice header text

    Hi All,
    We have a requirement where we need to capture the invoice split reason and update the reason in the one of the invoice header text.
    Problem is the routine where the split criteria is being determined is called a number of times, so how will we determine at what time of time do we need to capture the split reason. I mean at what iteration of the routine will we know that the split value is the right value.
    Is there any way to determine the number of iterations of a routine written for split?
    Require your valuable inputs for this issue....
    TIA
    Regards,
    Sharadendu

    Hi,
    Is your invoice split reason maintained in the header or item level?
    Try coding your logic in user exit MV45AFZZ and update header text using text id and save it in header text using
    FM [SAVE_TEXT|http://help.sap.com/saphelp_40b/helpdata/en/d6/0db8ef494511d182b70000e829fbfe/content.htm].
    Before this logic use FM [READ_TEXT|http://help.sap.com/saphelp_nw70/helpdata/en/d6/0db8c8494511d182b70000e829fbfe/content.htm] to determine if the header text is already updated. If yes,exit else save your HEADER_TEXT using SAVE_TEXT.
    This code can be written under FORM_USEREXIT_SAVE_DOCUMENT_PREPARE.
    Regards,
    Amit
    Edited by: Amit Iyer on Sep 1, 2009 8:46 PM

  • After J1IIN Creation of Excise Invoice, wat is the next immediate actions

    after J1IIN Creation of Excise Invoice, wat is the next immediate actions/activities with respective to SD Point of view.
    In each level wat r the things of updations happen upto end of Excise process in SD
    WAT R THE THINGS R TO BE CHECKED IN EACH LEVEL

    Hi,
    for SD point of view we only do the RG1 extraction and printing only.
    If u want to see the Updation of RG1 check the Table:  j_1irg1. Here u can find the values that are updated.This can be updated only after the Extraction of the RG1.
    Printing the RG1 go to T.Code : J2I6
    Prininting of the Excise Invoice : J1IP.
    I hope this will clarify u r doubts.
    regards.

  • DME file capturing the blocked invoices

    Hi ,
    We have carried out the Payment proposal and when we download the DME file, the DME file is also capturing the blocked items.
    These invoices have payment block in them, but these are being captured by the DME file..
    Is there any reason why the DME file is including these blocked invoices ?
    We want the DME file devoid of the blocked invoices..Also, we have carried out only the Payment Proposal and not the actual run..
    Thanks,
    srikanth.

    yes,
    These items are appearing as exceptional items in the proposal...because of the payment block on these items..
    but they appear in the DME file..
    srikanth..

Maybe you are looking for

  • How to reatin record selection in a master table

    Hi, I have table A with single selection item and detail table B below, both VO based. Once single selection is clicked the detail table shows corresponding result record set. I need to retain the selection of the record in table A once query on tabl

  • Numbers opening all files in iMac on start up

    When I start Numbers on my 2010 iMac upon start up Numbers open evey spreadsheet stored on the computer.  Anyone else experienced this problem?  I can't find any setting to toggle this off. Any sugestions greatly appreciated. Cheers Rich

  • Smart guides just stop appearing (CC)

    Both me and my colleague have noticed with InDesign CC that smart guides just stop showing up. Those little clicks you experience as you change the position of an objects edge and the green lines appear... they just don't do that anymore. Anyone else

  • Output type with send immediately or with job

    Hi, I want to solve the following with only 1 output type. Is this possible: I have output type ZNAS when it is triggered initially it should only be sent by RSNAST00. If it is triggered again and the delivery has a specific status it should be trigg

  • Lost Trusteer Rapport Security after down loading 4.0. why

    After downloading FFox 4.0 upgraded from 3.6.6 have lost Trusteer Rapport protection from some of my bookmarked accounts. How do I restore and register new sights for this protection as the TR icon has disappeared from top bar.