SAP Function Modules

ISP_GEN_BE2BBE SAP Function module - IS-M/AM: Determine Planning Data for a BBU







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

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


Pattern for FM ISP_GEN_BE2BBE - ISP GEN BE2BBE





CALL FUNCTION 'ISP_GEN_BE2BBE' "IS-M/AM: Determine Planning Data for a BBU
* EXPORTING
*   be =                        " jjtbe-beleinh
*   rubric =                    " jjtiko-inhaltskom
*   rubric2 =                   " jjtiko-inhaltskom
*   xno_filter =                " jjtiko-xscripte
*   xhide_svo =                 " xhide_svo     IS-M: Give preference to cont.comps in ad section indicator
*   xbuild_tree = 'X'           " sy-batch
*   pv_pos_art = '01'           " jhap-pos_art
  IMPORTING
    rubric_fl =                 " jhapa-inhk_klev1
* TABLES
*   itab_bbe =                  " rjjbday
*   itab_bbe_r1 =               " rjjobjin
*   itab_bbe_r1_basis =         " rjjoeiko
*   itab_bbe_r1_double =        " rjjobjin
*   itab_bbe_r1_miss =          " rjjobjin
*   itab_bbe_r1_succs =         " rjjoinf
*   itab_be_r1 =                " rjjobjin
*   itab_bbe_tree =             " jjb1_objtree_tab
*   itab_bbe_tree_all =         " jjb1_objtree_tab
*   itab_pe_match =             " rjjpefn
*   itab_vavartyp =             " rjlj011
  EXCEPTIONS
    BE_NOT_FOUND = 1            "
    .  "  ISP_GEN_BE2BBE

ABAP code example for Function Module ISP_GEN_BE2BBE





The ABAP code below is a full code listing to execute function module ISP_GEN_BE2BBE 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_rubric_fl  TYPE JHAPA-INHK_KLEV1 ,
it_itab_bbe  TYPE STANDARD TABLE OF RJJBDAY,"TABLES PARAM
wa_itab_bbe  LIKE LINE OF it_itab_bbe ,
it_itab_bbe_r1  TYPE STANDARD TABLE OF RJJOBJIN,"TABLES PARAM
wa_itab_bbe_r1  LIKE LINE OF it_itab_bbe_r1 ,
it_itab_bbe_r1_basis  TYPE STANDARD TABLE OF RJJOEIKO,"TABLES PARAM
wa_itab_bbe_r1_basis  LIKE LINE OF it_itab_bbe_r1_basis ,
it_itab_bbe_r1_double  TYPE STANDARD TABLE OF RJJOBJIN,"TABLES PARAM
wa_itab_bbe_r1_double  LIKE LINE OF it_itab_bbe_r1_double ,
it_itab_bbe_r1_miss  TYPE STANDARD TABLE OF RJJOBJIN,"TABLES PARAM
wa_itab_bbe_r1_miss  LIKE LINE OF it_itab_bbe_r1_miss ,
it_itab_bbe_r1_succs  TYPE STANDARD TABLE OF RJJOINF,"TABLES PARAM
wa_itab_bbe_r1_succs  LIKE LINE OF it_itab_bbe_r1_succs ,
it_itab_be_r1  TYPE STANDARD TABLE OF RJJOBJIN,"TABLES PARAM
wa_itab_be_r1  LIKE LINE OF it_itab_be_r1 ,
it_itab_bbe_tree  TYPE STANDARD TABLE OF JJB1_OBJTREE_TAB,"TABLES PARAM
wa_itab_bbe_tree  LIKE LINE OF it_itab_bbe_tree ,
it_itab_bbe_tree_all  TYPE STANDARD TABLE OF JJB1_OBJTREE_TAB,"TABLES PARAM
wa_itab_bbe_tree_all  LIKE LINE OF it_itab_bbe_tree_all ,
it_itab_pe_match  TYPE STANDARD TABLE OF RJJPEFN,"TABLES PARAM
wa_itab_pe_match  LIKE LINE OF it_itab_pe_match ,
it_itab_vavartyp  TYPE STANDARD TABLE OF RJLJ011,"TABLES PARAM
wa_itab_vavartyp  LIKE LINE OF it_itab_vavartyp .


SELECT single BELEINH
FROM JJTBE
INTO @DATA(ld_be).


SELECT single INHALTSKOM
FROM JJTIKO
INTO @DATA(ld_rubric).


SELECT single INHALTSKOM
FROM JJTIKO
INTO @DATA(ld_rubric2).


SELECT single XSCRIPTE
FROM JJTIKO
INTO @DATA(ld_xno_filter).

DATA(ld_xhide_svo) = 'Check type of data required'.
DATA(ld_xbuild_tree) = 'some text here'.

SELECT single POS_ART
FROM JHAP
INTO @DATA(ld_pv_pos_art).


"populate fields of struture and append to itab
append wa_itab_bbe to it_itab_bbe.

"populate fields of struture and append to itab
append wa_itab_bbe_r1 to it_itab_bbe_r1.

"populate fields of struture and append to itab
append wa_itab_bbe_r1_basis to it_itab_bbe_r1_basis.

"populate fields of struture and append to itab
append wa_itab_bbe_r1_double to it_itab_bbe_r1_double.

"populate fields of struture and append to itab
append wa_itab_bbe_r1_miss to it_itab_bbe_r1_miss.

"populate fields of struture and append to itab
append wa_itab_bbe_r1_succs to it_itab_bbe_r1_succs.

"populate fields of struture and append to itab
append wa_itab_be_r1 to it_itab_be_r1.

"populate fields of struture and append to itab
append wa_itab_bbe_tree to it_itab_bbe_tree.

