Application Development and Automation 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: 
Read only

Screen values at runtime!!

Former Member
0 Likes
1,520

Dear all,

Is there any function module which gives the values on a certain screen at runtime??

For example:

If I run MIGO transaction with my enhancement activated, I want to read the value of PO number from SAPLMIGO screen 2000 into my enhancement's(BADI's) methods.

Additional information:

I tried this out in the enhancement's(MB_MIGO_BADI) screen PBO.You just have to refer to two tables GODYNPRO,GOITEM and they are suitably populated with the values one may need furthur!!

I shall appreciate even if you give me a hint to approach this problem.

Thanks and Regards,

Amiya Shrivastava

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,231

See the FM <b>FC_SET_DYNPRO_SET_VALUES</b>

RGDS,

TM

9 REPLIES 9
Read only

Former Member
0 Likes
1,231

Hi,

Use FM dynpro_values_read.

Regards,

Amole

Read only

Former Member
0 Likes
1,232

See the FM <b>FC_SET_DYNPRO_SET_VALUES</b>

RGDS,

TM

Read only

0 Likes
1,231

Sorry, see the below.

FC_SET_DYNPRO_GET_VALUES

RGDS,

TM

Read only

0 Likes
1,231

Dear Thomas,

Unfortunately no documentation is available for the function module.

How to populate the structure 'ET_DYNSET' in the same??

Regards,

Amiya

Read only

Former Member
0 Likes
1,231

The data will be available in the INterface method's importing parameters.

go to se18 and see for yourself, the methods available.

Double click on the methods to find what are they importing and what each method is exporting.

The data will be available in importing parameters like IS_GOHEAD,

CS_GOITEM, CS_GOHEAD, IS_GOITEM etc.

Regards,

ravi

Read only

0 Likes
1,231

Dear Ravi,

I want the value in PBO_DETAIL method ...where its not accesible..

Regards,

Amiya

Read only

Former Member
0 Likes
1,231

hi

you can use the FM

call function 'DYNP_VALUES_READ'

exporting

dyname = v_progname

dynumb = sy-dynnr

  • TRANSLATE_TO_UPPER = ' '

  • REQUEST = ' '

  • PERFORM_CONVERSION_EXITS = ' '

  • PERFORM_INPUT_CONVERSION = ' '

  • DETERMINE_LOOP_INDEX = ' '

tables

dynpfields = t_fields

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

.

Regards,

Richa

Read only

0 Likes
1,231

Dear Amole and Richa,

The function module is not working!!

Thanks and regards,

Amiya

Read only

Former Member
0 Likes
1,231

Hi,

You can call this RFC <b>RFC_READ_DYNPRO</b>

Regards

vijay