03-19-2006 2:15 PM
Hello !
I wrote this code :
SUBMIT RHALEINI "(= PFAL TRASACTION)
WITH PCHPLVAR = GS_E1PLOGI-PLVAR
WITH PCHOTYPE = GS_E1PLOGI-OTYPE
WITH PCHOBJID-LOW = GS_E1PLOGI-OBJID
WITH PCHZTR_D = 'X'
WITH PCHZTR_A = SPACE
WITH INSERT = 'X'
WITH UPDATE = SPACE
WITH RCVPRN = GC_RCVPRN
WITH MESTYP = GC_MESTYP
VIA SELECTION-SCREEN.
Unfortunately the program is being called but
In it's selection screen I get PCHZTR_A = 'X' and
not what I asked for ....
This means I can't establish reporting period to be
'Today'. When submitting the program it's always
come with reporting period = 'ALL'.
Has anyone else got this problem ?
What can I do ? Am I doing something wrong ? ...
I appreciate your help ,
Thanks, N.S.
03-19-2006 2:36 PM
Hi Nitzan,
You can save all your selection screen optiions in a variant for the program RHALEINI & then use the SUBMIT statement with the USING SELECTION-SET <variant> option.
Regards,
Suresh Datti
03-19-2006 2:36 PM
Hi Nitzan,
You can save all your selection screen optiions in a variant for the program RHALEINI & then use the SUBMIT statement with the USING SELECTION-SET <variant> option.
Regards,
Suresh Datti
03-19-2006 2:51 PM
Hi Suresh !
Thank you for your answer.
I think your solution will work.
I have also thought about it but I didn't like it -
I do not like to depend on variants in my program ...
I always afraid someone will delete them ....
But maybe there is no other solution ...
Thanks ,
N.S.
03-19-2006 3:28 PM
>>> always afraid someone will delete them
You can always protect the varaint using the 'Protect Variant' attribute of the variant.
Coming to the issue, the report RHALEINI is tied to the Logical database PCH wherein its SELECTION SCREEN is defined. Which is why the 'ALL' option is defaulted when you SUBMIT via SELECTION-SCREEN. I can't think of any option other than using a Varint in your scenario.
Regards,
Suresh Datti
03-20-2006 6:46 AM