‎2009 Apr 23 1:37 PM
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
‎2009 Apr 24 1:07 PM
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
‎2009 Apr 24 1:07 PM
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
‎2009 Apr 24 1:29 PM
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.