I am using this FM to insert partner functions after the creation of a customer. What are the required parameters for this.
below is the code i am using where KZ in the x_knvp is 'I'. It tries to update sometimes. But some times if there is an error it send to the user inbox even though sy-subrc = 0. Is there any way i can check if its a valid kunn2 for the customer.
thanks in advance.
EDA
CALL FUNCTION 'SD_CUSTOMER_MAINTAIN_ALL'
EXPORTING
PI_POSTFLAG = 'X'
IMPORTING
E_SD_CUST_1321_DONE = y_txt
TABLES
T_XKNVP = xknvp_tab
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.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.