Application Development 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: 

Regarding usage of BAPI 'BAPI_CUSTOMER_GETLIST'.

former_member182354
Contributor
0 Kudos

Hi abap Gurus,

I have an requirement where I have to fetch the address details of customer's using this BAPI 'BAPI_CUSTOMER_GETLIST' by passing IT_VBPA internal table to it and store the address in another Internal Table....

Can any one suggest me the code for this .

Its an urgent requirement ..

Byee

Argz

1 ACCEPTED SOLUTION

Former Member
0 Kudos

CALL FUNCTION 'BAPI_CUSTOMER_GETLIST'

destination receiver-rfc_dest

EXPORTING

  • MAXROWS = 0

CPDONLY = 'X'

  • IMPORTING

  • RETURN =

TABLES

idrange = idrange "#EC ENHOK

ADDRESSDATA = companydata "#EC ENHOK

  • SPECIALDATA =

Hope this will solve your probelm.

Assign reward points if it helps.

-Gaurang

2 REPLIES 2

Former Member
0 Kudos

CALL FUNCTION 'BAPI_CUSTOMER_GETLIST'

destination receiver-rfc_dest

EXPORTING

  • MAXROWS = 0

CPDONLY = 'X'

  • IMPORTING

  • RETURN =

TABLES

idrange = idrange "#EC ENHOK

ADDRESSDATA = companydata "#EC ENHOK

  • SPECIALDATA =

Hope this will solve your probelm.

Assign reward points if it helps.

-Gaurang

former_member181962
Active Contributor
0 Kudos

First you need to get the address number from VBFA table and get the address number ADRNR for the customer.

Then use the FM ADDR_GET_COMPLETE to get the complete address of the Customer.

Regards,

Ravi