2007 Aug 24 2:53 AM
hi
i am reading others' source code without , and find it uses function module 'HELP_VALUES_GET_WITH_TABLE'. i can mainly guess what function this function module perform, but not sure. i double click it and get into the function builder screen of this module. though i can see the 'import','export'.. parameters of the module , but i want to know in detail the function about this module. can someone helps me ?
or can u tell me some method to know the function of any funciton module, and some method to find appropriate function module to fit my requirement. thanks for your advice.
2007 Aug 24 3:12 AM
refer from the documentation in the t-code se37.
You can use the below code:
DATA : v_dataum TYPE sy-datum.
CALL FUNCTION 'F4_DATE'
EXPORTING
DATE_FOR_FIRST_MONTH = SY-DATUM
DISPLAY = ' '
FACTORY_CALENDAR_ID = ' '
GREGORIAN_CALENDAR_FLAG = ' '
HOLIDAY_CALENDAR_ID = ' '
PROGNAME_FOR_FIRST_MONTH = ' '
IMPORTING
SELECT_DATE = v_datum
SELECT_WEEK = SELECT_WEEK
SELECT_WEEK_BEGIN = SELECT_WEEK_BEGIN
SELECT_WEEK_END = SELECT_WEEK_END
EXCEPTIONS
CALENDAR_BUFFER_NOT_LOADABLE = 1
DATE_AFTER_RANGE = 2
DATE_BEFORE_RANGE = 3
DATE_INVALID = 4
FACTORY_CALENDAR_NOT_FOUND = 5
HOLIDAY_CALENDAR_NOT_FOUND = 6
PARAMETER_CONFLICT = 7
OTHERS = 8
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
...
Help Regarding FM 'HELP_VALUES_GET_WITH_TABLE'
http://www.sap-img.com/abap/attach-a-search-help-to-the-screen-field.htm
Use this functionality to get help.
*-- Set up fields to retrieve data
tables: t001w.
DATA: lc_werks LIKE t001w-werks,
ltab_fields LIKE help_value OCCURS 0 with header line,
BEGIN OF ltab_values OCCURS 0,
feld(40) TYPE c,
END OF ltab_values.
*-- Set up fields to retrieve data
ltab_fields-tabname = 'T001W'.
ltab_fields-fieldname = 'WERKS'.
ltab_fields-selectflag = 'X'.
APPEND ltab_fields.
ltab_fields-tabname = 'T001W'.
ltab_fields-fieldname = 'NAME1'.
ltab_fields-selectflag = space.
APPEND ltab_fields.
*-- Fill values
select * from t001w.
ltab_values-feld = t001w-werks.
append ltab_values.
ltab_values-feld = t001w-name1.
append ltab_values.
endselect.
CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE'
EXPORTING
fieldname = 'WERKS'
tabname = 'T001W'
title_in_values_list = 'Select a value'
IMPORTING
select_value = lc_werks
TABLES
fields = ltab_fields
valuetab = ltab_values
EXCEPTIONS
field_not_in_ddic = 01
more_then_one_selectfield = 02
no_selectfield = 03.
regards,
srinivas
\[removed by moderator\]
Edited by: Jan Stallkamp on Jul 24, 2008 12:41 PM
hi
i am reading others' source code without , and find it uses function module 'HELP_VALUES_GET_WITH_TABLE'. i can mainly guess what function this function module perform, but not sure. i double click it and get into the function builder screen of this module. though i can see the 'import','export'.. parameters of the module , but i want to know in detail the function about this module. can someone helps me ?
or can u tell me some method to know the function of any funciton module, and some method to find appropriate function module to fit my requirement. thanks for your advice.
2007 Aug 24 3:07 AM
go to tcode se37 and refer the documentation or go to
<a href="http://www.se37.com">this site for documentation</a>
regards ,
kishore
\[removed by moderator\]
Edited by: Jan Stallkamp on Jul 24, 2008 12:41 PM
2007 Aug 24 3:35 AM
hi
i try Goto --> Documentation, and get note 'Document HELP_VALUES_GET_WITH_TABLE' is not avilable in language EN, maybe there
is documents written in Genman, but i don't know Genman...
2007 Aug 24 3:38 AM
go through documentation in t-code SE37.
<b>see the first few lines in the link of my above post.</b>
regards,
srinivas
\[removed by moderator\]
Edited by: Jan Stallkamp on Jul 24, 2008 12:41 PM
2007 Aug 24 3:39 AM
i login in the www.se37.com and enter HELP_VALUES_GET_WITH_TABLE
in the FM input field, and the website popup 'there is no documentaton for function module HELP_VALUES_GET_WITH_TABLE'
is the FM HELP_VALUES_GET_WITH_TABLE not used frequently?
2007 Aug 24 3:12 AM
refer from the documentation in the t-code se37.
You can use the below code:
DATA : v_dataum TYPE sy-datum.
CALL FUNCTION 'F4_DATE'
EXPORTING
DATE_FOR_FIRST_MONTH = SY-DATUM
DISPLAY = ' '
FACTORY_CALENDAR_ID = ' '
GREGORIAN_CALENDAR_FLAG = ' '
HOLIDAY_CALENDAR_ID = ' '
PROGNAME_FOR_FIRST_MONTH = ' '
IMPORTING
SELECT_DATE = v_datum
SELECT_WEEK = SELECT_WEEK
SELECT_WEEK_BEGIN = SELECT_WEEK_BEGIN
SELECT_WEEK_END = SELECT_WEEK_END
EXCEPTIONS
CALENDAR_BUFFER_NOT_LOADABLE = 1
DATE_AFTER_RANGE = 2
DATE_BEFORE_RANGE = 3
DATE_INVALID = 4
FACTORY_CALENDAR_NOT_FOUND = 5
HOLIDAY_CALENDAR_NOT_FOUND = 6
PARAMETER_CONFLICT = 7
OTHERS = 8
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
...
Help Regarding FM 'HELP_VALUES_GET_WITH_TABLE'
http://www.sap-img.com/abap/attach-a-search-help-to-the-screen-field.htm
Use this functionality to get help.
*-- Set up fields to retrieve data
tables: t001w.
DATA: lc_werks LIKE t001w-werks,
ltab_fields LIKE help_value OCCURS 0 with header line,
BEGIN OF ltab_values OCCURS 0,
feld(40) TYPE c,
END OF ltab_values.
*-- Set up fields to retrieve data
ltab_fields-tabname = 'T001W'.
ltab_fields-fieldname = 'WERKS'.
ltab_fields-selectflag = 'X'.
APPEND ltab_fields.
ltab_fields-tabname = 'T001W'.
ltab_fields-fieldname = 'NAME1'.
ltab_fields-selectflag = space.
APPEND ltab_fields.
*-- Fill values
select * from t001w.
ltab_values-feld = t001w-werks.
append ltab_values.
ltab_values-feld = t001w-name1.
append ltab_values.
endselect.
CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE'
EXPORTING
fieldname = 'WERKS'
tabname = 'T001W'
title_in_values_list = 'Select a value'
IMPORTING
select_value = lc_werks
TABLES
fields = ltab_fields
valuetab = ltab_values
EXCEPTIONS
field_not_in_ddic = 01
more_then_one_selectfield = 02
no_selectfield = 03.
regards,
srinivas
\[removed by moderator\]
Edited by: Jan Stallkamp on Jul 24, 2008 12:41 PM
2007 Aug 24 3:31 AM
goto www.se37.com and login as guest, enter the name of the FM and see the documentation or else do the same from tcode se37.
regards,
kaushik.
reward if useful.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |