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

Update customer's tax code?

former_member194142
Participant
0 Likes
2,627

Hello

My requirement is to update the tax jurisdiction code (TXJCD / ADRC - TAXJURCODE) of a existing customer, I didn't find any FM / BAPI / API because we want to go w/ BDC as a last option

Thank you

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,077

Hi,

Try with BAPI   BAPI_CUSTOMER_CHANGEFROMDATA1 to update tax Jur Code of existing customer.

Thanks,

Kishor.

10 REPLIES 10
Read only

Former Member
0 Likes
2,078

Hi,

Try with BAPI   BAPI_CUSTOMER_CHANGEFROMDATA1 to update tax Jur Code of existing customer.

Thanks,

Kishor.

Read only

0 Likes
2,077

Thank you.

Yes, I saw already this BAPI, but when I checked its description its saying as


"Only for ONLINE Store!!! Check Personal Data of a Customer"

Pls. let me know still is it OK to use it for a ECC requirement?

Regards

Read only

0 Likes
2,077

I think you can still use this BAPI for your customer Master change. This should be fine.

Thanks,

Kishor.

Read only

0 Likes
2,077

OK, I will start building my code.......btwn.......wait for inputs from any other experts

Thank you

Read only

ThangaPrakash
Active Contributor
0 Likes
2,077

You can use the function module "SD_CUSTOMER_MAINTAIN_ALL" and "BAPI_CUSTOMER_CHANGEFROMDATA" also for your requirements.

Regards,

Thanga

Read only

ThangaPrakash
Active Contributor
0 Likes
2,077

If you check all the relevant BAPI's use function module "SD_CUSTOMER_MAINTAIN_ALL" inside thier logic to update the customer master. it is good to use the function module "SD_CUSTOMER_MAINTAIN_ALL" directly to update.

It will reduce your run-time of your report if you directly use function module SD_CUSTOMER_MAINTAIN_ALL

Regards,

Thanga

Read only

0 Likes
2,077

Basically the FM SD_CUSTOMER_MAINTAIN_ALL will internally being called , if you are using BAPI_CUSTOMER_CHANGEFROMDATA or BAPI_CUSTOMER_CHANGEFROMDATA1.

May be the run time of the execution may be reduced using the FM.

Thanks,

Kishor.

Read only

0 Likes
2,077

Hello Kishor,

The runtime will be reduced only when you call the FM "SD_CUSTOMER_MAINTAIN_ALL".

Let me explain you, FM "SD_CUSTOMER_MAINTAIN_ALL" is called internally inside BAPI "BAPI_CUSTOMER_CHANGEFROMDATA". at line number 160.

If you use BAPI it will excute this 160 lines of waste and then the function module is called.

If you use the function module, you don't need to execute 160 lines and obviously it reduces our runtime.

Please let me know, are you okay with my explanation, still having some doubt ?

Regards,

Thanga

Read only

0 Likes
2,077

Agreed, but the FM SD_CUSTOMER_MAINTAIN_ALL is not released for customers (if I don't have any other FM/BAPI I would hv go with this), but we hv a wrapper BAPI as BAPI_CUSTOMER_CHANGEFROMDATA, hence even though runtime more (I guess, it gonna be couple of seconds for one turn/execution) I personally prefer using BAPI bcz of its RELEASED status

Thank you all

Read only

0 Likes
2,077

Okay, in that case you can go for BAPI