SAP BAPI_QUOTATION_GETDETAILBOS Function Module for Display Customer Quotation with BOS
BAPI_QUOTATION_GETDETAILBOS is a standard bapi quotation getdetailbos SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Display Customer Quotation with BOS processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for bapi quotation getdetailbos FM, simply by entering the name BAPI_QUOTATION_GETDETAILBOS into the relevant SAP transaction such as SE37 or SE38.
Function Group: 2031001
Program Name: SAPL2031001
Main Program: SAPL2031001
Appliation area: V
Release date: 25-Jun-2001
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_QUOTATION_GETDETAILBOS pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'BAPI_QUOTATION_GETDETAILBOS'"Display Customer Quotation with BOS.
EXPORTING
SALESDOCUMENT = "Sales and Distribution Document Number
* INTERNALUSE = ' ' "Checkbox Field - Internal Line
IMPORTING
QUOTATIONHEADER = "Document Header Data
TABLES
* RETURN = "Return Messages
* QUOTATIONCONDHEAD = "Conditions Header Data
* QUOTATIONCONDITEM = "Conditions Item Data
* QUOTATIONCONDQTYSCALE = "Condition Scale Quantity
* QUOTATIONCONDVALSCALE = "Condition Scale Value
* QUOTATIONCONTRACTS = "Contract data
* QUOTATIONTEXTHEADERS = "Text Header Info.
* QUOTATIONTEXTLINES = "Text Lines for Document
* QUOTATIONFLOWS = "Document Flow
* QUOTATIONCFGSCUREFS = "Instance in Configuration
* QUOTATIONCFGSCUCFGS = "Configuration Data
* QUOTATIONITEMS = "Item Data
* QUOTATIONCFGSCUINS = "Instance Data for Configuration
* QUOTATIONCFGSCUPRTS = "Detail Data (Part_of Entries) for Configuration
* QUOTATIONCFGSCUVALS = "Characteristic Values for Configuration
* QUOTATIONCFGSCUBLBS = "Configuration BLOB
* QUOTATIONCFGSCUVKS = "Variant Condition Key in Configuration
* QUOTATIONBILLINGPLANS = "Billing plan
* QUOTATIONBILLINGDATES = "Billing Data
* QUOTATIONCREDITCARDS = "Credit Card Data
* EXTENSIONOUT = "Customer Enhancement for Export
* QUOTATIONSERVICES = "Services
* QUOTATIONSCHEDULELINES = "Schedule Lines
* QUOTATIONSERVICESTEXT = "Service Texts
* QUOTATIONSERVICESCOND = "Service Conditions
* QUOTATIONSERVICESCOST = "Communication Fields: Sales Document Item With BOS & Costing
* QUOTATIONBUSINESS = "Business Data
* QUOTATIONPARTNERS = "Partner Data
* QUOTATIONADDRESS = "Address Data
* QUOTATIONSTATUSHEADERS = "Header Status
* QUOTATIONSTATUSITEMS = "Item Status
* QUOTATIONCONDITIONS = "Conditions
IMPORTING Parameters details for BAPI_QUOTATION_GETDETAILBOS
SALESDOCUMENT - Sales and Distribution Document Number
Data type: BAPIVBELN-VBELNOptional: No
Call by Reference: No ( called with pass by value option)
INTERNALUSE - Checkbox Field - Internal Line
Data type: BAPIFLAG-BAPIFLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BAPI_QUOTATION_GETDETAILBOS
QUOTATIONHEADER - Document Header Data
Data type: BAPISDHDOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_QUOTATION_GETDETAILBOS
RETURN - Return Messages
Data type: BAPIRET2Optional: Yes
Call by Reference: No ( called with pass by value option)
QUOTATIONCONDHEAD - Conditions Header Data
Data type: BAPICONDHDOptional: Yes
Call by Reference: No ( called with pass by value option)
QUOTATIONCONDITEM - Conditions Item Data
Data type: BAPICONDITOptional: Yes
Call by Reference: No ( called with pass by value option)
QUOTATIONCONDQTYSCALE - Condition Scale Quantity
Data type: BAPICONDQSOptional: Yes
Call by Reference: No ( called with pass by value option)
QUOTATIONCONDVALSCALE - Condition Scale Value
Data type: BAPICONDVSOptional: Yes
Call by Reference: No ( called with pass by value option)
QUOTATIONCONTRACTS - Contract data
Data type: BAPISDCNTROptional: Yes
Call by Reference: No ( called with pass by value option)
QUOTATIONTEXTHEADERS - Text Header Info.
Data type: BAPISDTEHDOptional: Yes
Call by Reference: No ( called with pass by value option)
QUOTATIONTEXTLINES - Text Lines for Document
Data type: BAPITEXTLIOptional: Yes
Call by Reference: No ( called with pass by value option)
QUOTATIONFLOWS - Document Flow
Data type: BAPISDFLOWOptional: Yes
Call by Reference: No ( called with pass by value option)
QUOTATIONCFGSCUREFS - Instance in Configuration
Data type: BAPICUREFMOptional: Yes
Call by Reference: No ( called with pass by value option)
QUOTATIONCFGSCUCFGS - Configuration Data
Data type: BAPICUCFGMOptional: Yes
Call by Reference: No ( called with pass by value option)
QUOTATIONITEMS - Item Data
Data type: BAPISDITBOSOptional: Yes
Call by Reference: No ( called with pass by value option)
QUOTATIONCFGSCUINS - Instance Data for Configuration
Data type: BAPICUINSMOptional: Yes
Call by Reference: No ( called with pass by value option)
QUOTATIONCFGSCUPRTS - Detail Data (Part_of Entries) for Configuration
Data type: BAPICUPRTMOptional: Yes
Call by Reference: No ( called with pass by value option)
QUOTATIONCFGSCUVALS - Characteristic Values for Configuration
Data type: BAPICUVALMOptional: Yes
Call by Reference: No ( called with pass by value option)
QUOTATIONCFGSCUBLBS - Configuration BLOB
Data type: BAPICUBLBMOptional: Yes
Call by Reference: No ( called with pass by value option)
QUOTATIONCFGSCUVKS - Variant Condition Key in Configuration
Data type: BAPICUVKMOptional: Yes
Call by Reference: No ( called with pass by value option)
QUOTATIONBILLINGPLANS - Billing plan
Data type: BAPISDBPLOptional: Yes
Call by Reference: Yes
QUOTATIONBILLINGDATES - Billing Data
Data type: BAPISDBPLDOptional: Yes
Call by Reference: Yes
QUOTATIONCREDITCARDS - Credit Card Data
Data type: BAPICCARDMOptional: Yes
Call by Reference: Yes
EXTENSIONOUT - Customer Enhancement for Export
Data type: BAPIPAREXOptional: Yes
Call by Reference: Yes
QUOTATIONSERVICES - Services
Data type: BAPISDESLLBOSOptional: Yes
Call by Reference: Yes
QUOTATIONSCHEDULELINES - Schedule Lines
Data type: BAPISDHEDUOptional: Yes
Call by Reference: No ( called with pass by value option)
QUOTATIONSERVICESTEXT - Service Texts
Data type: BAPIESLLTXOptional: Yes
Call by Reference: Yes
QUOTATIONSERVICESCOND - Service Conditions
Data type: BAPIBOSCDOptional: Yes
Call by Reference: Yes
QUOTATIONSERVICESCOST - Communication Fields: Sales Document Item With BOS & Costing
Data type: BAPIBOSCOSTOptional: Yes
Call by Reference: Yes
QUOTATIONBUSINESS - Business Data
Data type: BAPISDBUSIOptional: Yes
Call by Reference: No ( called with pass by value option)
QUOTATIONPARTNERS - Partner Data
Data type: BAPISDPARTOptional: Yes
Call by Reference: No ( called with pass by value option)
QUOTATIONADDRESS - Address Data
Data type: BAPISDCOADOptional: Yes
Call by Reference: No ( called with pass by value option)
QUOTATIONSTATUSHEADERS - Header Status
Data type: BAPISDHDSTOptional: Yes
Call by Reference: No ( called with pass by value option)
QUOTATIONSTATUSITEMS - Item Status
Data type: BAPISDITSTOptional: Yes
Call by Reference: No ( called with pass by value option)
QUOTATIONCONDITIONS - Conditions
Data type: BAPISDCONDOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BAPI_QUOTATION_GETDETAILBOS Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_salesdocument | TYPE BAPIVBELN-VBELN, " | |||
| lv_quotationheader | TYPE BAPISDHD, " | |||
| lt_quotationcondhead | TYPE STANDARD TABLE OF BAPICONDHD, " | |||
| lt_quotationconditem | TYPE STANDARD TABLE OF BAPICONDIT, " | |||
| lt_quotationcondqtyscale | TYPE STANDARD TABLE OF BAPICONDQS, " | |||
| lt_quotationcondvalscale | TYPE STANDARD TABLE OF BAPICONDVS, " | |||
| lt_quotationcontracts | TYPE STANDARD TABLE OF BAPISDCNTR, " | |||
| lt_quotationtextheaders | TYPE STANDARD TABLE OF BAPISDTEHD, " | |||
| lt_quotationtextlines | TYPE STANDARD TABLE OF BAPITEXTLI, " | |||
| lt_quotationflows | TYPE STANDARD TABLE OF BAPISDFLOW, " | |||
| lt_quotationcfgscurefs | TYPE STANDARD TABLE OF BAPICUREFM, " | |||
| lt_quotationcfgscucfgs | TYPE STANDARD TABLE OF BAPICUCFGM, " | |||
| lv_internaluse | TYPE BAPIFLAG-BAPIFLAG, " SPACE | |||
| lt_quotationitems | TYPE STANDARD TABLE OF BAPISDITBOS, " | |||
| lt_quotationcfgscuins | TYPE STANDARD TABLE OF BAPICUINSM, " | |||
| lt_quotationcfgscuprts | TYPE STANDARD TABLE OF BAPICUPRTM, " | |||
| lt_quotationcfgscuvals | TYPE STANDARD TABLE OF BAPICUVALM, " | |||
| lt_quotationcfgscublbs | TYPE STANDARD TABLE OF BAPICUBLBM, " | |||
| lt_quotationcfgscuvks | TYPE STANDARD TABLE OF BAPICUVKM, " | |||
| lt_quotationbillingplans | TYPE STANDARD TABLE OF BAPISDBPL, " | |||
| lt_quotationbillingdates | TYPE STANDARD TABLE OF BAPISDBPLD, " | |||
| lt_quotationcreditcards | TYPE STANDARD TABLE OF BAPICCARDM, " | |||
| lt_extensionout | TYPE STANDARD TABLE OF BAPIPAREX, " | |||
| lt_quotationservices | TYPE STANDARD TABLE OF BAPISDESLLBOS, " | |||
| lt_quotationschedulelines | TYPE STANDARD TABLE OF BAPISDHEDU, " | |||
| lt_quotationservicestext | TYPE STANDARD TABLE OF BAPIESLLTX, " | |||
| lt_quotationservicescond | TYPE STANDARD TABLE OF BAPIBOSCD, " | |||
| lt_quotationservicescost | TYPE STANDARD TABLE OF BAPIBOSCOST, " | |||
| lt_quotationbusiness | TYPE STANDARD TABLE OF BAPISDBUSI, " | |||
| lt_quotationpartners | TYPE STANDARD TABLE OF BAPISDPART, " | |||
| lt_quotationaddress | TYPE STANDARD TABLE OF BAPISDCOAD, " | |||
| lt_quotationstatusheaders | TYPE STANDARD TABLE OF BAPISDHDST, " | |||
| lt_quotationstatusitems | TYPE STANDARD TABLE OF BAPISDITST, " | |||
| lt_quotationconditions | TYPE STANDARD TABLE OF BAPISDCOND. " |
|   CALL FUNCTION 'BAPI_QUOTATION_GETDETAILBOS' "Display Customer Quotation with BOS |
| EXPORTING | ||
| SALESDOCUMENT | = lv_salesdocument | |
| INTERNALUSE | = lv_internaluse | |
| IMPORTING | ||
| QUOTATIONHEADER | = lv_quotationheader | |
| TABLES | ||
| RETURN | = lt_return | |
| QUOTATIONCONDHEAD | = lt_quotationcondhead | |
| QUOTATIONCONDITEM | = lt_quotationconditem | |
| QUOTATIONCONDQTYSCALE | = lt_quotationcondqtyscale | |
| QUOTATIONCONDVALSCALE | = lt_quotationcondvalscale | |
| QUOTATIONCONTRACTS | = lt_quotationcontracts | |
| QUOTATIONTEXTHEADERS | = lt_quotationtextheaders | |
| QUOTATIONTEXTLINES | = lt_quotationtextlines | |
| QUOTATIONFLOWS | = lt_quotationflows | |
| QUOTATIONCFGSCUREFS | = lt_quotationcfgscurefs | |
| QUOTATIONCFGSCUCFGS | = lt_quotationcfgscucfgs | |
| QUOTATIONITEMS | = lt_quotationitems | |
| QUOTATIONCFGSCUINS | = lt_quotationcfgscuins | |
| QUOTATIONCFGSCUPRTS | = lt_quotationcfgscuprts | |
| QUOTATIONCFGSCUVALS | = lt_quotationcfgscuvals | |
| QUOTATIONCFGSCUBLBS | = lt_quotationcfgscublbs | |
| QUOTATIONCFGSCUVKS | = lt_quotationcfgscuvks | |
| QUOTATIONBILLINGPLANS | = lt_quotationbillingplans | |
| QUOTATIONBILLINGDATES | = lt_quotationbillingdates | |
| QUOTATIONCREDITCARDS | = lt_quotationcreditcards | |
| EXTENSIONOUT | = lt_extensionout | |
| QUOTATIONSERVICES | = lt_quotationservices | |
| QUOTATIONSCHEDULELINES | = lt_quotationschedulelines | |
| QUOTATIONSERVICESTEXT | = lt_quotationservicestext | |
| QUOTATIONSERVICESCOND | = lt_quotationservicescond | |
| QUOTATIONSERVICESCOST | = lt_quotationservicescost | |
| QUOTATIONBUSINESS | = lt_quotationbusiness | |
| QUOTATIONPARTNERS | = lt_quotationpartners | |
| QUOTATIONADDRESS | = lt_quotationaddress | |
| QUOTATIONSTATUSHEADERS | = lt_quotationstatusheaders | |
| QUOTATIONSTATUSITEMS | = lt_quotationstatusitems | |
| QUOTATIONCONDITIONS | = lt_quotationconditions | |
| . " BAPI_QUOTATION_GETDETAILBOS | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_QUOTATION_GETDETAILBOS
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single VBELN FROM BAPIVBELN INTO @DATA(ld_salesdocument). | ||||
| "SELECT single BAPIFLAG FROM BAPIFLAG INTO @DATA(ld_internaluse). | ||||
| DATA(ld_internaluse) | = ' '. | |||
Search for further information about these or an SAP related objects