2013 Aug 19 4:03 PM
Hi all,
I have to write a program to create notes in XD03. I have used FM 'SGOS_NOTE_CREATE' and it did create notes because I can display it using FM "SGOS_NOTE_DISPLAY". However, those notes I created using FM 'SGOS_NOTE_CREATE' don't show up in XD03. Anyone has any idea? Also, do you know what I fill in to ls_object-objkey and ls_object-objtype.
Thanks,
Charles
2013 Aug 20 3:59 AM
The following may help you. You can use this instead of the function module to create the NOTE. Check the where used list to check about ES_LPOR & LS_ATTACHMENT.
TRY.
CALL METHOD cl_binary_relation=>create_link
EXPORTING
is_object_a = es_lpor
is_object_b = ls_attachment
ip_reltype = 'NOTE'.
CATCH cx_obl_internal_error cx_obl_model_error.
ENDTRY.
With regards,
Gokul
Hi all,
I have to write a program to create notes in XD03. I have used FM 'SGOS_NOTE_CREATE' and it did create notes because I can display it using FM "SGOS_NOTE_DISPLAY". However, those notes I created using FM 'SGOS_NOTE_CREATE' don't show up in XD03. Anyone has any idea? Also, do you know what I fill in to ls_object-objkey and ls_object-objtype.
Thanks,
Charles
2013 Aug 19 10:19 PM
2013 Aug 20 3:59 AM
The following may help you. You can use this instead of the function module to create the NOTE. Check the where used list to check about ES_LPOR & LS_ATTACHMENT.
TRY.
CALL METHOD cl_binary_relation=>create_link
EXPORTING
is_object_a = es_lpor
is_object_b = ls_attachment
ip_reltype = 'NOTE'.
CATCH cx_obl_internal_error cx_obl_model_error.
ENDTRY.
With regards,
Gokul
2013 Aug 20 9:29 PM
Hi Gokul,
I tried yours and looks like it worked the same way as my FMs. I finally figured out the issue was I used wrong Object Type. The small place really took long time.
Charles
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |