I am trying to create a quote using 'BAPI_QUOTATION_CREATEFROMDATA2' in the test mode.
I am entering the bear minimum required (without opening any parameters other than the default
which are QUOTATION_HEADER_IN and QUOTATION_PARTNERS.
The problem that I am seeing is with QUOTATION_PARTNERS-ITM_NUMBER.
When I give QUOTATION_PARTNERS-ITM_NUMBER = '0000000' and run, I get a bogus
message that the quote (with a number assigned) is created. But when I try to open using VA23
it is not and even the table 'VBAK' doesn't have an entry for this.
However when I change QUOTATION_PARTNERS-ITM_NUMBER = '0000020' where 000020 is a valid value, I get a message that says "112 Please enter sold-to party or ship-to party".
What I don't understand is how this ITM_NUMBER "item number of SD document" is connected
to ship-to variable. How can I make sure that these two have proper relationship in the database.
Any suggestions or comments will be highly appreciated.