09-19-2006 11:28 AM
Hi
i look for F4 to month ( number from 1 to 53)
thanks
have a nice day
09-19-2006 11:32 AM
09-19-2006 11:31 AM
months only 12 not 53. i am not getting what you are asking for.
if you want F4 help for months,you can use the FM,
POPUP_TO_SELECT_MONTH
Regards,
srikanth
Message was edited by: Srikanth Kidambi
09-19-2006 11:32 AM
Populate your internal table with the data you want and use the fm in the POV section or at selection-screen on value request event.:
POPUP_WITH_TABLE_DISPLAY.
Regards,
Ravi
09-19-2006 11:32 AM
09-19-2006 11:34 AM
Hi,
If u want to F4 as jan feb mar etc.
Create customized table say 'zmonth' with month as a field, insert jan to dec12 records). then use this in program.
select-options: s_month for zmonth-month.
Regards
Divakar
09-19-2006 11:34 AM
Hi,
use Function Module <b>POPUP_TO_SELECT_MONTH</b> to select the Month from a popup ....
Regards
Sudheer
09-19-2006 11:35 AM
HI,
check the following program.
doing the same.
<b>
REPORT Z_TEST2 .
data : RETURN_TAB LIKE DDSHRETVAL occurs 0 .
DATA : BEGIN OF ITAB OCCURS 0,
MONTH like t510s-DAYMO,
END OF ITAB.
PARAMETERS : month(2).
AT SELECTION-SCREEN ON VALUE-REQUEST FOR month.
do 53 times.
itab-month = sy-index.
append itab.
enddo.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'MONTH'
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
DYNPROFIELD = 'MONTH'
VALUE_ORG = 'S'
TABLES
value_tab = ITAB
return_tab = return_tab.
</b>
REgards,
09-19-2006 11:37 AM
09-19-2006 11:38 AM
Alternatively,you can use LIST BOX to give drop down values of months to the user on the selection screen.
check this program.
REPORT ZSRIM_TEMP2.
TYPE-POOLS : VRM.
DATA: param TYPE vrm_id,
values TYPE vrm_values,
value LIKE LINE OF values.
PARAMETERS: p_month(10) AS LISTBOX VISIBLE LENGTH 10.
AT SELECTION-SCREEN OUTPUT.
param = 'P_MONTH'.
value-key = '1'.
value-text = 'JAN'.
APPEND value TO values.
value-key = '2'.
value-text = 'FEB'.
APPEND value TO values.
*--Like this populate the MONTH values to VALUES table
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING id = param
values = values.
start-of-selection.
write 😕 p_month.
09-19-2006 11:49 AM