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

BAPI for customer Block/Unblock through transaction code : XD05

Former Member
0 Likes
3,264

Hi Gurus,

I want to block/unblock customer sales areas(Transaction code : XD05) through program. Could you please suggest any BAPI for the same. As writing BDC will not be a good choice.

Please help.

Thanks,

Bhupender

1 ACCEPTED SOLUTION
Read only

venkatesan_nagiah
Active Participant
0 Likes
1,311

Hi,

You can use FM CUSTOMER_UPDATE.

You can pass values of block status in KNA1 structure:

AUFSD AUFSD_X CHAR 2 0 Central order block for customer

FAKSD FAKSD_X CHAR 2 0 Central billing block for customer

LIFSD LIFSD_X CHAR 2 0 Central delivery block for the customer

SPERR SPERB_X CHAR 1 0 Central posting block

SPERZ SPERZ CHAR 1 0 Payment Block

CASSD CASSD_X CHAR 2 0 Central sales block for customer

NODEL NODEL_X CHAR 1 0 Central deletion block for master record

2 REPLIES 2
Read only

venkatesan_nagiah
Active Participant
0 Likes
1,312

Hi,

You can use FM CUSTOMER_UPDATE.

You can pass values of block status in KNA1 structure:

AUFSD AUFSD_X CHAR 2 0 Central order block for customer

FAKSD FAKSD_X CHAR 2 0 Central billing block for customer

LIFSD LIFSD_X CHAR 2 0 Central delivery block for the customer

SPERR SPERB_X CHAR 1 0 Central posting block

SPERZ SPERZ CHAR 1 0 Payment Block

CASSD CASSD_X CHAR 2 0 Central sales block for customer

NODEL NODEL_X CHAR 1 0 Central deletion block for master record

Read only

0 Likes
1,311

Hi Venkatesan Nagiah,

Thanks for help, this FM is working.

I have one more question related to this, i need to modify data for huge number of customers.

Should i loop the internal table and call this FM inside that loop for each customer and pass data to this FM through structure.

or can i pass the data only once to this FM using any tables? but i could not find any suitable table for this or shd i call this FM "IN UPDATE TASK'

What will be better option. Please suggest.

Thanks a lot for help.