2012 Apr 05 2:06 PM
Hello all,
My requirement : In table control of module pool screen , a user selects some values and processes it.Transaction is completed.
when he comes back again to use this transaction, previous selected values should be shown as selected now for this user...
any inputs on this how this can be done?
Best Regards
Himayat
Hello all,
My requirement : In table control of module pool screen , a user selects some values and processes it.Transaction is completed.
when he comes back again to use this transaction, previous selected values should be shown as selected now for this user...
any inputs on this how this can be done?
Best Regards
Himayat
2012 Apr 05 2:17 PM
sounds like the user needs to save a variant and utilize that? If not, you could populate a parameters ztable, and retrieve that for the user, and populate the input parameters, when he/she starts the transaction.
2012 Apr 06 6:49 AM
hi
u can use default parameter of user profile, and when user execute the transaction with parameter after clicking a back jsut set and get function to get last value of selection screen.
thanks,
Abhilash
2012 Apr 06 7:48 AM
Hi,
What you can do is, create a Z-table to store the values processed by this user. Make sure that this table consists a column of type USR02-BNAME which will store the user name of the person who is currently processing thre records. You need to add addtional columns based on what you want to save.
Danish.
2012 Apr 06 1:14 PM
Hi,
If you don't want to use a Z table to handle this, you can also use cluster table INDX and EXPORT/IMPORT statements.
DATA: lw_indx TYPE indx.
* To save your itab entries to cluster table
lw_indx-aedat = sy-datum.
lw_indx-usera = sy-uname.
lw_indx-pgmid = sy-repid.
EXPORT tab = itab
TO DATABASE indx(xy)
FROM lw_indx
ID 'your_id'.
*...
* To get the entries back
IMPORT tab = itab
FROM DATABASE indx(xy)
TO lw_indx
ID 'your_id'.
Check this: http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3c1f358411d1829f0000e829fbfe/content.htm
Cheers,
Manu.
2012 Apr 06 3:47 PM
Hi,
You can maintain a z table with the user name, date and timestamp.
when ever a user executes the transaction, save the entries in Z table with date and time stamp.
in the program logic, fetch the data from Z table for user executing the transaction and sort the data descending by date and time.
get the latest entry from the sorted data, and check if it is available in the table you are displaying in table control. if available, highlight it in the output.
Thanks,
Chitra.