Functionality You can use this method to create sales orders. You must enter at least the order header data (from the ORDER_HEADER_INstructure) as well as partner data (using the ORDER_PARTNERS table) asinput parameters. Enter item data using the ORDER_ITEMS_IN table. You can allocate theitem number by filling in the relevant fields manually, or the systemdoes it according to the settings in Customizing, whereby the relevantfields remain blank. If the item is configurable, you need to enter the configuration datain the ORDER_CFGS_REF, ORDER_CFGS_INST, ORDER_CFGS_PART_OF andORDER_CFGS_VALUE tables. You can use the BAPICCARD structure to enter credit card data. You caneither enter data for identifying the card or, you can enter data foran authorization in an external system. Once you have successfully created the sales order, the system displaysthe document number (in the SALESDOCUMENT field), as well as detaileddata about the other parties (in the OLD_TO_PARTY, SHIP_TO_PARTY andBILLING_PARTY structures). The RETURN parameter displays any errorsthat may have occured. The ORDER_ITEMS_OUT table contains more detailed information that willenable you to judge the pricing and availability of an item. Notes Mandatory entries: ORDER_HEADER_IN : DOC_TYPE Sales document type SALES_ORG Sales organization DISTR_CHAN Distribution channel DIVISION Division ORDER_PARTNERS..: PARTN_ROLE Partner functions, SP sold-to party PARTN_NUMB Customer number ORDER_ITEMS_IN..: MATERIAL Material number REQ_QTY Order quantity in sales unit Ship-to party If a ship-to party hasn't been entered, the ship-to party = sold-to party COMMIT control:Parameter WITHOUT_COMMIT If this switch is activated, the system does not process any CommitWork and the application that has called it up must trigger the Commititself. To do this, useBAPI_TRANSACTION_COMMIT. German keywords: The following keywords must be entered in German, regardless of the logon language: DOC_TYPE Sales document type, for example TA for standard order PARTN_ROLE Partner function, for example, WE for ship-to party Further information You can see further notes in OSS. Note 93091 contains generalinformation about the SD BAPIs. Description This parameter contains data for the payer. Description This structure displays the return code for the function module. 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 numberValue range If no errors occur, the return parameter is blank. Otherwise, the system displays the appropriate error message with a short text. Description The parameter displays the sales order number created by the BAPI. Description This parameter contains data for the ship-to party. Description This parameter contains data about the sold-to party. INCLUDE SD_BAPI_CONVERT_PARVW_AUART OBJECT DOKU ID TX Description This parameter contains the data for the sales document header. You can find information about what the individual parameter fieldsmean in the relevant data element documentation in the ABAP dictionary. INCLUDE SD_BAPI_WITHOUT_COMMIT OBJECT DOKU ID TX Description This table contains credit card data and data for identification andauthorization purposes. To convert the currency in the amount fields, you must enter thecurrency. Description Configuration: BLOB internal data (SCE) Description Refer to the R/3 library and choose Logistics-General -> LO VariantConfiguration Guide -> EDI for Configurable Materials. Description Refer to the R/3 library and choose Logistics-General -> LO VariantConfiguration Guide -> EDI for Configurable Materials. Description Refer to the R/3 library and choose Logistics-General -> LO VariantConfiguration Guide -> EDI for Configurable Materials. Description Refer to the R/3 library and choose Logistics-General -> LO VariantConfiguration Guide -> EDI for Configurable Materials. Description This paramter contains the item entry data for the sales order. Description This parameter contains the item output data for the sales order. Description Partners such as sold-to party and ship-to party are entered in thistable. |