Monday, 1 September 2014

IDOC - idoc: Repair and check programs Basis - ALE Integration Technology
WE02 - Display idoc Basis - ALE Integration Technology
IDX2 - Meta Data Overview in idoc Adapter Basis - ALE Integration Technology
IDX1 - Port Maintenance in idoc Adapter Basis - ALE Integration Technology
WE30 - idoc Type Development Basis - ALE Integration Technology
WE05 - idoc Lists Basis - ALE Integration Technology
SXMB_MONI - Integration Engine - Monitoring Basis - Integration Engine
SM59 - RFC Destinations (Display/Maintain) Basis - RFC
SM58 - Asynchronous RFC Error Log Basis - RFC
WE20 - Partner Profiles Basis - ALE Integration Technology
WE19 - Test tool Basis - ALE Integration Technology
BD87 - Status Monitor for ALE Messages Basis - ALE Integration Technology
WE21 - Port definition Basis - ALE Integration Technology
WE31 - Development idoc Segment Basis - ALE Integration Technology
WE82 - Assign Messages for idoc Type Basis - ALE Integration Technology
RBDMIDOC - Variant for RBDMidoc Basis - ALE Integration Technology
IDX5 - idoc Adapter - Monitoring Basis - Integration Server
WTR1 - Request for Additionals idoc Logistics - Additionals Management
WE60 - Documentation for idoc types Basis - ALE Integration Technology
WE09 - Search for idocs by Content Basis - ALE Integration Technology
INOT - Create SM/PM Notification idoc PM - Plant Maintenance
BD59 - Allocation object type -> idoc type Basis - ALE Integration Technology
BD56 - Maintain idoc Segment Filters Basis - ALE Integration Technology
WE07 - idoc statistics Basis - ALE Integration Technology
WE06 - Active idoc monitoring Basis - ALE Integration Technology
BD79 - Maintain idoc Conversion Rules Basis - ALE Integration Technology
BD20 - idoc passed to application Basis - ALE Integration Technology
RSEIDOC2 - idoc List Basis - System Audit Information System


Read more: http://www.tcodesearch.com/tcodes/search?q=idoc#ixzz3C7u0ncTD






WE02 Display IDoc
WE05 IDoc Lists
WE06 Active IDoc monitoring
WE07 IDoc statistics
WE08 Status File Interface
WE09 Search for IDocs by Content
WE10 Search for IDoc in Archive
WE11 Delete IDocs
WE12 Test Modified Inbound File
WE14 Test Outbound Processing
WE15 Test Outbound Processing from MC
WE16 Test Inbound File
WE17 Test Status File
WE18 Generate Status File
WE19 Test tool
WE20 Partner Profiles
WE21 Port definition
WE23 Verification of IDoc processing
WE24 DefaultValuesForOutboundParameters
WE27 DefaultValues for Inbound Parameters
WE30 IDoc Type Development
WE31 Development IDoc Segment
WE32 Development IDoc View
WE34 Object for Display of XML IDocs
WE40 IDoc Administration
WE41 Process codes, outbound
WE42 Process codes, inbound
WE43 Funct.module: Status record display
WE44 Partner Types and Checks
WE45 Forward (inbound) (V3, EDILOGADR)
WE46 Error and Status Processing
WE47 Status Maintenance
WE50 System process codes: Texts
WE51 System process codes: Change texts
WE54 FMs for changing file names
WE55 Function Module for Path Names
WE56 IDoc Administration
WE57 Assignment Messages for Appl. Objs
WE58 Status process codes: Texts
WE59 Change status process codes
WE60 Documentation for IDoc types
WE61 Documentation for IDoc record types
WE62 Documentation for segments
WE63 Documentation
WE64 Documentation message types
WE70 Conversion: Basic types
WE71 Conversion: Extensions
WE72 Conversion: IDoc types
WE73 Conversion: Logical messages
WE81 Logical message types
WE82 Assign Messages for IDoc Type
WE84 Assignment of IDoc and appl. fields

Wednesday, 20 August 2014

Here is the list of common T-codes used in ABAP module.

sap-transactions-list-dictionary

Monday, 18 August 2014

Applying SORTING in Object Oriented ALV ( OO ALV )

Sorting in ALV always means that sort  settings applied for exactly one column , if someone says that
 an ALV display is sorted by 2 fields will simply means that the particular columns is sorted two times ., which is referres to as sort criteria . Sorting is very important functionality while reporting . Similar to filtering and aggregations , the user can do sorting  programmatically as well as using the ALV
 application toolbar functionality .

Similar to all other ALV applications , in order to create sorting you need to follow only 2 steps :
Step 1 : Get the object reference of class CL_SALV_SORTS by calling the method get_sorts( ) of classCL_SALV_TABLE.
lo_sorts = lo_alv->get_sorts( ).

STEP 2 : Call the add_sort( ) method of class CL_SALV_SORTS and passing the column name that
 you want to sort as the parameter in our case it is BELNR (Document Number).
