Quantcast
Channel: SCN: Message List - SAP CRM: Webclient UI - Framework
Viewing all articles
Browse latest Browse all 7775

Re: How can Text read from Component GSPRIVNOTE

$
0
0

Hi,

First you need to create text type in SPRO

Go to Customer Relationship Management->Basic Settings->Text Management->Define Text Objects and Text Type->choose Text object and ID's->change mode->create your custom text type under CRMD_ORDERH

 

 

 

SPRO_1.pngSPRO_2.jpg

 

 

SPRO_3.jpg

You find Text determination Procedure for your Document type from CRM_>Transactions->Basic Settings->Define Transaction Types->chose your document type and click details.

 

SPRO_7.jpg

 

->Define text determination procedure->choose CRM_ORDERH->click procedure

SPRO_4.jpgSPRO_5.jpg

 

Choose your document type text determination procedure and assign your text type here.

 

SPRO_6.jpg

 

 

then you can use this procedure to update text type. using CRM_TEXT_MAINTAIN_OW

 

 

ls_text-ref_guid = iv_act_guid.

        ls_text
-ref_kind = 'A'.

        ls_text
-text_object = 'CRM_ORDERH'.

        ls_text
-tdid = 'ZZT1' your custom text type

ls_text-tdspras = 'E'.

        ls_text
-mode = 'A'.

       
LOOP AT lt_lines ASSIGNING <fs_line>.

          ls_text_lines
-tdformat = '*'.

          ls_text_lines
-tdline = <fs_line>-tdline.

         
APPEND ls_text_lines TO lt_text_lines.

         
CLEAR :ls_notes,ls_text_lines,lv_text.


       
ENDLOOP.

        ls_text
-lines[] = lt_text_lines[].

       
APPEND ls_text TO lt_text.

        ls_field_names
-fieldname = 'LINES'.

       
APPEND ls_field_names TO lt_field_names.


        ls_field_names
-fieldname = 'TDID'.

       
APPEND ls_field_names TO lt_field_names.


        ls_field_names
-fieldname = 'TDSPRAS'.

       
APPEND ls_field_names TO lt_field_names.


       
CALL FUNCTION 'CRM_TEXT_MAINTAIN_OW'

         
EXPORTING

            it_text                 
= lt_text

            iv_object_guid          
= iv_act_guid

            iv_object_kind          
= 'A'

         
CHANGING

            ct_input_field_names    
= lt_field_names

         
EXCEPTIONS

            object_kind_unknown     
= 1

            read_error_object_buffer
= 2

           
OTHERS                   = 3.

 

then call CRM_ORDER_SAVE

     
ENDIF
.

 

Regards,

Deepika.


Viewing all articles
Browse latest Browse all 7775

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>