SAP Function Modules

RP_TAXREP_DETERMINE_FORMS SAP Function module - Determine all subsets of already generated forms







RP_TAXREP_DETERMINE_FORMS 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 RP_TAXREP_DETERMINE_FORMS into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM RP_TAXREP_DETERMINE_FORMS - RP TAXREP DETERMINE FORMS





CALL FUNCTION 'RP_TAXREP_DETERMINE_FORMS' "Determine all subsets of already generated forms
  EXPORTING
    abkrs =                     " qpu21-abkrs   Payroll subunit
*   molga = '10'                " t001p-molga   Country modifier
    txcmp =                     " qpu21-txcmp   Tax company
  TABLES
    i51t4 =                     " t51t4         Subsets of already generated tax forms
    qpu22_range =               " qpu23         Choosen tax forms to evaluate
    .  "  RP_TAXREP_DETERMINE_FORMS

ABAP code example for Function Module RP_TAXREP_DETERMINE_FORMS





The ABAP code below is a full code listing to execute function module RP_TAXREP_DETERMINE_FORMS 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_i51t4  TYPE STANDARD TABLE OF T51T4,"TABLES PARAM
wa_i51t4  LIKE LINE OF it_i51t4 ,
it_qpu22_range  TYPE STANDARD TABLE OF QPU23,"TABLES PARAM
wa_qpu22_range  LIKE LINE OF it_qpu22_range .


DATA(ld_abkrs) = some text here

SELECT single MOLGA
FROM T001P
INTO @DATA(ld_molga).


DATA(ld_txcmp) = some text here

"populate fields of struture and append to itab
append wa_i51t4 to it_i51t4.

"populate fields of struture and append to itab
append wa_qpu22_range to it_qpu22_range. . CALL FUNCTION 'RP_TAXREP_DETERMINE_FORMS' EXPORTING abkrs = ld_abkrs * molga = ld_molga txcmp = ld_txcmp TABLES i51t4 = it_i51t4 qpu22_range = it_qpu22_range . " RP_TAXREP_DETERMINE_FORMS
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_abkrs  TYPE QPU21-ABKRS ,
it_i51t4  TYPE STANDARD TABLE OF T51T4 ,
wa_i51t4  LIKE LINE OF it_i51t4,
ld_molga  TYPE T001P-MOLGA ,
it_qpu22_range  TYPE STANDARD TABLE OF QPU23 ,
wa_qpu22_range  LIKE LINE OF it_qpu22_range,
ld_txcmp  TYPE QPU21-TXCMP .


ld_abkrs = some text here

"populate fields of struture and append to itab
append wa_i51t4 to it_i51t4.

SELECT single MOLGA
FROM T001P
INTO ld_molga.


"populate fields of struture and append to itab
append wa_qpu22_range to it_qpu22_range.

ld_txcmp = some text here

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 RP_TAXREP_DETERMINE_FORMS or its description.