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

Regarding usage of BAPI 'BAPI_CUSTOMER_GETLIST'.

former_member182354
Contributor
0 Likes
771

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
Read only

Former Member
0 Likes
638

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

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

2 REPLIES 2
Read only

Former Member
0 Likes
639

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

Read only

Former Member
0 Likes
638

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