SAP Function Modules

BBP_CM_API_PROG_GEN_OBJREL SAP Function module - Generate Objective Breakdowns







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

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


Pattern for FM BBP_CM_API_PROG_GEN_OBJREL - BBP CM API PROG GEN OBJREL





CALL FUNCTION 'BBP_CM_API_PROG_GEN_OBJREL' "Generate Objective Breakdowns
* EXPORTING
*   iv_obj_re_start =           " bbp_cm_objrel_start  Objective Breakdown Start Date
*   iv_obj_re_end =             " bbp_cm_objrel_end  End Date for Objective Breakdown
*   iv_objrel_period =          " bbp_cm_objrel_period  Objective Breakdown Period (Month, Quarter, Year)
*   iv_maintain_value =         " xfeld         Checkbox
*   iv_progguid =               " bbp_cm_guid_d  GUID in character format
  TABLES
*   it_objective_breakdown =    " bbpt_cm_objective_realz_d  UI Fields -Objective Breakdown
    et_messages =               " bapiret2      Return Parameter
    et_objective_breakdown =    " bbpt_cm_objective_realz_d  UI Fields -Objective Breakdown
    .  "  BBP_CM_API_PROG_GEN_OBJREL

ABAP code example for Function Module BBP_CM_API_PROG_GEN_OBJREL





The ABAP code below is a full code listing to execute function module BBP_CM_API_PROG_GEN_OBJREL 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_it_objective_breakdown  TYPE STANDARD TABLE OF BBPT_CM_OBJECTIVE_REALZ_D,"TABLES PARAM
wa_it_objective_breakdown  LIKE LINE OF it_it_objective_breakdown ,
it_et_messages  TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM
wa_et_messages  LIKE LINE OF it_et_messages ,
it_et_objective_breakdown  TYPE STANDARD TABLE OF BBPT_CM_OBJECTIVE_REALZ_D,"TABLES PARAM
wa_et_objective_breakdown  LIKE LINE OF it_et_objective_breakdown .

DATA(ld_iv_obj_re_start) = 'Check type of data required'.
DATA(ld_iv_obj_re_end) = 'Check type of data required'.
DATA(ld_iv_objrel_period) = 'Check type of data required'.
DATA(ld_iv_maintain_value) = 'Check type of data required'.
DATA(ld_iv_progguid) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_objective_breakdown to it_it_objective_breakdown.

"populate fields of struture and append to itab
append wa_et_messages to it_et_messages.

"populate fields of struture and append to itab
append wa_et_objective_breakdown to it_et_objective_breakdown. . CALL FUNCTION 'BBP_CM_API_PROG_GEN_OBJREL' * EXPORTING * iv_obj_re_start = ld_iv_obj_re_start * iv_obj_re_end = ld_iv_obj_re_end * iv_objrel_period = ld_iv_objrel_period * iv_maintain_value = ld_iv_maintain_value * iv_progguid = ld_iv_progguid TABLES * it_objective_breakdown = it_it_objective_breakdown et_messages = it_et_messages et_objective_breakdown = it_et_objective_breakdown . " BBP_CM_API_PROG_GEN_OBJREL
IF SY-SUBRC EQ 0. "All OK 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_iv_obj_re_start  TYPE BBP_CM_OBJREL_START ,
it_it_objective_breakdown  TYPE STANDARD TABLE OF BBPT_CM_OBJECTIVE_REALZ_D ,
wa_it_objective_breakdown  LIKE LINE OF it_it_objective_breakdown,
ld_iv_obj_re_end  TYPE BBP_CM_OBJREL_END ,
it_et_messages  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_et_messages  LIKE LINE OF it_et_messages,
ld_iv_objrel_period  TYPE BBP_CM_OBJREL_PERIOD ,
it_et_objective_breakdown  TYPE STANDARD TABLE OF BBPT_CM_OBJECTIVE_REALZ_D ,
wa_et_objective_breakdown  LIKE LINE OF it_et_objective_breakdown,
ld_iv_maintain_value  TYPE XFELD ,
ld_iv_progguid  TYPE BBP_CM_GUID_D .

ld_iv_obj_re_start = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_objective_breakdown to it_it_objective_breakdown.
ld_iv_obj_re_end = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_messages to it_et_messages.
ld_iv_objrel_period = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_objective_breakdown to it_et_objective_breakdown.
ld_iv_maintain_value = 'Check type of data required'.
ld_iv_progguid = 'Check type of data required'.

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