Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Restrict the Type in Receiving Trx Entry

Posted on by 800

Hi

Can we do a security setup to restrict users from selecting the 'Shipment/Invoice' option in the Type field of Receivings Trx Entry window?

Reem

*This post is locked for comments

  • Suggested answer
    Almas Mahfooz Profile Picture
    Almas Mahfooz 11,003 User Group Leader on at
    RE: Restrict the Type in Receiving Trx Entry

    It is possible but through a customization. Unfortunately there is no out of the box functionality exist for your requirement.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Restrict the Type in Receiving Trx Entry

    Thanks Almas! but i just want to restrict a one user who can't change the type of Receiving trx entry. and make this "Shipment" as this default type. so that he can't never change the type,. how i will make it? it is possible? thanks :D

  • Suggested answer
    Almas Mahfooz Profile Picture
    Almas Mahfooz 11,003 User Group Leader on at
    RE: Restrict the Type in Receiving Trx Entry

    Yhel,

    I don't think your requirement will be covered by above sample vba code.  What if  user retrieve other Type receipt through lookup or navigation button at the bottom? it will not reset Type field to your desired Type. There are other events as well which can change Type filed value.  Either you need more VBA code on different events to cover up or better achieve this by dexterity.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Restrict the Type in Receiving Trx Entry

    Hi what if the Visual basic editor is disabled how to make it enabled or what are the possible ways to make the Receiving trx entry Type disabled to select type and make the "shipment" as default selection.

    thanks in advance :)

  • Vinutha Holla Profile Picture
    Vinutha Holla 705 on at
    Re: Restrict the Type in Receiving Trx Entry

    Hi Steve,

    1. Open the Receivings Transaction Entry window (Transactions > Purchasing > Receivings Transaction Entry )

    2. Add window to Visual Basic by clicking on Tools > Customize > Add Current Window to Visual Basic or Press CTRL+F11

    3. Add the document type field to Visual Basic by clicking Tools > Customize > Add Fields to Visual Basic or Press SHIFT+F11. The cursor should now change.

    4. Click on the fields you want to include in Visual Basic, in this case, the Type field.

    5. Press Esc key to revert to the normal cursor.

    6. Open Visual Basic Editor (Tools > Customize > Visual Basic Editor or Press ALT+F11)

    7. On Visual Basic Editor, double click the ReceivingsTransactionEntry on Project window under Microsoft_Dynamice_GP>> Microsoft Dynamics GP Objects.

    8. On the Project Code window (right side), paste the following code:

    ‘----------------------------------------------------

    Private Sub Window_AfterOpen()

    ReceivingsTransactionEntry.Type.Value = 2

    End Sub

    ‘----------------------------------------------------

    What the code does is, it sets the Document type to Shipment/Invoice. If the value is equal to one (1) then the Shipment will again default.

    If you wish to disable the document type after setting it to Shipment/Invoice so the users will not be able to edit it, just add the following to the above code.

    ‘-----------

    ReceivingsTransactionEntry.Type.Enabled = False

    ‘-----------

    9. Save then go back to Great Plains.

    10. Re-open Receivings Transaction Entry window. Notice that the Document Type now defaults to Shipment/Invoice.

    Regards,

    Vinutha

  • CP-Steve Profile Picture
    CP-Steve 285 on at
    Re: Restrict the Type in Receiving Trx Entry

    Hi,

    You cannot apply Field Security to a required field.

    I am actually hoping to set Type to Shipment/Invoice as the default. Can anyone help as to how I could achieve that??

    Most appreciated, Steve

  • Ron Draganowski Profile Picture
    Ron Draganowski 1,575 on at
    Re: Restrict the Type in Receiving Trx Entry

    You could look into using "Field Level Security" to lock or disable that field, since the default is Shipment, there should be no other reason to change the field.  (The field name is POP Type).

    But, if you're not licensed for Field Level Security, this is something that's easily done via customization, either Modifier/VBA (if you're licensed for that) or Dexterity (no additional licensing necessary).  Either tools would take only 1 hour to create a solution that would prevent the user from choosing Shipment/Invoice.

    Good luck! 

    Ron Draganowski
    Consultant, Senior Solution Developer
    Olsen Thielen Technologies, Inc.
    St Paul, Minnesota
    rdrag@ottechnologies.com
    http://www.ottechnologies.com
     

     

    Find me on LinkedIn: http://www.linkedin.com/in/rondraganowski 

     

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

Featured topics

Product updates

Dynamics 365 release plans