CALL METHOD lo_sorts->add_sort
  
EXPORTING
    columnname = 
'BELNR'.

Please refer to the following source codes :

*******************************************************************
*& Author      : Roushan Kumar
*& Data        : 13/06/2014
*& Description : Sorting in OO ALV
*******************************************************************
REPORT  ztestr_alv_8.
TYPES : BEGIN OF gy_bseg,
          bukrs  
TYPE bukrs,
          belnr  
TYPE belnr_d,
          gjahr  
TYPE gjahr,
          buzei  
TYPE buzei,
          wrbtr 
TYPE wrbtr,
        
END OF gy_bseg.
DATA : gt_bseg TYPE STANDARD TABLE OF gy_bseg INITIAL SIZE 1.
REFRESH : gt_bseg[].
SELECT bukrs belnr gjahr buzei wrbtr
       
FROM bseg
       
INTO TABLE gt_bseg
       
UP TO 10 ROWS.IF sy-subrc IS INITIAL.

  
SORT gt_bseg BY bukrs belnr gjahr buzei .
ENDIF.
DATA : lo_alv TYPE REF TO cl_salv_table.
TRY.
    
CALL METHOD cl_salv_table=>factory
      
IMPORTING
        r_salv_table = lo_alv
      
CHANGING
        t_table      = gt_bseg.
  
CATCH cx_salv_msg .ENDTRY.
*-- Sorting logic starts
DATA : lo_sorts TYPE REF TO cl_salv_sorts.
*-- Step 1 : get the cl_salv_sorts object ref.
lo_sorts = lo_alv->get_sorts( ).
**-- Step 2 : get sorting for column belnr
CALL METHOD lo_sorts->add_sort
  
EXPORTING
    columnname = 
'BELNR'.
*-- Sorting logic end

lo_alv->display( ).
 

OUTPUT :
Sorting in OO ALV
Sorting in OO ALV























You can also change the individual sortings for a particular column by just following the two steps similar 
to above :
Step 1 : Get the object reference of class CL_SALV_SORT by calling the method get_sort( ) of classCL_SALV_SORTS and passing the column name as parameter .
lo_sort = lo_sorts->get_sort(
                             columnname = 
'BELNR'
                            ).
STEP 2 : Call the set_group ( ) method of class CL_SALV_SORT and passing the parameter .
lo_sort->set_group(
                   
value = if_salv_c_sort=>group_with_underline
                  ).
The  value of interface constants that will pass as the parameter value of method set_group( ) with there
 attributes are as follows :
Interface Constant
Attributes
IF_SALV_C_SORT=>GROUP_WITH_UNDER-LINE
Underlined
IF_SALV_C_SORT=>GROUP_WITH_NEW-PAGE
Page change
IF_SALV_C_SORT=>GROUP_NONE
No Display

Please refer to the below source codes :
*******************************************************************
*& Author      : Roushan Kumar
*& Data        : 13/06/2014
*& Description : Sorting in OO ALV
*******************************************************************
REPORT  ztestr_alv_8.
TYPES : BEGIN OF gy_bseg,
          bukrs  
TYPE bukrs,
          belnr  
TYPE belnr_d,
          gjahr  
TYPE gjahr,
          buzei  
TYPE buzei,
          wrbtr 
TYPE wrbtr,
        
END OF gy_bseg.
DATA : gt_bseg TYPE STANDARD TABLE OF gy_bseg INITIAL SIZE 1.
REFRESH : gt_bseg[].
SELECT bukrs belnr gjahr buzei wrbtr
       
FROM bseg
       
INTO TABLE gt_bseg
       
UP TO 10 ROWS.IF sy-subrc IS INITIAL.

  
SORT gt_bseg BY bukrs belnr gjahr buzei .
ENDIF.
DATA : lo_alv TYPE REF TO cl_salv_table.
TRY.
    
CALL METHOD cl_salv_table=>factory
      
IMPORTING
        r_salv_table = lo_alv
      
CHANGING
        t_table      = gt_bseg.
  
CATCH cx_salv_msg .ENDTRY.
*-- Sorting logic starts
DATA : lo_sorts TYPE REF TO cl_salv_sorts.
*-- Step 1 : get the cl_salv_sorts object ref.
lo_sorts = lo_alv->get_sorts( ).
**-- Step 2 : get sorting for column belnr
CALL METHOD lo_sorts->add_sort
  
EXPORTING
    columnname = 
'BELNR'
    
position   = 1
    
group      = if_salv_c_sort=>group_with_newpage.
DATA : lo_sort TYPE REF TO cl_salv_sort.

lo_sort = lo_sorts->get_sort(
                             columnname = 
'BELNR'
                            ).

lo_sort->set_group(
                   
value = if_salv_c_sort=>group_none
                  ).
*-- Sorting logic end

lo_alv->display( ).

OUTPUT :

Sorting in OO ALV
Sorting in OO ALV