‎2006 Nov 16 9:13 AM
Hi Friends,
I have a variable in my driver pgm called zvar.For this i am getting data based on a select query.So how can use this zvar in my sapscript.
Suppose if i have to write a if condition in script editor...&zvar& EQ 'abc'.Then no data is coming in Zvar...How can i do this?...
Regards
‎2006 Nov 16 9:18 AM
Hi ravi,
I you have done everything exactly in the same way you have mentioned here, it should come.
Anyhow, check if the value of Zvar is populated before the call to the OPen_form fm.
Activate the script debugger to see the value at run time,
Regards,
ravi
‎2006 Nov 16 9:18 AM
Hi ravi,
I you have done everything exactly in the same way you have mentioned here, it should come.
Anyhow, check if the value of Zvar is populated before the call to the OPen_form fm.
Activate the script debugger to see the value at run time,
Regards,
ravi
‎2006 Nov 16 9:22 AM
hi Ravi,
Check this way out
Example
DATA: RNAME(30) VALUE 'WRITE_STATISTIC', "Form and program
"names must
PNAME(8) VALUE 'ZYX_STAT'. "be written in
"upper case
PERFORM (RNAME) IN PROGRAM ZYX_STAT.
PERFORM WRITE_STATISTIC IN PROGRAM (PNAME).
PERFORM (RNAME) IN PROGRAM (PNAME). All three PERFORM statements have the same effect, that is, they call the subroutine 'WRITE_STATISTIC', which is defined in the program 'ZYX_STAT'.
Regards,
Santosh
‎2006 Nov 16 9:28 AM
Hi Ravi,
Yes you to get the value from driver prog we use &ZVAR&.. and it works...
Try debugging the driver program to check whether proper value is getting populated in ZVAR..
If the check is not working in sapscript then switch the condition from sapscrpt to in driver program....
let us know ur findings...
Enjoy SAP.
Panakj Singh.