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

Problem in reading screen values

Former Member
0 Likes
494

Hello Guys,

here is the example on how my problem looks,

During PO change, first i go to confirmations tab at PO item level and change the confirmation quantity say from 50 To 40 now i go and change item quantity say from 50 to 40

in my case i need to through an error if both the quantities are different ,

how can i read the values available in the confirmation tab.

Here is the other scenario , if i go and change confirmation quantity in confirmation tab and i go to text tab and change some text

now my question is how can i read the values in confirmation tab even if the control is in an other tab.

2 REPLIES 2
Read only

Former Member
0 Likes
422

Hi....

Search for BADI or classic user exits(customer functions) which is called when you save PO.

One BADI is ME_PROCESS_PO_CUST...or there are sevaral others..

Go inside these...check the relevant paramters(structure or tables) which contain the data that you are looking for.

using that data you could compare and put a check for quantity if they are not equal, and throw a error message.

Regars,

Mark

Read only

Former Member
0 Likes
422

use function module DYNP_VALUES_READ. In the table dynpfields, pass all the screen fields names for which u need the value. Set the parameter start_search_in_current_screen and search_own_subscreen_first as 'X'. In parameter dyname pass sy-repid and in dynumb pass the screen number or sy-dynnr .

after the FM execution, the internal table you passed with fields names will have field data also. You can read this table to get values.

Regards

Vishal Kapoor