SAP Function Modules

ISU_BBPLAN_GET_REMOTE SAP Function module - Returns Attributes of BB Plan (Remote)







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

Associated Function Group: EA61EXR
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM ISU_BBPLAN_GET_REMOTE - ISU BBPLAN GET REMOTE





CALL FUNCTION 'ISU_BBPLAN_GET_REMOTE' "Returns Attributes of BB Plan (Remote)
* EXPORTING
*   x_opbel =                   " eabp-opbel    Budget Billing Plan
*   x_vertrag =                 " vertrag       Contract
*   xw_lines_key =              " eabp_lines_key  Key for Gen. Int. Lay. for IsuBbplanLines (Doc.No.+Ctrct+ID)
  IMPORTING
    yw_eabp_lines =             " eabp_lines    Attribute Structure for Budget Billing Plan Lines
    yw_eabph_attr =             " eabph_attr
    yw_eabp_attr =              " eabp_attr     Attribute Structure GenIL Object ISU Budget Billing Plan
* TABLES
*   yt_eabp_lines =             " eabp_lines
*   yt_eabp_lines_key =         " eabp_lines_key  Key Structure Gen. Int. Layer Object IsuBbplanLines
*   yt_msg =                    " bapiret2_t    Return Table
  EXCEPTIONS
    NOT_AUTHORIZED = 1          "
    .  "  ISU_BBPLAN_GET_REMOTE

ABAP code example for Function Module ISU_BBPLAN_GET_REMOTE





The ABAP code below is a full code listing to execute function module ISU_BBPLAN_GET_REMOTE 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_yw_eabp_lines  TYPE EABP_LINES ,
ld_yw_eabph_attr  TYPE EABPH_ATTR ,
ld_yw_eabp_attr  TYPE EABP_ATTR ,
it_yt_eabp_lines  TYPE STANDARD TABLE OF EABP_LINES,"TABLES PARAM
wa_yt_eabp_lines  LIKE LINE OF it_yt_eabp_lines ,
it_yt_eabp_lines_key  TYPE STANDARD TABLE OF EABP_LINES_KEY,"TABLES PARAM
wa_yt_eabp_lines_key  LIKE LINE OF it_yt_eabp_lines_key ,
it_yt_msg  TYPE STANDARD TABLE OF BAPIRET2_T,"TABLES PARAM
wa_yt_msg  LIKE LINE OF it_yt_msg .


SELECT single OPBEL
FROM EABP
INTO @DATA(ld_x_opbel).

DATA(ld_x_vertrag) = 'Check type of data required'.
DATA(ld_xw_lines_key) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_yt_eabp_lines to it_yt_eabp_lines.

"populate fields of struture and append to itab
append wa_yt_eabp_lines_key to it_yt_eabp_lines_key.

"populate fields of struture and append to itab
append wa_yt_msg to it_yt_msg. . CALL FUNCTION 'ISU_BBPLAN_GET_REMOTE' * EXPORTING * x_opbel = ld_x_opbel * x_vertrag = ld_x_vertrag * xw_lines_key = ld_xw_lines_key IMPORTING yw_eabp_lines = ld_yw_eabp_lines yw_eabph_attr = ld_yw_eabph_attr yw_eabp_attr = ld_yw_eabp_attr * TABLES * yt_eabp_lines = it_yt_eabp_lines * yt_eabp_lines_key = it_yt_eabp_lines_key * yt_msg = it_yt_msg EXCEPTIONS NOT_AUTHORIZED = 1 . " ISU_BBPLAN_GET_REMOTE
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "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_yw_eabp_lines  TYPE EABP_LINES ,
ld_x_opbel  TYPE EABP-OPBEL ,
it_yt_eabp_lines  TYPE STANDARD TABLE OF EABP_LINES ,
wa_yt_eabp_lines  LIKE LINE OF it_yt_eabp_lines,
ld_yw_eabph_attr  TYPE EABPH_ATTR ,
ld_x_vertrag  TYPE VERTRAG ,
it_yt_eabp_lines_key  TYPE STANDARD TABLE OF EABP_LINES_KEY ,
wa_yt_eabp_lines_key  LIKE LINE OF it_yt_eabp_lines_key,
ld_yw_eabp_attr  TYPE EABP_ATTR ,
ld_xw_lines_key  TYPE EABP_LINES_KEY ,
it_yt_msg  TYPE STANDARD TABLE OF BAPIRET2_T ,
wa_yt_msg  LIKE LINE OF it_yt_msg.


SELECT single OPBEL
FROM EABP
INTO ld_x_opbel.


"populate fields of struture and append to itab
append wa_yt_eabp_lines to it_yt_eabp_lines.
ld_x_vertrag = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_yt_eabp_lines_key to it_yt_eabp_lines_key.
ld_xw_lines_key = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_yt_msg to it_yt_msg.

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