web
You’re offline. This is a read only version of the page.
close
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

I have the same question (0)
  • Suggested answer
    Erich Strelow F Profile Picture
    16 on at

    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.

  • develop Profile Picture
    101 on at

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

  • develop Profile Picture
    101 on at

    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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 456 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 429 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans