SAP Function Modules

BBP_PD_QUOT_UPDATE SAP Function module







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

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


Pattern for FM BBP_PD_QUOT_UPDATE - BBP PD QUOT UPDATE





CALL FUNCTION 'BBP_PD_QUOT_UPDATE' "
  EXPORTING
*   i_park =                    " xfeld
*   i_save =                    " xfeld
    i_header =                  " bbp_pds_quot_header_u
*   it_attach =                 " bbpt_pds_att_t
*   it_conditions =             " bbpt_pd_cnd_icu
*   it_dyn_attr =               " bbpt_pds_dynattribute
*   iv_with_change_approval = 'X'  " xfeld
  IMPORTING
    e_changed =                 " xfeld
    es_header =                 " bbp_pds_quot_header_d
* TABLES
*   i_item =                    " bbp_pds_quot_item_icu
*   i_item_add =                " bbp_pds_quot_item_add_icu
*   i_partner =                 " bbp_pds_partner
*   i_longtext =                " bbp_pds_longtext
*   i_sdln =                    " bbp_pds_sdln
*   i_hcf =                     " bbp_pds_hcf_quot
*   i_icf =                     " bbp_pds_icf_quot
*   e_messages =                " bbp_pds_messages
*   i_weight =                  " bbp_pds_weight
    .  "  BBP_PD_QUOT_UPDATE

ABAP code example for Function Module BBP_PD_QUOT_UPDATE





The ABAP code below is a full code listing to execute function module BBP_PD_QUOT_UPDATE 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_e_changed  TYPE XFELD ,
ld_es_header  TYPE BBP_PDS_QUOT_HEADER_D ,
it_i_item  TYPE STANDARD TABLE OF BBP_PDS_QUOT_ITEM_ICU,"TABLES PARAM
wa_i_item  LIKE LINE OF it_i_item ,
it_i_item_add  TYPE STANDARD TABLE OF BBP_PDS_QUOT_ITEM_ADD_ICU,"TABLES PARAM
wa_i_item_add  LIKE LINE OF it_i_item_add ,
it_i_partner  TYPE STANDARD TABLE OF BBP_PDS_PARTNER,"TABLES PARAM
wa_i_partner  LIKE LINE OF it_i_partner ,
it_i_longtext  TYPE STANDARD TABLE OF BBP_PDS_LONGTEXT,"TABLES PARAM
wa_i_longtext  LIKE LINE OF it_i_longtext ,
it_i_sdln  TYPE STANDARD TABLE OF BBP_PDS_SDLN,"TABLES PARAM
wa_i_sdln  LIKE LINE OF it_i_sdln ,
it_i_hcf  TYPE STANDARD TABLE OF BBP_PDS_HCF_QUOT,"TABLES PARAM
wa_i_hcf  LIKE LINE OF it_i_hcf ,
it_i_icf  TYPE STANDARD TABLE OF BBP_PDS_ICF_QUOT,"TABLES PARAM
wa_i_icf  LIKE LINE OF it_i_icf ,
it_e_messages  TYPE STANDARD TABLE OF BBP_PDS_MESSAGES,"TABLES PARAM
wa_e_messages  LIKE LINE OF it_e_messages ,
it_i_weight  TYPE STANDARD TABLE OF BBP_PDS_WEIGHT,"TABLES PARAM
wa_i_weight  LIKE LINE OF it_i_weight .

DATA(ld_i_park) = 'Check type of data required'.
DATA(ld_i_save) = 'Check type of data required'.
DATA(ld_i_header) = 'Check type of data required'.
DATA(ld_it_attach) = 'Check type of data required'.
DATA(ld_it_conditions) = 'Check type of data required'.
DATA(ld_it_dyn_attr) = 'Check type of data required'.
DATA(ld_iv_with_change_approval) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_i_item to it_i_item.

"populate fields of struture and append to itab
append wa_i_item_add to it_i_item_add.

"populate fields of struture and append to itab
append wa_i_partner to it_i_partner.

"populate fields of struture and append to itab
append wa_i_longtext to it_i_longtext.

"populate fields of struture and append to itab
append wa_i_sdln to it_i_sdln.

"populate fields of struture and append to itab
append wa_i_hcf to it_i_hcf.

"populate fields of struture and append to itab
append wa_i_icf to it_i_icf.

"populate fields of struture and append to itab
append wa_e_messages to it_e_messages.

"populate fields of struture and append to itab
append wa_i_weight to it_i_weight. . CALL FUNCTION 'BBP_PD_QUOT_UPDATE' EXPORTING * i_park = ld_i_park * i_save = ld_i_save i_header = ld_i_header * it_attach = ld_it_attach * it_conditions = ld_it_conditions * it_dyn_attr = ld_it_dyn_attr * iv_with_change_approval = ld_iv_with_change_approval IMPORTING e_changed = ld_e_changed es_header = ld_es_header * TABLES * i_item = it_i_item * i_item_add = it_i_item_add * i_partner = it_i_partner * i_longtext = it_i_longtext * i_sdln = it_i_sdln * i_hcf = it_i_hcf * i_icf = it_i_icf * e_messages = it_e_messages * i_weight = it_i_weight . " BBP_PD_QUOT_UPDATE
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_e_changed  TYPE XFELD ,
ld_i_park  TYPE XFELD ,
it_i_item  TYPE STANDARD TABLE OF BBP_PDS_QUOT_ITEM_ICU ,
wa_i_item  LIKE LINE OF it_i_item,
ld_es_header  TYPE BBP_PDS_QUOT_HEADER_D ,
ld_i_save  TYPE XFELD ,
it_i_item_add  TYPE STANDARD TABLE OF BBP_PDS_QUOT_ITEM_ADD_ICU ,
wa_i_item_add  LIKE LINE OF it_i_item_add,
ld_i_header  TYPE BBP_PDS_QUOT_HEADER_U ,
it_i_partner  TYPE STANDARD TABLE OF BBP_PDS_PARTNER ,
wa_i_partner  LIKE LINE OF it_i_partner,
ld_it_attach  TYPE BBPT_PDS_ATT_T ,
it_i_longtext  TYPE STANDARD TABLE OF BBP_PDS_LONGTEXT ,
wa_i_longtext  LIKE LINE OF it_i_longtext,
ld_it_conditions  TYPE BBPT_PD_CND_ICU ,
it_i_sdln  TYPE STANDARD TABLE OF BBP_PDS_SDLN ,
wa_i_sdln  LIKE LINE OF it_i_sdln,
ld_it_dyn_attr  TYPE BBPT_PDS_DYNATTRIBUTE ,
it_i_hcf  TYPE STANDARD TABLE OF BBP_PDS_HCF_QUOT ,
wa_i_hcf  LIKE LINE OF it_i_hcf,
ld_iv_with_change_approval  TYPE XFELD ,
it_i_icf  TYPE STANDARD TABLE OF BBP_PDS_ICF_QUOT ,
wa_i_icf  LIKE LINE OF it_i_icf,
it_e_messages  TYPE STANDARD TABLE OF BBP_PDS_MESSAGES ,
wa_e_messages  LIKE LINE OF it_e_messages,
it_i_weight  TYPE STANDARD TABLE OF BBP_PDS_WEIGHT ,
wa_i_weight  LIKE LINE OF it_i_weight.

ld_i_park = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_i_item to it_i_item.
ld_i_save = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_i_item_add to it_i_item_add.
ld_i_header = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_i_partner to it_i_partner.
ld_it_attach = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_i_longtext to it_i_longtext.
ld_it_conditions = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_i_sdln to it_i_sdln.
ld_it_dyn_attr = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_i_hcf to it_i_hcf.
ld_iv_with_change_approval = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_i_icf to it_i_icf.

"populate fields of struture and append to itab
append wa_e_messages to it_e_messages.

"populate fields of struture and append to itab
append wa_i_weight to it_i_weight.

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