Overiding User Name on JDE ube

DaveBarber

Active Member
I am trying to find a way of overriding the user name when submitting a JDE UBE via a C function.

For example:

We use hand-held terminals to submit pick requests in a warehouse. The HH terminals connect via one generic user profile. This causes an issue in that the pick slips are required to be printed in different locations which cannot be defined against the one generic user ID.

I had the idea to write a C function to call the UBE via jdeLaunchUBEEx overriding the hUser to an input parameter.
The user is overriden via the JDB_InitEnvOvr using input parameters of user/password.

This works fine and I can now submit a UBE from my client using under a different user ID.

However, this function will be used by many different people and it will not be possible to use/retrieve a password for individual users (this is a no! no! as you can imagine!).
Does anyone have any experience of being able to manipulate/substitute the Huser with an input variable by using any other APIs?

Failing that, any other suggestions about how I could do this would be welcome.

I have attached the C source for my current solution.

thanks in advance

Dave
 

Attachments

  • 151295-UBE override.txt
    12.1 KB · Views: 138
Back
Top