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

Customer fields for BAPI BAPI_QNOTIFICAT_CREATE

manou
Discoverer
0 Likes
2,907

Hi

I would like to add customer fields when creating notification

from BAPI BAPI_QNOTIFICATION_CREATE - there is no Extention for this BAPI

and SAP recomndation is to use user exit, however I cant find any user exit, any idea?

Thanks Emmanuel

1 ACCEPTED SOLUTION
Read only

jogeswararao_kavala
Active Contributor
0 Likes
1,992

Hello Emmanuel,

In fact your question perhaps needs rephrasing.

  • You can not create Custom fields through any FMs like already discussed.
  • You can query for updating already configured Custom fields of a Notification,  while creating one.
  • In such case, you need to use user-exit QQMA0014 using the export structure (of-course giving your logic).
  • This updates the custom fields with values as per logic given in this exit while creating Notifcation through any such FM.
  • If this is not suitable, then you have to go for Batch input lines with CALL TRANSACTION 'IW21'., in place of FM to create a Notification alongwith the values to the custom fields.

Regards

KJogeswaraRao.

8 REPLIES 8
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,992

Look at the exit FM of function group XQQM "Customer Exits QM/PM Notifications" and find SMOD enhancement thru F4 like QQMA0001 or similar (Also look at other kind of Enhancement in package QQM)

Regards,

Raymond

Read only

0 Likes
1,992

Hi

Thanks for your answer, however this is only for screen exit and not for the BAPI.

Thanks Emmanuel

Read only

0 Likes
1,992

Yes but did you look  to other available exits?

Read only

0 Likes
1,992

Hi

Thank again, I did checked all the exits, no one

can be used, however I asked a friend and he told me to use BAPI

BAPI_ALM_NOTIF_CREATE

Thanks

Read only

0 Likes
1,992

This BAPI is for another type of notification, which kind of notification do you actually want to change (or which transaction)

You could try EXIT_SAPMIWO0_020, export some data to memory and import it in this Customer Exit.

Regards,

Raymond

Read only

0 Likes
1,992

Read only

jogeswararao_kavala
Active Contributor
0 Likes
1,993

Hello Emmanuel,

In fact your question perhaps needs rephrasing.

  • You can not create Custom fields through any FMs like already discussed.
  • You can query for updating already configured Custom fields of a Notification,  while creating one.
  • In such case, you need to use user-exit QQMA0014 using the export structure (of-course giving your logic).
  • This updates the custom fields with values as per logic given in this exit while creating Notifcation through any such FM.
  • If this is not suitable, then you have to go for Batch input lines with CALL TRANSACTION 'IW21'., in place of FM to create a Notification alongwith the values to the custom fields.

Regards

KJogeswaraRao.

Read only

manou
Discoverer
0 Likes
1,992

Hello

Thanks for reply, I used 3 functions:

1. BAPI_QUALNOT_CREATE.

2. BAPI_QUALNOT_SAVE.

3. BAPI_TRANSACTION_COMMIT.

I also implemented the BADI NOTIF_EVENT_SAVE

in order to pass the Z fields added to QMEL table

using EXPORT to memory.

Thanks again for all you reply