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: 

Notification creation against object list item with BAPI.

tamas_gaal
Explorer

Hello all,

I am developing an application which has to create notifications against object list items within a Maintenance Order. I am trying to achieve it with a bapi: BAPI_ALM_NOTIF_CREATE. I have investigated much before I would have been asked this question, but I couldn't find anything. How should I set the BAPI's parameters to achive the assigment the newly created notification and the specific object list item? Should I use the OBKNR field value from OBJK table? There is no information in the documentation how I should use the refobjectkey and the other fields in this case. I don't have a reference notification number. Could anybody give me a tip how I can achieve it?

Thanks in advance,

Tamás

6 REPLIES 6

NTeunckens
Active Contributor
0 Kudos

Hello

Which specific Objectlist-item are you referring to?

It would seem most of the ObjectList-records would be transferrable to the "BAPI2080_NOTHDRI"-Header ('MaterialNo' / 'SerialNo' / 'Equipment' / 'FunctionalLocation') ...

You don't need to get the underlying ObjectID, just add Equipment of Functional Location as an example ... See if this helps you out.


Kind regards

Nic T.

0 Kudos

Hi Nic,

Thanks for your proposed soulution, but unfortunately it's not perfect for me. I need to pass the newly created notification number to the relevant and already existing object list item. With this solution that you proposed I can create only new object list items with notification number.

So I need to put my notification number here. How this can be solved? I have debugged the standard process much, but it doesn't help me, because it's a dynpro based solution and my development will be only a function module which will be called through RFC.

Do you have any other idea?

Thank you!

Kind regards,

Tamás

tamas_gaal
Explorer
0 Kudos

Hello Nic,

Thank you for your reply. I tried your proposed solution first, but unfortunately it puts the notification under the existing object lists items and not assign to the selected one. I was debugging the standard process and I've found 'IQS0_CREATE_NOTIF_TO_ORDER' and

IOPEXT_INSERT_OL_NOTIF function modules. These are doing the same thing what I want to do, I hope these will works for me also.

Tamás

Jelena
Active Contributor
0 Kudos

FYI - Nic, can't see it when you use an answer to reply. Use Comment under the specific answer to reply to that person.

0 Kudos

Yes you are right. Thanks for pointing this out, will try to keep this in mind ...

0 Kudos

Hi,

Is there a solution for this issue? I am facing exactly same issue.

Thanks!