IT

How to get name of day by Date in ABAP/4

When you want to get name of day by using date in ABAP/4, you can apply function module "DATE_TO_DAY".

Example


*&---------------------------------------------------------------------*
*&     Form get_name_of_day
*&---------------------------------------------------------------------*
FORM get_name_of_day USING   PAR_DATUM
                    CHANGING PAR_DAY_NAME.
clear par_day_name.
CALL FUNCTION ’DATE_TO_DAY’
   EXPORTING
     DATE         = par_datum
   IMPORTING
     WEEKDAY      = par_day_name
           .

How to get long text in ABAP/4

When you want to retrieve the data that record in long text on selected document for show in ABAP report, you can apply function module "READ_TEXT".

Example


DATA: I_LINE  LIKE TLINE OCCURS 0 WITH HEADER LINE.
     CALL FUNCTION ’READ_TEXT’
          EXPORTING
               ID                   = ’Z002’
               LANGUAGE             = SY-LANGU
               NAME                 = LV_NAME
               OBJECT               = ’VBBK’
          TABLES
               LINES                = I_LINE "Long text
          EXCEPTIONS
               ID                   = 1
               LANGUAGE             = 2
               NAME                 = 3
               NOT_FOUND            = 4
               OBJECT               = 5
               REFERENCE_CHECK      = 6
               WRONG_ACCESS_TO_ARCHIVE = 7
               OTHERS               = 8.

Symantec Caught in Rootkit Controversy


Symantec has been forced to fix a "flaw" in Norton SystemWorks which could possibly allow malware authors to hide files from users. While the feature is designed to prevent SystemWorkssoftware package's NProtect feature, weaknesses in the technology could be exploited by opportunistic developers of malicious software.

The hidden directory is also hidden from most antivirus scans, including Symantec's own. This allows malware/virus writers with knowledge of the directory can easily hide their files undetected. While no exploits have been made to this point, it did not take long for Sony's rootkit to become exploited and quickly spiral out of control in weeks past.

Users of 2005 and 2006 versions of SystemWorks and SystemWorks Premier are urged to run LiveUpdate to patch the flaw, which will then allow the directory to be seen and scanned by antivirus software. users from accidentally deleting files vital to the

 

Formatting Options in SAPscript: Condense Space

In SAPscript, we can condense space between words to single space and delete leading space by this option.

Syntax


&VAR(C)&

Example

&VAR&      =        I    AM    A    ABAPER
&VAR(C)& = I AM A ABAPER

Formatting Options in SAPscript: Without the Leading Zeros

In SAPscript you can show value symbol without leading zeros by this option.

Syntax

&VAR(Z)&

Example

&VAR&     =     0010
&VAR(Z)& = 10

Formatting Options in SAPscript: Move Sign to Left and Right

In SAPscript about symbol that contain numeric value, you can show the sign of value symbol to left of the number by this option.

Syntax

&VAR(<)&

Example

&VAR&     =     999.99-
&VAR(<)& = -999.99

If you want to move back sign to the right of number, you can use this option.

Syntax


&VAR(>)&