amitsdotcom
13th June 2012, 09:34
Hello,

I have a requirement wherein I need to open a customized session to print customized format of GRN at the time of posting quantity on Production Order.

Currently when we perform the report order complete, after successful posting system opens by default the standard report of storage list. What I want is I need to export the GRN number generated during quantity posting to the customized session and then print the customized GRN...

I understand by exploring this can be done through UE Dll, I am not sure how to go about it and if we can do this using UE DLL.

Basically in other words I am trying to acheive 2 things.

1. To be able to pass value from standard session to customized session on a particular triggered transaction, in this case, On successful production order posting I need to pass the GRN number to customized session.

2. To be able to write code to call customized session after successful posting of production order quantity.

Request some guidance on confirming how I can fulfill my objective...

dmcnally
20th June 2012, 17:27
Hello amitsdotcom,

I don't know if this exactly fulfills your requirements, but one thing you can try if you don't have source code, is to have your custom report print after the standard report of storage list that you referred to.

You can do this by copying the report to your current VRC and then modifying the "after report" section of the report script to export the GRN number and then call your custom session.

Hope this helps.

Dave M.

bdittmar
20th June 2012, 18:49
Hello,

I have a requirement wherein I need to open a customized session to print customized format of GRN at the time of posting quantity on Production Order.

Currently when we perform the report order complete, after successful posting system opens by default the standard report of storage list. What I want is I need to export the GRN number generated during quantity posting to the customized session and then print the customized GRN...

I understand by exploring this can be done through UE Dll, I am not sure how to go about it and if we can do this using UE DLL.

Basically in other words I am trying to acheive 2 things.

1. To be able to pass value from standard session to customized session on a particular triggered transaction, in this case, On successful production order posting I need to pass the GRN number to customized session.

2. To be able to write code to call customized session after successful posting of production order quantity.

Request some guidance on confirming how I can fulfill my objective...

Hello,
yes, the user exit is the right place to do it.

You have to choose the right hook and to use proper triggers like Production order must be in state released and documents must be printed a.s.o.

The following things i do in tisfc001ue :

|* User exit handels all additional functionality like:
|* 1.) Generate and assign MAC adresses for equipment with Ethernet
|* 2.) Check if businesspartner and item has own Serialnumbers. If true
|* assign ID-Number to customers Serialnumber
|* 3.) Check if enough customer serialnumbers exists
|* 4.) Check if customer has orderd iPLC functionality.
|* Generate and assign iPLC CRC-Code for ID-Number
|* 5.) Check, if tester data is need and generate testerrecord for
|* ID table dhexc100
|* 6.) Generate labelfiles for SENTINEL Printpack
|* 7.) Check LABELS printed
|* 8.) Print a assembly plan

Code snip example :

function print.id.assignment()
{
|BD20120210 A assignment sheet for customer ID's should be printed

curr.printer = spool.device
before.zoom:
export("curr.printer", curr.printer)

get.var(pid, "prog.name$", sessioncode)

if sessioncode = "tisfc0204m000" then
start.session(0, "dhltc0410m1bd", "zoom.pdno", "")
endif

}

But never use a retry point or commit in UE !!!!

Regards