Ansicht
Dokumentation
BAPI_INQUIRY_CREATEBOS - Create Customer Inquiry with BOS
PERFORM Short Reference CPI1466 during BackupThis documentation is copyright by SAP AG.
Functionality
You can use this method to create a customer inquiry with BOS.
Example
Notes
Minimum requirements for creating a customer inquiry
The following parameters, at least, must be transferred:
- Inquiry header data via parameter InquiryHeaderIn
DOC_TYPE | sales document type |
SALES_ORG | sales organization |
DISTR_CHAN | distribution channel |
DIVISION | division |
- The sales document type must be entered in correspondance with the logon language.
- Partner data via parameter InquiryPartners
PARTN_ROL | partner function AG (sold-to party) | |
PART_NUMB | customer number |
- If you do not enter a ship-to party, then ship-to party = sold-to party.
- The partner function must be consistent with the logon language.
Minimum entry requirements for creating a document item
- Document item data via parameter InquiryItemsIn
ITM_NUMBER | item number |
MATERIAL | material number |
- There are two options for number assignment:
- If you choose external number assignment via parameter IntNumberAssignment, you must enter the item number in field ITM_NUMBER.
- If you choose internal number assignment via parameter IntNumberAssignment, the system assigns the item numbers according to your settings in Customizing. For internal number assignment, field ITM_NUMBER must remain initial.
Minimum entry requirements for creating a document item with BOS
In addition to the document items, you must also transfer the following parameters if you want to create a document item with BOS:
- The package number for the BOS PCKG_NO must be transferred via parameter OrderItemsIn. This must correspond to the PCKG_NO of the initial node (uppermost outline level with hierarchy level 0) in transfer parameter InquiryItemsIn.
There must be exactly one schedule line for a document item with BOS. You must set a quantity of 1. You enter the dates via the schedule line data.
You must enter the following data via parameter InquirySchedulesIn:
ITM_NUMBER | item number |
SCHED_LINE | schedule line number |
REQ_DATE | schedule line date |
REQ_QTY | inquiry quantity in sales unit of measure |
Creating Services
You can transfer service data for the inquiry item via parameters InquiryServices and InquiryServicesText.
Customer fields - tables VBAK, VBAP, VBEP and ESLL can be transferred via parameter ExtensionIn.
Transfer of Configuration Data
If you are dealing with configurable data, you must transfer the configuation data in the following parameters:
InquiryCfgsRef | configuration: reference data | |
InquiryCfgsInst | configuration: instances | |
InquiryCfgsPartOf | configuration: instances | |
InquiryCfgsValue | configuration: characteristic values |
Commit Control
This method does not include a database commit. This means that the calling application must exit the commit so that changes can be made on the database. The following method is available for this: BAPI_TRANSACTION_COMMIT.
Return Values
After you have created the customer inquiry successfully, the document number is returned via parameter SalesDocument.
If errors occur during processing, they are returned to table parameter Return. Information messages are also logged in this parameter.
Further information
SAP note number 93091 contains general information for BAPIs in Sales and Distribution (SD).
Parameters
BEHAVEWHENERRORBINARYRELATIONSHIPTYPE
EXTENSIONIN
INQUIRYCFGSBLOB
INQUIRYCFGSINST
INQUIRYCFGSPARTOF
INQUIRYCFGSREF
INQUIRYCFGSREFINST
INQUIRYCFGSVALUE
INQUIRYCFGSVK
INQUIRYCONDITIONSIN
INQUIRYHEADERIN
INQUIRYHEADERINX
INQUIRYITEMSIN
INQUIRYITEMSINX
INQUIRYKEYS
INQUIRYPARTNERS
INQUIRYSCHEDULESIN
INQUIRYSCHEDULESINX
INQUIRYSERVICES
INQUIRYSERVICESTEXT
INQUIRYTEXT
INTNUMBERASSIGNMENT
LOGICSWITCH
PARTNERADDRESSES
RETURN
SALESDOCUMENT
SALESDOCUMENTIN
SENDER
TESTRUN
Exceptions
Function Group
2030001General Material Data RFUMSV00 - Advance Return for Tax on Sales/Purchases
This documentation is copyright by SAP AG.
Length: 9900 Date: 20240523 Time: 093833 sap01-206 ( 73 ms )