SAP Function Modules

ISU_BBPLAN_OPEN_REMOTE SAP Function module - Opens Remote Object Processing for BB Change







ISU_BBPLAN_OPEN_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_OPEN_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_OPEN_REMOTE - ISU BBPLAN OPEN REMOTE





CALL FUNCTION 'ISU_BBPLAN_OPEN_REMOTE' "Opens Remote Object Processing for BB Change
  EXPORTING
    x_opbel =                   " opbel_kk      Number of a Contract Accounts Receivable and Payable Document
    x_wmode =                   " regen-wmode   Processing Mode (1 = Display, 2 = Change, 3 = Create...)
  IMPORTING
    y_subrc =                   " sysubrc       Return Value, Return Value after ABAP Statements
* TABLES
*   yt_bbplan_key =             " bbplan_key    IS-U Contract
*   yt_bbplan_lines_key =       " eabp_lines_key  Key Structure Gen. Int. Layer Object IsuBbplanLines
*   yt_msg =                    " bapiret2_t    Return Table
  EXCEPTIONS
    FOREIGN_LOCK = 1            "
    NOT_AUTHORIZED = 2          "
    DOESNT_EXIST = 3            "
    SYSTEM_ERROR = 4            "
    NOT_QUALIFIED = 5           "
    .  "  ISU_BBPLAN_OPEN_REMOTE

ABAP code example for Function Module ISU_BBPLAN_OPEN_REMOTE





The ABAP code below is a full code listing to execute function module ISU_BBPLAN_OPEN_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_y_subrc  TYPE SYSUBRC ,
it_yt_bbplan_key  TYPE STANDARD TABLE OF BBPLAN_KEY,"TABLES PARAM
wa_yt_bbplan_key  LIKE LINE OF it_yt_bbplan_key ,
it_yt_bbplan_lines_key  TYPE STANDARD TABLE OF EABP_LINES_KEY,"TABLES PARAM
wa_yt_bbplan_lines_key  LIKE LINE OF it_yt_bbplan_lines_key ,
it_yt_msg  TYPE STANDARD TABLE OF BAPIRET2_T,"TABLES PARAM
wa_yt_msg  LIKE LINE OF it_yt_msg .

DATA(ld_x_opbel) = 'Check type of data required'.

DATA(ld_x_wmode) = some text here

"populate fields of struture and append to itab
append wa_yt_bbplan_key to it_yt_bbplan_key.

"populate fields of struture and append to itab
append wa_yt_bbplan_lines_key to it_yt_bbplan_lines_key.

"populate fields of struture and append to itab
append wa_yt_msg to it_yt_msg. . CALL FUNCTION 'ISU_BBPLAN_OPEN_REMOTE' EXPORTING x_opbel = ld_x_opbel x_wmode = ld_x_wmode IMPORTING y_subrc = ld_y_subrc * TABLES * yt_bbplan_key = it_yt_bbplan_key * yt_bbplan_lines_key = it_yt_bbplan_lines_key * yt_msg = it_yt_msg EXCEPTIONS FOREIGN_LOCK = 1 NOT_AUTHORIZED = 2 DOESNT_EXIST = 3 SYSTEM_ERROR = 4 NOT_QUALIFIED = 5 . " ISU_BBPLAN_OPEN_REMOTE
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 ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 5. "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_subrc  TYPE SYSUBRC ,
ld_x_opbel  TYPE OPBEL_KK ,
it_yt_bbplan_key  TYPE STANDARD TABLE OF BBPLAN_KEY ,
wa_yt_bbplan_key  LIKE LINE OF it_yt_bbplan_key,
ld_x_wmode  TYPE REGEN-WMODE ,
it_yt_bbplan_lines_key  TYPE STANDARD TABLE OF EABP_LINES_KEY ,
wa_yt_bbplan_lines_key  LIKE LINE OF it_yt_bbplan_lines_key,
it_yt_msg  TYPE STANDARD TABLE OF BAPIRET2_T ,
wa_yt_msg  LIKE LINE OF it_yt_msg.

ld_x_opbel = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_yt_bbplan_key to it_yt_bbplan_key.

ld_x_wmode = some text here

"populate fields of struture and append to itab
append wa_yt_bbplan_lines_key to it_yt_bbplan_lines_key.

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