cancel
Showing results for 
Search instead for 
Did you mean: 

Notes assignment block to be enhanced to display a summary of notes

Former Member
0 Kudos
217

I need to find the FMwhich will be enhanced to collect notes from different objects u2013 Activities and Opportunities, linked to the account

Upon clicking the Text hyperlink, the details of the notes will be displayed.

The Date and Employee Responsible should be displayed for every note and each note will be separate d by a line.

Any pointers on this will be appreciated.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Experts,

Thanks for your reply.

I have used READ_TEXT function module for my requirement but I am unable to retrieve the complete notes.

I am using STXH table to pass the values.

I have pasted my code as follows:

data : client type sy-mandt,

id type THEAD-TDID,

lang_wa type THEAD-TDSPRAS,

name_wa type THEAD-TDNAME,

object type THEAD-TDOBJECT,

header_struct type THEAD,

lines type table of tline.

CALL FUNCTION 'READ_TEXT'

EXPORTING

CLIENT = '800'

id = '0001'

language = 'E'

name = '000000000000000000000000000000000000000000000000000000005045'

object = 'BUT000'

  • ARCHIVE_HANDLE = 0

  • LOCAL_CAT = ' '

IMPORTING

HEADER = header_struct

tables

lines = lines

  • 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.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

WRITE : / header_struct.

IF 1 = 1.

ENDIF.

I also wanted to know how to retrieve the notes from opportunity page and display it on the account page on WEB UI.

Any pointers will be appreciated.

Thank you.

Former Member
0 Kudos

Hi,

you can use the table 'STXH' to fetch the text details.

use the FM as below.

DATA : lines TYPE TABLE OF TLINE,

thead TYPE THEAD.

CALL FUNCTION 'READ_TEXT'

EXPORTING

CLIENT = SY-MANDT

id = " TDID value fetch from STXH 'ZCON'

language = 'E'

name = ''activity or opportunity guid '4CC90AC419AA01A7E1008000AC11A01C'

object = " TDOBJECT value fetch from STXH 'CRM_ORDERH'

  • ARCHIVE_HANDLE = 0

  • LOCAL_CAT = ' '

IMPORTING

HEADER = thead

tables

lines = lines

.

you can fetch the text elements from lines.

Hope this helps.

Prerna

Former Member
0 Kudos

Thanks robert ,

I used the CRM_DNO_READ_ORDER_TEXT and able to read the opputunity texts .

How could i see the text in BP ovrview page in NOTES assignment block.

should i enhance BP_DATA /Notes view for this?

Ineed to display the opputunity notes of the BP in the notes assignment block of BPAcoount.

robert_kunstelj
Active Contributor
0 Kudos

logic for texts is defined in component GSTEXT, so you would have to redefine that component, but this change would be reflected on all objects, unles you would use conditions to limit modification. I would recommend to create completely new component with similar logic as it is build in GSTEXT but modifield to your requirements. And then integrate this new component in bp_head compoennt.

Former Member
0 Kudos

thanks robert .

Three text types will be configured :

account notes..activity notes ..and oppurtunity notes..

This text type will have an Access sequence, which uses a function module to capture the Notes. This function module will be enhanced to collect notes from different objects (i.e. Activities and Opportunities) linked to the account.

I need to just display the notes when clicked on hyperlink.(in the next scrreen--summary of notes).

so i can write my logic i.e in the access sequence.

or still i need to do some changes in WEB UI ..GSTEXT?

robert_kunstelj
Active Contributor
0 Kudos

access sequence is used to prefilll data at the begining. in your case I guess you want to read the result written in all this 3 note types. so in this case you can't use access sequeence. you will have to modify the logic by developing Z component with logic for notes or modifying the logic og GSTEXT component. one way would be to parse all 3 notes in one existing standard note already displayed in web ui.

Former Member
0 Kudos

Hi Vishal,

I have used the function module CRM_TEXT_READ_API to capture the texts but when I try to use this function module I am not able to retrieve any kind of data.

I want to know from which table can we capture the data.

REPORT ZNOTES23.

DATA : wt_GUID type CRMT_OBJECT_GUID_TAB,

lv_guid TYPE crmt_object_guid,

wt_text TYPE CRMT_TEXT_WRKT.

lv_guid = 'E04FC112110AB4F1876D0019B9B40884'.

Append lv_guid to wt_GUID.

clear lv_guid.

IF 1 = 1.

ENDIF.

CALL FUNCTION 'CRM_TEXT_READ_API'

EXPORTING

it_guid = wt_GUID

iv_object_kind = 'A'

  • IV_BUILD_INT_TABLES = FALSE

  • IV_NO_AUTH_CHECK = FALSE

IMPORTING

ET_TEXT = wt_text

.

IF SY-SUBRC = 0.

ENDIF.

IF 1 = 1.

ENDIF.

Any pointers on this will be appreciated.

Thanks in advance.

robert_kunstelj
Active Contributor
0 Kudos

Use fm 'CRM_DNO_READ_ORDER_TEXT' to read all texts. Content is writen in table LINES.

rene_markytan
Advisor
Advisor
0 Kudos

Hello,

try your requirement with function module READ_TEXT.

Regards

Rene

former_member193352
Active Contributor
0 Kudos

Dear Amar,

You can use std FM - "CRM_TEXT_READ_API" to read notes data for a business transactions including Activities and Opportunities. You can look at the where used list for how to use this FM.

It will return you the complete note details including date and timestamp, username and actual note content.

Hope this helps.

Thanks

Vishal