Skip to Content
0
Former Member
Mar 01, 2010 at 01:25 PM

Problem with BAPI_INQUIRY_CREATEFROMDATA2

56 Views

Hi,

I am trying to create inquiries using BAPI_INQUIRY_CREATEFROMDATA2. I am getting error messages in RETURN Table as

1)'Please enter sold-to party or ship-to party' and 2)'Sales document was not changed'. I passed sold-to party (name) value in

INQUIRY_HEADER_IN-NAME and in INQUIRY_PARTNERS-PARTN_NUMB . i didnt find any sold-to-party field in INQUIRY_HEADER_IN and i have no clue about second error. Please guide me in solving the issue.i have passed the following tables.

CALL FUNCTION 'BAPI_INQUIRY_CREATEFROMDATA2'

EXPORTING

INQUIRY_HEADER_IN = W_ENQUIRY_THEAD

IMPORTING

SALESDOCUMENT = W_NUMBER

TABLES

RETURN = W_RETURN

INQUIRY_ITEMS_IN = W_ENQUIRY_ITEM

INQUIRY_PARTNERS = T_INQUIRY_PARTNERS

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

WAIT = 'X'

IMPORTING

RETURN = W_RETURN1.

Regards

K Srinivas