Skip to Content
Former Member
Aug 20, 2006 at 09:22 AM

Displaying master data attribute of selected variable


Hi friends ,

I have a requirement to display the master data attribute of the material number selected by the user from the drop down help . We are using Web Layouts for user interface.

For solving this i have developed a BSP application which calls the FM - ZVARIABLE_GET_DETAILS ( given by SAP in the HOW to for variables of type exit ) and gets the value for the variable of Material number. For this value I run a select on master data tables and display the attributes on the BSP page.

It work fine when the user opens his web layout for the first time . However when the user changes the Material no fromt he dropdown my BSP still displays the old material numbers attributes . In debugging I found that the FM -ZVARIABLE_GET_DETAILS is still giving the old value of the variable.

Please let me know how can i get the correct runtime value assigned to the variable ? It seems the FM ZVARIABLE_GET_DETAILS gives the value which was saved last by the user.

thanks in advance