Monday, May 24, 2010

No Vendor Specified

บางครั้งเมื่อเราเรียกคำสั่ง MESSAGE ใน ABAP แล้วเกิด Message Pop up ขึ้นมาว่า "No Vendor Specified" สาเหตุเป็นเพราะว่าใน SAP System ที่เราใช้อยู่นั้นใน Message Class = '00' => Message Number = '000' ไม่ได้ที่การ Maintain ค่าไว้ ซึ่งมันควรจะเป็น &1&2&3&4&5&6&7&8 นั่นจึงเป็นสาเหตุว่าเมื่อเราเรียกคำสั่ง MESSAGE เช่น
MESSAGE 'No data for selection' TYPE 'S'

จึงเกิดข้อความดังกล่าวขึ้น

วิธีนี้ถ้าเราไม่ต้องการแก้ไข Message Class = '00' ก็ให้ใช้คำสั่ง MESSAGE โดยกำหนด Class ที่ต้องการใช้ไปเลยเช่น
MESSAGE ID 'PN' TYPE 'S' NUMBER 016 WITH 'No data for selection'.

Monday, April 19, 2010

Intalio Introduction

ช่วงนี้กำลังทำ R&D เกี่ยวกับ Intalio เลยขอถือโอกาสเขียน Blog เกี่ยวกับมันซะเลย
ความจริง Intalio นั้นมี product อยู่หลายตัว แต่ตัวที่เรากำลังจะแนะนำนี้เป็นตัวที่ใช้จัดการเกี่ยวกับ Workflow โดยใช้มาตรฐานของ BPM กับ BPEL และ Version ที่ดูอยู่ก็เป็น community ซึ่งเราสามารถหาข้อมูลเกี่ยวกับ Version นี้ได้ใน http://community.intalio.com/
ข้อดีของ Version นี้เลยหลักคือ ฟรี สามารถ Download มาใช้ได้เลย สำหรับการ Download นั้นจะแบ่งออกเป็น 2 ส่วน คือ
  1. Designer การลง Designer นั้นก็แค่เรียก .exe ที่เราโหลดมาแล้วก็คลิก Next ไปเรื่อยๆแค่นั้น ส่วน OS ที่ใช้นั้นเท่าที่ลองมา Windows XP ใช้ได้ดี ส่วน Windows 2000 นั้นไม่เหมาะ
  2. Server การลง Server ก็ไม่มีอะไรมากแค่ Extract ไฟลืออกมาวางที่ไหนก็ได้บนเครื่องจากนั้นก็ Set Java home จากนั้นก็เรียก startup.bat(ลงบน Windows) หรือ startup.sh(ลงบน Linux) ก็ได้
จากนั้นเราก็ลองทำตาม Tutorial ดู ซึ่งใน Community ก็มี Tutorial และ Sample มากมายอยู่
แล้วไว้วันหลังเราจะมาลองอธิบายความสามารถของ Intalio กันมั่งนะ วันนี้เอาแค่ Install ให้ได้ก่อนค่ะ

Thursday, April 8, 2010

Function Key Standard Setting in SAP

Function Keys Description
F1 Help
F2 Choose
F3 Back (One Step)
F4 Possible Entries
F9 Select
F10 Jump to menu bar
F11 Save/Generate
F12 Cancel
F13 Print
F14 Delete
F17 Open
F21 First Page
F22 Previous Page
F23 Next Page
F24 Last Page

How to Upload and Download Source Code of ABAP/4

Upload Source Code from PC File to ABAP Editor
You can do it by select Utilities -> More utilities -> Upload/download -> Upload and then enter your pc file that want to upload in your ABAP editor. Finally, select action ’Copy’.

Download Source Code from ABAP Editor to PC File
You can do it by select Utilities -> More utilities -> Upload/download -> Download and then enter your pc file that want to download from your ABAP editor. Finally, select action ’Copy’.

How to Insert or Delete Comment Block in ABAP Editor

Insert Comment
Select the statement line as block by hi-light and select menu Utilities -> Block/buffer -> Insert comment * in table control mode) or use hot key Ctrl + < in textedit control mode.

Delete Comment
Select the statement line as block by hi-light and select menu Utilities -> Block/buffer -> Delete comment * in table control mode) or use hot key Ctrl + > in textedit control mode.

Wednesday, April 7, 2010

How to Assign Dynamic Fields using Filed-Symbols in ABAP/4

You can create field name in run time and assign the created name in your field-symbols by statement "ASSIGN ... TO ...".

Example

DATA: name(20),

lv_check(1).

DATA: BEGIN OF itab OCCURS 0,
fld1(4),
fld2(4),

END OF itab.

FIELD-SYMBOLS .

...

...

LOOP AT itab.

IF lv_check = ’X’.

name = ’ITAB-FLD1’.

ELSE.

name = ’ITAB-FLD2’.

ENDIF.

ASSIGN (name) TO .

...

...

ENDLOOP.

Color in ABAP/4

Name Code Color

COL_BACKGROUND 0 depends on GUI

COL_HEADING 1 grayish-blue
COL_NORMAL 2 bright gray
COL_TOTAL 3 yellow
COL_KEY 4 bluish green
COL_POSITIVE 5 green
COL_NEGATIVE 6 red
COL_GROUP 7 violet