Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALV GRID

Former Member
0 Likes
800

Hello All,

How can we create an ALV Grid for the display of days wrt to the month and year.

Sample:

calendar days

Employee Num Particulars 1 2 3 4 5 …………………31

Employee name shifts

please help me to solve this problem.

Thanks & Regards,

SAP HR- ABAP

Hello All,

How can we create an ALV Grid for the display of days wrt to the month and year.

Sample:

calendar days

Employee Num Particulars 1 2 3 4 5 …………………31

Employee name shifts

please help me to solve this problem.

Thanks & Regards,

SAP HR- ABAP

6 REPLIES 6
Read only

Former Member
0 Likes
776

Hi pooja,,,

Seems new to ABAP line. Well Welcome to the ABAP Worlds.

you want to display the record or want to take the data from yours

1. if you want to display the record

simply create internal table as the table from where u r picking the data and make necessary fld and siaplay in ALV.

2. User entry.

if you want entry screen againest the de employee then use the table controls compare to ALV . you can also take the data in ALV but it difficult to handle these with ALV.

if you have any other problem .let me know.

Regards

Swati..

Read only

0 Likes
776

Hi Anuj,

Actually i want to display the o/p in ALV list .But i am unable to create field catalog as per our requirement and moreover i m not able to attach my desired o/p file in forum.

CAn you please give me ur id so that i can explain you my problem clearly.

Thanks & Regards,

Pooja.

Read only

Former Member
0 Likes
776

hi pooja,

may be i can help u little more .

tell me what do you want to do among the two condition given above.

can you give me the requirement so that if possible i can help with the code.

anuj.

Read only

Former Member
0 Likes
776

Hi,

Your requirement is not that clear. Please state it clearly, so that I can help you with ur requirement.

Regards,

Ramya

Read only

0 Likes
776

1.Can anybody help me to create a field catalog for ALV list display in following format??

2.I want to display the value against each calender date(based on user input).

Like, if user input 01012008 to 31012008 then field catalog should be created with header value 1 to 31 and it should display the value for each date.

My report is based on attendances for month and i have to display employee's attendance details for corresponding dates.

Please help me to solve this problem.

Points will be rewarded.

Thanks & Regards,

Pooja

Read only

Former Member
0 Likes
776

FIRST U DO SELECTION SCREEN LIKE

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

SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.

PARAMETER : ven_no TYPE lifnr OBLIGATORY ,

frm_p TYPE monat OBLIGATORY ,

to_p TYPE monat OBLIGATORY,

year TYPE gjahr OBLIGATORY,

c_code TYPE bukrs OBLIGATORY .

SELECTION-SCREEN END OF BLOCK blk1 .

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

THEN USE AFTER USE FOLLOWING FORM TO DISPLAY WHICH U WANT

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

FORM comment_build CHANGING gt_top_of_page TYPE slis_t_listheader.

DATA: gs_line TYPE slis_listheader.

DATA: currdt TYPE d.

DATA: var1 TYPE var.

CONCATENATE ven_no '(' vname ')' INTO var SEPARATED BY space.

CLEAR gs_line.

gs_line-typ = 'S'.

gs_line-key = 'Vendor Code :'.

gs_line-info = var .

APPEND gs_line TO gt_top_of_page.

CLEAR var.

CONCATENATE frm_p '-' to_p 'of' year INTO var SEPARATED BY space.

CLEAR gs_line.

gs_line-info = var .

gs_line-typ = 'S'.

gs_line-key = 'Period :'.

APPEND gs_line TO gt_top_of_page.

    • MOVE ven_no to tvan.

*tvan = ven_no.

CLEAR var.

ENDFORM. "comment_build

*----


  • FORM top_of_page

*----


FORM top_of_page.

CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'

EXPORTING

it_list_commentary = t_header.

ENDFORM. "top_of_page