Q
Problem solve Get help with specific problems with your technologies, process and projects.

Why is 'vi rfcexec script ' always successful?

We want to start our EDI-subsystem when writing an IDoc file to a UNIX directory. The script called vi rfcexec...

works fine. The IDocs are updated with status '18'.

My problem is, that the call is always successful, even if I enter a script that does not exist in the port for outbound trigger. I also tried exiting the UNIX script with a status code unequal to '0' -- still the call is seen as successful. I debugged the ABAP 'SRFCEXEC', and also here the CALL FUNCTION 'RFC_REMOTE_EXEC' has a SY-SUBRC '0' in case of the script called does not exist. Do you have any idea why this is the case?


Sounds like a bug. The C source code SRFCEXEC is provided in the RFC SDK, I guess you want to fix it. If you do not want to recompile everything, then you can call the script indirectly by calling a new command shell (I think it is the "ENV" command in UNIX). Then you should get an error text if the script is not there.
This was last published in April 2004

Dig Deeper on SAP ABAP

PRO+

Content

Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchManufacturingERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchCRM

SearchContentManagement

SearchFinancialApplications

Close