2016 Jun 04 1:41 AM
I have an external application that creates maintenance notifications by calling BAPI_ALM_NOTIF_CREATE, BAPI_ALM_NOTIF_SAVE and BAPI_TRANSACTION_COMMIT. It works when connecting to some SAP systems, but not others.
On the systems where it doesn't work, when I call BAPI_ALM_NOTIF_CREATE, I get an error saying that the Functional Location does not exist. If I add an Equipment number, it works but gives me an information message saying the the functional location does not exist. The functional location does exist.
When I call the BAPI's from SAPgui using SE37, everything works fine.
Is there some translation I need to do on the Functional Location before passing it to BAPI_ALM_NOTIF_CREATE in my external application?
Why would it work differently when calling BAPI_ALM_NOTIF_CREATE from an external application?
Thanks,
Greg
2016 Jun 04 2:37 AM
May check the behavior with corresponding TPLNR value (like ?0100000000000000014) instead of FLocn label (STRNO).
2016 Jun 04 2:37 AM
May check the behavior with corresponding TPLNR value (like ?0100000000000000014) instead of FLocn label (STRNO).
2016 Jun 09 8:05 PM
It looks like the issue is as you suggested, that I need to supply the TPLNR as the function location to BAPI_ALM_NOTIF_CREATE.
Is there an existing BAPI that I can call from an external application to convert the Functional Location string to it's corresponding TPLNR?
I noticed that you can look up the TPLNR number in the IFLOS table. Is there any way to interrogate the IFLOS table using BAPI calls from an external application?
2016 Jun 09 11:50 PM
Good luck
KJogeswaraRao
2016 Jun 10 1:06 AM
Those FM's work, but they are not Remote-Enabled Modules, so I can't call them from an external application. I'm connecting to SAP using the NW RFC SDK.
I ended up making it work by calling BAPI_FUNCLOC_GETLIST and setting the LOW and HIGH filter values to the same Functional Location string. It returns 1 result which has the matching TPLNR. It's not an ideal solution, bit it works.
Thanks for your help!
2016 Jun 10 1:12 AM
That's good. I do not know whether any such RFC enabled FMs are there.
Regards
KJogeswaraRao