Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

Fieldcat Options

$
0
0

Hi All ;

 

I want to follow up monthly staff input and output clocks.When I select two dates,I want to see input output clocks

between two dates.The problem is that I can organize the fcat name but I have to list the input output clocks dynamically.

For ex. a staf name : Can Surname: SU Pers Number : 12001 . I want to input clocks between 18.05.2012 - 22.05.2012 .

(There are 3 entries between dates.)Now the ALV seems like below ;

SHC3.jpg

But it has to be like below ;

 

SHC2.jpg

The FCAT codes ;

 

BEGIN OF GT_DONEM OCCURS 0,

    BDATE like  ZHR_TABLO-BDATE,

    BTIME like  ZHR_TABLO-BTIME,

    CTIME like  ZHR_TABLO-CTIME,

  END OF GT_DONEM.

 

LOOP AT GT_DONEM.

     CHECK GT_DONEM-BDATE IS NOT INITIAL.

     CLEAR GS_FCAT.

   INTO GS_FCAT-REPTEXT.

     GS_FCAT-FIELDNAME = 'BTIME'.

     GS_FCAT-REF_FIELD = 'BTIME'.

     GS_FCAT-REF_TABLE = 'ZHR_TABLO'.

       CONCATENATE GT_DONEM-BDATE+6(2) '.'

                   GT_DONEM-BDATE+4(2) '.'

                   GT_DONEM-BDATE+0(4)

         INTO GS_FCAT-REPTEXT.

     GS_FCAT-COLTEXT = GS_FCAT-REPTEXT.

  APPEND GS_FCAT TO GT_FCAT.

ENDLOOP.


Im waiting for your answers.Thanks.


Regards.

Fırtına




Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>