‎2017 Jun 07 2:48 PM
Hi All,
I have CMD_EI_API=>MAINTAIN_BAPI working in my function fine. It's creating customers with no issues using the standard internal kunnr supplied number.
What I need to do is use an external number range. Which I have, however, in order to create the customer using it the requirement is to set a new field KNA1 (in the Additional Data A screen) to a 1.
My question is this: Is it possible to use new KNA1 field (created by the Business) in the MAINTAIN_BAPI method?
If so, any ideas or examples on how to do this?
Thanks for reading this, hopefully some one has an idea.
‎2017 Jun 08 3:25 PM
Hi Sean,
If I understand your requirement, you want to extend an additional field(custom field) in KNA1 and use it to store your external number. This is possible, basically you append your custom field in KNA1 and also
CMDS_EI_VMD_CENTRAL_DATA and its relevant DATAX structure. And then set you value and pass to MAINTAIN_BAPI (you already have this)
Hope this helps you.
Regards,
Murali
ls_customers-central_data-central-data-zz_cust_seg = c_cust_seg.
ls_customers-central_data-central-datax-zz_cust_seg = lc_true.
‎2017 Jun 08 3:25 PM
Hi Sean,
If I understand your requirement, you want to extend an additional field(custom field) in KNA1 and use it to store your external number. This is possible, basically you append your custom field in KNA1 and also
CMDS_EI_VMD_CENTRAL_DATA and its relevant DATAX structure. And then set you value and pass to MAINTAIN_BAPI (you already have this)
Hope this helps you.
Regards,
Murali
ls_customers-central_data-central-data-zz_cust_seg = c_cust_seg.
ls_customers-central_data-central-datax-zz_cust_seg = lc_true.
‎2017 Jun 08 9:02 PM
‎2017 Jun 08 8:18 PM
So, just extend CMDS_EI_VMD_CENTRAL_DATA (and DATAX)with the zz* fields like we did with KNA1? There's no other "plumbing" that needs to be done. hmm. I'll give it a try!
I'll be back!
Thanks
‎2018 Apr 17 1:31 PM
we had created a custom structure [zsd_custom] with the custom fields and appended it in KNA1. Now to extend CMDS_EI_VMD_CENTRAL_DATA (and DATAX) structures with the same structure, it does not allow. Do i have to create a new append structure again for these tables to extend it?
‎2018 Apr 17 1:31 PM
we had created a custom structure [zsd_custom] with the custom fields and appended it in KNA1. Now to extend CMDS_EI_VMD_CENTRAL_DATA (and DATAX) structures with the same structure, it does not allow. Do i have to create a new append structure again for these tables to extend it?