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: 

sequential file problem

Former Member
0 Kudos

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??

4 REPLIES 4

Former Member
0 Kudos

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

Former Member
0 Kudos

have u maintained the group id for radio buttons.

send ur code.

Former Member
0 Kudos
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

Former Member
0 Kudos

Hi salil,

Please make opendataset also seperate subroutines.

I hope this subroutine contains both opendataset statements.

 perform opendataset.

Regards

Bhupal Reddy