04-23-2009 5:25 AM
Hi
I have a question for FM 'DYNP_VALUES_READ'.
I'd like to use this FM for check input values of several PGM in runtime.
When I tested this FM, An error code returned instead of field values.(INVALID_DYNPRONAME)
The FM was called in Start-Of-Selection of PGM with runtime PGM names , screen fields, dynpread table.
To solve this problem I reviewed sample PGMs, and I noticed that this FM used only for F4 help value request and field chain in subscreen.
How can I solve the problem?
Pleas help me.
04-23-2009 5:34 AM
HI,
This need to be used when you call the F4 help on particular field.
Exmaple...the requirement is to show F4 help on the particular filed B depending on the value entered in Field A..in this case you will not get the value of field A in the event AT SELECTION-SCREEN ON VALUE-REQUEST/POV . O get the get value of field A you need to use the DYNP_VALUES_READ.
12-16-2009 8:44 PM
Hello everyone
The "DYNP_VALUES_READ" doesn't work when we are at the "START-OF-SELECTION" section.
Is there any function that will work like "DYNP_VALUES_READ" but from the "START-OF-SELECTION" section?
I need it to be able to use the screen value in a method from a customized class.
The following code doesn't work. We always obtaining the error invalid_dynproname because the call function "DYNP_VALUES_READ" is inside the "START-OF-SELECTION" section.
I need a function that is working inside the "START-OF-SELECTION" section.
REPORT ztest20.
DATA: lt_dynfields TYPE TABLE OF dynpread,
ls_dynfields LIKE LINE OF lt_dynfields.
PARAMETERS: p_lcf AS CHECKBOX DEFAULT.
START-OF-SELECTION.
REFRESH lt_dynfields.
ls_dynfields-fieldname = 'P_LCF'.
APPEND ls_dynfields TO lt_dynfields.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = 'ZTEST20'
dynumb = '1000'
TABLES
dynpfields = lt_dynfields
EXCEPTIONS
invalid_abapworkarea = 1
invalid_dynprofield = 2
invalid_dynproname = 3
invalid_dynpronummer = 4
invalid_request = 5
no_fielddescription = 6
invalid_parameter = 7
undefind_error = 8
double_conversion = 9
stepl_not_found = 10
OTHERS = 11.
IF sy-subrc <> 0.
ENDIF.
WRITE:/ sy-subrc.
Regards
dstj
12-16-2009 8:44 PM
Hello everyone
The "DYNP_VALUES_READ" doesn't work when we are at the "START-OF-SELECTION" section.
Is there any function that will work like "DYNP_VALUES_READ" but from the "START-OF-SELECTION" section?
I need it to be able to use the screen value in a method from a customized class.
The following code doesn't work. We always obtaining the error invalid_dynproname because the call function "DYNP_VALUES_READ" is inside the "START-OF-SELECTION" section.
I need a function that is working inside the "START-OF-SELECTION" section.
REPORT ztest20.
DATA: lt_dynfields TYPE TABLE OF dynpread,
ls_dynfields LIKE LINE OF lt_dynfields.
PARAMETERS: p_lcf AS CHECKBOX DEFAULT.
START-OF-SELECTION.
REFRESH lt_dynfields.
ls_dynfields-fieldname = 'P_LCF'.
APPEND ls_dynfields TO lt_dynfields.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = 'ZTEST20'
dynumb = '1000'
TABLES
dynpfields = lt_dynfields
EXCEPTIONS
invalid_abapworkarea = 1
invalid_dynprofield = 2
invalid_dynproname = 3
invalid_dynpronummer = 4
invalid_request = 5
no_fielddescription = 6
invalid_parameter = 7
undefind_error = 8
double_conversion = 9
stepl_not_found = 10
OTHERS = 11.
IF sy-subrc <> 0.
ENDIF.
WRITE:/ sy-subrc.
Regards
dstj