2009 Aug 03 6:05 AM
I have a field called month in a screen i could get the values for F$ by using below field. My F4 values are there in the domain fixed values so i had to use DD_DOMA_GET.and got the values fron ZMONTH domain. When im pressing F$ i can c input help values like
01 january
02 february
.
.
.
12 December
boldn i am selecting it the value is not selected or seen in the input/output field of the screen.bold.
form MONTH_VALUES .
DATA:
fs_taba TYPE dd07v.
DATA:
it_taba TYPE STANDARD TABLE OF dd07v,
it_tabb TYPE STANDARD TABLE OF dd07v,
WA_DD07V TYPE DD07V.
CALL FUNCTION 'DD_DOMA_GET'
EXPORTING
domain_name = 'ZMONTH'
langu = sy-langu
withtext = 'X'
TABLES
dd07v_tab_a = it_taba
dd07v_tab_n = it_tabb
EXCEPTIONS
illegal_value = 1
op_failure = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LOOP AT it_taba INTO fs_taba.
MOVE fs_taba-domvalue_l TO WA_STATUS-DOMVALUE_L.
MOVE fs_taba-ddtext TO WA_STATUS-ddtext.
APPEND WA_STATUS TO GT_STATUS.
CLEAR WA_STATUS.
CLEAR fs_taba.
ENDLOOP.
ULINE.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'STATUS'
value_org = 'S'
TABLES
value_tab = GT_STATUS
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
...
ENDIF.
REFRESH GT_STATUS.
endform.
I have a field called month in a screen i could get the values for F$ by using below field. My F4 values are there in the domain fixed values so i had to use DD_DOMA_GET.and got the values fron ZMONTH domain. When im pressing F$ i can c input help values like
01 january
02 february
.
.
.
12 December
boldn i am selecting it the value is not selected or seen in the input/output field of the screen.bold.
form MONTH_VALUES .
DATA:
fs_taba TYPE dd07v.
DATA:
it_taba TYPE STANDARD TABLE OF dd07v,
it_tabb TYPE STANDARD TABLE OF dd07v,
WA_DD07V TYPE DD07V.
CALL FUNCTION 'DD_DOMA_GET'
EXPORTING
domain_name = 'ZMONTH'
langu = sy-langu
withtext = 'X'
TABLES
dd07v_tab_a = it_taba
dd07v_tab_n = it_tabb
EXCEPTIONS
illegal_value = 1
op_failure = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LOOP AT it_taba INTO fs_taba.
MOVE fs_taba-domvalue_l TO WA_STATUS-DOMVALUE_L.
MOVE fs_taba-ddtext TO WA_STATUS-ddtext.
APPEND WA_STATUS TO GT_STATUS.
CLEAR WA_STATUS.
CLEAR fs_taba.
ENDLOOP.
ULINE.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'STATUS'
value_org = 'S'
TABLES
value_tab = GT_STATUS
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
...
ENDIF.
REFRESH GT_STATUS.
endform.
2009 Aug 03 6:31 AM
Hi,
create a datatype using the domain ZMONTH. Now refer the field in your screen with that datatype. You will get the data in F4. You can select the data from that F4 help.
Thanks,
Sri.
2009 Aug 03 6:48 AM
i created a data type of 'zmonth' and reffered to it.I think it is not accepting bcoz these values are not in table but r coming from fixed values of domain .I ma not sure.
2009 Aug 03 7:01 AM
Hi,
If the values are in the value range of the domain then they will definitely come. And you have to trigger some event after selecting the value from the list.
for example if you want some thing to display after selecting a value from drop down then after selecting the value from the f4 help list press enter or some button kind of thing.
Thanks,
Sri.