Tuesday, March 26, 2013

Report Indicator



Sometimes its nice to have report indicator or progress indcator so we can know our report status, which part of subroutine or process taken a  bit of time generally.  Below is the code snippet


We using function 'SAPGUI_PROGRESS_INDICATOR'

CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
 EXPORTING
   PERCENTAGE       = P_PERCENT
   TEXT                     = P_TEXT
          .

Wednesday, March 20, 2013

ALV Color Coded


Below is color code for ALV. I'm using ALV OOO to generate this color.


  DATA: lr_columns TYPE REF TO cl_salv_columns,
        lr_column  TYPE
 REF TO cl_salv_column_table.
*  Set Color
  
TRY.
      
DATA: ls_color TYPE lvc_s_colo.                      
      lr_column ?= lr_columns
->get_column( 'DMBTR' ).
      ls_color
-col = 4. "greyblue_int
      ls_color-int 
= 1.
      ls_color-inv 
= 0.
      lr_column
->set_color( ls_color ).
    
CATCH cx_salv_not_found.                           
  ENDTRY.

Thursday, January 17, 2013

ALV Grid Object Oriented Example SAP




Below is the list of project or example given by SAP to using ALV Grid mostly coded in OO style


1. Key in SALV* for Factory Method ALV in SE38

OR

2. Key in BC*ALV in SE38.


SALV*

BC*ALV


Wednesday, December 26, 2012

Clear or Delete SPOOL Request


Below is the program to clear the spool request.

1. Run SE38 - RSPO1041





OR

1. Run tcode SPAD
2. Click 'Admin' Tab
3. Choose 'Delete Old Spool Requests'
4. Delete




Friday, December 21, 2012

Edit Message Document


This document can be called also Help Document or Performance Assistant Message, its act as long text for the message class.

1) We use transaction SE61 to edit the long text for each message.
2) Or we can go to SE80 and Browse the right package to edit the Short Text and Long Text.

Below is the screen capture :

Browse throught SE80

SE61 Screen

Edit Document using SAPScript Format.









Thursday, December 13, 2012

Enhancemen Point How To


Enhancement Point How To:

1. Go to SE38 , Select Enhancement point (Shift+F4) and select 'Show Implicit Enhancement'



2. On the code select any area that contain double quote symbol  """"""""" , and right click choose 'Enhancement' -- Create.


3. Choose type of Enhancement either 'Declaration' or 'Code'. Normally choose Code.


4. Insert the Enhancement Implementation Name and Short Text .



5. Save and Assign the implementation to the right package and transport number. Done!

Tips:

To find created Enhancement used SE84 Object Navigator tcode.










Sunday, December 2, 2012

Find BADI in Every Tcode

Below is the tips to find BADI in every tcode or transaction code.

1. Go to SE37 and enter this Function Module (FM) : SXV_GET_CLIF_BY_NAME
2. Put Breakpoint to trigger ABAP Debugger.
3. Run your tcode.
4. You can see the BADI names under this variable "Name".

Below is the screen shot :