‎2009 Feb 12 4:47 AM
Hello all,
I have to use the BAPI 'BAPI_INQUIRY_CREATEFROMDATA2' as a Web Service from my Composite application.
Now i am testing this BAPI out for parameters required for this BAPI in the transaction se37 by executing it and giving it the parameters.
I pass the import parameter 'Sales Document Type' to it as IN for Inquiry.
Now executing, the BAPI returns an error message saying 'Sold To Party' or 'Ship To Party' not defined.
But i cant find out where these fields are defined as import parameters/tables for the BAPI so that test run could be possible for that BAPI.
Any pointers would be helpful
‎2009 Feb 12 4:57 AM
go through the documentation...
Customer Inquiry: Create Customer Inquiry
Functionality
Using this method, you can create customer inquiries.
You must enter at least header data (via structure INQUIRY_HEADER_IN) and partner data (via the table INQUIRY_PARTNERS) as input parameters for this.
Enter the item data via the table INQUIRY_ITEMS_IN. Item numbers can be assigned manually, by filling in the relevant fields, or automatically, according to Customizing, by leaving the relevant fields blank.
If you are dealing with configurable items, you must enter the configuration data in the INQUIRY_CFGS_REF, INQUIRY_CFGS_INST, INQUIRY_CFGS_PART_OF and INQUIRY_CFGS_VALUE tables.
When you have created the customer inquiry successfully, you will receive the document number (SALESDOCUMENT field). Any errors that may occur will be announed via the RETURN parameter.
Notes
Required entries:
ORDER_HEADER_IN : DOC_TYPE Sales document type
SALES_ORG sales organiZation
DISTR_CHAN Distribution channel
DIVISION Division
ORDER_PARTNERS..: PARTN_ROLE Partner role, SP sold-to party PARTN_NUMB Customer number
ORDER_ITEMS_IN..: MATERIAL Material number
Ship-to party:
If no ship-to party is entered , use the following: Ship-to party = sold-to party.
Commit control:
The BAPI does not have a database commit. This means that the relevant application must leave the commit, in order that changes can be carried out on the database. The BAPI
‎2009 Feb 12 4:57 AM
go through the documentation...
Customer Inquiry: Create Customer Inquiry
Functionality
Using this method, you can create customer inquiries.
You must enter at least header data (via structure INQUIRY_HEADER_IN) and partner data (via the table INQUIRY_PARTNERS) as input parameters for this.
Enter the item data via the table INQUIRY_ITEMS_IN. Item numbers can be assigned manually, by filling in the relevant fields, or automatically, according to Customizing, by leaving the relevant fields blank.
If you are dealing with configurable items, you must enter the configuration data in the INQUIRY_CFGS_REF, INQUIRY_CFGS_INST, INQUIRY_CFGS_PART_OF and INQUIRY_CFGS_VALUE tables.
When you have created the customer inquiry successfully, you will receive the document number (SALESDOCUMENT field). Any errors that may occur will be announed via the RETURN parameter.
Notes
Required entries:
ORDER_HEADER_IN : DOC_TYPE Sales document type
SALES_ORG sales organiZation
DISTR_CHAN Distribution channel
DIVISION Division
ORDER_PARTNERS..: PARTN_ROLE Partner role, SP sold-to party PARTN_NUMB Customer number
ORDER_ITEMS_IN..: MATERIAL Material number
Ship-to party:
If no ship-to party is entered , use the following: Ship-to party = sold-to party.
Commit control:
The BAPI does not have a database commit. This means that the relevant application must leave the commit, in order that changes can be carried out on the database. The BAPI
‎2009 Feb 12 5:16 AM
I had read the documentation already but could not find the answer to my query.
Acutally for a Ship To Party i have to pass partner function as 'AG' or 'SP' and then pass the customer number
Also have to pass sales document type.
These are the minimum requirements for the inquiry to be created.
Thnks for your answer
‎2009 Feb 12 5:17 AM