‎2010 Jan 08 9:37 AM
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
‎2010 Jan 08 9:43 AM
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
‎2010 Jan 08 9:43 AM
Change it as lis box with key in the screen attributes of that field.
‎2010 Jan 08 9:44 AM
Hi,
You make the field as a drop down, then the user will not be able to enter any value.
Thanks,
Sri.
‎2010 Jan 08 9:55 AM
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..
‎2010 Jan 08 9:56 AM
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
‎2010 Jan 08 10:00 AM
‎2010 Jan 20 7:09 AM
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
‎2010 Jan 20 10:47 AM