SAP Function Modules

ISU_BILL_TYPE_DATE SAP Function module - INTERNAL: Bill Category (Sort by From-Date, SUBT at End of Block)







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

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


Pattern for FM ISU_BILL_TYPE_DATE - ISU BILL TYPE DATE





CALL FUNCTION 'ISU_BILL_TYPE_DATE' "INTERNAL: Bill Category (Sort by From-Date, SUBT at End of Block)
  EXPORTING
    x_erdk =                    " erdk          Print document header
*   x_te530 =                   " te530
  TABLES
    t_sortpart_erdz =           " erdz          Lines to be sorted
*   t_bill_doc =                " isu2a_t_bill_doc
  EXCEPTIONS
    IU_ERROR = 1                "               Termination of invoicing unit
    SYSTEM_ERROR = 2            "               Termination of invoicing
    NOT_QUALIFIED = 3           "               Spare
    .  "  ISU_BILL_TYPE_DATE

ABAP code example for Function Module ISU_BILL_TYPE_DATE





The ABAP code below is a full code listing to execute function module ISU_BILL_TYPE_DATE 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_t_sortpart_erdz  TYPE STANDARD TABLE OF ERDZ,"TABLES PARAM
wa_t_sortpart_erdz  LIKE LINE OF it_t_sortpart_erdz ,
it_t_bill_doc  TYPE STANDARD TABLE OF ISU2A_T_BILL_DOC,"TABLES PARAM
wa_t_bill_doc  LIKE LINE OF it_t_bill_doc .

DATA(ld_x_erdk) = 'Check type of data required'.
DATA(ld_x_te530) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_sortpart_erdz to it_t_sortpart_erdz.

"populate fields of struture and append to itab
append wa_t_bill_doc to it_t_bill_doc. . CALL FUNCTION 'ISU_BILL_TYPE_DATE' EXPORTING x_erdk = ld_x_erdk * x_te530 = ld_x_te530 TABLES t_sortpart_erdz = it_t_sortpart_erdz * t_bill_doc = it_t_bill_doc EXCEPTIONS IU_ERROR = 1 SYSTEM_ERROR = 2 NOT_QUALIFIED = 3 . " ISU_BILL_TYPE_DATE
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here 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_x_erdk  TYPE ERDK ,
it_t_sortpart_erdz  TYPE STANDARD TABLE OF ERDZ ,
wa_t_sortpart_erdz  LIKE LINE OF it_t_sortpart_erdz,
ld_x_te530  TYPE TE530 ,
it_t_bill_doc  TYPE STANDARD TABLE OF ISU2A_T_BILL_DOC ,
wa_t_bill_doc  LIKE LINE OF it_t_bill_doc.

ld_x_erdk = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_sortpart_erdz to it_t_sortpart_erdz.
ld_x_te530 = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_bill_doc to it_t_bill_doc.

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