‎2007 Apr 09 3:55 PM
hi
I am passing values from Z program to selection screen of standard program RHRHAZ00 ... I have coded for that like this
submit rhrhaz00 and return
with pchplvar = pchplvar
with pchotype = pchotype
with pchobjid in pchobjid
with pchsobid in pchsobid
with pchseark = pchseark
with pchostat = pchostat
with pchistat = pchistat
with pchobeg = pchobeg
with pchoend = pchoend
with pchtimed = pchtimed
with pchbegda = pchbegda
with pchendda = pchendda .
Now the problem is 'pchsobid' is a hidden field selection screen value in RHRHAZ00 which gets displayed only when USER is selected in pchotype.
But I want to pass on selection screen value to this too from Z Program.
In the debugging mode I have seen that this doesnt get populated by using the SUBMIT statement.
Can you guys help on this. This is standard program so I cannot modify the program nor use IMPORT & EXPORT statements
Points will be awarded for helpful answers
‎2007 Apr 09 4:28 PM
interesting scenario.. may be you can try saving a variant for RHRHAZ00 first & then use the SUBMIT rhrhaz00 using selection-set <variant> option. Just before the submit statement try if you can change the variant value by using any RS_VARIANT*** function calls..
~Suresh
‎2007 Apr 19 9:09 AM
I havent appended the values to the select options, that was the problem otherwise the program submits the values to the other selection screen even though they are inactive