Skip to Content
author's profile photo Former Member
Former Member

BAPI_CUSTOMERINQUIRY_CHANGE not Working

Hi All,

I am using BAPI_CUSTOMERINQUIRY_CHANGE to change the material description of the material. However, the changes are not reflected to the catalogue after program execution. Below is my code:

salesdoc = wa_vbak_vbap.

inquiry_header_in-req_date_h = sy-datum.

inquiry_header_in-qt_valid_t = wa_vbak_vbap-bnddt.

APPEND inquiry_header_in.

  • assumption is catalogue exists. Update validity and required delivery

  • date

inquiry_header_inx-updateflag = c_u.

inquiry_header_inx-req_date_h = c_x.

inquiry_header_inx-qt_valid_t = c_x.

APPEND inquiry_header_inx.

  • update line item

inquiry_item_in-itm_number = wa_vbak_vbap-posnr.

inquiry_item_in-material = wa_vbak_vbap-matnr.

inquiry_item_in-short_text = wa_cdpos-value_new.

APPEND inquiry_item_in.

  • Set update flag and use old POSNR

inquiry_item_inx-itm_number = wa_vbak_vbap-posnr.

inquiry_item_inx-material = c_x.

inquiry_item_inx-short_text = c_x.

inquiry_item_inx-updateflag = c_u.

APPEND inquiry_item_inx.

CALL FUNCTION 'BAPI_CUSTOMERINQUIRY_CHANGE'

EXPORTING

salesdocument = salesdoc

inquiry_header_in = inquiry_header_in

inquiry_header_inx = inquiry_header_inx

TABLES

return = return

inquiry_item_in = inquiry_item_in

inquiry_item_inx = inquiry_item_inx.

Please advice.

Thanks.

jim

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 15, 2007 at 04:21 AM

    Solved

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.