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

How to create customer By using SD_CUSTOMER_MAINTAIN_ALL function module

Former Member
0 Likes
780

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.

1 REPLY 1
Read only

Former Member
0 Likes
409

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