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

How to update z-fields in customer master using BAPI

Former Member
0 Likes
1,829

Hi,

I have some z-fields in customer master table (KNA1).

I want to update these fields using BAPI

Please help

Regards

Hi,

I have some z-fields in customer master table (KNA1).

I want to update these fields using BAPI

Please help

Regards

5 REPLIES 5
Read only

Former Member
0 Likes
1,176

check this one.

BAPI_CUSTOMER_CREATEFROMDATA1

Read only

0 Likes
1,176

But my question is how to update the z-fields using this or some other BAPI

Read only

0 Likes
1,176

Use the field EXTENSIONIN, it has been discussed many times in the forum

Read only

0 Likes
1,176

There is no EXTENSIONIN in BAPI_CUSTOMER_CREATEFROMDATA1.

Read only

0 Likes
1,176

Aaaah, sorry!

I have found that this BAPI should only be used in some given applications (Note 390045 - Usage of BAPI_CUSTOMER_* of function group V02D)

You should use Idoc (DEBMAS if I remember well, you may have to extend it and implement CMOD user exits) or batch input instead.

Another solution: you may do a direct update using UPDATE KNA1 SET zzfield = ... WHERE ... as it clearly states that you don't change any standard field. For insertions, you may look for some user exits which are called at save time, and do the update right after the insertion by SAP (you may do that only if you know exactly how update tasks work, and when you may call your own Z update function module).