‎2007 Mar 21 10:16 AM
Hello all,
just working on and with some RFC-enabled own function modules. Normally these function modules are called via RFC from an business connector.
Now the situation is that i want to call the same function modules inside the SAP-system, but with a slightly other functionality.
The question: is there any field (sy-???) at runtime which gives me the information whether this function call came from outside or inside the SAP system ?
I'm at Rel.4.7 .
Best Regards
Wolfgang
‎2007 Mar 21 10:49 AM
Hi!
In most common, RFC is using an own user (f.e. RFC_USER) to log in to SAP, so you can check the SY-UNAME for this process.
Regards
Tamá
‎2007 Mar 21 10:49 AM
Hi!
In most common, RFC is using an own user (f.e. RFC_USER) to log in to SAP, so you can check the SY-UNAME for this process.
Regards
Tamá
‎2007 Mar 21 12:50 PM
Hello Tamas,
yes , but: these function modules will be rolled out to more than one system. So i don't know, which users will be used there for rfc-calls. Ok , i could check sy-uname being a communication user..
But my hope is that there's a way by some flag set in system tables.
Regards Wolfgang
‎2007 Mar 21 1:03 PM
Hi!
If you check the user list in the transaction SM04, there is a field (Type), which can be useful for you. I'll try to find out, where is this field read from.
Of course it is based on the user again, but not requires hard coding.
Regards
Tamá
‎2007 Mar 21 1:29 PM
Hello Tamas,
that's the idea. Looked it up - it's a c-call 'ThUsrInfo' return a table.
Reading that with sy-uname and setting a flag if RFC-called or not - a nice little form-routine.
Beside, there's still some more info which might be useful to me (ip-adress).
I'll try that.
Thank you and best regards
Wolfgang
‎2007 Mar 21 1:35 PM
Sorry I didn't find any useful tables.
You might check the coding of the program "RSM04000_ALV", this provides the results of SM04, I don't have time for this now.
Just spotted that you solved it, great job!
Best regards
Tamás
Message was edited by:
Tamás Nyisztor