Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3363

Change customer and partner . Doubt.

$
0
0

Hi experts

i want to know how should i  fill  SD_CUSTOMER_MAINTAIN_ALL parameters to change a adress data customer.

this is the correctr way ?

 

CLEAR: lv_kunnr,

          lv_id,

          lv_message.

 

   w_kna1-kunnr = kunnr.

*  w_knb1-kunnr = kunnr.

 

   ls_fkans-kunnr = kunnr.

   ls_fkans-mandt = sy-mandt.

   ls_fkans-land1 = w_kna1-land1.

   ls_fkans-kz    = 'U'.

   APPEND ls_fkans TO tfknas.

 

   CALL FUNCTION 'SD_CUSTOMER_MAINTAIN_ALL'

     EXPORTING

       i_kna1                     = w_kna1

*     i_knb1                     = w_knb1

*     i_knvv                     = w_knvv

       i_bapiaddr1                = w_addr1

       i_maintain_address_by_kna1 = 'X'

       pi_postflag                = 'X'

*     pi_cam_changed             = 'X'

     IMPORTING

       e_kunnr                    = kunnr

     TABLES

       t_xknas                    = tfknas

     EXCEPTIONS

       client_error               = 1

       kna1_incomplete            = 2

       knb1_incomplete            = 3

       knb5_incomplete            = 4

       knvv_incomplete            = 5

       kunnr_not_unique           = 6

       sales_area_not_unique      = 7

       sales_area_not_valid       = 8

       insert_update_conflict     = 9

       number_assignment_error    = 10

       number_not_in_range        = 11

       number_range_not_extern    = 12

       number_range_not_intern    = 13

       account_group_not_valid    = 14

       parnr_invalid              = 15

       bank_address_invalid       = 16

       tax_data_not_valid         = 17

       no_authority               = 18

       company_code_not_unique    = 19

       dunning_data_not_valid     = 20

       knb1_reference_invalid     = 21

       cam_error                  = 22

       OTHERS                     = 23.



how i fill the BUPA_ADDRESS_CHANGE to partner?



Thanks


I searched about it but nothing worked.


Viewing all articles
Browse latest Browse all 3363

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>