SAP Function Modules

ISU_READ_SINGLE_BBP_FROM_ARCH SAP Function module - Internal: Read Budget Billing Plan from Archive







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

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


Pattern for FM ISU_READ_SINGLE_BBP_FROM_ARCH - ISU READ SINGLE BBP FROM ARCH





CALL FUNCTION 'ISU_READ_SINGLE_BBP_FROM_ARCH' "Internal: Read Budget Billing Plan from Archive
  EXPORTING
    x_archivekey =              " admi_files-archiv_key  Archive File
    x_offset =                  " arch_idx-offset  Offset of Data Object in File
  TABLES
    yt_eabp =                   " eabp          Budget Billing Plan
    yt_fkkop =                  " fkkop
    yt_fkkopw =                 " fkkopw
    yt_ejvl =                   " ejvl
*   yt_eabpl =                  " eabpl
*   yt_eabplreq =               " eabplreq
*   yt_epslreqs =               " epslreqs
  EXCEPTIONS
    NOT_FOUND = 1               "
    INTERNAL_ERROR = 2          "
    .  "  ISU_READ_SINGLE_BBP_FROM_ARCH

ABAP code example for Function Module ISU_READ_SINGLE_BBP_FROM_ARCH





The ABAP code below is a full code listing to execute function module ISU_READ_SINGLE_BBP_FROM_ARCH 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_yt_eabp  TYPE STANDARD TABLE OF EABP,"TABLES PARAM
wa_yt_eabp  LIKE LINE OF it_yt_eabp ,
it_yt_fkkop  TYPE STANDARD TABLE OF FKKOP,"TABLES PARAM
wa_yt_fkkop  LIKE LINE OF it_yt_fkkop ,
it_yt_fkkopw  TYPE STANDARD TABLE OF FKKOPW,"TABLES PARAM
wa_yt_fkkopw  LIKE LINE OF it_yt_fkkopw ,
it_yt_ejvl  TYPE STANDARD TABLE OF EJVL,"TABLES PARAM
wa_yt_ejvl  LIKE LINE OF it_yt_ejvl ,
it_yt_eabpl  TYPE STANDARD TABLE OF EABPL,"TABLES PARAM
wa_yt_eabpl  LIKE LINE OF it_yt_eabpl ,
it_yt_eabplreq  TYPE STANDARD TABLE OF EABPLREQ,"TABLES PARAM
wa_yt_eabplreq  LIKE LINE OF it_yt_eabplreq ,
it_yt_epslreqs  TYPE STANDARD TABLE OF EPSLREQS,"TABLES PARAM
wa_yt_epslreqs  LIKE LINE OF it_yt_epslreqs .


SELECT single ARCHIV_KEY
FROM ADMI_FILES
INTO @DATA(ld_x_archivekey).


SELECT single OFFSET
FROM ARCH_IDX
INTO @DATA(ld_x_offset).


"populate fields of struture and append to itab
append wa_yt_eabp to it_yt_eabp.

"populate fields of struture and append to itab
append wa_yt_fkkop to it_yt_fkkop.

"populate fields of struture and append to itab
append wa_yt_fkkopw to it_yt_fkkopw.

"populate fields of struture and append to itab
append wa_yt_ejvl to it_yt_ejvl.

"populate fields of struture and append to itab
append wa_yt_eabpl to it_yt_eabpl.

"populate fields of struture and append to itab
append wa_yt_eabplreq to it_yt_eabplreq.

"populate fields of struture and append to itab
append wa_yt_epslreqs to it_yt_epslreqs. . CALL FUNCTION 'ISU_READ_SINGLE_BBP_FROM_ARCH' EXPORTING x_archivekey = ld_x_archivekey x_offset = ld_x_offset TABLES yt_eabp = it_yt_eabp yt_fkkop = it_yt_fkkop yt_fkkopw = it_yt_fkkopw yt_ejvl = it_yt_ejvl * yt_eabpl = it_yt_eabpl * yt_eabplreq = it_yt_eabplreq * yt_epslreqs = it_yt_epslreqs EXCEPTIONS NOT_FOUND = 1 INTERNAL_ERROR = 2 . " ISU_READ_SINGLE_BBP_FROM_ARCH
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 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_archivekey  TYPE ADMI_FILES-ARCHIV_KEY ,
it_yt_eabp  TYPE STANDARD TABLE OF EABP ,
wa_yt_eabp  LIKE LINE OF it_yt_eabp,
ld_x_offset  TYPE ARCH_IDX-OFFSET ,
it_yt_fkkop  TYPE STANDARD TABLE OF FKKOP ,
wa_yt_fkkop  LIKE LINE OF it_yt_fkkop,
it_yt_fkkopw  TYPE STANDARD TABLE OF FKKOPW ,
wa_yt_fkkopw  LIKE LINE OF it_yt_fkkopw,
it_yt_ejvl  TYPE STANDARD TABLE OF EJVL ,
wa_yt_ejvl  LIKE LINE OF it_yt_ejvl,
it_yt_eabpl  TYPE STANDARD TABLE OF EABPL ,
wa_yt_eabpl  LIKE LINE OF it_yt_eabpl,
it_yt_eabplreq  TYPE STANDARD TABLE OF EABPLREQ ,
wa_yt_eabplreq  LIKE LINE OF it_yt_eabplreq,
it_yt_epslreqs  TYPE STANDARD TABLE OF EPSLREQS ,
wa_yt_epslreqs  LIKE LINE OF it_yt_epslreqs.


SELECT single ARCHIV_KEY
FROM ADMI_FILES
INTO ld_x_archivekey.


"populate fields of struture and append to itab
append wa_yt_eabp to it_yt_eabp.

SELECT single OFFSET
FROM ARCH_IDX
INTO ld_x_offset.


"populate fields of struture and append to itab
append wa_yt_fkkop to it_yt_fkkop.

"populate fields of struture and append to itab
append wa_yt_fkkopw to it_yt_fkkopw.

"populate fields of struture and append to itab
append wa_yt_ejvl to it_yt_ejvl.

"populate fields of struture and append to itab
append wa_yt_eabpl to it_yt_eabpl.

"populate fields of struture and append to itab
append wa_yt_eabplreq to it_yt_eabplreq.

"populate fields of struture and append to itab
append wa_yt_epslreqs to it_yt_epslreqs.

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