SAP Function Modules

BBP_PD_BID_CREATE SAP Function module







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

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


Pattern for FM BBP_PD_BID_CREATE - BBP PD BID CREATE





CALL FUNCTION 'BBP_PD_BID_CREATE' "
* EXPORTING
*   i_ref_guid =                " crmd_orderadm_h-guid  Globally Unique Identifier
*   i_bapimode =                " xfeld         X: Aufruf im BAPI-Fall (ohne HSP-Pufferung)
*   i_park =                    " xfeld         X: Daten sichern mit Status "geparkt"
*   i_save =                    " xfeld         X: Vorgang 'bid_finish'/'confirm'/'post'/'quot_submit'/'order' setzen
*   i_testrun =                 " xfeld         X: Testlauf
*   i_header =                  " bbp_pds_bid_header_ic  Schnittstelle Kopf-Daten Bestellung Anlegen/Prüfen-Fall
*   it_attach =                 " bbpt_pds_att_t  KW-Anlagen inkl. Dokument
*   it_dyn_attr =               " bbpt_pds_dynattribute  Temporärer Tabellentyp für Dynamische Attribute
*   it_conditions =             " bbpt_pd_cnd_icu  Tabellentyp Stammkonditionen
*   i_src_guid =                " crmt_object_guid
*   i_src_object_type =         " crmt_subobject_category_db
  IMPORTING
    e_header =                  " bbp_pds_bid_header_d  Schnittstelle Kopf-Daten Bestellung Anlegen/Prüfen-Fall
    et_attach =                 " bbpt_pds_att_t  KW-Anlagen inkl. Dokument
    et_dyn_attr =               " bbpt_pds_dynattribute  Dynamische Attribute
    et_conditions =             " bbpt_pd_cnd_d  Tabellentyp Stammkonditionen
  TABLES
*   i_item =                    " bbp_pds_bid_item_icu  Schnittstelle Positions-Daten Bestellung Anl/Prüf/Änd-Fall
*   i_partner =                 " bbp_pds_partner  Geschäftspartner-Set
*   i_longtext =                " bbp_pds_longtext  Langtexte zum Procurement Document
*   i_sdln =                    " bbp_pds_sdln  Geschäftsvorgangsposition -Einteilung (Ausgabe an Anwendung)
*   i_orgdata =                 " bbp_pds_org   Org-Daten
*   i_hcf =                     " bbp_pds_hcf_bid  Tab. Kunden- und Solutionfelder am Ausschreibungskopf
*   i_icf =                     " bbp_pds_icf_bid  Tab. Kunden- und Solutionfelder an derAusschreibungs-Pos.
*   i_tol =                     " bbp_pds_tol   Toleranzen
*   i_weight =                  " bbp_pds_weight  Gewichtung bei Bewertung von Auschreibungen
*   it_exchrate =               " bbp_pds_exr
*   e_item =                    " bbp_pds_bid_item_d  Schnittstelle Positions-Daten Angebot GetDetail-Fall
*   e_partner =                 " bbp_pds_partner  Geschäftspartner-Set
*   e_longtext =                " bbp_pds_longtext  Langtexte zum Procurement Document
*   e_sdln =                    " bbp_pds_sdln  Geschäftsvorgangsposition -Einteilung (Ausgabe an Anwendung)
*   e_orgdata =                 " bbp_pds_org   Org-Daten
*   e_hcf =                     " bbp_pds_hcf_bid  Tab. Kunden- und Solutionfelder am Ausschreibungskopf
*   e_icf =                     " bbp_pds_icf_bid  Tab. Kunden- und Solutionfelder an derAusschreibungs-Pos.
*   et_exchrate =               " bbp_pds_exr
    e_messages =                " bbp_pds_messages  Fehlermeldungen zu einer PD-Methode
*   e_limit =                   " bbp_pds_limit
*   i_limit =                   " bbp_pds_limit
    .  "  BBP_PD_BID_CREATE

ABAP code example for Function Module BBP_PD_BID_CREATE





