12-15-2006 9:09 AM
Hi Friends,
Is the sequential files are called dynamically?
Suppose I have to fetch the records from LFA1 & KNA1 table.
I have put the radiobutton in selection screen.
If my user selects the LFA1 radiobutton it will only upload the LFA1 data to application server.
for this i have to write the logic
if p_lfa1 = 'X'.
perform opendataset.
perform dataselect_lfa1.
perform transfer.
perform closedataset.
elseif p_kna1 = 'X'.
perform opendataset.
perform dataselect_kna1.
perform transfer.
perform closedataset.
elseif p_both = 'X'.
perform opendataset.
perform dataselect_lfa1.
perform dataselect_kna1.
perform transfer.
perform closedataset.
endif.
But the problem is that whenever I select the lfa1 radiobutton it will also create the file in application server for kna1.
Anybody will pls suggest me what I can do??
12-15-2006 9:14 AM
HI Salil
The reason is, you are using common sub-routine for both LFA1 and KNA1 selection. Split the subroutines to identify...
Kind Regards
Eswar
12-15-2006 9:16 AM
12-15-2006 9:17 AM
hi Salil,
The subroutine name seems to be same for both
u can use
perform opendataset using p_file. " filename will be different her
perform transfer using it_lfa1. : itab will be different
12-15-2006 9:30 AM
Hi salil,
Please make opendataset also seperate subroutines.
I hope this subroutine contains both opendataset statements.
perform opendataset.
Regards
Bhupal Reddy