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: 

f4 to month

Former Member
0 Kudos

Hi

i look for F4 to month ( number from 1 to 53)

thanks

have a nice day

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

You can try FM 'VRM_SET_VALUES'.

Regards,

Raj

9 REPLIES 9

Former Member
0 Kudos

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

former_member181962
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi

You can try FM 'VRM_SET_VALUES'.

Regards,

Raj

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

use Function Module <b>POPUP_TO_SELECT_MONTH</b> to select the Month from a popup ....

Regards

Sudheer

dani_mn
Active Contributor
0 Kudos

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,

anversha_s
Active Contributor
0 Kudos

hi,

try this.

<b>POPUP_CALENDAR_SDB</b>

rgds

anver

Former Member
0 Kudos

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.

Former Member
0 Kudos

put the value of <b>maxentries</b> as space here.