How to get Target document

Dear Experts,
Plz have a look on this query for Total Purchase Report. It's working fine.
All I need is that Target Documents of A/P Invoice should also return on Report in front of A/P Invoice document with details like A/P Cr. Memo No, DocTotal.
*SELECT T0.[DocNum], T1.[Seriesname], T0.[CardCode] As 'Vendor Code',T0.[CardName] As 'Vendor Name', T0.[NumAtCard] As 'Vendor Ref. No.', T0.[DocDate], T0.[TaxDate], T0.[DocTotal] - T0.[VatSum] As 'Basic Value of Goods', T0.[U_CENVAT] As 'CENVAT',  T0.[U_ECess], T0.[U_HSCess], T0.[U_VAT_4], T0.[U_Add_VAT1], T0.[U_VAT_12],
T0.[U_Add_VAT2], T0.[U_CST2], T0.[U_CST4], T0.[U_CST5], T0.[U_Service_Tax], T0.[U_ST_ECess], T0.[U_ST_HSCess],T0.[TotalExpns] As 'Others',T0.[DocTotal] - T0.[VATSUM] As 'Total' FROM OPCH T0 inner join nnm1 t1 on t0.series = t1.series WHERE T0.[TaxDate] Between [%0] And [%1]*
I don't have any idea how to do this.
So Plz suggest me or provide query for same.
Thanks in advance.
Regards,
Ravi

Hi Ravi.......
Try this.....
SELECT T0.DocNum, T1.Seriesname, T0.CardCode As 'Vendor Code',T0.CardName As 'Vendor Name', T0.NumAtCard As 'Vendor Ref. No.', T0.DocDate, T0.TaxDate, T0.DocTotal - T0.VatSum As 'Basic Value of Goods', T0.U_CENVAT As 'CENVAT', T0.U_ECess, T0.U_HSCess, T0.U_VAT_4, T0.U_Add_VAT1, T0.U_VAT_12,
T0.U_Add_VAT2, T0.U_CST2, T0.U_CST4, T0.U_CST5, T0.U_Service_Tax, T0.U_ST_ECess, T0.U_ST_HSCess,T0.TotalExpns As 'Others',T0.DocTotal - T0.VATSUM As 'Total', T3.DocNum 'Cr. Memo No.', T3.DocTotal 'Cr. Memo Total' FROM OPCH T0 inner join nnm1 t1 on t0.series = t1.series LEFT OUTER JOIN RPC1 T2 On T0.DocEntry=T2.BaseEntry LEFT JOIN ORPC T3 On T2.DocEntry=T3.DocEntry
WHERE T0.TaxDate Between '[%0]' And '[%1]'
Regards,
Rahul

