Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Default settings of user selected values - modulepool

Himayatullah
Active Participant
0 Likes
1,050

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

5 REPLIES 5
Read only

Former Member
0 Likes
1,010

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.

Read only

Former Member
0 Likes
1,010

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 

Read only

Former Member
0 Likes
1,010

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.

Read only

Former Member
0 Likes
1,010

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.

Read only

Former Member
0 Likes
1,010

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.