Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

CMD_EI_API=>MAINTAIN_BAPI - Additional Data A

sean_noel3
Explorer
0 Likes
5,406

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.

1 ACCEPTED SOLUTION
Read only

Former Member
2,955

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.
5 REPLIES 5
Read only

Former Member
2,956

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.
Read only

0 Likes
2,955

Thanks, that worked!

Read only

sean_noel3
Explorer
0 Likes
2,955

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

Read only

Former Member
0 Likes
2,955

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?

Read only

Former Member
0 Likes
2,955

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?