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

main screen and subscreen

Former Member
0 Likes
1,202

Hi

I have some fields on subscreen in a main screen. When i click a button on the main screen I need to save the values entered in subscreen.How can i do this.please help.

Hi

I have some fields on subscreen in a main screen. When i click a button on the main screen I need to save the values entered in subscreen.How can i do this.please help.

7 REPLIES 7
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
1,009

Do you mean you have entered some value sin ths sub screen and then coming back to the main screen at user command ?

If this is the case , the values will be available if you are using global varaibles.

Read only

Former Member
0 Likes
1,009

Hi Pradeep

you can update value on screen in The PAi of the Subcsreen

Thanks

Nilesh

Read only

Former Member
0 Likes
1,009

Hi

If I input any values from the program, Thos values are displayed in the input boxes.But IM not able to retrieve values from the fields in the subscreen.

Read only

Former Member
0 Likes
1,009

HI,

The OK_CODE which is the user command of any screen will be avaliable in the Main screen onlly, it will not be avaliable in the sub screen. So u can happily save your data in PAI of either main screen or the Sub screen using the OK_CODE.

handle ok_code in the PAI of main screen & declare the data in Sub screen Globally. So u can save the data of the sub screen in the main screen itself. The data declared, i.e your "Input box name" in the sub screen should also be declared in the main program with the same name.(data declaration). So that the data from your sub screen flows to your global variable & then it is avaliable for saving in the PAI of ur main screen.

Hope this points helps you.

Edited by: Balakrishnachaitanya Lalam on May 15, 2010 2:50 PM

Edited by: Balakrishnachaitanya Lalam on May 15, 2010 2:52 PM

Read only

Former Member
0 Likes
1,009

Hi

I want to read the values in the fields of the sub screen to a work area which i am not able to do . How to do this.

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,009

Did you try the FM 'DYNP_VALUES_READ' ?

Read only

Former Member
0 Likes
1,009

Hi

It is throwing invalid dynpro name exception for the program name i gave.Name of my program 'ZREQDET'