User exit Question - Previously unanswered.

Question:
Hi,
I'm using the user exit "EXIT_SAPMIWO0_008" to force the user to enter a purchasing document number when a Quality notification is created so that we have a reference point with regard to purchasing and this all works well.
I now want to use my code in the user exit to populate the screen with the vendor number EKKO-LIFNUM. I have achieved data transfer from the exit back to the global structure VIQMEL however the data is not transferred to the screen field.
I can see in debug the data selected from EKKO and saved to the structure VIQMEL but it will not transport to screen 5000 of the program SAPLXQQM. Am I missing something obvious or is there some way to achieve data transfer from the structure VIQMEL back to screen 5000 field LIFNUM.
Thanks,
Dave
Answer:
You will eitehr have to use the ASSIGN command to grab the field from the program stack and replace it in your code, or look to see if SAP stores the pre-function module call into in a temp table and then replaces it on return. ( FI modules do this). SAP either uses Export to memory and then on return Imort from memory to wipe out anything you changed they do not want changed. SAP also uses internal tables to do the same....
The assign command you want is similar to:
ASSIGN ('(SAPLSUU1)G_USER_LOGONDATA-BCODE') TO <FBCODE>.

More Articles:

BAPI_PO_CHANGE is not working?
this for SRINU?
customer addresses?
Last time ABAP code was executed ?
when to flush in Excel?
bdc recording and session processing?