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: 

ISELLIST-MONTH

Former Member
0 Kudos

DATA: V_CODE LIKE SY-SUBRC.

PARAMETER: V_MONTH LIKE ISELLIST-MONTH.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR V_MONTH.

CALL FUNCTION 'POPUP_TO_SELECT_MONTH'

EXPORTING

ACTUAL_MONTH = '200205'

LANGUAGE = SY-LANGU

START_COLUMN = 8

START_ROW = 5

IMPORTING

SELECTED_MONTH = V_MONTH

RETURN_CODE = V_CODE

EXCEPTIONS

FACTORY_CALENDAR_NOT_FOUND = 1

HOLIDAY_CALENDAR_NOT_FOUND = 2

MONTH_NOT_FOUND = 3

OTHERS = 4.

In above program I have following queries,can anyone clarify me

1)What is ISELLIST-MONTH

2)Is it mandatory that actual month format should be YYYYMM.

2 REPLIES 2

0 Kudos

hi,

1) You have deleared a parameter V_MONTH like ISELLIST-MONTH.

here ISELLIST-MONTH defines the type of your parameter V_MONTH.

2) In Abap system stores a date as YYYYMMDD format.Thats why YYYYMM format is passed for month.

Plz reward if this is useful...

Regrads,

Siva.

Former Member
0 Kudos

Hi Gopi,

PARAMETER: V_MONTH LIKE ISELLIST-MONTH.

This statment defines the data type of V_MONTH which will be same as that of ISELLIST-MONTH ie KMONTH.

In SAP dates are stored in DB table in YYYYMMDD format, so it is standard format and this Function module POPUP_TO_SELECT_MONTH takes YYYYMM as input in parameter ACTUAL_MONTH as written in short text(JJJJMM). So you have to pass the values in same format.

Hope it helps.

Regards,

Amit