Similar Messages

  • How to get the "Document Info" in illustrator

    In illustrator using "Document Info" we can get the file information. Like that how to get the document information using script. Anyone please help me.
    Regards,
    Prabudass

    I think sample code in the SDK contains a 'skeleton' plugin, I'd start with that. It should also provide a list of suites that get automatically loaded, I think it's in Suites.h. Just make sure AIDocumentSuite is in the list, and if it's not, just follow the examples in that file to add it. That should end up with a global variable called 'sDocument', which has all the suite functions as methods.
    Then it's something like:
    AIDocumentSetup setup;
    AIErr error = sDocument->GetDocumentSetup(&setup);
    // check error to make sure it's kNoErr
    Then you just have to inspect the setup struct for (hopefully) the answers you're looking for.

  • How to get Adobe documents to Adobe Reader on Iphone?

    I downloaded Adobe Reader to my Iphone. When i tapped on a Adove file i got on my email(on my iphone) it said "saving to disk", wich disk is it talking about? And how can i reach it from my Adobe Reader app?

    MargretheS,
    What is the mail app that you use on your iPhone.  Apple Mail (the default iOS mail app) does not show the message like "save to disk".
    Did you find the answer to your question in How to get PDF documents into Adobe Reader for iOS (iPhone on iOS 7 version)?
    Please let us know if you have additional questions.

  • How to get payment document number from paid column in monthly invoice

    Dear experts
    I use SBO japan version and i need to know how to get payment document number from paid column in monthly invoice ?
    in table MIN1, only contain invoice and credit note document number, there is no payment document number
    thank you for your help
    Best Regards
    JeiMing

    Dear Gordon
    Yeah, you are right, i can use field MIentry in RCT2
    thank you
    Best regards
    jeiming

  • New document alert: How to get PDF documents into Adobe Reader for iOS

    Opening PDF Files in Reader for iOS (iPhone and iPad) has been very helpful to many users of Adobe Reader for iOS.  However, Apple has drastically changed the user interface in iOS 7, which made the original document obsolete. 
    According to Apple Developer Support's App Store Distribution page, 89% of devices connected to the App Store are using iOS 7 during a 7‑day period ending June 29, 2014.
    Because of the exceptionally high iOS 7 adoption rate, Adobe Reader for iOS version 11.3 now supports iOS 7 only.
    Here are the new How-To documents for iOS 7.
    How to get PDF documents into Adobe Reader for iOS (iPad on iOS 7 version)
    How to get PDF documents into Adobe Reader for iOS (iPhone on iOS 7 version)
    (It had to be split into two separate documents because each contains way too many screenshots.)
    Hope these documents are as helpful as the original one.
    Please let us know if you have any feedback or suggestions on the topics for other help documents/tutorials.

    Dennis (or any Adobe rep),
    Any updates to the OP's question? I'm with a large government agency, and we're moving away from GoodReader for reasons I can't go into here, and the ability to add user-defined bookmarks within the app is a mandatory feature for the document reader we select. I have the latest version of Adobe Reader (11.6.1) installed on my government iPad, and the ability to add user-defined bookmarks still seems to be missing. Does Adobe have any plans to add this feature, or is it already present and I'm simply overlooking it?
    Thanks,
    Cam

  • How to get the document path of the pictures uploaded for products?

    Hi Gurus,
    How to get the document path of the pictures uploaded for products uploaded through tcode COMMPR01?
    Many Thanks,
    Neeraj

    client path.
    I need to get the client path in order to download files form server to client.
    Best regards,
    Huy.

  • How to get the document number for a ware house order.

    Hello gurus,
    how to get the document number for a ware house order. [if GI is posted refering that WH order] .. is there any report?
    Thanks in advance

    There are several options.  When you post a Goods Movement, you can use LB12 -display Transfer Requirement for material document or LB11 Display TR for material.
    Depending on how your system is set up you may have gotten a Transfer Order automcatically.  In this case you can look at LT24 - Transfer Order for material.

  • How to get/view document number for KP06 Planning upload

    Hi,
    I have uploaded excel for Cost center/cost element Planning in KP06 using exccel planning.Now i want the document number which for which i have posted in KP06-Plan values using excel upload.
    Kindly advice me how to get the document number for CO-OM(Cost center/Cost element planning) in KP06?
    Thanks
    Supriya

    Hello,
    Please execute report KSBL. It should be useful.
    Regards,
    Ravi

  • How to get Accounting document number from billing document number

    Hi,
    How to get Accounting document number from billing document number i.e. from VBAK- VBELN.
    Cheta Pant

    Hi,
    VBAK is the Sale Order header table, Billing document table is VBRK.
    Sales tables (VBAK,VBAP,VBRP,VBRK) do not store accounting document numbers.
    You do other way around. Just go to SE16 and enter the Billing document number in field Billing document VBELN in BSEG or BSID or BSAD table and execute, you will find the accounting document number.
    If you just want collect this information once then you can use table BSEG, but if you think to develope a report then use table BSID and BSAD.
    Regards,
    Chintan Joshi

  • How to get Invoice Document from Accounting Document

    Hi Experts,
    How to get Invoice Document from Accounting Document. Can you suggest some tables.
    Regards,
    Mohan

    hi,
    in vf02 or vf03.
    go to document flow
    select an accounting document - double click it.
    GOTO header you will find reference field there & it is nothing but billing document.
    in FB03 also you can findout the same if you know an accounting document.
    tables which they store are BKPF & BSEG
    balajia

  • How to get number document of Original documents

    Hi all !
    now I have a request how to obtain original documents. Specifically as follows:
    I have an Invoice 1. I'm partial payment for that Invoice. The system generates a new invoice and it will be the clearing document for an invoice. Then I continued to make a payment more than once.
    How can I get an invoice number of the document?
    If you have a solution or experienced this problem. Please just help me.
    I would just appreciate your help. Thank you very much.

    My specific requirements are as follows:
    I have Invoice_1 with a value of u20AC 10,000.
    I use T-Code F-02 to make Payment_1 enter the value 1000 EUR. Then Using Residual Clearing (F-32) to make clear the Payment_1 and Invoice_1.
    After making clear, the system will generate Invoice_2 with a value of u20AC 9,000.
    In the database of the system will be Invoice_2 Document Clearing of Invoice_1. How to document from the number of Invoice_2 I know the document number Address Invoice_1.
    Note: This is just a simple case because only a Payment was made. In fact there may be many times the payment should be made by the clearing document was very difficult.
    I want a solution that actually simple enough to know number Address document of the original documents from the document by Clearing document number.
    Thanks !

  • How to get the document which is associated with a process having specific Guid value?

    when a PDF file is opened, AcroRd32.exe is started automatically, and we get the GUID value of that adobe reader.
    In c#, can't we get the document associated with the GUID value,  I mean the total PDF file which is opened in adobe reader at runtime.
    Here I'm struck up in code, can anyone suggest how to where I was missing something.
    Acrobat.CAcroAVDoc AcroAvDoc;
    Type AcrobatCAcroType;
    AcrobatCAcroType = Type.GetTypeFromCLSID(new Guid("{CA8A9780-280D-11CF-A24D-444553540000}"));  This CLSID is of adobe reader's.
    ///////Here I think I'm missing something
    Object obj = Activator.CreateInstance(AcrobatCAcroType);
    AcroAvDoc = (Acrobat.CAcroAVDoc)obj;
    I think I can get the full PDF document with AcroAvDoc.GetPDDoc();
    Thank you...

    Post your question in the forum for Acrobat SDK.

  • How to get the document details of a Workflow Request?

    We are using listRequests method of RequestManager class for getting workflow requests. This method returns collection of request information. But how we can get details of document, which has to be approved, through that request id?

    Hi,
    Hope u got the solution. If not, you can get the Document Item like this.
    // Its the method call of previous link nickw-ocs has provided
    Vector fileNames = getTargetDocumentsFromFolder(request1);
    for (int j = 0 ;j<fileNames.size() ;j++ )
    AttributeRequest[] pathar = new AttributeRequest[]
    WSF.newAttributeRequest(Attributes.PATH),
    WSF.newAttributeRequest(Attributes.PARENT_FOLDER)
    FileManager filemanager = session.getFileManager();
    // Resolve the file path based on folder ,document name
    // combination.
    String fileName = (String)fileNames.get(j);
    System.out.println("Item id : "+item.getId()+" File Name : "+fileNames.get(j));
    Item targetItem = filemanager.resolveRelativePath(item.getId(), fileName,
    pathar);
    // here you got the Document Item. So, you can do what ever u want, like read the docuemnt, update categories etc..
    if (targetItem != null)
    targetdocuments.add(targetItem);
    }

  • How to get the document type, name and revision from the search page cv04n

    Hello,
    After performing cv04n and getting a list of documents satisfying the search criteria, how can I then get the document type, name and revision of the selected document using ABAP?
    Thanks

    HI,
    IN table DRAW... u have Document type, Version and document number.
    In Table DRAT also u get Document Type, Version, Number and Description of Doucment.
    Regards
    SAB

  • How to get the "Document info" in illustrator cs?

    Hai all,
    I need to know how to get the counting of RGB objects, CMYK Objects and Grayscale Objects information for illustrator vector(editable) file.
    In illustrator raster image file, i need to know how to get the Embedded image information(Resolution, Mode).
    I collect these infomation manually from "Windows->Document info". I saved the "Document Info" details in illustrator manually using "Document Info Pannel". I dont know how to save that information through "illustrator sdk" or through any other way without manual interaction. Could you please advice me. This is for windows operating system.
    Thanks,
    Prabudass

    I think sample code in the SDK contains a 'skeleton' plugin, I'd start with that. It should also provide a list of suites that get automatically loaded, I think it's in Suites.h. Just make sure AIDocumentSuite is in the list, and if it's not, just follow the examples in that file to add it. That should end up with a global variable called 'sDocument', which has all the suite functions as methods.
    Then it's something like:
    AIDocumentSetup setup;
    AIErr error = sDocument->GetDocumentSetup(&setup);
    // check error to make sure it's kNoErr
    Then you just have to inspect the setup struct for (hopefully) the answers you're looking for.

Maybe you are looking for

  • Error in opening the PDF file created from the smart form output.

    Hi All, i have a simple smart form which takes 3 values like customer no, name and no of times customer called and gives an out like Customer 0001000000 with name Ravi called 5 times today. I have to send this output to mail as an attachment. for thi

  • Development tools

    Hi, I'm new in these forums, so I don't know that this question is on the right place. If it's not, then please forgive me. I have got a little question. What should I download if I want to write a 3D game for the Flash Player 11? I'm not new to Flas

  • VGA adapter crashing my 17" Macbook Pro

    Hello, With some models of Dell projector, I find that connecting the projector's VGA cable to my new 17" Macbook Pro wedges the entire machine, pretty much instantly. Sometimes the projectors start buzzing afterwards as well. I've tried two differen

  • Vendor field related

    Extended classic scenario.SRM 5.0,ECC 6.0.We went 'live' 4 months back. -There is a need to add a custom field ('field name XYZ' with a check box) to the vendor master.If the check box against the field is 'checked',then the vendor is considered acti

  • Exported file has garbage

    Export is not working on my PDF file to other formats. I tried word and Excel formats.  All I am getting is diamonds in the exported file.  How do I go about fixing this problem.