‎2007 Jul 30 1:16 PM
Hi!
A current internal table has some values (Tranportation Nr.) The requirement
is now to give any user a possiblibilty via dialog to do the following:
1.) show him which Tranportation Nr. are available (depending
on internal table's content. Filling dynamically)
2.) to give him the possiblity to select single Tranportation Nr or a range
Regards
Ilhan
‎2007 Jul 30 1:24 PM
Hi IIhan,
use table control in dialog programing to show the selcted value from int table.
u can switch on multiple selected lines to give user the flexibility to select multiple lines on screen.
Regards
Krishnendu
‎2007 Jul 30 1:24 PM
Hi IIhan,
use table control in dialog programing to show the selcted value from int table.
u can switch on multiple selected lines to give user the flexibility to select multiple lines on screen.
Regards
Krishnendu
‎2007 Jul 30 1:27 PM
hello,
thank you for this hint do youe have an example or a sniplet
for a such small requirement ?
reagards
ilhan
‎2007 Jul 30 1:32 PM
Hi,
see this example.
it will get the purchasing orders corresponding the the vendor numbers u entered in the first screen
PROGRAM ZBHTCTRL.
TABLES: LFA1, EKKO.
DATA: OKCODE1 LIKE SY-UCOMM,
OKCODE2 LIKE SY-UCOMM.
CONTROLS TABC TYPE TABLEVIEW USING SCREEN 1001.
DATA: BEGIN OF ITAB OCCURS 0,
MANDT LIKE EKKO-MANDT,
EBELN LIKE EKKO-EBELN,
BSTYP LIKE EKKO-BSTYP,
BSART LIKE EKKO-BSART,
END OF ITAB.
MODULE USER_COMMAND_1000 INPUT.
CASE OKCODE1.
WHEN 'BACK'.
SET SCREEN 0.
WHEN 'NEXT'.
SET SCREEN 1001.
SELECT * FROM EKKO INTO CORRESPONDING FIELDS OF TABLE ITAB WHERE
LIFNR = LFA1-LIFNR.
ENDCASE.
ENDMODULE. " USER_COMMAND_1001 INPUT
MODULE MOVE_DATA OUTPUT.
EKKO-MANDT = ITAB-MANDT.
EKKO-EBELN = ITAB-EBELN.
EKKO-BSTYP = ITAB-BSTYP.
EKKO-BSART = ITAB-BSART.
ENDMODULE. " MOVE_DATA OUTPUT
MODULE USER_COMMAND_1001 INPUT.
CASE OKCODE2.
WHEN 'BACK'.
SET SCREEN 1000.
ENDCASE.
ENDMODULE. " USER_COMMAND_1001 OUTPUT
MODULE STATUS_1001 OUTPUT.
SET PF-STATUS 'MENU'.
SET TITLEBAR 'TIT'.
ENDMODULE. " STATUS_1001 OUTPUT
MODULE STATUS_1000 OUTPUT.
SET PF-STATUS 'DMENU'.
SET TITLEBAR 'xxx'.
ENDMODULE. " STATUS_1000 OUTPUT
<b>reward if helpful</b>
rgds,
bharat.
‎2007 Jul 30 1:33 PM
hi llhan
just refer to the link below
http://www.sapmaterial.com/tablecontrol_sap.html
<b>step by step procedure with screen shots</b>
regards
vijay
<b>plz dont forget to reward points if helpful</b>