Sunday, June 20, 2010

How to insert text element in SAP Smartforms

You can insert text element in SAP smartforms as following:
  • Select window that you want to insert graphic object and right click. System will list object that you can create.
    In the example, I have window name ’HEADER2’ and I want to insert text element in this window.
  • On popup menu, you will select Create -> Text

  • System will default value of text name and description but you can change them and select text type as ’Text Element’.
  • You can input text that you want to show by typing in editor on General Attributes tab.

    In the example, I want to show text ’Testing text element’ on window ’HEADER2’.
  • The output is:

การกำหนดให้ window ขึ้นเฉพาะในหน้าสุดท้ายใน smartforms

หากเราต้องการให้ windows นั้นออกเฉพาะหน้าสุท้ายของ document ให้เรากำหนดที่ Conditions -> And Additional Event -> เลือกที่ Only After End of Main Window
เพียงแค่นี้ Window นั้นก็ขึ้นเฉพาะหน้าสุดท้ายแล้ว

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.