cancel
Showing results for 
Search instead for 
Did you mean: 

Binding Problem for CPG_Main with GSText/notes window enhancement

Former Member
0 Kudos

Hi experts,

In SAP Standart there is a notes assignment block which leads to a sperate window for entering note texts.

I have enhanced component cpg_main with NotesWindow from component GSText to make direct notes (text) field available for campaigns directly in an assignment block on the campaign overviewpage.

So far the window gets displayed in cpg_main/opoverview. However, I still have problem with retriving data entered in the text window. When saving the data gets displayed but when reopening the campaign, the data is lost.

Binding of the GSText/NotesWindow is done over context:

Custom Controller:

TEXT - UCGSText Text

ATTR - UCGSText ATTR

does anyone know what further settings / code needs to be done?

Thanks

Michael

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I think you must read the related obejct BTText or data is getting lost when you save. Try to set a default text when you create the entity.

Best regards,

Caíque Escaler

Former Member
0 Kudos

Hi Caíque,

Once I specify a text type in regular notes assignment block the text gets also displayed in my NotesWindow. However, where can I set default text types for campaigns. I reduced the text types for campgains to one but still this needs to be selected. I think once this is default I will have solved this.

What do you mean with "read the related obejct BTText". Do you mean binding from my CPG_Main custom controller to GSText via context BTText?

Many thanks for your hints...

thx

Michael

Former Member
0 Kudos

Nobody a hint on how to set default Text Type for NotesWindow?

Former Member
0 Kudos

Hi,


                lr_entity->set_property( iv_attr_name = 'TDOBJECT'
                                         iv_value = 'CRM_ORDERH' ).

                lr_entity->set_property( iv_attr_name = 'TDNAME'
                                         iv_value = w_guid ).

                lr_entity->set_property( iv_attr_name = 'TDID'
                                         iv_value = l_tdid ).

                lr_entity->set_property( iv_attr_name = 'TDSPRAS'
                                         iv_value = sy-langu ).

Hope this helps!

Best regards,

Caíque Escaler

Former Member
0 Kudos

Caíque - defaulting text object in on_new_focus of TEXT context solved it...

Thx

Former Member
0 Kudos

Hi Micheal,

I have the same requirement as your's , need to add Notes into component BT120H_CPL overview page, can you guide me thtru the steps that you had performed. Many Thanks!

Bhanu

Answers (0)