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

Module Pool : Previous Value for the Input Field ( Caching )

Abh_2
Participant
0 Likes
1,770

hey all,

In Module Pool Programming , User needs to have the previous entered values to reflect on pressing the SPACE BAR for the input field ( Customized one ) .

For Example:

Module Pool MP997400

Input Field Country

Cached values would be : Chicago

New York

Boston

These are the previous values entered for the Input field are stored. By pressing the SPACE BAR these values appear in the Drop down box so that the User can select it off easily rather than typing completely .

NOTE: SAP standard Input fields ( Already existing Data elements) does have this functionality while our custom fields ( the z data elements ) dont have !!!

Can any body suggest how to acheive this ??

Edited by: abhishek nms on Feb 18, 2010 12:56 AM

Edited by: abhishek nms on Feb 18, 2010 12:59 AM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,041

I don't know if you will be able to control cache values...

PID will not work in your requirement.

Regards,

Mohaiyuddin

4 REPLIES 4
Read only

vinod_vemuru2
Active Contributor
0 Likes
1,041

Hi,

I think you need to give some parameter ID in the screen field attributes. Go to the screen field attributes and fill the parameter ID with some value say ZZZ. This ID is used for storing the data in the memory. You can give different IDs for different fields.

You can give the parameter ID in the dataelement also. But even in this case you need to give the ID for the screen fields manually.

Thanks,

Vinod.

Read only

Former Member
0 Likes
1,041

I hope answer will solve your problem, at 2 places you can attach 'Parameter ID'

1) In the module pool program - for the corresponding field - Screen painter attributes -> Attributes -> Dict -> parameter ID

2) If same place exists in the custom table, custom data element then you can attach to the data element itself so that every time you refer that field automatically you will have that data.

For parameter ID creating search in SCN / google.

Thanks

Satyasuresh Donepudi

Read only

Former Member
0 Likes
1,042

I don't know if you will be able to control cache values...

PID will not work in your requirement.

Regards,

Mohaiyuddin

Read only

0 Likes
1,041

I have tried figuring out with Parameter ID but it did not work out !

Here is the SAP standard solution:

In SAP easy Access screen, Press ALT + F12 > options > Local Data

in the History grouping, Enable history for fields upto X characters as the My custom field length is 70 .. I have increased it to 75.

Make sure You Re-start the SAP GUI

Please refer to SAP NOTE 399180.

It works !!

Thanks for all your efforts