Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Date variable variant

sudhakar196
Participant
0 Likes
324

SELECT-OPTIONS: s_erdat FOR vbak-erdat

in INITIALIZATION event.

i made logic for display s_erdat. so when i excute program, it is displaying low and high value correctly. no problem with that report.

Now, i want to run this program as background, for this i create variant. how can i create a variant to send date values which i wrote logic in INITIALIZATION event..

thks

sudhakar

2 REPLIES 2
Read only

Former Member
0 Likes
292

Hi reddy,

See Once you wrote the logic in Initialization it comes on the selection screen..

Then you need to goto PROGRAM -- >EXECUTE IN BACKGROUND

and give the output device and enter, you will get an information again enter.

Now click immediate and uncheck periodic job and save it.

Now go to SM36 -- > click Job selections --> check all the check boxes in ssecond row and execute.

you will get all the schedule jobs.

check your program name is your job name..

click that and press the spool button above ..

Now click the abap list under the TYPe column.. thats your output..

<b>NOTe</b>

And If you want current date always as an variant data.

its not possible writing the logic.. there is some other technique to do that.

See when you give date as a variant and save it.. when you run the program on the other date you will not get the current date but you will get the previous saved date.

there is a technique to do that..

Tell me your exact problem we can help you a lot.!!

rewards if useful;,

regards,

nazeer

Read only

Former Member
0 Likes
292

Hi,

Just create any variant. But during initialisation it will be overwritten.

Thanks...

Preetham S