09-08-2014 7:59 AM
Hi,
based on customer number and company code, i want to update the KNB1-ZTERM (payment terms). The change log must be updated, so i need a bapi.
Which bapi will do the job ?
gr
Hans
09-08-2014 9:20 AM
Hi,
You can use class CMD_EI_API. You can find in SDN how use it and put partameters.
To change KNB1-ZTERM You should use in method MAINTAIN_BAPI parameters:
MASTER_DATA->CUSTOMER->COMPANY_DATA->COMPANY (add line in table) and fields:
TASK = 'U' (Update)
DATA_KEY-BUKRS = (company code)
DATA-ZTERM = (payment terms)
DATAX-ZTERM = 'X'
Jarek
09-08-2014 9:20 AM
Hi,
You can use class CMD_EI_API. You can find in SDN how use it and put partameters.
To change KNB1-ZTERM You should use in method MAINTAIN_BAPI parameters:
MASTER_DATA->CUSTOMER->COMPANY_DATA->COMPANY (add line in table) and fields:
TASK = 'U' (Update)
DATA_KEY-BUKRS = (company code)
DATA-ZTERM = (payment terms)
DATAX-ZTERM = 'X'
Jarek
03-02-2022 9:35 AM
Hi
A BAPI to specifically update a customer's company code level data (KNB1 table data) is available. ZWT_CUSTOMER_UPDATE is the BAPI. This can update KNB1-ZTERM (payment terms) field also.
However, I am not sure that the change log will be updated with this option. You may have to test the FM in SE37 and check the result.
Regards,
Anil