Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI Error in creating quotation

Former Member
0 Likes
1,232

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.

9 REPLIES 9
Read only

Former Member
0 Likes
1,122

Hi,

it is in table QUOTATION_PARTNERS ...

Regards,

Klaus

Read only

0 Likes
1,122

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.

Read only

0 Likes
1,122

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?

Read only

0 Likes
1,122

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,

Read only

0 Likes
1,122

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

Read only

0 Likes
1,122

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

Read only

0 Likes
1,122

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

Read only

0 Likes
1,122

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

Read only

0 Likes
1,122

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