Fonction SAP BAPI_QUOTATION_CREATEFROMDATA - Customer Quotation: Create Customer Quotation

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CONVERT_PARVW_AUART BAPIFLAG-BAPIFLAG C 1 SPACE X Conversion of partner function + order type
ORDER_HEADER_IN BAPISDHEAD u 523 Quotation Header
WITHOUT_COMMIT BAPI_STAND-NO_COMMIT C 1 SPACE X Without commit?

Paramètre Reférence Type Long. Description
BILLING_PARTY BAPIPAYER u 300 Payer
RETURN BAPIRETURN1 u 470 Error Text
SALESDOCUMENT BAPIVBELN-VBELN C 10 Sales and Distribution Document Number
SHIP_TO_PARTY BAPISHIPTO u 530 Ship-to party
SOLD_TO_PARTY BAPISOLDTO u 273 Sold-to party

Paramètre Reférence Long. Facultatif Description
ORDER_CFGS_INST BAPICUINS 233 Configuration: Instances
ORDER_CFGS_PART_OF BAPICUPRT 123 Configuration: Part-of specifications
ORDER_CFGS_REF BAPICUCFG 397 Configuration: Reference data
ORDER_CFGS_VALUE BAPICUVAL 276 Configuration: Characteristic values
ORDER_ITEMS_IN BAPIITEMIN 749 Item data input
ORDER_ITEMS_OUT BAPIITEMEX 726 Item data output
ORDER_PARTNERS BAPIPARTNR 594 Partners

Functionality
You can create customer quotations with this method.
Enter at least the header data (using the ORDER_HEADER_IN structure) andpartner data (using the ORDER_PARTNERS table).
Enter the item data in the ORDER_ITEMS_IN table. You can enter the itemnumber manually by filling in the relevant field or, if you leave thefield blank, it will be entered automatically according to the settingsin Customizing.
If the item is configurable, enter the configuration data in theORDER_CFGS_REF, ORDER_CFGS_INST, ORDER_CFGS_PART_OF and ORDER_CFGS_VALUEtables.
Once the customer quotation has been successfully created the systemissues the document number (SALESDOCUMENT field) and detailed data aboutthe participating partners (using the SOLD_TO_PARTY, SHIP_TO_PARTY andBILLING_PARTY fields). Any errors are displayed in the RETURN paramter.
The ORDER_ITEMS_OUT table provides you with the detailed informationneeded to judge pricing and availability for an item.

Description
This parameter contains data for the payer.

Description
The return codes for the function module is displayed in thisstructure.
Structure
TYPE Message type: S Success, E Error, W Warning, I Information
CODE Message code
MESSAGE Message text
LOG_NO Application log: Log number
LOG_MSG_NO Application log: running message number

Value range
If no errors occur the return paramter is blank. Otherwise, the
system displays the relevant error message with a short text.

Description
The paramter displays the quotation number created by the BAPI.

Description
This parameter contains data for the ship-to party.

Description
This parameter contains data for the sold-to party.
INCLUDE SD_BAPI_CONVERT_PARVW_AUART OBJECT DOKU ID TX

Description
This parameter contains header data for the quotation.
INCLUDE SD_BAPI_WITHOUT_COMMIT OBJECT DOKU ID TX

Description
Configuration: Instances

Description
Configuration: Reference data

Description
This parameter contains the item entry data for the quotation.

Description
This parameter contains the item output data for the quotation.

Description
Partners such as the sold-to party and ship-to party are entered inthis table.

536483BAPI SD: incomplete pricing
366709Missing characterstc values in generated quotation