2019 Oct 21 2:47 PM
Hi experts,
I have to update a dynamic set of custom fields of a standard table- qmel. I am using bapi_qualnot_create/change in which the parameters doesn't have all the fields of qmel table. So I have to update the custom fields of qmel dynamically as when the value is available. I would be getting the values in idoc with structure tabname, fieldname and value which would be repeating.
Any suggestions on the best way to dynamically update these fields ??
Also can I update field by field in a loop and do commit work outside the loop?
2019 Oct 21 3:00 PM
The best practice is to use "BAPI extension". Below are the link for the same.
https://blogs.sap.com/2014/06/24/bapi-extension-for-customer-added-fields/
Thanks,
Gourab
2019 Oct 21 3:24 PM
Hi Gaurav,
This is the scenario where the BAPI has the provision of extension parameters. In my case, I do not have such.
Also, the BAPI doesn't have the exact structure as the db table.
Thanks and regards
Aditya
2019 Oct 21 4:52 PM
2019 Oct 21 6:27 PM
2019 Oct 21 7:39 PM
Just want to give idea. In past I have done it for one of the BAPI. I am assuming the custom fields are added in header table in the notification. So, you can proceeds as below:
This scenario I mentioned for custom fields in header table. If you have custom fields in item table as well, then check for similar opportunity for enhance. It may work. Done similarly for one of the BAPI in past and it worked.
Thanks,
Gourab