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-VBELN
Optional: No
Call by Reference: No ( called with pass by value option)

INTERNALUSE - Checkbox Field - Internal Line

Data type: BAPIFLAG-BAPIFLAG
Default: 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: BAPISDHD
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for BAPI_QUOTATION_GETDETAILBOS

RETURN - Return Messages

Data type: BAPIRET2
Optional: Yes
Call by Reference: No ( called with pass by value option)

QUOTATIONCONDHEAD - Conditions Header Data

Data type: BAPICONDHD
Optional: Yes
Call by Reference: No ( called with pass by value option)

QUOTATIONCONDITEM - Conditions Item Data

Data type: BAPICONDIT
Optional: Yes
Call by Reference: No ( called with pass by value option)

QUOTATIONCONDQTYSCALE - Condition Scale Quantity

Data type: BAPICONDQS
Optional: Yes
Call by Reference: No ( called with pass by value option)

QUOTATIONCONDVALSCALE - Condition Scale Value

Data type: BAPICONDVS
Optional: Yes
Call by Reference: No ( called with pass by value option)

QUOTATIONCONTRACTS - Contract data

Data type: BAPISDCNTR
Optional: Yes
Call by Reference: No ( called with pass by value option)

QUOTATIONTEXTHEADERS - Text Header Info.

Data type: BAPISDTEHD
Optional: Yes
Call by Reference: No ( called with pass by value option)

QUOTATIONTEXTLINES - Text Lines for Document

Data type: BAPITEXTLI
Optional: Yes
Call by Reference: No ( called with pass by value option)

QUOTATIONFLOWS - Document Flow

Data type: BAPISDFLOW
Optional: Yes
Call by Reference: No ( called with pass by value option)

QUOTATIONCFGSCUREFS - Instance in Configuration

Data type: BAPICUREFM
Optional: Yes
Call by Reference: No ( called with pass by value option)

QUOTATIONCFGSCUCFGS - Configuration Data

Data type: BAPICUCFGM
Optional: Yes
Call by Reference: No ( called with pass by value option)

QUOTATIONITEMS - Item Data

Data type: BAPISDITBOS
Optional: Yes
Call by Reference: No ( called with pass by value option)

QUOTATIONCFGSCUINS - Instance Data for Configuration

Data type: BAPICUINSM
Optional: Yes
Call by Reference: No ( called with pass by value option)

QUOTATIONCFGSCUPRTS - Detail Data (Part_of Entries) for Configuration

Data type: BAPICUPRTM
Optional: Yes
Call by Reference: No ( called with pass by value option)

QUOTATIONCFGSCUVALS - Characteristic Values for Configuration

Data type: BAPICUVALM
Optional: Yes
Call by Reference: No ( called with pass by value option)

QUOTATIONCFGSCUBLBS - Configuration BLOB

Data type: BAPICUBLBM
Optional: Yes
Call by Reference: No ( called with pass by value option)

QUOTATIONCFGSCUVKS - Variant Condition Key in Configuration

Data type: BAPICUVKM
Optional: Yes
Call by Reference: No ( called with pass by value option)

QUOTATIONBILLINGPLANS - Billing plan

Data type: BAPISDBPL
Optional: Yes
Call by Reference: Yes

QUOTATIONBILLINGDATES - Billing Data

Data type: BAPISDBPLD
Optional: Yes
Call by Reference: Yes

QUOTATIONCREDITCARDS - Credit Card Data

Data type: BAPICCARDM
Optional: Yes
Call by Reference: Yes

EXTENSIONOUT - Customer Enhancement for Export

Data type: BAPIPAREX
Optional: Yes
Call by Reference: Yes

QUOTATIONSERVICES - Services

Data type: BAPISDESLLBOS
Optional: Yes
Call by Reference: Yes

QUOTATIONSCHEDULELINES - Schedule Lines

Data type: BAPISDHEDU
Optional: Yes
Call by Reference: No ( called with pass by value option)

QUOTATIONSERVICESTEXT - Service Texts

Data type: BAPIESLLTX
Optional: Yes
Call by Reference: Yes

QUOTATIONSERVICESCOND - Service Conditions

Data type: BAPIBOSCD
Optional: Yes
Call by Reference: Yes

QUOTATIONSERVICESCOST - Communication Fields: Sales Document Item With BOS & Costing

Data type: BAPIBOSCOST
Optional: Yes
Call by Reference: Yes

QUOTATIONBUSINESS - Business Data

Data type: BAPISDBUSI
Optional: Yes
Call by Reference: No ( called with pass by value option)

QUOTATIONPARTNERS - Partner Data

Data type: BAPISDPART
Optional: Yes
Call by Reference: No ( called with pass by value option)

QUOTATIONADDRESS - Address Data

Data type: BAPISDCOAD
Optional: Yes
Call by Reference: No ( called with pass by value option)

QUOTATIONSTATUSHEADERS - Header Status

Data type: BAPISDHDST
Optional: Yes
Call by Reference: No ( called with pass by value option)

QUOTATIONSTATUSITEMS - Item Status

Data type: BAPISDITST
Optional: Yes
Call by Reference: No ( called with pass by value option)

QUOTATIONCONDITIONS - Conditions

Data type: BAPISDCOND
Optional: 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



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!