How to create parameter as listbox in ABAP/4

You can create parameter as listbox by applying statement ’PARAMETER ... AS LISTBOX ...’.

Example

TYPE-POOLS: vrm.

DATA: it_list TYPE VRM_VALUES,
      list_value TYPE VRM_VALUE.

PARAMETERS: p_list(20) TYPE C AS LISTBOX VISIBLE LENGTH 15.

AT SELECTION-SCREEN OUTPUT.
  list_value-key = ’AAAA’.
  list_value-text = ’AAAA Show Text’.
  append list_value to it_list.
  list_value-key = ’AAAB’.
  list_value-text = ’AAAB Show Text’.
  append list_value to it_list.
  list_value-key = ’AAAC’.
  list_value-text = ’AAAC Show Text’.
  append list_value to it_list.
  list_value-key = ’AAAD’.
  list_value-text = ’AAAD Show Text’.
  append list_value to it_list. 

CALL FUNCTION ’VRM_SET_VALUES’
    EXPORTING
      ID                    = ’P_LIST’
      VALUES                = it_list
    EXCEPTIONS
      ID_ILLEGAL_NAME       = 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.

START-OF-SELECTION.
  WRITE:/ ’P_LIST parameter have value: ’, p_list.

Unable to install Linux on Asus P4P800-E Deluxe

Asus P4P800-E Deluxe is a mainboard for high-end workstation. Actually, it is good enough to be medium-size server, e.g., web server, mail server, database server, and file server. Actually, this problem happened to my friend. He used to install Windows Server 2003 Enterprise Edition on this machine without properly. However, he decided to switch to Unix compatible OS because he had replaced both system harddisk and data harddisk due to harddisk failure. This machine has 1.5 GB RAM and he decreased virtual memory on system drive (C:) to zero. In addition, he never keep any files or even tried to read files on that drive. That’s why I suggested him to change operating system.

Create pushbutton in selection screen in ABAP/4

You can create the pushbutton in your selection screen by applying statement ’SELECTION-SCREEN PUSHBUTTON ...’.

Example

TABLES sscrfields.


SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE TEXT-001.
  PARAMETERS: p_fld1 TYPE i DEFAULT 1,
              p_fld2 TYPE i DEFAULT 2.
  SELECTION-SCREEN PUSHBUTTON /1(10) Execute USER-COMMAND EXEC.
SELECTION-SCREEN END OF BLOCK b1.

INITIALIZATION.
  Execute = ’Testing’.

AT SELECTION-SCREEN.
  IF sscrfields-ucomm = ’EXEC’.
    MESSAGE I398(00) WITH ’Testing Pushbutton Action between value’
                          p_fld1 ’and’ p_fld2.
  ENDIF.

The output is: 
img55

When you select the pushbutton, the output is:
img56

Analysis of Brontok.B and how to clean

Brontok is the name of a worm infected in Windows-based machines. I often get notification of this worm to create files in my laptop. My antivirus software is NOD32 standard edition by Eset. NOD32 is my favorite antivirus because of its powerfulness and small memory footprint. I have never gotten any false alarm. It performs as fast as running without antivirus. So I don’t think that notification is false alarm or it cannot clean the worm completely. However, I still get the same notification so often. Below is my analysis.

ควรรู้ไว้..วิธีสังเกตอาการเบื้องต้นของมะเร็ง

ที่มา: Forward Mail

วิธีสังเกตอาการเบื้องต้นของมะเร็งชนิดต่างๆ

อาการของการเกิดมะเร็งในอวัยวะต่าง ๆ ของร่างกาย

  1. มะเร็งปากมดลูก อาการ มีเลือดออกจากช่องคลอดทั้งๆ ที่ไม่ใช่เวลารอบเดือนปกติของคุณ อาการเจ็บปวดและมีเลือดออกหลังจากมีเพศสัมพันธ์ หากพบว่ามีสิ่งเหล่านี้เกิดขึ้น การตรวจโดยขูดเนื้อเยื่อจากบริเวณดังกล่าวไปตรวจด้วยกล้องจุลทรรศน์จะรู้ได้

View permission in ip2cc module

ip2cc module could help anyone to know where the poster was in term of country, IP address and network name. Anyway, this information may not be publicly accessible by anyone, instead it should be accessible by authorized persons. Since I forgot this feature at the time I wrote it, I have just noticed this missing feature when I want to implement a site for publicly offering image hosting service free of charge. As you might know, most image hosting services are heavily used for storing images to show in webboards. Some images are inacceptable due to copyright law or TOS violation by any reasons. In worst case, police might ask for the address of the poster. They just want to know his/her IP address. However, normally this information should be hidden to keep each image posted by anonymous user as long as nobody reports TOS violation.