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

Read PM notifications textarea changes

Former Member
0 Likes
791

Hi

Thanks for your attention.

In the PM notification transactions (iw21,iw22,etc) there is a textarea (which really is a Sapscript) where users con put all the messages and texts they want related to the notification.

We know that with the BAPI_ALM_NOTIF_GET_DETAILS we get all this texts. But our priority is to get only the texts changed in a specific time.

For example, i create my PM notification and during the day i made some modifications and add more texts in the textarea, but in another times of the same day I didn't change this textarea. So if we need to pass by an interface(.Net) the texts placed in this textarea, we just want the texts being modificated in that moment and not all the previous texts. Keep in mind that in a day we could add more texts that we want.

In another words we need to validate that when the text area of the PM notification is changing (something similar with the changes log in the tables CDHDR and CDPOS), we have to export to my interface only the new text, and not all the previous texts. Did you understand?

What can I use? Is there a table or log where we can detect changes on the textarea of a PM notification?

Looking forward to hearing from you.

Thanks in advance.

R. Romero

2 REPLIES 2
Read only

MariaJooRocha
Contributor
0 Likes
743

Hi,

Try FM READ_TEXT, and analyse the header; fields TDLDATE and TDLTIME.

Best regards,

Maria João Rocha

Read only

0 Likes
743

Hi,

Thanks for your answer Maria.

This help me sou far.

But before your I've applied another solution which I want to share with all.

1. Because we need to capture the changes of the textarea, after user saved the notification via IW21, IW22, IW28 etc... what I've done is in the include LIQS1F16 place an Enhancement Poiint (exactly, this include because the cursor sets here after the confirmation message in the bar).

2. Here, I use the FM 'READ TEXT' in order to capture the new lines in the text-area and setted this in a T1 internal table.

3. At the same time, I select the field TDTXTLINES from the table STXH where TDOBJECT = 'QMEL', TDNAME = <MY_OBJECT_NUMBER>, TDID= 'LTXT' and TDSPRAS=SY-LANGU.

4. If I detect that number of lines in T1 are less than field TDTXTLINES, I capture the new text entered by user.

This function because, after this execution, is when the transaction call the FM 'SAVE_TEXT' in order to place the new textlines in database, and of course update the number of lines in STXH-TDTXTLINES.

Hope this help you.

Thanks again.