Application Development 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: 

SCREEN

Former Member
0 Kudos

hi guru's,

i have fkdat in my selection screen. but it have to take input as month not to take date format. and in output it has to display records of the perticular month which i selected.

help me.

thanks in advance.

1 ACCEPTED SOLUTION

former_member223537
Active Contributor
0 Kudos

Declare FKDAT of type i.

& build the logic to retrieve data based on FKDAT value.

5 REPLIES 5

former_member223537
Active Contributor
0 Kudos

Declare FKDAT of type i.

& build the logic to retrieve data based on FKDAT value.

Former Member
0 Kudos

Hi,

You can take 2 charecter lenght field in the Screen for the Month,

then write the logic, like if the date+2(2) then get the data

Regards

Sudheer

dev_parbutteea
Active Contributor
0 Kudos

HI,

use field spmon for month!

Regards

Former Member
0 Kudos

PARAMETERS: P_MAAND(2) TYPE N, 'month

P_JAAR(4) TYPE N. 'year

AT SELECTION-SCREEN.

IF P_MAAND IS INITIAL

AND P_JAAR IS INITIAL.

IF SY-DATUM+4(2) = 01.

P_MAAND = 12.

P_JAAR = SY-DATUM(4) - 1.

ELSE.

P_MAAND = SY-DATUM+4(2) - 1.

P_JAAR = SY-DATUM(4).

ENDIF.

ENDIF.

IF P_MAAND < 01

OR P_MAAND > 12.

MESSAGE ID 'ZZ' TYPE 'E' NUMBER '000'

WITH 'Error : check selected month'(300).

ENDIF.

reward points to all helpful answers

kiran.M

Former Member
0 Kudos

Hi,

Try like this:

parameters: fkdat like vbrk-fkdat.

fkdat = fkdat+4(2).

write: 'Month is: ', fkdat.

Regards,

Bhaskar