The ABAP code below is a full code listing to execute function module BBP_PD_BID_CREATE 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_header  TYPE BBP_PDS_BID_HEADER_D ,
ld_et_attach  TYPE BBPT_PDS_ATT_T ,
ld_et_dyn_attr  TYPE BBPT_PDS_DYNATTRIBUTE ,
ld_et_conditions  TYPE BBPT_PD_CND_D ,
it_i_item  TYPE STANDARD TABLE OF BBP_PDS_BID_ITEM_ICU,"TABLES PARAM
wa_i_item  LIKE LINE OF it_i_item ,
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_orgdata  TYPE STANDARD TABLE OF BBP_PDS_ORG,"TABLES PARAM
wa_i_orgdata  LIKE LINE OF it_i_orgdata ,
it_i_hcf  TYPE STANDARD TABLE OF BBP_PDS_HCF_BID,"TABLES PARAM
wa_i_hcf  LIKE LINE OF it_i_hcf ,
it_i_icf  TYPE STANDARD TABLE OF BBP_PDS_ICF_BID,"TABLES PARAM
wa_i_icf  LIKE LINE OF it_i_icf ,
it_i_tol  TYPE STANDARD TABLE OF BBP_PDS_TOL,"TABLES PARAM
wa_i_tol  LIKE LINE OF it_i_tol ,
it_i_weight  TYPE STANDARD TABLE OF BBP_PDS_WEIGHT,"TABLES PARAM
wa_i_weight  LIKE LINE OF it_i_weight ,
it_it_exchrate  TYPE STANDARD TABLE OF BBP_PDS_EXR,"TABLES PARAM
wa_it_exchrate  LIKE LINE OF it_it_exchrate ,
it_e_item  TYPE STANDARD TABLE OF BBP_PDS_BID_ITEM_D,"TABLES PARAM
wa_e_item  LIKE LINE OF it_e_item ,
it_e_partner  TYPE STANDARD TABLE OF BBP_PDS_PARTNER,"TABLES PARAM
wa_e_partner  LIKE LINE OF it_e_partner ,
it_e_longtext  TYPE STANDARD TABLE OF BBP_PDS_LONGTEXT,"TABLES PARAM
wa_e_longtext  LIKE LINE OF it_e_longtext ,
it_e_sdln  TYPE STANDARD TABLE OF BBP_PDS_SDLN,"TABLES PARAM
wa_e_sdln  LIKE LINE OF it_e_sdln ,
it_e_orgdata  TYPE STANDARD TABLE OF BBP_PDS_ORG,"TABLES PARAM
wa_e_orgdata  LIKE LINE OF it_e_orgdata ,
it_e_hcf  TYPE STANDARD TABLE OF BBP_PDS_HCF_BID,"TABLES PARAM
wa_e_hcf  LIKE LINE OF it_e_hcf ,
it_e_icf  TYPE STANDARD TABLE OF BBP_PDS_ICF_BID,"TABLES PARAM
wa_e_icf  LIKE LINE OF it_e_icf ,
it_et_exchrate  TYPE STANDARD TABLE OF BBP_PDS_EXR,"TABLES PARAM
wa_et_exchrate  LIKE LINE OF it_et_exchrate ,
it_e_messages  TYPE STANDARD TABLE OF BBP_PDS_MESSAGES,"TABLES PARAM
wa_e_messages  LIKE LINE OF it_e_messages ,
it_e_limit  TYPE STANDARD TABLE OF BBP_PDS_LIMIT,"TABLES PARAM
wa_e_limit  LIKE LINE OF it_e_limit ,
it_i_limit  TYPE STANDARD TABLE OF BBP_PDS_LIMIT,"TABLES PARAM
wa_i_limit  LIKE LINE OF it_i_limit .


SELECT single GUID
FROM CRMD_ORDERADM_H
INTO @DATA(ld_i_ref_guid).

DATA(ld_i_bapimode) = 'Check type of data required'.
DATA(ld_i_park) = 'Check type of data required'.
DATA(ld_i_save) = 'Check type of data required'.
DATA(ld_i_testrun) = '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_dyn_attr) = 'Check type of data required'.
DATA(ld_it_conditions) = 'Check type of data required'.
DATA(ld_i_src_guid) = 'Check type of data required'.
DATA(ld_i_src_object_type) = '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_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_orgdata to it_i_orgdata.

