SAP Function Modules

TB_AT13_SELECT SAP Function module - Table of Flow Types Accord. to Assignm. to Trans. Type and Cond. Categor







TB_AT13_SELECT is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name TB_AT13_SELECT into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: TB07
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM TB_AT13_SELECT - TB AT13 SELECT





CALL FUNCTION 'TB_AT13_SELECT' "Table of Flow Types Accord. to Assignm. to Trans. Type and Cond. Category
  EXPORTING
    application =               " at13-rantyp   Application
    dealtype =                  " at13-sfhaart  Transaction Type
*   group = '0'                 " at13-rkondgr  Direction of transaction
    producttype =               " at13-sgsart   Product Type
*   i_all_groups = ' '          " c             'X' = alle Seiten des Geschäfts
  TABLES
    selected_entries =          " at13          Ausgewählte Bewegungsarten
    types =                     "               Gewünschte Bewegungstypen der Klasse 1
    .  "  TB_AT13_SELECT

ABAP code example for Function Module TB_AT13_SELECT





The ABAP code below is a full code listing to execute function module TB_AT13_SELECT including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).

DATA:
it_selected_entries  TYPE STANDARD TABLE OF AT13,"TABLES PARAM
wa_selected_entries  LIKE LINE OF it_selected_entries ,
it_types  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_types  LIKE LINE OF it_types .


SELECT single RANTYP
FROM AT13
INTO @DATA(ld_application).


SELECT single SFHAART
FROM AT13
INTO @DATA(ld_dealtype).


SELECT single RKONDGR
FROM AT13
INTO @DATA(ld_group).


SELECT single SGSART
FROM AT13
INTO @DATA(ld_producttype).

DATA(ld_i_all_groups) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_selected_entries to it_selected_entries.

"populate fields of struture and append to itab
append wa_types to it_types. . CALL FUNCTION 'TB_AT13_SELECT' EXPORTING application = ld_application dealtype = ld_dealtype * group = ld_group producttype = ld_producttype * i_all_groups = ld_i_all_groups TABLES selected_entries = it_selected_entries types = it_types . " TB_AT13_SELECT
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_application  TYPE AT13-RANTYP ,
it_selected_entries  TYPE STANDARD TABLE OF AT13 ,
wa_selected_entries  LIKE LINE OF it_selected_entries,
ld_dealtype  TYPE AT13-SFHAART ,
it_types  TYPE STANDARD TABLE OF STRING ,
wa_types  LIKE LINE OF it_types,
ld_group  TYPE AT13-RKONDGR ,
ld_producttype  TYPE AT13-SGSART ,
ld_i_all_groups  TYPE C .


SELECT single RANTYP
FROM AT13
INTO ld_application.


"populate fields of struture and append to itab
append wa_selected_entries to it_selected_entries.

SELECT single SFHAART
FROM AT13
INTO ld_dealtype.


"populate fields of struture and append to itab
append wa_types to it_types.

SELECT single RKONDGR
FROM AT13
INTO ld_group.


SELECT single SGSART
FROM AT13
INTO ld_producttype.

ld_i_all_groups = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name TB_AT13_SELECT or its description.