Skip to Content
author's profile photo Former Member
Former Member

please help me..I am ABAP fresher

can anyone help on this:-

ZWSOABS contains only one field ABSTYP.

my selection screen is

PARAMETERS : S_MONTH LIKE VVIS_SOPTI-SMONTH, "month

S_BTRTL LIKE PA0001-BTRTL. "personal sub area number

i wnt to display these fields in rep output:-

1) <u><b>personal sub area text</b></u> to be displayed based on sel screen.

2)<u><b>no. of occurences</b></u>is total no. of absences in specific period. we get this from ZWSOABS-ABSTYP.

3)<u><b>no. of workers</b></u>

eg:-SELECT COUNT(*) INTO NO_OF_WORKERS

FROM PA0000 AS a inner join PA2001 as b on apernr = bpernr WHERE aENDDA = '99991231' AND aSTAT2 = '3'

4) <u><b>working days lost</b></u>

eg:- SELECT COUNT(*) INTO WORK_DAYS_LOST FROM PA2001

*WHERE ABWTG = P2001-ABWTG.

Can anyone tellme how to take these fields as in internal table and how to display exactly in the report output

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Oct 18, 2005 at 02:01 PM

    create an internal table having following structure.

    data : begin of itab occurs 0 ,

    personal_sub_area type String ,

    No_absences type i,

    no_workers type i,

    lost_working_days like i ,

    end of itab.

    Now assign the the value of the fields of itab like this

    itab-personal_sub_area = personal sub area text.

    itab-No_absences = NO_OF_WORKERS.

    -


    -


    .

    For displaying..

    at end-of-selection event..do this

    loop at itab.

    write : /itab-personal_sub_area itab-NO_OF_WORKERS -


    endloop

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      yes. i too declared exactly like the same.

      But i am little bit confused in getting arrange into the internal table and displaying.

      My internal table look like this:-

      DATA : BEGIN OF ITAB OCCURS 0,

      BTRTL LIKE PA0001-BTRTL,

      NO_OF_OCCURENCES TYPE I,

      NO_OF_WORKERS TYPE I,

      HRS_WORKED(20) TYPE C,

      ABWTG LIKE PA2001-ABWTG,

      END OF ITAB.

      Can one one send me the code for this??

      Your help would be definitely appreciated.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.