cancel
Showing results for 
Search instead for 
Did you mean: 

FM to add a prospective Customer to a Sales Org

Former Member
0 Kudos
79

Hi there,

I've written a program to automatically create BPs with the role "Prospective Customer" from an upload file.

I need to be able to assign these to a SALES ORG, so that they can be viewed in an org specific inbox using Web UI.

Does anyone know of a FM to assign a SALES ORG to a BP/customer.

I tried BAPI_BUPA_FRG0140_ADD which, although seems to be successful (sy-subrc = 0), is not correctly assigning the Sales Org.

Thanks,

David.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Pls check the below FM's

CRMM_BAPI_BUPA_FRG10_WP_ADD

CRMM_BAPI_BUPA_FRG10_WP_CHG

CRMM_BUPA_FRG0010_WP_ADD

CRMM_BUPA_FRG0010_WP_CHANGE

Regards,

Shobhit

Former Member
0 Kudos

Thanks,

I used this FM and it worked correctly:

CALL FUNCTION 'BAPI_BUPA_FRG0140_ADD'

EXPORTING

BUSINESSPARTNER = lv_BP

SALES_AREA = ls_sales_area

  • DATA =

TABLES

RETURN = lt_return

.

if sy-subrc = 0.

call function 'BAPI_TRANSACTION_COMMIT'

exporting

wait = 'X'.

endif.