Skip to Content

FMS for displaying WT names in the master data

Dear All,

I wrote the following query to display withholding taxes marked for a customer into the ''Remarks'' field in the BP mater data.

SELECT T0.[WTName] FROM OWHT T0 INNER JOIN OCRD T1 ON T0.WTCode = T1.WTCOde

WHERE T1.[WTCode] is not null

This query always displays one WT name even if there are more than one WT ticked in the customer master data.

Please, can somebody help me to achieve this?

Thanks

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 23, 2013 at 12:01 PM

    Hi

    Your Query only reflect Default WT Tax Code set for particular BP

    Try This FMS on Remark field of BP mater data

    SELECT T1.[WTName] FROM CRD4 T0 inner join OWHT T1 on T0.[WTCode]=T1.[WTCode] WHERE T0.[CardCode] =convert (character (100),(select $[OCRD.Cardcode]))


    regards,

    Raviraj

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 23, 2013 at 11:23 AM

    Hello,

    User table 'CRD4' also in your query which stores the information of BP Code and it's WT Code.

    Hope that helps.

    Thanks,

    Priya

    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.