Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

Help with report writer LFT_STR

Posted on by 20

I've got this calculated field and i thought i had it right but it gives me an error.  I'm trying to get the tax schedule ID but i only want the first six characters.  

pastedimage1664304681242v1.png

Categories:
  • Suggested answer
    David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    David Musgrave MVP ... 13,928 Most Valuable Professional on at
    RE: Help with report writer LFT_STR

    Hi Stephanie

    We have a few issues to resolve:

    1) On the Conditional Expression remove the closing parenthesis (bracket). If you have brackets, they must always have opening and closing as a matching pair.

    2) The LFT_STR function does not do what you want. From the manual: Prints only the data that lies to the left of the caret (^) in a field with a string storage type.

    3) What you want is the custom user defined function (system series) RW_Left() that I added to GP v7.0. Here is the parameter list:

    function returns string OUT_string;
    in string IN_String;
    in integer IN_Length;

    Using the same parameters will give you the first six characters of the Tax Schedule ID field.

    Good luck

    David

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans