Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

customization in receipt of PO (04.010.00)

(0) ShareShare
ReportReport
Posted on by 101

Good Day

I trying to customize a 0401000 screen, I trying to get a siteid from a detail of a purchase order and LineRef in a details grid of a receipt screen, I doing a simple select query but I am getting an error message 

typeerr.JPG

this is the query:

6014.TYPEQ.JPG

the code never hits the breakpoint because it sends an error message I read on the internet that the problem is caused by the data header file on the customization screen. i compare sql table with data header file but i don't see any difference

in the dynamics sl directory have 2 files 

typearchivos.JPG

I use the purorddet.dh file 

type.JPGtype2.JPG

type3.JPG

type4.JPG

type5.JPG

any idea what's wrong?

trying import the original file but the result is a error message

7357.typedif.JPGtypedif2.JPG

typedif3.JPG

  • develop Profile Picture
    101 on at
    RE: customization in receipt of PO (04.010.00)

    finally solved,

    In the data header I only write SiteId because it is the only column I need, if I need more, I will add the necessary columns, there is no point in having all the ones that I do not occupy and they cause me an error

    typeFinal.JPG

    thks

  • develop Profile Picture
    101 on at
    RE: customization in receipt of PO (04.010.00)

    yes it's declared, and it's marked as "option explicit" ,  I found 2 files but 1 of them is missing columns

  • Suggested answer
    Erich Strelow F Profile Picture
    14 on at
    RE: customization in receipt of PO (04.010.00)

    Starting from the basics:

    Did you declare bPurOrdDet?

    If not, this might be just a VB language trap. The VB engine is trying to setup an undeclared bPurOrdDet variable with a fixed buffer size. In this case, you should first activate the "Option Explicit". Then, search in the DB\DHFiles\App for the right snippet of code to be added.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,459 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,066 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans