SAP Function Modules

BBP_PDH_DB_DIRECT_UPDATE SAP Function module - Ist-Werte/Mengen fortschreiben







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

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


Pattern for FM BBP_PDH_DB_DIRECT_UPDATE - BBP PDH DB DIRECT UPDATE





CALL FUNCTION 'BBP_PDH_DB_DIRECT_UPDATE' "Ist-Werte/Mengen fortschreiben
* EXPORTING
*   iv_header_guid =            " crmt_object_guid  GUID eines CRM-Order-Objekts
*   iv_version_no =             " bbp_version_no  Versionsnummer
*   iv_ext_version_no =         " bbp_version_no  Externe Versionsnummer
*   iv_change_lock =            " bbp_change_lock  Änderungssperre ('X': Änderungen nicht erlaubt)
*   iv_item_guid_sourcing =     " crmd_orderadm_i-guid  Guid der Position für die das Sourcingflag geändert werden soll
*   iv_source_rel_ind =         " bbp_pdigp-source_rel_ind  Kennzeichen, ob der Beleg Sourcing-Relevant ist
*   iv_root_ind =               " bbp_root_ind  ist Wurzel einer Hierarchie
*   iv_bw_transferred =         " bbp_transferred_to_bw  Beleg wurde beim Delta-Request direkt ins BW übertragen
*   iv_quot_dead =              " bbp_angab     Abgabefrist für das Angebot
*   iv_quot_dead_time =         " bbp_quot_dead_time  Uhrzeit der Abgabefrist für das Angebot
*   iv_final_entry =            " bbp_final_entry  Enderfassungs-Kennzeichen (Waren/Leistungen)
*   iv_final_inv =              " bbp_final     Kennzeichen Enderfassung
*   iv_purchteam =              " bbp_purchteam  Kennzeichen Team Shopping cart.
* TABLES
*   it_actval =                 " bbp_pds_actval  Ist-Werte und Mengen
*   it_actval_limit =           " bbp_pds_actval  Ist-Werte und Mengen für Limits
*   it_refupdate_data =         " bbps_sc_refupdate_data  Daten aus Referenzen zu Einkaufswagenpositionen
*   it_refupdate_ind =          " bbps_sc_refupdate_ind  Indikatoren aus Referenzen zu Einkaufswagenpositionen
*   it_item_guid_sourcing =     " bbp_guid_tab  Tabelle von GUIDs
*   it_item_guids =             " bbp_guid_tab  Tabelle von GUIDs
*   it_actval_header =          " bbp_pds_actval  Ist-Werte und Mengen
*   it_auc_itm =                " bbp_pdisb     Bid Invitation/Bid-Specific Item Data
    .  "  BBP_PDH_DB_DIRECT_UPDATE

ABAP code example for Function Module BBP_PDH_DB_DIRECT_UPDATE





The ABAP code below is a full code listing to execute function module BBP_PDH_DB_DIRECT_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:
it_it_actval  TYPE STANDARD TABLE OF BBP_PDS_ACTVAL,"TABLES PARAM
wa_it_actval  LIKE LINE OF it_it_actval ,
it_it_actval_limit  TYPE STANDARD TABLE OF BBP_PDS_ACTVAL,"TABLES PARAM
wa_it_actval_limit  LIKE LINE OF it_it_actval_limit ,
it_it_refupdate_data  TYPE STANDARD TABLE OF BBPS_SC_REFUPDATE_DATA,"TABLES PARAM
wa_it_refupdate_data  LIKE LINE OF it_it_refupdate_data ,
it_it_refupdate_ind  TYPE STANDARD TABLE OF BBPS_SC_REFUPDATE_IND,"TABLES PARAM
wa_it_refupdate_ind  LIKE LINE OF it_it_refupdate_ind ,
it_it_item_guid_sourcing  TYPE STANDARD TABLE OF BBP_GUID_TAB,"TABLES PARAM
wa_it_item_guid_sourcing  LIKE LINE OF it_it_item_guid_sourcing ,
it_it_item_guids  TYPE STANDARD TABLE OF BBP_GUID_TAB,"TABLES PARAM
wa_it_item_guids  LIKE LINE OF it_it_item_guids ,
it_it_actval_header  TYPE STANDARD TABLE OF BBP_PDS_ACTVAL,"TABLES PARAM
wa_it_actval_header  LIKE LINE OF it_it_actval_header ,
it_it_auc_itm  TYPE STANDARD TABLE OF BBP_PDISB,"TABLES PARAM
wa_it_auc_itm  LIKE LINE OF it_it_auc_itm .

DATA(ld_iv_header_guid) = 'Check type of data required'.
DATA(ld_iv_version_no) = 'Check type of data required'.
DATA(ld_iv_ext_version_no) = 'Check type of data required'.
DATA(ld_iv_change_lock) = 'Check type of data required'.

SELECT single GUID
FROM CRMD_ORDERADM_I
INTO @DATA(ld_iv_item_guid_sourcing).


SELECT single SOURCE_REL_IND
FROM BBP_PDIGP
INTO @DATA(ld_iv_source_rel_ind).

DATA(ld_iv_root_ind) = 'Check type of data required'.
DATA(ld_iv_bw_transferred) = 'Check type of data required'.
DATA(ld_iv_quot_dead) = 'Check type of data required'.
DATA(ld_iv_quot_dead_time) = 'Check type of data required'.
DATA(ld_iv_final_entry) = 'Check type of data required'.
DATA(ld_iv_final_inv) = 'Check type of data required'.
DATA(ld_iv_purchteam) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_actval to it_it_actval.

