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: 

Certifying a notification with method CERTIFY_COMPLETION

former_member1716
Active Contributor
0 Kudos

Hello All Experts,

Good day to you all.

I have a requirement to certify a Notification that we create using IW21. Let me explain some previous steps that i have done.

First after creation of a notification in IW21 am completing the task of the notification using BAPI   BAPI_SERVNOT_COMPLETE_TASK.

Then i complete the notification itself using BAPI   BAPI_ALM_NOTIF_CLOSE.

Till this step am good and i have achieved the requirement. Now after this i need to certify this notification, for this purpose i found a method eligible to do.

The Method is CERTIFY_COMPLETION from the class CL_NOTIFICATION_WPS. When i saw this method there is no parameter maintained and am not sure how to use this method and also could not get any information on this can you please help me in achieving my requirement with this method.

Thanks In Advance.

Regards,

Satish

1 ACCEPTED SOLUTION

former_member1716
Active Contributor
0 Kudos

Hi All,

We acheived the requirement by creating an enhancement point in FM SIGN_SHOW_SCREEN.

The logic here is just copying the PAI events of the pop up screen and exiting directly so that the command will not reach out to code triggering pop up screens. It is working fine Check out the below blog for further details.

Certifying a Notification without Credentials!

regards,

Satish

6 REPLIES 6

custodio_deoliveira
Active Contributor
0 Kudos

Hi Satish,

I've never used it but it appears to be quite simple:

DATA lo_notification TYPE REF TO cl_notification_wps.

CREATE OBJECT lo_notification

   EXPORTING

     qmnum = p_qmnum.  " your notification number

TRY.

     lo_notification->certify_completion( ).

   CATCH cx_notification_wps.    " Notification Base Exception Class

   CATCH cx_ds_escape.    " Individual Cancelation of a Signature

ENDTRY.

Regards,

Custodio

0 Kudos

Hi Custodio,

Thanks for your reply but my requirement is as given below,

When i use that particular method it is asking for my credentials, i need to ignore this step. Can you please suggest how we can do that.

Regards,

Satish

0 Kudos

Well, maybe it's not as simple as I thought

I found this method being called in FM DIWPS_NOTIF_CERTIFY. Maybe you should use the FM instead of the method, although the only difference I can see is method lock( ) being called before certify_completion( ).

I tried to do it here in my system but keep getting a status error.

Sorry, it looked easy at first

EDIT: I tried a bit more and no longer get status message, instead getting message SIG 618 (signature not defined). We are not going to define here in my system so I can't help you any further that this. But as long as you have a notification with status NOCO and not COCE and you have the Signature object CMPL_NTF defined (have a look at the long text for the message), I think this should work.

Cheers,

Custodio

0 Kudos

Hi Custodio,

One more small doubt even after using this method and class the status is not getting updated in database, can you suggest any remedy for this.

Regards,

Satish

0 Kudos

Hi Satish,

I couldn't find any method for this so my guess is you need a commit work.

Cheers,

Custodio

former_member1716
Active Contributor
0 Kudos

Hi All,

We acheived the requirement by creating an enhancement point in FM SIGN_SHOW_SCREEN.

The logic here is just copying the PAI events of the pop up screen and exiting directly so that the command will not reach out to code triggering pop up screens. It is working fine Check out the below blog for further details.

Certifying a Notification without Credentials!

regards,

Satish