|
Functionality You can use this method to create SD documents with items, schedulelines, and item conditions. You must specify order header data (using structure ORDER_HEADER_IN) andpartner data (using table ORDER_PARTNERS) as input parameters. Use table ORDER_ITEMS_IN to specify item data. You can carry out theitem number assignment manually by filling the appropriate fields, orthe system executes it automatically based on the Customizing settingsif you leave the corresponding fields initial. If you decide to usemySAP ERP for the item number assignment, no schedule lines orconditions can be specified since there is no recognizable correlationbetween them and the item. If the items are configurable, you must specify the configuration datain tables ORDER_CFGS_REF, ORDER_CFGS_INST, ORDER_CFGS_PART_OF,ORDER_CFGS_VALUE and ORDER_CFGS_BLOB. You can use structure SALES_SCHEDULE_IN to transfer the schedule linedata. To specify document conditions for creation, you can use structureSALES_CONDITIONS_IN. You can use structure SALES_CCARD to transfer credit card data,including both data for card identification and data on an authorizationthat took place in an external system. Once the SD document has been created successfully, you receive thedocument number (field SALESDOCUMENT_EX). The system uses the RETURN parameter to notify you of any errors thatoccurred. Using checkboxes: Each component of an SD document can be created with or withoutcheckboxes. If you want to use checkboxes, the system only copies fieldswith a value other than SPACE. If you do not want to use checkboxes (theUPDATEFLAG field must be I), the system only copies fields whose valueis 'X'. This way, any fields that were assigned default values by thesystem can be reset to SPACE. Notes If you do not want object references to be written, you must initializethe following fields (parameters): BINARY_RELATIONSHIPTYPE SALES_HEADER_IN-REFOBJECTTYPE SALES_HEADER_IN-REFOBJECTKEY SALES_HEADER_IN-REFDOCTYPE If item conditions are specified (SALES_CONDITIONS_IN), we recommendspecifying a price date in the header (SALES_HEADER_IN, PRICE_DATE),since the BAPI does not know whether or not the price date will bedetermined automatically. A date might be required so that the conditionrecords can be read successfully. |