"populate fields of struture and append to itab
append wa_itab_bbe_tree_all to it_itab_bbe_tree_all.

"populate fields of struture and append to itab
append wa_itab_pe_match to it_itab_pe_match.

"populate fields of struture and append to itab
append wa_itab_vavartyp to it_itab_vavartyp. . CALL FUNCTION 'ISP_GEN_BE2BBE' * EXPORTING * be = ld_be * rubric = ld_rubric * rubric2 = ld_rubric2 * xno_filter = ld_xno_filter * xhide_svo = ld_xhide_svo * xbuild_tree = ld_xbuild_tree * pv_pos_art = ld_pv_pos_art IMPORTING rubric_fl = ld_rubric_fl * TABLES * itab_bbe = it_itab_bbe * itab_bbe_r1 = it_itab_bbe_r1 * itab_bbe_r1_basis = it_itab_bbe_r1_basis * itab_bbe_r1_double = it_itab_bbe_r1_double * itab_bbe_r1_miss = it_itab_bbe_r1_miss * itab_bbe_r1_succs = it_itab_bbe_r1_succs * itab_be_r1 = it_itab_be_r1 * itab_bbe_tree = it_itab_bbe_tree * itab_bbe_tree_all = it_itab_bbe_tree_all * itab_pe_match = it_itab_pe_match * itab_vavartyp = it_itab_vavartyp EXCEPTIONS BE_NOT_FOUND = 1 . " ISP_GEN_BE2BBE
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_rubric_fl  TYPE JHAPA-INHK_KLEV1 ,
ld_be  TYPE JJTBE-BELEINH ,
it_itab_bbe  TYPE STANDARD TABLE OF RJJBDAY ,
wa_itab_bbe  LIKE LINE OF it_itab_bbe,
ld_rubric  TYPE JJTIKO-INHALTSKOM ,
it_itab_bbe_r1  TYPE STANDARD TABLE OF RJJOBJIN ,
wa_itab_bbe_r1  LIKE LINE OF it_itab_bbe_r1,
ld_rubric2  TYPE JJTIKO-INHALTSKOM ,
it_itab_bbe_r1_basis  TYPE STANDARD TABLE OF RJJOEIKO ,
wa_itab_bbe_r1_basis  LIKE LINE OF it_itab_bbe_r1_basis,
ld_xno_filter  TYPE JJTIKO-XSCRIPTE ,
it_itab_bbe_r1_double  TYPE STANDARD TABLE OF RJJOBJIN ,
wa_itab_bbe_r1_double  LIKE LINE OF it_itab_bbe_r1_double,
ld_xhide_svo  TYPE XHIDE_SVO ,
it_itab_bbe_r1_miss  TYPE STANDARD TABLE OF RJJOBJIN ,
wa_itab_bbe_r1_miss  LIKE LINE OF it_itab_bbe_r1_miss,
ld_xbuild_tree  TYPE SY-BATCH ,
it_itab_bbe_r1_succs  TYPE STANDARD TABLE OF RJJOINF ,
wa_itab_bbe_r1_succs  LIKE LINE OF it_itab_bbe_r1_succs,
ld_pv_pos_art  TYPE JHAP-POS_ART ,
it_itab_be_r1  TYPE STANDARD TABLE OF RJJOBJIN ,
wa_itab_be_r1  LIKE LINE OF it_itab_be_r1,
it_itab_bbe_tree  TYPE STANDARD TABLE OF JJB1_OBJTREE_TAB ,
wa_itab_bbe_tree  LIKE LINE OF it_itab_bbe_tree,
it_itab_bbe_tree_all  TYPE STANDARD TABLE OF JJB1_OBJTREE_TAB ,
wa_itab_bbe_tree_all  LIKE LINE OF it_itab_bbe_tree_all,
it_itab_pe_match  TYPE STANDARD TABLE OF RJJPEFN ,
wa_itab_pe_match  LIKE LINE OF it_itab_pe_match,
it_itab_vavartyp  TYPE STANDARD TABLE OF RJLJ011 ,
wa_itab_vavartyp  LIKE LINE OF it_itab_vavartyp.


SELECT single BELEINH
FROM JJTBE
INTO ld_be.


"populate fields of struture and append to itab
append wa_itab_bbe to it_itab_bbe.

SELECT single INHALTSKOM
FROM JJTIKO
INTO ld_rubric.


"populate fields of struture and append to itab
append wa_itab_bbe_r1 to it_itab_bbe_r1.

SELECT single INHALTSKOM
FROM JJTIKO
INTO ld_rubric2.


"populate fields of struture and append to itab
append wa_itab_bbe_r1_basis to it_itab_bbe_r1_basis.

SELECT single XSCRIPTE
FROM JJTIKO
INTO ld_xno_filter.


"populate fields of struture and append to itab
append wa_itab_bbe_r1_double to it_itab_bbe_r1_double.
ld_xhide_svo = 'some text here'.

"populate fields of struture and append to itab
append wa_itab_bbe_r1_miss to it_itab_bbe_r1_miss.
ld_xbuild_tree = 'some text here'.

"populate fields of struture and append to itab
append wa_itab_bbe_r1_succs to it_itab_bbe_r1_succs.

SELECT single POS_ART
FROM JHAP
INTO ld_pv_pos_art.


"populate fields of struture and append to itab
append wa_itab_be_r1 to it_itab_be_r1.

"populate fields of struture and append to itab
append wa_itab_bbe_tree to it_itab_bbe_tree.

"populate fields of struture and append to itab
append wa_itab_bbe_tree_all to it_itab_bbe_tree_all.

"populate fields of struture and append to itab
append wa_itab_pe_match to it_itab_pe_match.

"populate fields of struture and append to itab
append wa_itab_vavartyp to it_itab_vavartyp.

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