Application Development 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: 

BAPI to update standard customer tables

former_member184367
Active Participant
0 Kudos

Hi All,

I got requirement to update the following fields NAME1 NAME2 STRAS NAME3 ORT01 PSTLZ from standard tables ADRC, KNA1, MHNK, MHNKO, REGUH, SADR. Is their any BAPI available for the same.


Also please suggest me if there is any best solution available instead of modifying the tables using MODIFY statement.

Thanks,

Sneha

1 ACCEPTED SOLUTION

kcelikmih
Explorer
0 Kudos

Hi Sneha,

You would use these Bapi functions:

BAPI_CUSTOMER_CHANGEFROMDATA

BAPI_CUSTOMER_CHANGEFROMDATA1

regards,

Kadir

11 REPLIES 11

kcelikmih
Explorer
0 Kudos

Hi Sneha,

You would use these Bapi functions:

BAPI_CUSTOMER_CHANGEFROMDATA

BAPI_CUSTOMER_CHANGEFROMDATA1

regards,

Kadir

0 Kudos

Hi Kadir,

Thanks for your reply.

I also wanted to update some Z tables which are holding customer related information. Using above BAPI standard tables will be updated. So for updating the Z table I need to write some custom code.

Please suggest me is above approach correct.

Thanks

0 Kudos

Hi Sneha,

Yes, if customer related information update in Ztable then you need to write some custom code in your custom program .

Regards,

Nilesh Patel

0 Kudos

For Updating standard tables, SAP has given us BAPI's in case BAPI is not available alternate option in BDC.

For updating z tables you have to write custom code depend upon requirement.

-Regards,

Amol

0 Kudos

Hi Sneha,

For Updating any Standard, either you have to use above BAPI's as posted by

or you can modify the specifying all key fields.

and in case of Z-tables, you have to write a custom code in your program.

Regards,

Ashish Patil

former_member184367
Active Participant
0 Kudos

Hi all,

Using BAPI's mentioned by Kadir I can be able to update tables KNA1, ADRC. I need to update rest of the tables too which I have mentioned. Can you please provide me any other BAPI so that I can update all the tables.

Thanks,

Sneha

0 Kudos

Hi Sneha,

I would suggest you to go for modifying tables instead of using Multiple options for each tables you want to update.

As there are  BAPI to update KNA1, ADRC

BAPI_CUSTOMER_CHANGEFROMDATA

BAPI_CUSTOMER_CHANGEFROMDATA1.

and you want to update both Z tables too, so you can go for modify statement for each table you wish to update.

Regards,

Ashish Patil

0 Kudos

Hi Sneha,

Get the Address no first from different tables and use the FM ADDR_UPDATE. Refer to thread below:

Regards

Sandy

0 Kudos

Hi Sneha,

I would suggest you to go for modifying tables instead of using Multiple options for each tables you want to update.

As there are  BAPI to update KNA1, ADRC

BAPI_CUSTOMER_CHANGEFROMDATA

BAPI_CUSTOMER_CHANGEFROMDATA1.

and you want to update both Z tables too, so you can go for modify statement for each table you wish to update.

Regards,

Arif

former_member184367
Active Participant
0 Kudos

Hi All,

Does any BAPI's available to update MHNK, MHNKO, SADR, REGUH. Please suggest me.

Thanks

0 Kudos

Thanks to every one for their valuable post but My requirement is suppose I have 3 line item and I need to change on 2nd line item then what will be the approach that I want to know...