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

Query / FMS on G/L Account field

Hi Experts,

Can you help me out on my query / FMS:

Definitions:

1. I created a UDF in Customer Master data: SALES_ACCT_BIR (Alphanumeric,12), ex. 4111-02-1-00

2. I created a UDF in Marketing header: TAX (Alphanumeric, 12, valid values: YES & NO)

3. I assigned my query below in the A/R Invoice GL account (Sales acct) field, refresh when Sales Employee is altered and Tax status = YES

SELECT T0.U_SALES_ACCT_BIR FROM OCRD T0 WHERE T0.OCRD.CARDCODE = $[OINV.CARDCODE] AND $[OINV.TAX] = 'YES'

Purpose: I want to override the GL (Sales) account default when the Tax status is set to YES.

But it seems not working right now, I wonder if this has something to do with the format of my OCRD UDF or for any other reasons.

Hope you could help me out. Thanks.

Don

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 26, 2010 at 03:55 PM

    Hi Don,

    Try this one to see:

    SELECT T0.U_SALES_ACCT_BIR FROM OCRD T0 WHERE T0.OCRD.CARDCODE = $[$4.0.0\] AND $[OINV.U_TAX\] LIKE 'Y%'

    Thanks,

    Gordon

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 26, 2010 at 11:28 AM

    Hi Don.......

    Is that giving any kind of error?

    Regards,

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      The field does not have any effect when the tax=yes and after i altered the sales agent. If I try to manually trigger the FMS by doing shift+F2, internal error message is shown in the message bar.

      Thanks.

      Don

  • Posted on Jan 26, 2010 at 12:34 PM

    May be your reference to your UDF should be $\[OINV.U_TAX] !

    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.