CL_CRM_MKTHV_DIRECTORY - Directory handling

CPI1466 during Backup   General Material Data  
This documentation is copyright by SAP AG.

>>> Development Documentation generated by DocuGenerator v1.1 (only available in English => NO TRANSLATION!!!) <<<

General Class Description

This class provides basic directory handling. It uses operating system commands defined
in transaction SM69 for checking if a directory exist and to create adirectory. It is possible to
use logical path names, defined in transaction FILE, or physical pathnames. The path separator
is taken from the import path. At the moment Windows and Unix is supported. To support other
operating systems create new operating system commands in SM69.

__________________________________________________________

Class Info

Name:CL_CRM_MKTHV_DIRECTORY
Instantiation:Public

Superclass

None

Implemented Interfaces

None

Friend Classes

None

Subclasses

None

__________________________________________________________

Methods

CD

Public CD(

IMPORTING

STRING IV_DIRECTORY

)

Change directory. Use '..' to navigate backward. It is not possible to navigate beyond the
given path in the constructor.

Parameter Details

IV_DIRECTORY

Name of the subdirectory

Exception Details

CX_CRM_MKTHV_DIRECTORY

________________________________________________________________________

CONSTRUCTOR

Public CONSTRUCTOR(

IMPORTING

PATHINTERN IV_LOGICAL_PATH

STRING IV_PHYSICAL_PATH

)

CONSTRUCTOR

________________________________________________________________________

CREATE_FILENAME

Public STRING CREATE_FILENAME(

IMPORTING

STRING IV_FILENAME

)

Create a valid filename for the operating system.

Returns

Returns the complete physical path.

Exception Details

CX_CRM_MKTHV_DIRECTORY

________________________________________________________________________

EXISTS

Public CRMT_BOOLEAN EXISTS(

IMPORTING

STRING IV_DIRECTORY

)

Checks if a directory exists by using operating system command. The used command definition in transaction
sm69 is MKTDIRLIST. The command tries to list the directory to check the existence. The result of the list
command is not available.

Parameter Details

IV_DIRECTORY

Directory name (optional). If this parameter is not used, then the current directory is checked.

Exception Details

CX_CRM_MKTHV_DIRECTORY

________________________________________________________________________

MKDIR

Public MKDIR(

IMPORTING

STRING IV_DIRECTORY

)

Creates a directory by using operating system command. The used command definition in transaction
sm69 is MKTMKDIR.

Parameter Details

IV_DIRECTORY

Directory name

Exception Details

CX_CRM_MKTHV_DIRECTORY

________________________________________________________________________

PWD

Public STRING PWD( )

Returns current path

Returns

Current path

Exception Details

CX_CRM_MKTHV_DIRECTORY

________________________________________________________________________

REPLACE_SPECIAL_SIGNS

Public STRING REPLACE_SPECIAL_SIGNS(

IMPORTING

STRING IV_NAME

)

Replaces special signs to generate valid filenames. The supportes signs are:
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._-()[]'

Returns

Returns corrected name

Parameter Details

IV_name

Name

Exception Details

CX_CRM_MKTHV_DIRECTORY

________________________________________________________________________

INIT_LOGICAL_PATH

Protected INIT_LOGICAL_PATH(

IMPORTING

PATHINTERN IV_LOGICAL_PATH

)

Init method for logical path

________________________________________________________________________

INIT_PHYSICAL_PATH

Protected INIT_PHYSICAL_PATH(

IMPORTING

STRING IV_PHYSICAL_PATH

)

Init method for physical path


General Data in Customer Master   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.


Length: 6352 Date: 20120526 Time: 111553     triton ( 93 ms )