Programming

Delete PC Directory in ABAP/4

Example:  We will delete directory ’Temp’ on drive C:

CALL FUNCTION ’GUI_REMOVE_DIRECTORY’      
EXPORTING         
DIRNAME            = ’C:\Temp’     
EXCEPTIONS         
FAILED              = 1         
OTHERS              = 2
            &

Create PC Directory in ABAP/4

Example:  We will create directory ’Temp’ on drive C:

CALL FUNCTION ’GUI_CREATE_DIRECTORY’      
EXPORTING         
DIRNAME            = ’C:\Temp’     
EXCEPTIONS         
FAILED              = 1         
OTHERS              = 2
              . 
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. 
ENDIF.

How to Get Name of Months in ABAP/4

You can get name of months by select table ’T247’

DATA: it_month_name TYPE TABLE OF t247 WITH HEADER LINE.

SELECT * INTO TABLE it_month_name FROM T247
WHERE spras = sy-langu.

or using function module ’MONTH_NAMES_GET’

DATA: it_month_name TYPE TABLE OF t247 WITH HEADER LINE.
CALL FUNCTION ’MONTH_NAMES_GET’
EXPORTING
LANGUAGE = SY-LANGU
* IMPORTING
* RETURN_CODE =
TABLES
MONTH_NAMES = it_month_name
EXCEPTIONS
MONTH_NAMES_NOT_FOUND = 1
OTHERS = 2
.
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

To help all visitors to get the useful information inside howforge.com quickly, I have generated a custom button of howforge.com for .

Click to add immediately.

Othman Laraki, Production Manager of Google Toolbar Team, many new and very exciting features in latest version of . The idea is to allow users to add custom buttons as many as they want. Moreover, the button can be interactive to users by changing itself automatically via RSS or feed. If you are using Firefox, you will find that Google Toolbar is a bit extended version of searching in Firefox. In Firefox, you can specify keyword for later quick search by given the keyword. You may add keyword by just right-click on any textbox field. Unfortunately, there is nothing similar in IE. That"s why you should install Google Toolbar (you may installed so upgrade it right now).

Related Function Module in SAPscript

Fn Name           Description
START_FORM Start Layout Set
OPEN_FORM Open Layout Set
WRITE_FORM Write data by specified text element in window
WRITE_FORM_LINES Write data in TLINE structure to window
CLOSE_FORM Close Layout Set
END_FORM End Layout Set
CONTROL_FORM Create SAPscript Control Statement

See Example

Technorati Tags: