Skip to Content
0
Former Member
Mar 02, 2010 at 07:43 AM

Problem with CUST_MAT22 field in BAPI_INQUIRY_CREATEFROMDATA2

96 Views

Hi,

I am trying to inquiries using BAPI_INQUIRY_CREATEFROMDATA2 . But BAPISDITM-CUST_MAT22 field is not getting filled after inquiry got created.

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

The value of Customer Material No is present in W_ENQUIRY_ITEM-CUST_MAT22. But after inquiry got created the customer material no is empty. Please guide in resolving the issue.