Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Add fields to Sales Invoice form - Is VBA Modifier the solution?

(0) ShareShare
ReportReport
Posted on by 1,552

Hi.  We have a request to be able to track a second quantity and Unit of Measure on an Invoice Line.  This information comes from another system, and we eventually want to import from that system into GP using an integration (eConnect).

For example we sell a product by weight, but also want to track number of packages. There is no equivalency setup, because 10 Packages could be 500 KG or 525 KG or 499 KG.  We just want to be able to track both for reporting purposes.

Is VBA Modifier the solution for this or are there other ways we can do this?

With VBA Modifier can we actually create fields in GP tables? I don't know how this works.

 

*This post is locked for comments

  • DebCummings Profile Picture
    75 on at
    RE: Add fields to Sales Invoice form - Is VBA Modifier the solution?

    We modify our invoices using the Report Writer - after we had added the fields we wanted.

    pastedimage1612193835998v1.png

  • Suggested answer
    David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    14,036 Most Valuable Professional on at
    RE: Add fields to Sales Invoice form - Is VBA Modifier the solution?

    Hi Barb

    As VBA (Visual Basic for Applications) has reached end of life and is not compatible with newer operating systems, versions of office and the web client, I would recommend against using it.

    I would still use Modifier to add the fields to the windows, and use the DUOS (Dynamic User Object Store) SY90000 table to store the data, but I would use GP Power Tools - Developer Tools module to add the business logic.

    See the following articles (including step by step example and video) and benefits presentation:

    winthropdc.wordpress.com/.../

    winthropdc.wordpress.com/.../

    Benefits Presentation: www.winthropdc.com/.../GPPowerTools_Benefits.ppsx

    GPPT Portal: http://winthropdc.com/GPPT

    Regards

    David

  • Accounting Department Profile Picture
    1,552 on at
    Re: Add fields to Sales Invoice form - Is VBA Modifier the solution?

    Thanks to both suggestions. If I understand correctly,you are both suggesting to use the default method that VBA Modifier offers? That being the DUOS tables?  And the data would get into those tables by having extra fields on the Sales Transaction Entry window to capture the add'l information?  I am less concerned with integration and more with having the ability to enter the data, for now. The development for integration will come later.

  • sandipdjadhav Profile Picture
    18,297 on at
    Re: Add fields to Sales Invoice form - Is VBA Modifier the solution?

    Hello,

    Already you got great suggession from Leslie. I will recommend to create another table and the details with Invoice # plus Line Items details with additonal requirement.

    This way you are not going to messed up with existing GP logic. Create external report with all other details.

    Thanks

    Sandip

  • L Vail Profile Picture
    65,271 on at
    Re: Add fields to Sales Invoice form - Is VBA Modifier the solution?

    Hi barmeh,

    You can use VBA to make an external (ADO) connection to the GP tables, but you would just be slamming data in and not get the benefit of the business logic. There is, however, a User table created by GP just for you. It's called the DUOS table. It's table SY90000 in the company database. The VBA Developer's Guide (VBADevelopersGuide.pdf) in the Documentation folder explains exactly how to populate this table. Using this table, you can collect additional information using the existing database structure.

    If you have a lot of information, this might not work so well, but it's worth a look.

    There are many ways to do what you are wanting. I was just trying to come up with something that might not require any 'outside' data objects.

    I feel certain that other solutions are on the way.  Stay tuned :)

    Kind regards,

    Leslie

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Almas Mahfooz Profile Picture

Almas Mahfooz 3 User Group Leader

Featured topics

Product updates

Dynamics 365 release plans