Skip to Content
0
Former Member
Mar 29, 2007 at 07:52 AM

problem with tabstrip control

24 Views

Hey,

I am using two buttons in tabstrip control. Onse is for customers and another for sales. I am using two subscreens to display. Customer works fine. I am using table control for sales. But when i click Sales its not showing any ouput for particular customer number. Its showing customer details for that customer number when i click Customer. All the problem is with Sales. I am posting code. Can i know Where the problem lies in the code.

REPORT ZBPTABCONTROL.

tables: kna1,vbak.

data: begin of itab occurs 1,

land1 type land1,

name1 type name1,

end of itab,

begin of jtab occurs 1000,

vbeln type vbeln,

erdat type erdat,

netwr type netwr,

end of jtab.

controls: VCONTROL type tableview using screen '120'.

controls: STRIP type tabstrip .

&----


*& Module USER_COMMAND_0100 INPUT

&----


  • text

----


MODULE USER_COMMAND_0100 INPUT.

case sy-ucomm.

when 'DISP'.

select land1 name1 from kna1 into itab where kunnr = kna1-kunnr.

append itab.

endselect.

when 'SALES'.

select vbeln erdat netwr from vbak into jtab where kunnr = kna1-kunnr.

append jtab.

endselect.

when 'EXIT'.

LEAVE PROGRAM.

endcase.

ENDMODULE. " USER_COMMAND_0100 INPUT

&----


*& Module STATUS_0120 OUTPUT

&----


  • text

----


MODULE STATUS_0120 OUTPUT.

  • SET PF-STATUS 'xxxxxxxx'.

  • SET TITLEBAR 'xxx'.

MOVE-CORRESPONDING jtab to vbak.

ENDMODULE. " STATUS_0120 OUTPUT

&----


*& Module STATUS_0110 OUTPUT

&----


  • text

----


MODULE STATUS_0110 OUTPUT.

  • SET PF-STATUS 'xxxxxxxx'.

  • SET TITLEBAR 'xxx'.

move-corresponding itab to kna1.

The code in the subscreen is

PROCESS BEFORE OUTPUT.

loop at jtab with control vcontrol .cursor vcontrol-current_line.

MODULE STATUS_0120.

endloop.

*

PROCESS AFTER INPUT.

loop at jtab.

endloop.

MODULE USER_COMMAND_0120.

Thanks in advance