2008 Mar 08 9:39 AM
Hi,
In the Selection screen, I have two fields,
One is for getting input for the month
Other one is for year
These two are created by using parameter statement
and it is not referring to any data base table fields.
parameters : p_bumon type bumon.
parameters : p_bdatj type bdatj.
At the selection screen i need input help for the month and year separately.
I cant use the function module becos no values r fetch from the tables.
or else to get the input help, can u please just me some predefined type declarations so that i can get by default the F4 help for this
or any other table which have the value range for only for the month and year.
Just it is created and the input values is passed to the function module and to calculate the number of days for that particular month and year.
i need this very urgently
Please suggest me in this , whether it is possible
Thanks
2008 Mar 08 10:02 AM
hi,
There is a event called
At selection-screen PROCESS ON VALUE-REQUEST for.......
In your case it can be :-
At selection-screen PROCESS ON VALUE-REQUEST for p_bumon .
< Block 1>
At selection-screen PROCESS ON VALUE-REQUEST for p_bdatj .
< Block 2>
In the block u can write the code.......
say for month u can write
parameters : p_month(2) type c.
Eg for month
At selection-screen PROCESS ON VALUE-REQUEST for P_MONTH.
data : begin of int_month occurs 0,
month(2) type c,
end of ont_month.
INT_MONTH-MONTH = '01'.
append INT_MONTH.
INT_MONTH-MONTH = '02'.
append INT_MONTH.
INT_MONTH-MONTH = '03'.
append INT_MONTH.
.
.
.
.
.
INT_MONTH-MONTH = '11'.
append INT_MONTH.
INT_MONTH-MONTH = '12'.
append INT_MONTH.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'MONTH' Int tab field name
DYNPPROG = < program name>
DYNPNR = SY-DYNNR
DYNPROFIELD = 'P_MONTH' Field wer u need F4 help
VALUE_ORG = 'S'
WINDOW_TITLE = Any description
TABLES
VALUE_TAB = INT_MONTH. Internal table name
please reward points if useful.... and mark it answered.....
thank you.
Hi,
In the Selection screen, I have two fields,
One is for getting input for the month
Other one is for year
These two are created by using parameter statement
and it is not referring to any data base table fields.
parameters : p_bumon type bumon.
parameters : p_bdatj type bdatj.
At the selection screen i need input help for the month and year separately.
I cant use the function module becos no values r fetch from the tables.
or else to get the input help, can u please just me some predefined type declarations so that i can get by default the F4 help for this
or any other table which have the value range for only for the month and year.
Just it is created and the input values is passed to the function module and to calculate the number of days for that particular month and year.
i need this very urgently
Please suggest me in this , whether it is possible
Thanks
2008 Mar 08 9:50 AM
hi use this function module 'POPUP_TO_SELECT_MONTH'
for getting help for the month.
for year use this i may not sure abt this year VALIDATE_YEAR
regards,
venkat.
Edited by: venkat appikonda on Mar 8, 2008 10:57 AM
2008 Mar 08 10:13 AM
thanks for your prompt reply
In the selection scrren
My input field for the month is of length 2. which is of period.
It will accept the input values from 01 to 12 .
I need to provide F4 help to this field
Suggest me in this
Thanks
2008 Mar 08 9:57 AM
I guess this is not possible dynamically.
programatically there is a scope to do this.
2008 Mar 08 10:02 AM
hi,
There is a event called
At selection-screen PROCESS ON VALUE-REQUEST for.......
In your case it can be :-
At selection-screen PROCESS ON VALUE-REQUEST for p_bumon .
< Block 1>
At selection-screen PROCESS ON VALUE-REQUEST for p_bdatj .
< Block 2>
In the block u can write the code.......
say for month u can write
parameters : p_month(2) type c.
Eg for month
At selection-screen PROCESS ON VALUE-REQUEST for P_MONTH.
data : begin of int_month occurs 0,
month(2) type c,
end of ont_month.
INT_MONTH-MONTH = '01'.
append INT_MONTH.
INT_MONTH-MONTH = '02'.
append INT_MONTH.
INT_MONTH-MONTH = '03'.
append INT_MONTH.
.
.
.
.
.
INT_MONTH-MONTH = '11'.
append INT_MONTH.
INT_MONTH-MONTH = '12'.
append INT_MONTH.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'MONTH' Int tab field name
DYNPPROG = < program name>
DYNPNR = SY-DYNNR
DYNPROFIELD = 'P_MONTH' Field wer u need F4 help
VALUE_ORG = 'S'
WINDOW_TITLE = Any description
TABLES
VALUE_TAB = INT_MONTH. Internal table name
please reward points if useful.... and mark it answered.....
thank you.
2008 Mar 08 10:45 AM
hi Ratnakumar,
Thanks for your prompt reply,
I tried the solution given by u.
I loaded all the values to the internal table from 01 to 12
then i passed it to the function module.
in the selection criteria. , it i select from the F4 help , it doesn't displays the value for the month,.
Rather it displays only the empty window when i press F4
No values are not displayed.
But at the bottom of the window it shows only 12 entries.
wat to do for that
Please help to resolve this isssue.
2008 Mar 08 10:52 AM
hi,
In the internal table declaration this
data : begin of int_month occurs 0,
month(2) type c,
end of ont_month.
change it to
data : begin of int_month occurs 0,
month type char2,
end of ont_month.
instead of
" month(2) type c "
change it to
" month type char2 "
Please reward points if its useful and mark it as answered...:-)
2008 Mar 08 10:59 AM
thanks ratna kumar.
Now i can get the F4 help.
But from the development side, this kind of code increases the number of lines for the help itself.
However this is helpful to resolve my problem. But please tell me if there is any other feasible method to populate the values for the month from any fixed database tables
Thanks
Uma
2008 Mar 08 11:09 AM
hi,
As per my knwldg till now i dont knw any database table which can be used for ur requirement.... as u want 01, 02,....etc. but if there is any then will let u knw as soon as i come knw .......
thanks ......