Application Development 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: 

How to CALL WEBCAM in SAP

Former Member
0 Kudos

Hi experts,

I have 1 requirement to capture image from WEBCAM on some action in SAP ABAP Program.

Is there any possible way by which I can achieve this.

-Regards

Rohit

14 REPLIES 14

Former Member
0 Kudos

Hi Rohit,

Microsoft has provided some video capturing APIs using which you can create a small application and invoke the same using system commands.

There is a simple C program available using Video For Windows(VFW) APIs.

Please refer link below for the capturing program.

http://batchloaf.wordpress.com/2011/04/06/snapz-a-command-line-cam-image-grabber/

And for calling system commands refer link:

Let me know if it helped?

Thanks,

Zuber

Former Member
0 Kudos

Also, have a look at the thread below:

Using Classic ActiveX Controls in the ABAP Cont... | SCN

thanga_prakash
Active Contributor
0 Kudos

Hello Rohit,

You can try the below option.

Find the location of exe file for Webcam in your system.

Pass the path to anyone one of the below function modules, run the function module, then it will launch the webcam application.

GUI_RUN

GUI_EXEC

Class CL_GUI_FRONTEND_SERVICES and method EXECUTE

Regards,

Thanga

Former Member
0 Kudos

Hi Experts,

Thanks for the replies,

I tried all this but didn't get any success.

@Zuber as advised by Zuber, I tried CommandCam also, but this program wont capture Images when we run it with ABAP code.

Please advice.

-Regars

Rohit

thanga_prakash
Active Contributor
0 Kudos

Hello Rohit,

Have you tried by using the above function module which I referred ?

Did you find any luck on it ?

Regards,

TP

Tomas_Buryanek
Active Contributor
0 Kudos

Hi,

it depends on how is that webcam used, if it has any API etc...

But most webcams can usually stream pictures over FTP and so you can acces this picture anytime from SAP over HTTP/S or FTP/S.

I have no experience with this, but there are definitely some options to load file (picture) over HTTP/S. For example cl_gui_picture method load_picture_from_url might be worth try

Let us know, if you made it work. It is interesting requirement

-- Tomas --

Aashish28
Contributor
0 Kudos

Hiii,

        You want something like below program ??? than you need to work out with CFW and Activex controls

Former Member
0 Kudos

Yes Ashish,

I want some like this..

Please guide me, how this can be possible.

-regards

Rohit

Former Member
0 Kudos

Hi Ashish,

Please guide me how you achieve this.

-Regards

Rohit

0 Kudos

Hi rohit,

             I was busy in my work ..... for accessing webcam in ABAP screen you need activeX for starting and capturing images via WEBCAM or you can search free version activeX. than you need to inherit  class cl_gui_control in your z* class and register that activeX and access its method inside it .

BR

Ashish

0 Kudos

hello all

I'm with the same need for Rohit Madnawat.

You could better detail this solution?

Thank you.

Hi @julio cesar de souza  ,@Rohit Madnawat),

     I'd recently posted document for you guys

     See my document -

0 Kudos

Thanks for the help, I'll try to apply to my environment. Thank you.

0 Kudos

Hi,

can you tell me how to use ActiveX in sap ABAP, i also have same requirement that's why i want to know about it.

please help me.