Application Development and Automation 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: 
Read only

user interaction

Former Member
0 Likes
627

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
602

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

4 REPLIES 4
Read only

Former Member
0 Likes
603

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

Read only

Former Member
0 Likes
602

hello,

thank you for this hint do youe have an example or a sniplet

for a such small requirement ?

reagards

ilhan

Read only

Former Member
0 Likes
602

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.

Read only

Vijay
Active Contributor
0 Likes
602

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>