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: 

CHanges to be made in BAPI_CUSTOMER_GETDETAIL1

Former Member
0 Kudos

Hi,

I have figured out the standard BAPI to export the customer details , but I have to use only the date as the import paramter instead of the standard one. Hence can any tell how to change the source code if the input parameter will be only date

regards,

shyam

2 REPLIES 2

uwe_schieferstein
Active Contributor
0 Kudos

Hello Peri

I do not fully understand how you want to select customers using a single date (date of creation?, date of last change?) but in any case I you are thinking about modify a standard BAPI do not do that. Instead create your own RFC-enabled function module having the required IMPORTING and EXPORTING parameters. Select the data for the standard BAPI using these IMPORTING parameters and then call the BAPI to retrieve the customer details. E.g.:

FUNCTION Z_GET_CUSTOMER_DETAIL.

* (1) Select customer numbers and distribution areas based on the IMPORTING parameters of this function module

* (2) Loop over the selected data and retrieve the customer details
  LOOP AT itab INTO ls_line.

    CALL FUNCTION 'BAPI_CUSTOMER_GETDETAIL1'
      EXPORTING
        customerno = ls_line-customerno
        pi_salesorg  = ls_line-salesorg
       ...
  
  ENDLOOP.

ENDFUNCTION.

Regards

Uwe

0 Kudos

Hi,

I mean that I have to take the date as the import parameter and fetch the customer details by taking the last modified date

so do I need to create a function module in se37 and call the mentioned BAPI in that

shyam