‎2008 Apr 22 12:40 PM
Does anyone know a BAPI or an FM which has the same functionality as VAP1?
Thx in advance!
‎2008 Apr 22 12:51 PM
Hi,
See the BAPI BAPI_CUSTOMER_CHANGEFROMDATA1 / BAPI_CUSTOMER_CHANGEFROMDATA.
You can pass Contact Information of a customer there.
and
Function Module SD_CUSTOMER_MAINTAIN_ALL .
For that you may need to pass
POSTFLAG = 'X'.
CALL FUNCTION 'SD_CUSTOMER_MAINTAIN_ALL'
EXPORTING
I_KNA1 = I_KNA1
PI_POSTFLAG = POSTFLAG
TABLES
T_XKNVK = T_XKNVK
T_XKNVP = T_XKNVP
T_YKNVK = T_YKNVK
T_YKNVP = T_YKNVP
Regards
Kiran Sure
‎2008 Apr 22 12:48 PM
Hi,
You can use following BAPI to create contact person
BAPI_BUPA_CREATE_FROM_DATA
CALL FUNCTION 'BAPI_BUPR_CONTP_CHANGE'
EXPORTING
BUSINESSPARTNER = number
CONTACTPERSON = contact_number
VALIDFROMDATE = '00010101'
VALIDUNTILDATE = '99991231'
CENTRALDATA = central_data_relation
CENTRALDATA_X = central_data_relation_x
TABLES
RETURN = return_relation
.
IF sy-subrc 0.
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
ELSE.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
ENDIF.[/code]https://forums.sdn.sap.com/
to insert data:
The BAPI to use is BAPI_BUPR_CONTP_CREATE
Regards,
shiva.
‎2008 Apr 22 12:51 PM
Hi,
See the BAPI BAPI_CUSTOMER_CHANGEFROMDATA1 / BAPI_CUSTOMER_CHANGEFROMDATA.
You can pass Contact Information of a customer there.
and
Function Module SD_CUSTOMER_MAINTAIN_ALL .
For that you may need to pass
POSTFLAG = 'X'.
CALL FUNCTION 'SD_CUSTOMER_MAINTAIN_ALL'
EXPORTING
I_KNA1 = I_KNA1
PI_POSTFLAG = POSTFLAG
TABLES
T_XKNVK = T_XKNVK
T_XKNVP = T_XKNVP
T_YKNVK = T_YKNVK
T_YKNVP = T_YKNVP
Regards
Kiran Sure
‎2008 Apr 22 12:51 PM
hi,
look into these, it may help u
CUSTOMER_CREATE_EX_VENDOR
CUSTOMER_CREATE_EX_VENDOR_check.
i think these function module relate customer creation
regards,
chandu