Wednesday, August 29, 2007

Front end services

This morning, one of my colleagues had a requirement, in which he wanted to process a file from presentation server and once done, the file system should move the file to a different directory, in the presentation server. We have done the same in application server using SYSTEM command, but to do the same, the following approach can be used.

Assuming presentation server is a Windows system.

  1. Create a .BAT file with following script. Assuming that we are moving a file called 'File1.txt' from C: to C:\Folder

    c:
    cd \
    move file1.txt folder\file1.txt
  2. Name the file as move_file.bat and store it in C:\ root
  3. Have the following piece of code for executing from ABAP code

    CALL METHOD cl_gui_frontend_services=>execute
    EXPORTING
    APPLICATION = 'C:\move_file.bat' .

The above code will execute the BAT file from ABAP code. We can also launch any application from ABAP with above manner.

Learnt something !

8 Comments:

Anonymous Anonymous said...

Karthik ,
Few years back I had conversation with .I am the same Atlantagowda from KA.COM .
Happy to see your blog again devru and your sustained interest in SAP-ABAP-TECHNICAL . I have been doing SAP technical stuff since 1998 and working in several modules across SAP and lots of stuff. I dont even remember and never documented .
mail me at prakash.consult@gmail.com

August 21, 2008 1:31 PM  

~ * ~

Anonymous Anonymous said...

After I originally commented I appear to have clicked the -Notify me when new comments are added-
checkbox and from now on whenever a comment is added I recieve
four emails with the exact same comment. Is there an easy method
you can remove me from that service? Appreciate it!



Here is my website; SlimBerry Cleanse Diet

April 26, 2013 1:27 PM  

~ * ~

Anonymous Anonymous said...

Amazing! This blog looks just like my old one!
It's on a totally different topic but it has pretty much the same layout and design. Outstanding choice of colors!

My blog post; the latest beauty buzz fiafini deluxe anti-agin eye cream

May 10, 2013 8:45 AM  

~ * ~

Anonymous Anonymous said...

I do not know if it's just me or if perhaps everyone else encountering issues with your site. It seems like some of the text within your content are running off the screen. Can somebody else please comment and let me know if this is happening to them as well? This could be a issue with my internet browser because I've had this happen before.

Thanks

Also visit my page Pure White Kidney Bean Extract

May 10, 2013 2:34 PM  

~ * ~

Anonymous Anonymous said...

Pretty nice post. I just stumbled upon your weblog
and wished to say that I've truly enjoyed surfing around your blog posts. After all I will be subscribing to your rss feed and I hope you write again soon!

Also visit my website :: acai ultra lean reviews

May 13, 2013 8:40 AM  

~ * ~

Anonymous Anonymous said...

This design is incredible! You obviously know how to keep
a reader entertained. Between your wit and your videos,
I was almost moved to start my own blog (well, almost.
..HaHa!) Wonderful job. I really loved what you had to say, and
more than that, how you presented it. Too cool!


Feel free to surf to my homepage; Veluminous Reviews

May 18, 2013 8:45 AM  

~ * ~

Anonymous Anonymous said...

Hi my loved one! I want to say that this article is amazing, great written and come with almost
all vital infos. I'd like to peer extra posts like this .

My site ... women's armitron watches

May 18, 2013 11:15 AM  

~ * ~

Anonymous Anonymous said...

WOW just what I was searching for. Came here by searching for top diet

Take a look at my website - Ultra Slim patch

May 19, 2013 9:47 AM  

~ * ~

Post a Comment

<< Home