Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Report Issue - Remove Work Hrs. link to Shft Hours

Hi,

I have a Equipment Log Report, where in output it show the Equipment details with Account assignment category, General settlement receiver, Shift Hours, Work Hours, Idle Hrs, Maint. Hrs., Production Hours etc...

There is a condition in report that when we insert Shift Hrs. 24, it tell about insert Work Hrs. We have to insert hrs. in Work Hrs. column.

Now due to some problem, we want that after shift hrs., not necessary to fill the Work Hrs. (means Shift hours should not depend on Work Hrs.) - If Idle hrs. count 24 Hrs, then no need to maintain Work Hrs.

Please check my code...and suggest...

************************************************************

CASE ts_screen-work1. " Work Hours 1

WHEN space.

IF ts_screen-work2 IS NOT INITIAL " Work Hours 2

OR ts_screen-work3 IS NOT INITIAL " Work Hours 3

OR ts_screen-work4 IS NOT INITIAL " Work Hours 4

OR ts_screen-konty1 IS NOT INITIAL " Account assignment category

OR ts_screen-empge1 IS NOT INITIAL. " General settlement receiver

MESSAGE text-a02 TYPE 'E'.

ENDIF.

WHEN OTHERS.

IF ( ts_screen-konty1 = space OR

ts_screen-empge1 = space ).

MESSAGE text-a01 TYPE 'E'.

ENDIF.

ENDCASE.

Former Member
Not what you were looking for? View more on this topic or Ask a question