Tuesday, 13 March 2018

Call Transaction FK03

SET PARAMETER ID'LIF' FIELD w_output-lifnr,
                            'BUK' FIELD p_bukrs,
                            'KDY' FIELD '/110/120/130/210/215/220/610'.
          CALL TRANSACTION 'FK03' AND SKIP FIRST SCREEN.

Sunday, 15 October 2017

Delete WBS Element

1. TCode OPSX : Check Budget
2. TCode CJ20N : Delete Project and Sub Project
3. Table VSPRPS_CN : Delete WBS Element by function SE16N_INTERFACE

Wednesday, 10 May 2017

How to Reset different SAP buffers

SAP Buffers can be reset with below commands :

  1. /$SYNC - Resets the buffers of the application server
  2. /$CUA - Resets the CUA buffer of the application server
  3. /$TAB - Resets the TABLE buffers of the application server
  4. /$NAM - Resets the nametab buffer of the application server
  5. /$DYN - Resets the screen buffer of the application server
  6. /$ESM - Resets the Exp./ Imp. Shared Memory Buffer of the application server
  7. /$PXA - Resets the Program (PXA) Buffer of the application server.
  8. /$OBJ - Resets the Shared Buffer of the application server.
SU53 and click authorization values —> Reset User Buffer.
SU01 -> environment -> mass changes -> reset all user buffers
Executing transaction PFUD or running program RHAUTUPD_NEW
se38 and program: RSUSR405

Ref. https://wiki.scn.sap.com/wiki/display/Basis/How+to+Reset+different+SAP+buffers

Wednesday, 15 March 2017

Transaction

Transaction Description

cf01,02,03 Production Resoure/Tool (PRT)
cmod                Project Management of SAP Enhancements
cr01,02,03 Work Center Capacity
db13                Check Tape Backup
mb52               Check Stock Material
mmpv              Close Period for Material Master Records
msc1n              Create Batch
oaor                 Upload Word and Excel File
pa40                Personal Actions (สถานะการทำงาน)
pdsy                HR Documentation ไว้ดูฟังก์ชันสำหรับเขียน Schema
pe01                Schema Editor
pe02                Personal Calculation Rules (PCR)
pe04                Maintain Function and Operation
pfcg                 Create Role
se03                 ใช้สำหรับ Release จาก DEV ไปที่ QA
se11                 Database Table, Type
se16n               เรียกดู Table
se19                 BADI
se20                 Enhancements
se22                 Check Error
se24                 Class
se30                 ใช้ดูค่า Config / ABAP Runtime Analysis
se37                 Function Module
se61                 Document Maintenance
se71                 Form Painter, SAPScript
se80                 หน้า Object Navigator
se91                 Message Class
se93                 Create Transaction Code
shdb                 Create Screen BDC
sm12                Table Lock
sm30                Maintain Table View, เพิ่มข้อมูล Table แบบ Config
sm36                Define Background Job
sm50                Check Process Job
sm59                Configuration of RFC Connections
smartforms      SAP Smart Forms
snro                 Number Range
so10                 สำหรับ Print, สร้าง Standard Text, Include Text
spad                 เกี่ยวกับการ Print
spro                 User Exit, Customizing
st05                 Performance Analysis
st22                 Error Message ของ User
stms                Transport Request
su01                Edit Password User or Lock, Unlock
su10                User Maintenance
su3                  สำหรับ Set Default Printer

Sunday, 12 March 2017

Class Timer in PBO Screen


Declaration Variable


   CLASS  xcl_event_receiver      DEFINITION DEFERRED.
   DATAxo_timer  TYPE  REF TO cl_gui_timer.
   DATAxo_event  TYPE  REF TO xcl_event_receiver.

          ___________________________________________________________________________


CLASS xcl_event_receiver DEFINITION.
  PUBLIC SECTION.

    CLASS-METHODS:
      timer_finished       FOR EVENT  finished
                                  OF  cl_gui_timer.

ENDCLASS.               

CLASS xcl_event_receiver IMPLEMENTATION.

      METHOD timer_finished.
             Do anything....
   ENDMETHOD
               
ENDCLASS.       

          ___________________________________________________________________________

PBO : Status_0100

MODULE status_0100 OUTPUT.
  SET PF-STATUS 'TOOLBAR'.
  
  IF xo_timer IS INITIAL.
    CREATE OBJECT xo_timer
      EXCEPTIONS
        OTHERS 4.

    CHECK sy-subrc EQ  0.
    CREATE OBJECT xo_event.
  ENDIF.

  SET HANDLER xo_event->timer_finished FOR xo_timer.

  xo_timer->interval 1.

  "Create Container and ALV...

  xo_timer->run).

ENDMODULE.

Get Extension File

Func : TRINT_FILE_GET_EXTENSION

ABAP Easy Message Log

type-pools: ESP1 .
data:
LT_MESSAGE_TAB type ESP1_MESSAGE_TAB_TYPE ,
LS_MESSAGE_TAB type ESP1_MESSAGE_WA_TYPE.
         LS_MESSAGE_TAB-MSGID = 'AD' .
         LS_MESSAGE_TAB-MSGTY = 'W' .
         LS_MESSAGE_TAB-MSGNO = '010' .
         LS_MESSAGE_TAB-MSGV1 = TEXT-001.
append LS_MESSAGE_TAB to LT_MESSAGE_TAB .
call function 'C14Z_MESSAGES_SHOW_AS_POPUP'
tables
             I_MESSAGE_TAB = LT_MESSAGE_TAB.