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: 

How to access screen elements from another subscreen.

Former Member
0 Kudos

Hi All,

Following is my requirement

I have a tabstrip in which I have a subscreen. Now after working on the subscreen the control moves to another subscreen which contains a table control. Upon a certain condition I need to enable a screen field on the previous subscreen.

Statndard transaction FB70 is used where the GL account(in the table control) is enetered and the Doc currency ( on the first subscreen on the tabstrip) field needs to be enabled after a warning message.

Any suggestions are welcome.

Thanks and Regards,

Sachin

3 REPLIES 3

Former Member
0 Kudos

Hello,

Check if you are able to use this FM 'DYNP_VALUES_READ' in your requirment.


DATA it_dynfield TYPE STANDARD TABLE OF dynpread WITH HEADER LINE.

  CALL FUNCTION 'DYNP_VALUES_READ'
    EXPORTING
      dyname             = sy-repid
      dynumb             = sy-dynnr
*      translate_to_upper = 'X'
      request            = 'A'
    TABLES
      dynpfields         = it_dynfield.

Hope it helps.

Regards,

Mansi

Former Member
0 Kudos

Hi,

You need to write logic in PBO of the subscreen

DATA : wa LIKE LINE OF tab_tkreq-cols .

LOOP AT<table Control>-cols INTO wa .
   if wa-screen-name CS <field name>.
        wa-input = 1 .
        wa-active = 0 .
  endif.
MODIFY tab_tkreq-cols FROM wa .
ENDLOOP.

Former Member
0 Kudos

Solved by self