‎2009 Jan 22 1:04 PM
Hi All
I have a requirement as below:
Set a Zprogram with a variant already created manually as batch job in SM37.
This variant has date entry also which is defaulted to system date.
My requirement now is: when the batch job is run tomorrow, the variant set will still have the default today's date. I need to change the date accordingly whenever the batch is run. How do i update the variant with this information in the code.
Thanks and regards
Shilpa
‎2009 Jan 22 1:07 PM
Instead of go for varient try with selection table.
here you can set the data value as sy-datum.
For details check, [Calling program by passing data|http://help.sap.com/saphelp_nw70/helpdata/EN/9f/dba51a35c111d1829f0000e829fbfe/content.htm]
Regards,
Anirban
‎2009 Jan 22 1:07 PM
Instead of go for varient try with selection table.
here you can set the data value as sy-datum.
For details check, [Calling program by passing data|http://help.sap.com/saphelp_nw70/helpdata/EN/9f/dba51a35c111d1829f0000e829fbfe/content.htm]
Regards,
Anirban
‎2009 Jan 22 1:12 PM
In the Create Variant Screen:
In the column 'Selection Variable' select 'D' using F4 help and
in the column 'Name of Variable' select 'Current Date' using F4 help
‎2009 Jan 22 1:33 PM
when you save the variant.. check the checkbox which says dont save with value...
in ECC its called Save field without value