Wednesday, March 27, 2013

View Object Directory



This program used to view object in our system whether it Sapscripts, Text Element and Program

This is the program name :  RSWBO052


p/s anyone know the tcode for this?



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.


  DATAlr_columns TYPE REF TO cl_salv_columns,
        lr_column  TYPE
 REF TO cl_salv_column_table.
*  Set Color
  
TRY.
      
DATAls_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.