Call an vb program from SAP

Development (ABAP Development WorkBench, ABAP/4 programming)

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

Post Reply
fgarzon
Posts: 1
Joined: Tue May 26, 2009 3:33 pm

Call an vb program from SAP

Post by fgarzon » Wed Jun 24, 2009 7:48 am

hi,
I would like to call an external program from SAP to activate an external workflow. Could you send some clue?

Thank you.

Gothmog
Posts: 1955
Joined: Wed Sep 12, 2007 4:46 am
Location: Probably not home

Re: Call an vb program from SAP

Post by Gothmog » Wed Jun 24, 2009 8:24 am

You could use static method CL_GUI_FRONTEND_SERVICES=>EXECUTE.
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67

RosieBrent
Posts: 6197
Joined: Mon Oct 21, 2002 3:04 am
Location: Darlington
Contact:

Re: Call an vb program from SAP

Post by RosieBrent » Wed Jun 24, 2009 8:35 am

Or run the external program in background mode using the FM available (can't remember the name, but it's mentioned here on the forum in the past) or an RFC to trigger your VB program could also work.
Kind Regards

Rosie Brent

Please remember to search the forum and check the FAQ before posting questions, thank you.

Tuly Idiot most of the time, part-time Guru Image

Rich
Posts: 7116
Joined: Thu Oct 31, 2002 4:47 pm
Location: Liverpool
Contact:

Re: Call an vb program from SAP

Post by Rich » Wed Jun 24, 2009 2:57 pm

RosieBrent wrote:Or run the external program in background mode using the FM available (can't remember the name, but it's mentioned here on the forum in the past) or an RFC to trigger your VB program could also work.
Or.... to throw a spanner in the works and make people scratch their heads, use Open Dataset...... :wink:
Regards

Rich

Image
Abap KC:http://www.richard-harper.me.uk/Kb
SFMDR:http://www.se37.com

Gothmog
Posts: 1955
Joined: Wed Sep 12, 2007 4:46 am
Location: Probably not home

Re: Call an vb program from SAP

Post by Gothmog » Thu Jun 25, 2009 2:16 am

* scratches head * :?
You have a job waiting for a file, and create the file with Open Dataset to trigger the next step of the job ?

Rich
Posts: 7116
Joined: Thu Oct 31, 2002 4:47 pm
Location: Liverpool
Contact:

Re: Call an vb program from SAP

Post by Rich » Thu Jun 25, 2009 3:07 am

Gothmog wrote:* scratches head * :?
You have a job waiting for a file, and create the file with Open Dataset to trigger the next step of the job ?
Nope. This is to do with running external programs

Check out the 'Filter' clause of the Open Dataset command. If that confuses you even further have a look in the Abappers KC in the Executing external programs topic.
Regards

Rich

Image
Abap KC:http://www.richard-harper.me.uk/Kb
SFMDR:http://www.se37.com

Gothmog
Posts: 1955
Joined: Wed Sep 12, 2007 4:46 am
Location: Probably not home

Re: Call an vb program from SAP

Post by Gothmog » Thu Jun 25, 2009 3:28 am

Indeed ! :shock:
Thanks for the tip, Rich !
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67

RosieBrent
Posts: 6197
Joined: Mon Oct 21, 2002 3:04 am
Location: Darlington
Contact:

Re: Call an vb program from SAP

Post by RosieBrent » Fri Jun 26, 2009 4:18 am

Doh - I'll just go and find a donut.... *sighs*
Kind Regards

Rosie Brent

Please remember to search the forum and check the FAQ before posting questions, thank you.

Tuly Idiot most of the time, part-time Guru Image

Post Reply