Application Development and Automation 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: 
Read only

BAPI or FM for VAP1

Former Member
0 Likes
1,626

Does anyone know a BAPI or an FM which has the same functionality as VAP1?

Thx in advance!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
979

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

3 REPLIES 3
Read only

Former Member
0 Likes
979

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.

Read only

Former Member
0 Likes
980

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

Read only

Former Member
0 Likes
979

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