Application Development 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: 

Field Exit - How do I show list for user to select?

Former Member
0 Kudos

Hi,

I am writing a field exit for Group Asset on TCode AS01. The field exit will check a custom table to give the user an option to select values from a dropdown list.

Any suggestions on how to do this? I understand how to force a value in the field by putting it in OUTPUT, but not sure how to allow the user to select from a list?

Thanks!!!

6 REPLIES 6

Former Member
0 Kudos

Mark, I do not think you can display any popup in field-exit.

I would rather modify your field attributes to add your own search-help which can show the list based on your own table.

Former Member
0 Kudos

Hi Mark,

You can create your own search help and then attach it to your field.

Also, you can give the user an option to put the search criteria for the search help.

This should do it.

Regards

Nishant

0 Kudos

Thanks for the replies!

I'm not sure how to attach a search help to it because it is a field on a standard SAP screen that already has a search help.

This is probably not going to be very clean, but let me give more details as to what I'm trying to accomplish.

There is a field "Group Asset" that is on t-codes AS01, AS01, AS11. There is already a search help provided by SAP. The functional person wants me to create a field-exit to check a custom table based on Company Code, Cost Center, and Asset Class importing PIDs. If there is only one group asset that fits the criteria, then I will just place it in the field. If there are multiple group assets, then the user has to select which one and place it in the field.

I appreciate any suggestions. Thanks!!!

Mark

0 Kudos

Hi Mark,

I guess this will sound very horrific but if this just about displaying an F4 help then you edit the screen on which you are trying to create this field and add a 'Process on Value' event and in that you can handle it.

There you can assign the search help that we were asking, and you can call the FM 'F4IF_FIELD_VALUE_REQUEST'.

Hope this helps

Regards

Nishant Rustagi

0 Kudos

The functional owner did not want to do any core mods and the field exit didn't look good, so he has opted for a substitution instead.

However, now I'm having an issue with that which I have never encountered previously. I have done many substitutions in the past, so not sure what is happening here.

I am placing a value in ANLB-ANLGR for transaction code AS01. When I debug the code, I see a value in that field, however, it is not being displayed on the screen.

Again, I appreciate all of your answers. Thanks!!!

Mark

0 Kudos

I figured it out. Thank you all for your help. I will try and return the favor.

Thanks!!!