‎2011 Mar 21 5:34 AM
Hi all,
In BAPI ' BAPI_QUOTATION_CREATEFROMDATA2', I given all manditory parameters ( QUOTATION_HEADER_IN -import parameter and QUOTATION_PARTNERS - tables ).
But If I execute, its returning below messages.
Please enter sold-to party or ship-to party
Sales document was not changed.
Can u please tell me where to specify the sold-to party and ship-to party in this BAPI.
Thanks
Murali.
‎2011 Mar 21 5:37 AM
‎2011 Mar 21 6:05 AM
Hi Klaus,
Thanks for your prompt reply.
I passed the customer number in the PARTN_NUMB field of QUOTATION_PARTNERS table. But still it is giving same error.
‎2011 Mar 21 6:09 AM
Hi,
did you both fill fields PARTN_ROLE with the partner function and PARTN_NUMB with the number of the partner? Are you sure, that you filled the table and not only the table's header line?
‎2011 Mar 21 6:19 AM
Hi Klaus,
I filled both the fields (PARTN_ROLE - 'AG' and PARTN_NUMB - '0001100000').
I filled directly in the table ( Directly Iam testing the bapi by giving the values. Not programmatically).
Iam facing same error.
Thanks,
‎2011 Mar 21 7:06 AM
And you are sure that the number is correct, has the right KTOKD and exists in right BUKRS ...
Try to create a quotation in VA21 with the data you pass to the BAPI!
Edited by: Klaus Babl on Mar 21, 2011 8:07 AM
‎2011 Mar 21 10:20 AM
Hi Klaus,
The PARTN_NUMB or Sold-To party number is valid one. And also Iam creating the Quotation through VA21 transaction with the data that I passed to the BAPI. it is getting generated properly
‎2011 Mar 21 10:48 AM
Hi,
the message you get is called in
LV45AU02
MV45AF0K_KUNDEN_PRUEFEN
I think, it is in LV45AU02 you get the message from. If you look at the code lines before it seems that he wants to get those informations for ITEM.
I Think you have to fill your PARTNER table with ITEM informations, too.
If you create item '000010' you should enter a partner 'AG' for item '00010', too.
Regards,
Klaus
‎2011 Mar 28 7:19 AM
Hi Klaus,
I filled PARTNER table with ITEM informations, too.
For item '000010', I entered a partner 'AG' for item '00010'.
Note : For Partner role AG, it is taking SP( as partner function )automatically.
still it is giving same error : Please enter sold to party or ship to party
Thanks,
Murali
‎2011 Apr 01 10:11 AM
Hi Murali,
I tried creating a quotation in my system using the same BAPI, and i was able to create one with the very basic info and without having to pass any ITEM details.
QUOTATION_HEADER_IN-DOC_TYPE
QUOTATION_HEADER_IN-SALES_ORG
QUOTATION_HEADER_IN-DISTR_CHAN
QUOTATION_HEADER_IN-DIVISION
QUOTATION_HEADER_INX-DOC_TYPE
QUOTATION_HEADER_INX-SALES_ORG
QUOTATION_HEADER_INX-DISTR_CHAN
QUOTATION_HEADER_INX-DIVISION
(* You dont need to set the update flag)
QUOTATION_PARTNERS-PARTN_ROLE
QUOTATION_PARTNERS-PARTN_NUMB
Try passing just the above fields in SE37, and let me know.
Regards,
Chen