Application Development 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: 

BAPI_ALM_NOTIF_CREATE

Former Member
0 Kudos
724

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

1 ACCEPTED SOLUTION

jogeswararao_kavala
Active Contributor
0 Kudos
444

May check the behavior with corresponding TPLNR value (like ?0100000000000000014) instead of  FLocn label (STRNO).

5 REPLIES 5

jogeswararao_kavala
Active Contributor
0 Kudos
445

May check the behavior with corresponding TPLNR value (like ?0100000000000000014) instead of  FLocn label (STRNO).

0 Kudos
444

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?

0 Kudos
444
  • Please check function modules
    • CONVERSION_EXIT_TPLNR_INPUT     >  This FM takes STRNO (Functional Location Label)  as Input  and gives you the TPLNR code.
    • CONVERSION_EXIT_TPLNR_OUTPUT    > This FM takes TPLNR as input and gives you the STRNO (Functional Location Label) .
  • I think these FMs are precisely as per your requirement.

Good luck

KJogeswaraRao

0 Kudos
444

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!

0 Kudos
444

That's good. I do not know whether any such RFC enabled FMs are there.

Regards

KJogeswaraRao