"populate fields of struture and append to itab
append wa_it_actval_limit to it_it_actval_limit.

"populate fields of struture and append to itab
append wa_it_refupdate_data to it_it_refupdate_data.

"populate fields of struture and append to itab
append wa_it_refupdate_ind to it_it_refupdate_ind.

"populate fields of struture and append to itab
append wa_it_item_guid_sourcing to it_it_item_guid_sourcing.

"populate fields of struture and append to itab
append wa_it_item_guids to it_it_item_guids.

"populate fields of struture and append to itab
append wa_it_actval_header to it_it_actval_header.

"populate fields of struture and append to itab
append wa_it_auc_itm to it_it_auc_itm. . CALL FUNCTION 'BBP_PDH_DB_DIRECT_UPDATE' * EXPORTING * iv_header_guid = ld_iv_header_guid * iv_version_no = ld_iv_version_no * iv_ext_version_no = ld_iv_ext_version_no * iv_change_lock = ld_iv_change_lock * iv_item_guid_sourcing = ld_iv_item_guid_sourcing * iv_source_rel_ind = ld_iv_source_rel_ind * iv_root_ind = ld_iv_root_ind * iv_bw_transferred = ld_iv_bw_transferred * iv_quot_dead = ld_iv_quot_dead * iv_quot_dead_time = ld_iv_quot_dead_time * iv_final_entry = ld_iv_final_entry * iv_final_inv = ld_iv_final_inv * iv_purchteam = ld_iv_purchteam * TABLES * it_actval = it_it_actval * it_actval_limit = it_it_actval_limit * it_refupdate_data = it_it_refupdate_data * it_refupdate_ind = it_it_refupdate_ind * it_item_guid_sourcing = it_it_item_guid_sourcing * it_item_guids = it_it_item_guids * it_actval_header = it_it_actval_header * it_auc_itm = it_it_auc_itm . " BBP_PDH_DB_DIRECT_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_iv_header_guid  TYPE CRMT_OBJECT_GUID ,
it_it_actval  TYPE STANDARD TABLE OF BBP_PDS_ACTVAL ,
wa_it_actval  LIKE LINE OF it_it_actval,
ld_iv_version_no  TYPE BBP_VERSION_NO ,
it_it_actval_limit  TYPE STANDARD TABLE OF BBP_PDS_ACTVAL ,
wa_it_actval_limit  LIKE LINE OF it_it_actval_limit,
ld_iv_ext_version_no  TYPE BBP_VERSION_NO ,
it_it_refupdate_data  TYPE STANDARD TABLE OF BBPS_SC_REFUPDATE_DATA ,
wa_it_refupdate_data  LIKE LINE OF it_it_refupdate_data,
ld_iv_change_lock  TYPE BBP_CHANGE_LOCK ,
it_it_refupdate_ind  TYPE STANDARD TABLE OF BBPS_SC_REFUPDATE_IND ,
wa_it_refupdate_ind  LIKE LINE OF it_it_refupdate_ind,
ld_iv_item_guid_sourcing  TYPE CRMD_ORDERADM_I-GUID ,
it_it_item_guid_sourcing  TYPE STANDARD TABLE OF BBP_GUID_TAB ,
wa_it_item_guid_sourcing  LIKE LINE OF it_it_item_guid_sourcing,
ld_iv_source_rel_ind  TYPE BBP_PDIGP-SOURCE_REL_IND ,
it_it_item_guids  TYPE STANDARD TABLE OF BBP_GUID_TAB ,
wa_it_item_guids  LIKE LINE OF it_it_item_guids,
ld_iv_root_ind  TYPE BBP_ROOT_IND ,
it_it_actval_header  TYPE STANDARD TABLE OF BBP_PDS_ACTVAL ,
wa_it_actval_header  LIKE LINE OF it_it_actval_header,
ld_iv_bw_transferred  TYPE BBP_TRANSFERRED_TO_BW ,
it_it_auc_itm  TYPE STANDARD TABLE OF BBP_PDISB ,
wa_it_auc_itm  LIKE LINE OF it_it_auc_itm,
ld_iv_quot_dead  TYPE BBP_ANGAB ,
ld_iv_quot_dead_time  TYPE BBP_QUOT_DEAD_TIME ,
ld_iv_final_entry  TYPE BBP_FINAL_ENTRY ,
ld_iv_final_inv  TYPE BBP_FINAL ,
ld_iv_purchteam  TYPE BBP_PURCHTEAM .

ld_iv_header_guid = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_actval to it_it_actval.
ld_iv_version_no = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_actval_limit to it_it_actval_limit.
ld_iv_ext_version_no = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_refupdate_data to it_it_refupdate_data.
ld_iv_change_lock = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_refupdate_ind to it_it_refupdate_ind.

SELECT single GUID
FROM CRMD_ORDERADM_I
INTO ld_iv_item_guid_sourcing.


"populate fields of struture and append to itab
append wa_it_item_guid_sourcing to it_it_item_guid_sourcing.

SELECT single SOURCE_REL_IND
FROM BBP_PDIGP
INTO ld_iv_source_rel_ind.


"populate fields of struture and append to itab
append wa_it_item_guids to it_it_item_guids.
ld_iv_root_ind = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_actval_header to it_it_actval_header.
ld_iv_bw_transferred = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_auc_itm to it_it_auc_itm.
ld_iv_quot_dead = 'Check type of data required'.
ld_iv_quot_dead_time = 'Check type of data required'.
ld_iv_final_entry = 'Check type of data required'.
ld_iv_final_inv = 'Check type of data required'.
ld_iv_purchteam = '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_PDH_DB_DIRECT_UPDATE or its description.