‎2010 Jun 08 4:17 AM
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.
‎2010 Jun 08 8:56 AM
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
‎2010 Jun 08 9:46 AM
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