Application Development 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: 

Regarding SD_CUSTOMER_MAINTAIN_ALL

0 Kudos

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

5 REPLIES 5

Former Member
0 Kudos

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:

FU BAPI_CUSTOMER_CREATE

____________________________________________________

Short Text

Create Customer Master Online

Functionality

With this method, you can create or extend a customer.

0 Kudos

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

raymond_giuseppi
Active Contributor
0 Kudos

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

0 Kudos

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

Almost 7 years back story sorry I don't remember what I did.