Skip to Content
0
Former Member
Dec 06, 2006 at 07:05 PM

tables in Subroutines

31 Views

Hi

SAP Gurus

I have the following code

data: alv_dat like zvbpa occurs 0 with header line.

-


-


code---

start-of-selection.

perform process_ord.

end-of-selection.

describe table ALV_DAT lines g_anzlines.

&----


*& form process_ord

&----


  • text

----


form process_ord.

perform cal_no_of_orders tables ALV_DAT "no data here in ALV_dat

using erdat1 erdat2

changing gv_count0 gv_netwr0.

&----


*& Form cal_no_of_orders

&----


  • text

----


  • -->P_ALV_dat text

  • -->P_ERDAT1 text

  • -->P_ERDAT2 text

  • <--P_KUNNR text

  • <--P_GV_COUNT text

  • <--P_GV_NETWR text

  • <--P_GV_NAME1 text

----


form cal_no_of_orders tables av_tab

using p_erdat1

p_erdat2

changing p_gv_count

p_gv_netwr.

loop at zvbpa.

move-corresponding zvbpa to alv_tab. "there is data here in alv_tab

append alv_tab.

clear alv_tab.

endloop.

I have data in alv_tab but after the perform there is no data inthe ALV_DAT

please suggest

thanks