Fonction SAP BAPI_INQUIRY_CREATEFROMDATA - Customer Inquiry: Create Customer Inquiry

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 Inquiry 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 use this method to create customer inquiries.
You have to enter at least the header data (using the ORDER_HEADER_INstructure) as well as partner data (using the ORDER_PARTNERS table) asthe input parameters.
Enter the item data using table ORDER_ITEMS_IN. You can enter the itemnumber manually by filling in the relevant field or, if you leave thefield blank, it will be filled in automatically according to thesettings in Customizing.
If the items are configurable, you have to enter the configuration datain the ORDER_CFGS_REF, ORDER_CFGS_INST, ORDER_CFGS_PART_OF andORDER_CFGS_VALUE tables.
Once you have successfully completed the customer inquiry, the systemissues you with the document number (SALESDOCUMENT field) and detaileddata about the participating partners (in the SOLD_TO_PARTY,SHIP_TO_PARTY and BILLING_PARTY fields). If there are any errors, thesystem displays them in the RETURN parameter.

Description
This parameter contains data about the payer.

Description
In this structure the return code for the function module is displayed.
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 there are no errors, the return parameter is blank. Otherwise the
appropriate error message appears with a short text.

Description
The parameter displays the inquiry number generated from 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 the header data for the inquiry.
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 inquiry.

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

Description
Partners, such as sold-to and ship-to parties are entered in thistable.

536483BAPI SD: incomplete pricing