sitemap
SapMaterial.com
File dialog - F4 help for PC file

>I used following code

>PARAMETERS : FILENAME  LIKE RLGRAP-FILENAME.

>i want F4 value for local directory. even i used 'F4_FILENAME' function but still i did not get F4 value
so please help me


Example 1

Try this:

parameters: p_file like rlgrap-filename memory id fnm obligatory.

data: dummy(1) type c,
title(7) type c.

************************************************************************
at selection-screen on value-request for p_file.
************************************************************************
title = 'Dataset'(c14).
call function 'WS_FILENAME_GET'
exporting
def_filename = space
def_path = p_file
mask = ',*.*.'
mode = 'O'
title = title
importing

filename = p_file
rc = dummy
exceptions
inv_winsys = 04
no_batch = 08
selection_cancel = 12
selection_error = 16.

if sy-subrc ne 0.
message i872(5g).
endif.


This works for me!

Suzanne

Example 2


PARAMETERS: P_FILE LIKE RLGRAP-FILENAME DEFAULT 'C:\'.



AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE. "For dropdown filename

CALL FUNCTION 'F4_FILENAME'

EXPORTING
PROGRAM_NAME        = SYST-CPROG
DYNPRO_NUMBER       = SYST-DYNNR
FIELD_NAME          = 'PATH'
IMPORTING
FILE_NAME           = P_FILE.



The value is on P_File.

I Hope it can help you to solve the problem.



warm regards,

-wisHnu adipratomo-

ABAP Developer

PT EXCELCOMINDO PRATAMA
All of the  product names here are trademarks of their respective companies.  The site
www.allsaplinks.com no way affiliated with SAP AG. We have made every effort for the content
integrity.  Information used on this site is at your own risk.
ABAP TECHNICAL

SAP Introduction

sap abap faq

sap Tables

SAP Transaction codes

Internal tables

data dictionary

performance tuning

transports & Requests

Sap scripts

Smartforms

lsmw

reports

sap Workflow

module pool/ dialog
programming

table control

user exits

sap memory

abap memory

alv reports

ABAP ADVANCED

IDOC

ALE

BAPI

BADI

RFC


FUNCTIONAL SIDE

Materials Management

FICO

Human Resources

BIW / BW / SEM


Free Documentation
Abap Material

Ale Material

BAPI Material

BC Material

IDOC Material

R/3 Database Management

SAP material

RFC

Transport

Sales & Distribution Material

Basic Data and Function
Material

Basis (BC) Material

Billing Material

CA Material

CATT : Computer Aided Test
Tool

Capacity Evaluation and
leveling Material

Capacity Planning Material

Cross Application Material

Countries

Customer Service Material

Enterpise  Material

Financial / Controlling (FICO)

Internet Time Sheet

Inspection Material

HR Material

Material Management
Material

Payments Material

Payroll Material

Pension Fund

Production Planning and
Control

Plant Maintenance

Quality Management Material

Real Estate Material

SAP material

Wage Types