Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

how to get the screen value to custom screen from standard screen

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...

Former Member
Not what you were looking for? View more on this topic or Ask a question