Skip to Content
author's profile photo Former Member
Former Member

GRPO Row Tax Value

Hi,

I try to generate query based report, i would like to know line row tax value Field name. If using system information value stored as variable.

Pls help me where i can fetch the information.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

7 Answers

  • Best Answer
    Posted on Sep 10, 2016 at 04:17 PM

    Hello Mohamed,

    Try this

    SELECT DISTINCT T0.DocEntry,T0.DocNum,T0.DocDate,T1.ItemCode,T1.Dscription,T1.Quantity,T1.Price,T1.VatSum,T1.Currency,T1.LineTotal FROM OPDN T0

    INNER JOIN PDN1 T1 ON T0.DocEntry=T1.DocEntry

    WHERE T0.[DocDate] >=[%0] AND T0.[DocDate] <=[%1]

    Regards

    BHanu

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 14, 2016 at 10:49 AM

    Hi Mohamed

    The Query

    SELECT T0.[DocNum], T0.[DocDate], T1.[ItemCode], T1.[Dscription], T1.[Quantity], sum(T2.[TaxSum]) 'TaxSum', T1.[Price], T1.[Currency], T1.[LineTotal]

    FROM OPDN T0

    INNER JOIN PDN1 T1 ON T0.[DocEntry] = T1.[DocEntry]

    INNER JOIN PDN4 T2 ON T0.[DocEntry] = T2.[DocEntry] and T2.LineNum = T1.LineNum

    WHERE T0.[DocDate] >=[%0] AND T0.[DocDate] <=[%1]

    group by T0.[DocNum], T0.[DocDate], T1.[ItemCode], T1.[Dscription], T1.[Quantity], T1.[Price], T1.[Currency], T1.[LineTotal]

    or

    SELECT T0.[DocNum], T0.[DocDate], T1.[ItemCode], T1.[Dscription], T1.[Quantity], T1.VatSum, T1.[Price], T1.[Currency], T1.[LineTotal]

    FROM OPDN T0

    INNER JOIN PDN1 T1 ON T0.[DocEntry] = T1.[DocEntry]

    WHERE T0.[DocDate] >=[%0] AND T0.[DocDate] <=[%1]

    both must give the required result as per your requirement. In case Tax amount is still not showing.

    Check the documents it is highly possible that user is entering GRPO with out Tax information in which case there will be no data available to show.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 07, 2016 at 05:18 AM

    Hi,

    Please check EXBAS field from table J_1IRG23D.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 07, 2016 at 07:01 AM

    Check PDN4 table taxsum field

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 07, 2016 at 03:15 PM

    Hi,

    Run below query

    SELECT T1."ItemCode", T1."Dscription", T1."Quantity", T1."Price", T1."TaxCode", T1."VatSum" FROM OPCH T0 INNER JOIN PCH1 T1 ON T0."DocEntry" = T1."DocEntry"

    T1.VatSum is the individual tax amount per row.

    Thanks,

    Harshal

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 11, 2016 at 08:41 PM

    I think some of these fields are localisation specific - in mine I find the row tax in "VatSum" not "TaxSum"

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 12, 2016 at 01:17 AM

    Hi,

    Line tax row value field is Vatsum from PDN1 table. If not getting correct value, please share your GRPO screen with line details.

    Thanks

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.