12-15-2006 5:00 AM
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
12-15-2006 5:19 AM
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
12-15-2006 6:08 AM
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