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

F4 for Parameter for Application Server Directory

abinash_routray
Product and Topic Expert
Product and Topic Expert
0 Likes
1,031

Hi,

I have a parameter for Application Server File Path (i.e. directory).

The problem with /SAPDMC/LSM_F4_SERVER_FILE is that if the input directory doesn't exist, it gives a short dump saying that message type ' ' was raised in F4. The last option would be that i have to validate the directory path before passing it to above FM.

The problem with 'F4_DXFILENAME_TOPRECURSION is that it returns file name, not file path.

Do you know any FM or method that can be used for F4 in on value requestion addition.

The code is as follows:

Moderator message - Please respect the 2,500 character maximum when posting. Post only the relevant portions of code

Best Regards,

Abinash

Edited by: Rob Burbank on Aug 25, 2010 3:11 PM

1 ACCEPTED SOLUTION
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
839

Let me tell you one idea

Just disable input in at selection screen output.

Later in event at selection screen on value request use the fm /SAPDMC/LSM_F4_SERVER_FILE( donot pass any parameters to it ) and let the user choose the directory. Then using fm DYNP_VALUES_UPDATE just update the path to the input field.

So no validation required because user cannot give a manual input and he can only choose it from help.

1 REPLY 1
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
840

Let me tell you one idea

Just disable input in at selection screen output.

Later in event at selection screen on value request use the fm /SAPDMC/LSM_F4_SERVER_FILE( donot pass any parameters to it ) and let the user choose the directory. Then using fm DYNP_VALUES_UPDATE just update the path to the input field.

So no validation required because user cannot give a manual input and he can only choose it from help.