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

Run a C Program from Abap

Former Member
0 Likes
1,401

Dear All,

We want to pass a value to a c program that runs in unix system with same SAP machine, and it returns a value.

Is it possible to handle this with a BAPI or anything else?

Thanks in Advance..

1 ACCEPTED SOLUTION
Read only

rainer_hbenthal
Active Contributor
0 Likes
959

Define your program call in SM69, for calling the defined program check function module SXPG_CALL_SYSTEM

7 REPLIES 7
Read only

Former Member
0 Likes
959

Hi,

Hi go through the link which shows how to call an external program in SAP [External programs|http://www.sapfans.com/forums/viewtopic.php?f=31&t=326522]

Read only

rainer_hbenthal
Active Contributor
0 Likes
960

Define your program call in SM69, for calling the defined program check function module SXPG_CALL_SYSTEM

Read only

0 Likes
959

Dear Rainer,

We have tried your answer and that was so usefull. But we couldn't run out.

SXPG always returns ld.so.1: kz_sik: fatal: libstdc++.so.5: open failed: No such file or directory error.

Also PATH and LD_LIB_PATH varibles of root, SIDADM users were set.

libstdc++ file is currently under /usr/local/lib

What should need?

Thanks in Advance

Read only

0 Likes
959

Any update!

Also PATH and LD_LIB_PATH envoriements of root, sidadm and oraadm users have been set but still error.

Read only

0 Likes
959

Hi,

Application server file path is case sensitive. Was this taken care?

Thanks,

Vinod.

Read only

0 Likes
959

Check if you can call one of the standard defined programs.

Read only

0 Likes
959

Thank You for your concern Guys,

Problem was solved via copy below libraries under /usr/lib

libstdc++.so

libstdc++.so.5

libgcc_s.so.1