SAP Function Modules

ISU_GET_HEADER_ADDRESS SAP Function module - INTERNAL: Provides Recipient for Bill/Dunning Document







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

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


Pattern for FM ISU_GET_HEADER_ADDRESS - ISU GET HEADER ADDRESS





CALL FUNCTION 'ISU_GET_HEADER_ADDRESS' "INTERNAL: Provides Recipient for Bill/Dunning Document
  EXPORTING
    x_doc_type =                " rfgen-doc_type
*   x_langu = SY-LANGU          " sy-langu
*   x_fkkvkp1 =                 " fkkvkp1
*   x_but000 =                  " isu01_ekun
  IMPORTING
    y_but000 =                  " isu01_ekun
* TABLES
*   xyt_doc_header =            " erdk
*   xyt_dunn_header =           " fkkmako
*   xyt_cdoc_head =             " fkkko
*   yt_address =                " eadrdat
*   yt_adrc_regio =             " adrc_regio
  EXCEPTIONS
    NOT_QUALIFIED = 1           "
    NOT_FOUND = 2               "
    FAILED = 3                  "               The process could not be executed
    .  "  ISU_GET_HEADER_ADDRESS

ABAP code example for Function Module ISU_GET_HEADER_ADDRESS





The ABAP code below is a full code listing to execute function module ISU_GET_HEADER_ADDRESS 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:
ld_y_but000  TYPE ISU01_EKUN ,
it_xyt_doc_header  TYPE STANDARD TABLE OF ERDK,"TABLES PARAM
wa_xyt_doc_header  LIKE LINE OF it_xyt_doc_header ,
it_xyt_dunn_header  TYPE STANDARD TABLE OF FKKMAKO,"TABLES PARAM
wa_xyt_dunn_header  LIKE LINE OF it_xyt_dunn_header ,
it_xyt_cdoc_head  TYPE STANDARD TABLE OF FKKKO,"TABLES PARAM
wa_xyt_cdoc_head  LIKE LINE OF it_xyt_cdoc_head ,
it_yt_address  TYPE STANDARD TABLE OF EADRDAT,"TABLES PARAM
wa_yt_address  LIKE LINE OF it_yt_address ,
it_yt_adrc_regio  TYPE STANDARD TABLE OF ADRC_REGIO,"TABLES PARAM
wa_yt_adrc_regio  LIKE LINE OF it_yt_adrc_regio .


DATA(ld_x_doc_type) = some text here
DATA(ld_x_langu) = 'Check type of data required'.
DATA(ld_x_fkkvkp1) = 'Check type of data required'.
DATA(ld_x_but000) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_xyt_doc_header to it_xyt_doc_header.

"populate fields of struture and append to itab
append wa_xyt_dunn_header to it_xyt_dunn_header.

"populate fields of struture and append to itab
append wa_xyt_cdoc_head to it_xyt_cdoc_head.

"populate fields of struture and append to itab
append wa_yt_address to it_yt_address.

"populate fields of struture and append to itab
append wa_yt_adrc_regio to it_yt_adrc_regio. . CALL FUNCTION 'ISU_GET_HEADER_ADDRESS' EXPORTING x_doc_type = ld_x_doc_type * x_langu = ld_x_langu * x_fkkvkp1 = ld_x_fkkvkp1 * x_but000 = ld_x_but000 IMPORTING y_but000 = ld_y_but000 * TABLES * xyt_doc_header = it_xyt_doc_header * xyt_dunn_header = it_xyt_dunn_header * xyt_cdoc_head = it_xyt_cdoc_head * yt_address = it_yt_address * yt_adrc_regio = it_yt_adrc_regio EXCEPTIONS NOT_QUALIFIED = 1 NOT_FOUND = 2 FAILED = 3 . " ISU_GET_HEADER_ADDRESS
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_y_but000  TYPE ISU01_EKUN ,
ld_x_doc_type  TYPE RFGEN-DOC_TYPE ,
it_xyt_doc_header  TYPE STANDARD TABLE OF ERDK ,
wa_xyt_doc_header  LIKE LINE OF it_xyt_doc_header,
ld_x_langu  TYPE SY-LANGU ,
it_xyt_dunn_header  TYPE STANDARD TABLE OF FKKMAKO ,
wa_xyt_dunn_header  LIKE LINE OF it_xyt_dunn_header,
ld_x_fkkvkp1  TYPE FKKVKP1 ,
it_xyt_cdoc_head  TYPE STANDARD TABLE OF FKKKO ,
wa_xyt_cdoc_head  LIKE LINE OF it_xyt_cdoc_head,
ld_x_but000  TYPE ISU01_EKUN ,
it_yt_address  TYPE STANDARD TABLE OF EADRDAT ,
wa_yt_address  LIKE LINE OF it_yt_address,
it_yt_adrc_regio  TYPE STANDARD TABLE OF ADRC_REGIO ,
wa_yt_adrc_regio  LIKE LINE OF it_yt_adrc_regio.


ld_x_doc_type = some text here

"populate fields of struture and append to itab
append wa_xyt_doc_header to it_xyt_doc_header.
ld_x_langu = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_xyt_dunn_header to it_xyt_dunn_header.
ld_x_fkkvkp1 = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_xyt_cdoc_head to it_xyt_cdoc_head.
ld_x_but000 = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_yt_address to it_yt_address.

"populate fields of struture and append to itab
append wa_yt_adrc_regio to it_yt_adrc_regio.

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