‎2008 Mar 20 12:20 PM
Hello all,
I want to create customer By passing( T_CUST_HIER_IP - customer no, account group, company code, distribution channel, division, name1, search team, city, country).
using BAPI or function module I am using SD_CUSTOMER_MAINTAIN_ALL
LOOP AT T_CUST_HIER_IP INTO W_CUST_HIER_IP.
MOVE-CORRESPONDING W_CUST_HIER_IP TO W_KNA1.
MOVE-CORRESPONDING W_CUST_HIER_IP TO W_KNB1.
MOVE-CORRESPONDING W_CUST_HIER_IP TO W_KNVV.
CALL FUNCTION 'SD_CUSTOMER_MAINTAIN_ALL'
EXPORTING
I_KNA1 = W_KNA1
I_KNB1 = W_KNB1
I_KNVV = W_KNVV.
ENDLOOP
But it gives error SALES_AREA_NOT_VALID.
‎2008 Mar 20 12:30 PM
Hi,
Check in TVKO and TVTA master tables, for Sales Area (Sales OrganizationDistribution ChannelDivision) is vaild or not..
If no entreis availble , it will raise the exception SALES_AREA_NOT_VALID.
-somesh
reward points if it is helpful