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

Check if object exists remotely

former_member355261
Participant
0 Likes
2,113

Hello,

I found the FM TR_CHECK_EXIST which allows to check whether a given object (of type e071) exists in system or not.

The FM is greatly doing the job, but my requirement is to do the check in remote systems using RFC connections.

The problem is that the FM TR_CHECK_EXIST is not remote-enabled.

I found a workaround by using FM TR_CHECK_TYPE to convert the object from E071 to TADIR and then using the FM DEV_CHECK_OBJECT_EXISTS which is remote enabled. But I'm not happy with this coding and I want a way to check whether a given object (of type e071) exists in a remote system or not.

Thanks in advance.

Hello,

I found the FM TR_CHECK_EXIST which allows to check whether a given object (of type e071) exists in system or not.

The FM is greatly doing the job, but my requirement is to do the check in remote systems using RFC connections.

The problem is that the FM TR_CHECK_EXIST is not remote-enabled.

I found a workaround by using FM TR_CHECK_TYPE to convert the object from E071 to TADIR and then using the FM DEV_CHECK_OBJECT_EXISTS which is remote enabled. But I'm not happy with this coding and I want a way to check whether a given object (of type e071) exists in a remote system or not.

Thanks in advance.

5 REPLIES 5
Read only

former_member184158
Active Contributor
0 Likes
1,732

Hi,

could you try to copy it and change it as your requirement

regards

Ebra

Read only

0 Likes
1,732

This way I will need to create the copied FM (or even FUGR) in the other system, and it's not possible in my case ...

Read only

0 Likes
1,732

Copy function modules is a bad idea. The copy doesn't get any updates. The solution is simple. Create your own RFC enabled function module with the same interface as TR_CHECK_EXIST, which calls TR_CHECK_EXIST, and use that instead.

Read only

0 Likes
1,732

Hi,

you are right, but I did not mean it to copy it the same, ,

I mean he can copy what he wants, just to meet his requirement.

Regards.

Read only

0 Likes
1,732

Thanks for the reply. But in this case I will still need to create the remote enabled FM in all the other systems in order tu use it, and it's not possible in my case ...