Skip to Content
0
Former Member
Oct 20, 2005 at 09:23 AM

doubt in program logic

26 Views

my internal table is:-

DATA : BEGIN OF TBL_FINAL OCCURS 0,

BTEXT TYPE T001P-BTEXT,

NO_OF_OCC(4) TYPE C,

NO_OF_WORKERS TYPE I,

HRS_WORKED TYPE P DECIMALS 2,

WORK_DAYS_LOST TYPE I,

INC_RATE TYPE P DECIMALS 2,

INC_ROLL TYPE P DECIMALS 2,

FREQ_RATE TYPE P DECIMALS 2,

FREQ_ROLL TYPE P DECIMALS 2,

TIME_LOST TYPE P DECIMALS 2,

TIME_ROLL TYPE P DECIMALS 2,

END OF TBL_FINAL.

my selection screen is:-

PARAMETERS : S_BEGDA LIKE PA2001-BEGDA OBLIGATORY,

S_ENDDA LIKE PA2001-ENDDA OBLIGATORY.

SELECT-OPTIONS : S_BTRTL FOR PA0001-BTRTL OBLIGATORY.

i want to calculate btext, no. of workers and work days lost and display in the report output.

can anyone help on this?

a)btext is in t001p

b)SELECT COUNT(*) INTO NO_OF_WORKERS FROM PA0000

*WHERE ENDDA = '99991231' AND STAT2 = '3'.

c)SELECT COUNT(*) INTO WORK_DAYS_LOST FROM PA2001

*WHERE ABWTG = P2001-ABWTG.

i want to disply as in internal table based on selection screen.

Please help on this

<b>Your help would be appreciated.</b>

<b></b>