2013 Nov 14 6:25 AM
Sir,
Function module was created, for all the dealers which are created in the sap, will store at ztable and thoose will be pushed to legacy systems
when ever the interface was executed.
The system will check for the incremental logic ( unique dealers will pushed) to the legacy systems.
sir on this function module ( dealer with type CVIS_CUSTOMER_T) was taken as a import parameter.
and this code was written as source code.
LOOP AT dealer INTO lw_dealer_in.
CLEAR: lw_r_kunnr.
lw_r_kunnr-sign = 'I'.
lw_r_kunnr-option = 'EQ'.
lw_r_kunnr-low = lw_dealer_in.
APPEND lw_r_kunnr TO lt_r_kunnr.
END LOOP.
here in this scenario on import parameter he is getting data in to dealer parameter,
and using in the loop condition for passing the data into work area.
and again he is passing this range table in to select condition to get the dealers which was between intervals of interface.
can u please explain me, how this import parameter is getting data when ever a new dealer is inserted into sap ( dealer master t-code).
Thank u.
Regards.
2013 Nov 14 6:46 AM
Hi Satish,
If you know the name of the Function Module - do a 'Where Used' on it. In all probability there would be a standard SAP program for dealer creation and this FM would be plugged some where there. Also this would be called post 'Save' event and if you want to see the actual data flow, activate system & update debugging and do a step by step debug.
Also i saw an error in code snippet,
LOOP AT dealer INTO lw_dealer_in.
CLEAR: lw_r_kunnr.
lw_r_kunnr-sign = 'I'.
lw_r_kunnr-option = 'EQ'.
lw_r_kunnr-low = lw_dealer_in-<mention field name>.
APPEND lw_r_kunnr TO lt_r_kunnr.
END LOOP.
BR.