Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

sending screen filed data into an FM

Former Member
0 Kudos

hi all,

in a badi implemetation i'm using the FM 'RH_READ_INFTY_1001' .

CALL FUNCTION 'RH_READ_INFTY_1001'

EXPORTING

  • AUTHORITY = 'DISP'

  • WITH_STRU_AUTH = 'X'

PLVAR = '01'

OTYPE = 'S'

OBJID = '00000042'

ISTAT = '1'

  • EXTEND = 'X'

SUBTY = 'A008'

  • BEGDA = iPPHDR-begda "'19000101'

  • ENDDA = iPPHDR-endda"'99991231'

  • CONDITION = '00000'

  • SORT = 'X'

  • WITH_EV = ' '

  • ADATA = 'X'

  • AUTH_SOBID = ' '

TABLES

i1001 = it1001

  • OBJECTS =

EXCEPTIONS

NOTHING_FOUND = 1

WRONG_CONDITION = 2

WRONG_PARAMETERS = 3

OTHERS = 4

.

I want to sent the BEGDA and ENDDA from the screen PPHDR (i'e. from transaction PP01 's begda and endda.)

How can do so.

TIA

1 REPLY 1

Former Member
0 Kudos

Hi Dear,

Use this piece of code.

read values from screen.

CALL FUNCTION 'DYNP_VALUES_READ'

EXPORTING

dyname = 'ZAB_SCM_DP_LISTCUBE_DATA'

dynumb = '1000'

translate_to_upper = 'X'

TABLES

dynpfields = g_t_dynp

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

OTHERS = 9.

Regards,

Vijay