02-25-2015 4:12 PM
Hi ABAPers,
I am trying to create new customer or extend customer to one more sales area and using function module SD_CUSTOMER_MAINTAIN_ALL in my Z program, i am seeing it is deleting the International version address, debugged the program and seen there is a subroutine in the function module code where delete code was written, it suprises why it is deleting but can anyone help me how to aviod deleteing the international version address in customer master using the above function module or is there any alternative solution for this to aviod deleting international version.
Regards
Venkat
02-25-2015 9:46 PM
Hey Venkat
I have had trouble before using the SD_* functions as they are not meant for customer use.
Have you considered using the BAPI's available instead?
BAPI_CUSTOMER_CHECKPASSWORD1 Check customer password
BAPI_CUSTOMER_CREATE Create Customer Master Online
BAPI_CUSTOMER_DELETE Delete Customer Master Online
BAPI_CUSTOMER_DISPLAY Display Customer Master Online
BAPI_CUSTOMER_EDIT Change Customer Master Online
BAPI_CUSTOMER_EXISTENCECHECK Check Customer Existence
BAPI_CUSTOMER_FIND Customer Matchcode
BAPI_CUSTOMER_GETCONTACTLIST Read contact persons from customers
BAPI_CUSTOMER_GETDETAIL2 Customer Detail Information
BAPI_CUSTOMER_GETINTNUMBER Provides Internal Customer Numbers
BAPI_CUSTOMER_GETLIST Reads customers and addresses
BAPI_CUSTOMER_CREATE Help doc:
Create Customer Master Online
With this method, you can create or extend a customer.
02-25-2015 9:55 PM
Hi Brad,
To the current function module i am passing the info as shown below -
CALL FUNCTION 'SD_CUSTOMER_MAINTAIN_ALL'
EXPORTING
i_kna1 = i_kna1
i_knb1 = i_knb1
i_knvv = i_knvv
i_bapiaddr1 = companydata
i_force_external_number_range = change_customer
IMPORTING
e_kunnr = e_kunnr
o_kna1 = o_kna1
TABLES
t_xknb5 = t_xknb5
t_xknvi = t_xknvi
t_xknas = t_xknas
t_xknvp = t_xknvp
t_yknas = t_yknas
But if see the the BAPI BAPI_CUSTOMER_CREATE there no much imports to pass. Above one is being used since years and any changes will be critical so i am in search of exact BAPI which will not delete the International Version address.
Regards
Venkat
02-26-2015 8:11 AM
There are restrictions on those FM (and the associated BAPI) - read 1826993 - Function SD_CUSTOMER_MAINTAIN_ALL behaviour for more information.
Could you consider either
Regards,
Raymond
06-10-2022 7:50 AM
Hi Venkat Reddy,
did you find a solution with the FM SD_CUSTOMER_MAINTAIN_ALL? or did you solve it with other FM/BAPI?
Thanks Dmitry
06-10-2022 4:18 PM