Skip to Content
-1
Former Member
Jan 12, 2007 at 06:06 AM

BAPI_CUSTOMERINQUIRY_CHANGE not Working

72 Views

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