"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_i_tol to it_i_tol.

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

"populate fields of struture and append to itab
append wa_it_exchrate to it_it_exchrate.

"populate fields of struture and append to itab
append wa_e_item to it_e_item.

"populate fields of struture and append to itab
append wa_e_partner to it_e_partner.

"populate fields of struture and append to itab
append wa_e_longtext to it_e_longtext.

"populate fields of struture and append to itab
append wa_e_sdln to it_e_sdln.

"populate fields of struture and append to itab
append wa_e_orgdata to it_e_orgdata.

"populate fields of struture and append to itab
append wa_e_hcf to it_e_hcf.

"populate fields of struture and append to itab
append wa_e_icf to it_e_icf.

"populate fields of struture and append to itab
append wa_et_exchrate to it_et_exchrate.

"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_e_limit to it_e_limit.

"populate fields of struture and append to itab
append wa_i_limit to it_i_limit. . CALL FUNCTION 'BBP_PD_BID_CREATE' * EXPORTING * i_ref_guid = ld_i_ref_guid * i_bapimode = ld_i_bapimode * i_park = ld_i_park * i_save = ld_i_save * i_testrun = ld_i_testrun * i_header = ld_i_header * it_attach = ld_it_attach * it_dyn_attr = ld_it_dyn_attr * it_conditions = ld_it_conditions * i_src_guid = ld_i_src_guid * i_src_object_type = ld_i_src_object_type IMPORTING e_header = ld_e_header et_attach = ld_et_attach et_dyn_attr = ld_et_dyn_attr et_conditions = ld_et_conditions TABLES * i_item = it_i_item * i_partner = it_i_partner * i_longtext = it_i_longtext * i_sdln = it_i_sdln * i_orgdata = it_i_orgdata * i_hcf = it_i_hcf * i_icf = it_i_icf * i_tol = it_i_tol * i_weight = it_i_weight * it_exchrate = it_it_exchrate * e_item = it_e_item * e_partner = it_e_partner * e_longtext = it_e_longtext * e_sdln = it_e_sdln * e_orgdata = it_e_orgdata * e_hcf = it_e_hcf * e_icf = it_e_icf * et_exchrate = it_et_exchrate e_messages = it_e_messages * e_limit = it_e_limit * i_limit = it_i_limit . " BBP_PD_BID_CREATE
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_header  TYPE BBP_PDS_BID_HEADER_D ,
ld_i_ref_guid  TYPE CRMD_ORDERADM_H-GUID ,
it_i_item  TYPE STANDARD TABLE OF BBP_PDS_BID_ITEM_ICU ,
wa_i_item  LIKE LINE OF it_i_item,
ld_et_attach  TYPE BBPT_PDS_ATT_T ,
it_i_partner  TYPE STANDARD TABLE OF BBP_PDS_PARTNER ,
wa_i_partner  LIKE LINE OF it_i_partner,
ld_i_bapimode  TYPE XFELD ,
it_i_longtext  TYPE STANDARD TABLE OF BBP_PDS_LONGTEXT ,
wa_i_longtext  LIKE LINE OF it_i_longtext,
ld_et_dyn_attr  TYPE BBPT_PDS_DYNATTRIBUTE ,
ld_i_park  TYPE XFELD ,
ld_i_save  TYPE XFELD ,
it_i_sdln  TYPE STANDARD TABLE OF BBP_PDS_SDLN ,
wa_i_sdln  LIKE LINE OF it_i_sdln,
ld_et_conditions  TYPE BBPT_PD_CND_D ,
ld_i_testrun  TYPE XFELD ,
it_i_orgdata  TYPE STANDARD TABLE OF BBP_PDS_ORG ,
wa_i_orgdata  LIKE LINE OF it_i_orgdata,
ld_i_header  TYPE BBP_PDS_BID_HEADER_IC ,
it_i_hcf  TYPE STANDARD TABLE OF BBP_PDS_HCF_BID ,
wa_i_hcf  LIKE LINE OF it_i_hcf,
it_i_icf  TYPE STANDARD TABLE OF BBP_PDS_ICF_BID ,
wa_i_icf  LIKE LINE OF it_i_icf,
ld_it_attach  TYPE BBPT_PDS_ATT_T ,
ld_it_dyn_attr  TYPE BBPT_PDS_DYNATTRIBUTE ,
it_i_tol  TYPE STANDARD TABLE OF BBP_PDS_TOL ,
wa_i_tol  LIKE LINE OF it_i_tol,
ld_it_conditions  TYPE BBPT_PD_CND_ICU ,
it_i_weight  TYPE STANDARD TABLE OF BBP_PDS_WEIGHT ,
wa_i_weight  LIKE LINE OF it_i_weight,
ld_i_src_guid  TYPE CRMT_OBJECT_GUID ,
it_it_exchrate  TYPE STANDARD TABLE OF BBP_PDS_EXR ,
wa_it_exchrate  LIKE LINE OF it_it_exchrate,
ld_i_src_object_type  TYPE CRMT_SUBOBJECT_CATEGORY_DB ,
it_e_item  TYPE STANDARD TABLE OF BBP_PDS_BID_ITEM_D ,
wa_e_item  LIKE LINE OF it_e_item,
it_e_partner  TYPE STANDARD TABLE OF BBP_PDS_PARTNER ,
wa_e_partner  LIKE LINE OF it_e_partner,
it_e_longtext  TYPE STANDARD TABLE OF BBP_PDS_LONGTEXT ,
wa_e_longtext  LIKE LINE OF it_e_longtext,
it_e_sdln  TYPE STANDARD TABLE OF BBP_PDS_SDLN ,
wa_e_sdln  LIKE LINE OF it_e_sdln,
it_e_orgdata  TYPE STANDARD TABLE OF BBP_PDS_ORG ,
wa_e_orgdata  LIKE LINE OF it_e_orgdata,
it_e_hcf  TYPE STANDARD TABLE OF BBP_PDS_HCF_BID ,
wa_e_hcf  LIKE LINE OF it_e_hcf,
it_e_icf  TYPE STANDARD TABLE OF BBP_PDS_ICF_BID ,
wa_e_icf  LIKE LINE OF it_e_icf,
it_et_exchrate  TYPE STANDARD TABLE OF BBP_PDS_EXR ,
wa_et_exchrate  LIKE LINE OF it_et_exchrate,
it_e_messages  TYPE STANDARD TABLE OF BBP_PDS_MESSAGES ,
wa_e_messages  LIKE LINE OF it_e_messages,
it_e_limit  TYPE STANDARD TABLE OF BBP_PDS_LIMIT ,
wa_e_limit  LIKE LINE OF it_e_limit,
it_i_limit  TYPE STANDARD TABLE OF BBP_PDS_LIMIT ,
wa_i_limit  LIKE LINE OF it_i_limit.


SELECT single GUID
FROM CRMD_ORDERADM_H
INTO ld_i_ref_guid.


"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_partner to it_i_partner.
ld_i_bapimode = 'Check type of data required'.

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

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

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

"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.
ld_it_attach = 'Check type of data required'.
ld_it_dyn_attr = 'Check type of data required'.

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

"populate fields of struture and append to itab
append wa_i_weight to it_i_weight.
ld_i_src_guid = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_exchrate to it_it_exchrate.
ld_i_src_object_type = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_item to it_e_item.

"populate fields of struture and append to itab
append wa_e_partner to it_e_partner.

"populate fields of struture and append to itab
append wa_e_longtext to it_e_longtext.

"populate fields of struture and append to itab
append wa_e_sdln to it_e_sdln.

"populate fields of struture and append to itab
append wa_e_orgdata to it_e_orgdata.

"populate fields of struture and append to itab
append wa_e_hcf to it_e_hcf.

"populate fields of struture and append to itab
append wa_e_icf to it_e_icf.

"populate fields of struture and append to itab
append wa_et_exchrate to it_et_exchrate.

"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_e_limit to it_e_limit.

"populate fields of struture and append to itab
append wa_i_limit to it_i_limit.

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