‎2007 Jul 12 4:03 PM
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.
‎2007 Jul 12 4:23 PM
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
‎2007 Jul 12 4:34 PM
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!
‎2007 Jul 12 5:04 PM
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
‎2007 Jul 12 4:33 PM
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