06-21-2010 10:20 AM
Hi all,
I have a standard screen which is attached to a standard function group and a custom screen which is attached to a custom function group... Now my requirement is to get some field values from the Std screen to my custom screen ...
I have used the FM DYNP_VALUES_READ but its resuts in error...
in my current screen PBO i called this FM and given the prog name as the Std pgm name which being created while creating the screen from the function group and the screen number as the standard screen number...
Eg : Standard Function gp = FSBP_02
Pgm name = SAPLFSBP_02
Screen Naumber = 0220
Custom screen = 9001
Pgn Name = zname
in 9001 PBo i called
DATA: IT_DYNPFIELDS TYPE TABLE OF DYNPREAD,
WA_DYNPFIELDS like line of IT_DYNPFIELDS.
*
WA_DYNPFIELDS-FIELDNAME = 'BP021-BUSINESS_Y'.
APPEND WA_DYNPFIELDS TO IT_DYNPFIELDS.
*
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
DYNAME = 'SAPLFSBP_02'
DYNUMB = '0220'
TRANSLATE_TO_UPPER = ' '
REQUEST = ' '
PERFORM_CONVERSION_EXITS = ' '
PERFORM_INPUT_CONVERSION = ' '
DETERMINE_LOOP_INDEX = ' '
START_SEARCH_IN_CURRENT_SCREEN = ' '
START_SEARCH_IN_MAIN_SCREEN = ' '
START_SEARCH_IN_STACKED_SCREEN = ' '
START_SEARCH_ON_SCR_STACKPOS = ' '
SEARCH_OWN_SUBSCREENS_FIRST = ' '
SEARCHPATH_OF_SUBSCREEN_AREAS = ' '
TABLES
DYNPFIELDS = IT_DYNPFIELDS
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.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
How Can i get that... Its important ... Please help me...
06-21-2010 12:05 PM
Hi
I think that you can create enhancement point in pai of 0220 screen and use set/get parameter id with your value or use field symbol with '(prog)your_field' to get alue
Best Regards
Yossi
06-21-2010 12:15 PM
Hi,
Try with the below FM
RS_REFRESH_FROM_SELECTOPTIONS
in your custorm program, check the SY-CPROG and SY-XPROG values, for the standard program name or directly pass the importing parameter for the above FM as SAPLFSBP_02.
Regards
Bala Krishna