Hello, I want to do some validation in a DAL (tisfc001ue), in order not to validate everything, I need to do the validation only when trying to complete a production order. Session tisfc0120s000 is the one that is being used for it.
In the DAL, I use import("prog.name$", sess.id) function in order to store the calling session in the sess.id variable. This does not retrieve the proper information. If, for example, I am in the Production Order session (tisfc0501m000, I can access the Report Production Order Complete (tisfc0120s000), but this function returns tisfc0501m000 instead of tisfc0120s000. Samething if when in tisfc0501m00, I double click to open a single occurrence of a production order, I get in session tisfc0101m100, from there, if I open the session Report Production Order Complete (tisfc0120s000), again, in the DAL, the function retrieves tisfc0101m100 instead of tisfc0120s000.
Someone knows a different way so I could really retrieve tisfc0120s000? Thanks.
In the DAL, I use import("prog.name$", sess.id) function in order to store the calling session in the sess.id variable. This does not retrieve the proper information. If, for example, I am in the Production Order session (tisfc0501m000, I can access the Report Production Order Complete (tisfc0120s000), but this function returns tisfc0501m000 instead of tisfc0120s000. Samething if when in tisfc0501m00, I double click to open a single occurrence of a production order, I get in session tisfc0101m100, from there, if I open the session Report Production Order Complete (tisfc0120s000), again, in the DAL, the function retrieves tisfc0101m100 instead of tisfc0120s000.
Someone knows a different way so I could really retrieve tisfc0120s000? Thanks.