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

Dialog Programming : Input value

Former Member
0 Likes
1,112

Hi Experts,

I have programmed a Dialog programe.

In my input Screen i have a field called 'New Project'. ( PROJ-PSPID)

The user must not be able to enter value directly into this field but must always be able to select it from the F4 HElp.

I'm using the Function module 'CN_SUCHE_FREIE_NUMMER' as F4 help for the field 'NEW_PROJECT' ( to obtain the next available project number.), in the event Process on value request.

But I should not allow the user to enter any value directly, instead he must always select from the F4 Help.

I have seen many post, but the answer is provided when they r using the Function module 'F4IF_FIELD_VALUE_REQUEST'.

But my F4 help Func module is different , it is 'CN_SUCHE_FREIE_NUMMER'.

Thanks in Advance,

Vidya

8 REPLIES 8
Read only

Former Member
0 Likes
1,010

Hello,

If you do not want users to change the value - then we can make the attributes of the field to OUTPUT ONLY in SE51. The value can be populated by using the Function Module you had mentioned in the PBO of the Screen, so the number will get loaded when the screen is called.

Regards,

Janani

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,010

Change it as lis box with key in the screen attributes of that field.

Read only

sridhar_meesala
Active Contributor
0 Likes
1,010

Hi,

You make the field as a drop down, then the user will not be able to enter any value.

Thanks,

Sri.

Read only

0 Likes
1,010

if u want to enter a value then dont use output only.

wat u can do is

1) either create a dropdown box

2) you will get all the F4 help result into a table.

now check if your field has the value which is one in the table by reading the table with the screen value.

if not then mabbe u can blank or give error....

many ways to do it..

Read only

0 Likes
1,010

Hi All,

Thanks for the replies.

The function maodule 'CN_SUCHE_FREIE_NUMMER' needs the user to press the 'Find' button , hence i need to provide it to the user, such that he does the action, if you can jst plz check out the FM 'CN_SUCHE_FREIE_NUMMER', it would be of great help .

Also,

I cannot predict the next project number available (as it is dynamic ,determined from the number range), hence i cannot provide the list nor drop down

The requirement is to get the next project number available during creation of the project(CJ20n)( Custom program is been done : BDC program ) .

Wish to get your inputs,

Vidya

Read only

0 Likes
1,010

.

Read only

0 Likes
1,010

Hi,

Make your field output only in a screen painter. Than call CN_SUCHE_FREIE_NUMMER in ON VALUE-REQUEST event for your field and after call of this function module set required screen variable according to exporting parameters of CN_SUCHE_FREIE_NUMMER. You also have to update this value using FM DYNP_VALUES_UPDATE.

Regards,

Adrian

Read only

0 Likes
1,010

Thanks Jagrik, I'l check it out

Cheers

vidya