cancel
Showing results for 
Search instead for 
Did you mean: 

smart form help

Former Member
0 Kudos

hai..

my internal table looks like this:

DATA: BEGIN OF CAPACITYTAB occurs 0,

ARBPL like CRHD-ARBPL, "Work Centre

AUFNR LIKE AUFK-AUFNR, "SO #

KTEXT LIKE AUFK-KTEXT, "SO Description

VORNR LIKE AFVC-VORNR, "Operation No.

FSAVD LIKE AFVV-FSAVD, "Operation Start

LTXA1 LIKE AFVC-LTXA1, "Operation Description

ANZZL LIKE AFVC-ANZZL, "Staff

DAUNO LIKE AFVV-DAUNO, "Duration

TPLNR LIKE VAFILOA-TPLNR, "Functional Location

USR04 LIKE AFVU-USR04, "Start Km

END OF CAPACITYTAB.

DATA: CAPACITYTAB1 LIKE CAPACITYTAB OCCURS 0 WITH HEADER LINE.

CAPACITYTAB2 LIKE CAPACITYTAB OCCURS 0 WITH HEADER LINE,

CAPACITYTAB3 LIKE CAPACITYTAB OCCURS 0 WITH HEADER LINE.

tables used are: AFIH, AUFK, AFVGD,

CAUFVD,

TFDIR,

AFKO, AFVV, AFVC, AFVU,ILOA,CRHD,JEST.

NOW , I WANT TO DISPLAY THE 3 TABLES CAPACITY1, CAPACITY2, CAPACITY 3 in three different tables...kindly suggest how to give the respective fields in the smartform in ( FORM INTERFACE AND GLOBAL DEFINITIONS)

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

form interface

capacity1 type -


(choose tabletype for capacityitab)

capacity2 type the same table type

...

Do you want to dispaly the entire table data or just some fields ? If so, where is it within the main window, or the header ?

Regards

Santhosh

Former Member
0 Kudos

i want to display all the fields of this table..

Former Member
0 Kudos

hi Hari,

After creating the structure 'ZCAPACITY'

Form interface under tables option

<b>capacityitab like zcapacity</b>

Global defintions

  • declare the work area

wa_capacityitab type zcapacity

Under the Main Window node

where you have created and designed the table node -click on it - Go to the 'Data' options

enter the 'LOOP'

CAPACITYITAB INTO WA_CAPACITYITAB.

I hope it helps. If the problem is solved reward the points and close the thread.

Santhosh

Former Member
0 Kudos

Hi,

The best way to do this is to create a structure "ZCAPACITY" in SE11 like the structure of your internal table then in the smartforms, you just have to declare both in the Interface screen and globale screen:

capacitytab1 like zcapacity

capacitytab2 like zcapacity

capacitytab3 like zcapacity

Regards,

Erwan.

Message was edited by: Erwan LE BRUN