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

ISR_NOTIFICATION_CREATE

Former Member
0 Likes
666

Has anyone any experience of calling function module 'ISR_NOTIFICATION_CREATE', transferring the relevant special data, to create a notification and finding that when you try to read the special data back later on that the special data has not been created? I am experiencing, every now and then, issues with this. 99% of the time its fine but it's just this 1% that is causing problems.

4 REPLIES 4
Read only

suresh_datti
Active Contributor
0 Likes
582

Are you checking for any errors after the function call? you can use the function call 'IQS4_CHECK_ERROR_SEVERE' to trap the rros.. pl take a look at the source code of the Include Program QISRWF01.

~Suresh

Read only

0 Likes
582

Thanks Suresh,

A useful function module to know. The problem I am seeing is that a notification is being created. It's just the special data that is being passed in for the creation seems to be missing. I am also passing in some data to the general data parameter for the function module and this does get created. So, it's not that the creation is failing as a notification is being produced, it's that the special data seems to be missing!

Read only

0 Likes
582

I did see the following function call immediately after ISR_NOTIFICATION_CREATE, in a couple of Std Programs, too.. may be you can try it out.. just in case..


* clear buffer for special data
  call function 'ISR_SPECIAL_DATA_BUFFER_CLEAR'.

~Suresh

Read only

Former Member
0 Likes
582

Hi,

Function module IQS0_ADD_NOTIFICATION_LONGTEXT is finally responsible to add new longtexts to a notification. Within the coding you will find the following routine:

...

*--- Longtext

*--- Textschlüssel zur Meldung

LTXTOBJ-QMNUM = I_QMNUM.

CONDENSE LTXTOBJ NO-GAPS.

MOVE LTXTOBJ TO G_TEXTOBJEKT.

MOVE LTXTOBJ TO G_OBJEKT.

PERFORM TEXT_ANLEGEN_F50 TABLES T_INLINES

USING G_TEXTOBJEKT

G_OBJEKT

VIQMEL-KZMLA

YQMEL

VIQMEL-INDTX

CHANGING VIQMEL-INDTX.

*--- Check the messages

PERFORM MSG_SHOW_F08.

...

Within the routine the previous longtext is read using function module READ_TEXT and new longtext is added at the beginning:

...

  • Falls bereits zuvor ein Langtext existiert ==> Langtext lesen

  • und vor den neuen Langtext einfügen

IF P_INDTX = YX.

CALL FUNCTION 'READ_TEXT'

EXPORTING

ID = WVIQMEL-YTDID

LANGUAGE = P_LANGU

NAME = P_TEXTOBJEKT

OBJECT = P_LEVEL

TABLES

LINES = L_LINE_TAB

EXCEPTIONS

ID = 1

LANGUAGE = 2

NAME = 3

NOT_FOUND = 4

OBJECT = 5

REFERENCE_CHECK = 6

WRONG_ACCESS_TO_ARCHIVE = 7

OTHERS = 8.

IF SY-SUBRC = 0.

  • Langtext vor neuen Text einfuegen

L_ZEILE = 1.

...

Rewrd if useful

Regards,

Swati Garg