Functionality You can change and delete custoemr quotations that contain a BOS withthis method. You can change header, item, schedule line, configuration data and BOSdata. You can transfer custoemr fields in tables VBAK, VBAP, VBEP and ESLLusing structre EXTENSIONIN. You cannot change a document item if its status does not allow this/ifit has the status "complete".
- Delete quotation completely
- delete quotation item
- Create, change and delete service lines
Notes Generaly speaking, the following applies:> You should only enter the fields to be changed. They should be marked with an X in the appropriate checkbox structure. Fill field UPDATEFLAG for the selected field. Possible UPDATEFLAGS: U = change D = delete I = create Exception: configuration. If you change the configuration, it must befilled completely. Maintain quantites and dates using the schedule line data. Minimum required entries:> 1. The document number must be entered in structure SALESDOCUMENT. 2. Key fields must always be entered when a change is made, also in the checkbox structure. 3. The update indicator in SALESORDER_HEADER_INX must always beentered. Commit Control:> The BAPI does not perform a database Commit. This means that the calling application has to exit the Commit so that changes can be made on the database. BAPI "BAPI_TRANSACTION_COMMIT" is available for this.Further information This parameter controls program behavior if an error occurs. Till nowthe BAPI terminated when an error arose. This meant that if you werecreating an order with several items, and only one item was incorrect,the order was not created at all. This parameter allows you to create an order, even if you cannot createall of the items in the order. Value range Space = if any error occurs during processing, the program terminateswithout saving the sales document P = in cases of error, you can save the sales document, Incorrectitems are not processed; they are however logged. R = as P, however, the sales document is not saved. Default Space Notes 1. If you have to change several errors in one structure, and a field check finds an error, structure processing is terminated and the structure remains unchanged. - Example: In an order you have to change the delivery block, the billing block in the header data, and the item data. If aninvalid delivery block is specified, the header data is not changed, however you can change the items if item processing contains no errors. Description This parameter activates internal item number assignment. In some casesit is necessary that the SAP System assigns the item numbers, forexample, for articles for which a BOM in the order is exploded. Example: An order with 2 items and a shcedule line each is to be created. Enterthe item numebrs 10 and 20 in QUOTATION_ITEM_IN andQUOTATION_SCHEDULES_IN, If the article for item 10 now receives a salesBOM, this BOM can be exploded and a subitem with item number 20 iscreated. The reference schedule line - item no longer exists. Here it is necessary for item number assignment on the SAP side to takeplace internally. Default Space, in other words, an attempt is made to create the order withexternal number assignment. Description This parameter contains the quotation header data. Description This parameter is used in the following two activities:
- Control of processing functionality by the value in the field
UPDATEFLAG (change pointer). You can enter the following: ' ': Create a new sales document I : Create a new sales document U : Change an existing sales document D : Delete an existing sales document
- Control of field entry by check box fields
If you set the field UPDATEFLAG, the system only copies those fieldsfrom parameter QUOTATION_HEADER_IN if they have an 'X' in the check boxfield.Description This parameter contains the quotation header data. Description This parameter contains the condition data for the document item. Value range You should distinguish between the following cases when fieldsCOND_VALUE and CURRENCY are being filled.
- The calculation type for the condition is expressed as a percentage.
In this case, you should leave the CURRENCY field empty and enter thepercentage value to the correct number of decimal places. Example: a percentage of 20% has to be entered as 20,0000 in field COND_VALUE.
- The calculation type for the condition is not a percentage.
In this case, field COND_VALUE is a currency quantity field. FieldCURRENCY or CURRENCY_ISO must be filled for a correct conversion. Youmust enter the amount to the correct number of decimal places. If neither field CURRENCY nor field CURRENCY_ISO is filled, the systempresumes that you have entered a percentage. If, however, the calculation type is not a percentage, an incorrectamount is entered. If you have defined customer fields in tables VBAK, VBAP, VBEP and ESLLyou can use this parameter to transmit the data in these fields.Further information See also Note 143580. Description Only relevant to configurable materials. Note For more information, see the SAP Library under Logistics - General(LO) -> Variant Configuration (LO-VC)-> EDI for Configurable Materials. Description Only relevant for configurable material. For more information, see the SAP Library under Logistics - General(LO) -> Variant Configuration (LO-VC)-> EDI for KMATs (Information onCreating Your Own). Description Only relevant for configurable material. For more information, see the SAP Library under Logistics - General(LO) -> Variant Configuration (LO-VC) -> EDI for KMATs (Information onCreating Your Own). Description Only relevant for configurable material. For more information, see the SAP Library under Logistics - General(LO) -> Variant Configuration (LO-VC) -> EDI for KMATs (Information onCreating Your Own). Description Only relevant for configurable material. For more information, see the SAP Library under Logistics - General(LO) -> Variant Configuration (LO-VC) -> EDI for KMATs (Information onCreating Your Own). Description This parameter contains the item entry data for the sales document. Information on the individual parameter fields is contained in therelevant data element documentation in the ABAP Dictionary. Description This parameter is used in the following two activities: Control of processing functionality by the value in the fieldUPDATEFLAG (change indicator). You can enter the following: Space: Create a new sales document item I : Create a new sales document item U : Change an existing sales document item D : Delete an existing sales document item Control of field entry by check box fields If you set the field UPDATEFLAG, the system only copies the fields fromthe data parameter if they have an 'X' in the check box field. Description This table contains services and outline layouts for the quotation. You can define a line as an outline line using field OUTL_IND. You can assign a service line to an outline line using fields PCKG_NO(service line) and SUBPCKG_NO (outline line). The hierarchy for the outline is represented by fields LINE_NO andHI_LINE_NO. Field HI_LINE_NO links to field LINE_NO of the superioroutline. You can change the subcontractor group via field BOSGRP. You can assign a line type to the service line, for example, line typealternative line, informatory line, blanket line or basic line. The assignment takes place via the following fields:
- basic line
'X' in field BASIC_LINE
- Alternative line
'X' in field ALTERNAT Link to the appropriate basic line in field BASLINE_NO A reference to a basic line must exist for alternative lines.
- Blanket line
'X' in field INFORM '1' in field QUANTITY The quantity is always 1 for blanket lines.
- Supplementary line
'X' in field SUPP_LINE
- Bidder line
'X' in field BIDDER
- Contingency line
'X' in field EVENTUAL
- Informatory line
'X' in field INFORM
- Internal line
'X' im Feld BOSINTER
- Assessment line
'X' in field BOS_ASSESS
- Risk line
'X' in field BOS_RISK You can find information on the meaning of the individual parameterfields in the appropriate data element documentation in the ABAPdictionary.Value range This parameter contains the checkbox structure for the service line. The package number (PCKG_NO), internal line number (LINE_NO) and theupdate indicator (UPDATEFLAG) have to be entered. Enter the character "X" to indicate which fields of the service lineshould be changed. Description You can transfer the long text for the service line in this table:
- text type LTXT for the long text in field TEXT_ID
- the actual text lines in field TEXT_LINE
Very long texts have to be read line by line since a maximum of 132characters per line is allowed. If FORMAT_COL is empty, the standard format key * is assogned. The package number (PCKG_NO) forms the link to the service line forwhich the text is to be entered.Description You can transmit the document item text to the table: o valid text types to field TEXT ID o actual text lines to field TEXT_LINE Description The messages that arise on creating the sales document are stored inthis table. Structure TYPE ,,,,Message type: S - Success, E - Error, W - Warning, I -Information ID ,,,,Message ID NUMBER ,,,,Message number MESSAGE ,,,,Message text LOG_NO ,,,,Application log: Log number LOG_MSG_NO ,,Application log: Sequence number of message MESSAGE_V1 ,,Message variable MESSAGE_V2 ,,Message variable MESSAGE_V3 ,,Message variable MESSAGE_V4 ,,Message variable PARAMETER ,,Parameter name ROW ,,,,Row in parameter FIELD ,,,,Field in parameter SYSTEM ,,,,System (logical system) that generated message Description This parameter contains the scheduling data. Information on the individual parameter fields is contained in therelevant data element documentation in the ABAP Dictionary. Description This parameter is used for the following two activities:
- Control of processing functionality by the value in field UPDATEFLAG
(change pointer). You can enter the following: ' ': Create new schedule lines I : Create new schedule lines U : Change existing schedule lines D : Delete existing schedule lines
- Control of field entry by check box fieldsr
If you set this field UPDATEFLAG, the system only copies those fieldsfrom the data parameter that have an 'X' in the check box fields.
|