SAP Reports / Programs | Cross-Application Components | European Monetary Union: Euro(CA-EUR) SAP CA

CNV_MBT_NOTE_MGMT_46 SAP ABAP Report - Notes Management







CNV_MBT_NOTE_MGMT_46 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter CNV_MBT_NOTE_MGMT_46 into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT CNV_MBT_NOTE_MGMT_46. "Basic submit
SUBMIT CNV_MBT_NOTE_MGMT_46 AND RETURN. "Return to original report after report execution complete
SUBMIT CNV_MBT_NOTE_MGMT_46 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: P_AKTTYP = Action Type
Title: Notes Management
Text Symbol: 001 = Note Management
Text Symbol: 002 = Note does not yet exist. Create the note now?
Text Symbol: 003 = Are you sure you want to delete the note?
Text Symbol: 004 = Note Management: Delete Note.
Text Symbol: 005 = Note has been changed. Do you want to save?
Text Symbol: 006 = Yes
Text Symbol: 007 = No
Text Symbol: 008 = Create
Text Symbol: 009 = Edit
Text Symbol: 010 = Display
Text Symbol: 011 = Template
Text Symbol: 012 = Template text
Text Symbol: 013 = Type
Text Symbol: 016 = Templates
Text Symbol: 017 = Do you want to append the template or replace the existing document with the template
Text Symbol: 018 = Append
Text Symbol: 019 = Replace
Text Symbol: 023 = Note doesnot exist.


INCLUDES used within this REPORT CNV_MBT_NOTE_MGMT_46

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

DDUT_DOMVALUES_GET * CALL FUNCTION 'DDUT_DOMVALUES_GET' * EXPORTING * name = gc_domain * langu = sy-langu * texts_only = 'X' * TABLES * dd07v_tab = gt_doc_type * EXCEPTIONS * illegal_input = 1 * OTHERS = 2.

REUSE_ALV_POPUP_TO_SELECT * CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT' * EXPORTING * i_title = 'Templates'(016) * i_tabname = 'GT_CNVMBTDOCTEMPLSTRUCT' * it_fieldcat = gt_alv_fcat * is_private = gs_private * IMPORTING * es_selfield = gs_selfield * e_exit = gv_exit * TABLES * t_outtab = gt_cnvmbtdoctemplstruct * EXCEPTIONS * program_error = 1 * OTHERS = 2.

CNV_MBT_NEXT_DOC_NUMBER_46 CALL FUNCTION 'CNV_MBT_NEXT_DOC_NUMBER_46' EXPORTING iv_object = 'NOTE_OBJ' IMPORTING ev_obj_id = gv_obj_id EXCEPTIONS obj_id_could_not_be_generated = 1 object_doesnot_exists = 2 OTHERS = 3.

DOCU_COPY * CALL FUNCTION 'DOCU_COPY' * EXPORTING * id = gv_dokhl-id * langu = gv_dokhl-langu * newobject = gv_dokhl-object * object = gv_cnvmbtdoctempl-object_id * state = gv_dokhl-dokstate * typ = gv_dokhl-typ * version = gv_dokhl-dokversion * TABLES * line = gt_line * EXCEPTIONS * OTHERS = 1.

POPUP_TO_CONFIRM * CALL FUNCTION 'POPUP_TO_CONFIRM' * EXPORTING * titlebar = text-001 * text_question = text-002 * text_button_1 = 'Yes' * text_button_2 = 'No' * display_cancel_button = ' ' * IMPORTING * answer = gv_answer * EXCEPTIONS * text_not_found = 1 * OTHERS = 2.

ENQUEUE_ECNVMBTNRIV CALL FUNCTION 'ENQUEUE_ECNVMBTNRIV' EXPORTING mode_cnvmbtnriv = 'E' client = sy-mandt * OBJECT = * X_OBJECT = ' ' * _SCOPE = '2' * _WAIT = ' ' * _COLLECT = ' ' EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3 .

DEQUEUE_ECNVMBTNRIV CALL FUNCTION 'DEQUEUE_ECNVMBTNRIV' * EXPORTING * MODE_CNVMBTNRIV = 'E' * CLIENT = SY-MANDT * OBJECT = * X_OBJECT = ' ' * _SCOPE = '3' * _SYNCHRON = ' ' * _COLLECT = ' ' .

DOCU_INIT CALL FUNCTION 'DOCU_INIT' EXPORTING id = l_id object = gv_dokhl-object langu = sy-langu typ = l_typ IMPORTING xdokil = ls_dokil.

DOCU_READ CALL FUNCTION 'DOCU_READ' EXPORTING id = l_id langu = sy-langu object = gv_dokhl-object typ = l_typ version = ls_dokil-version IMPORTING head = ls_header TABLES line = lt_tlines.

DOCU_GET CALL FUNCTION 'DOCU_GET' EXPORTING id = gc_tx langu = sy-langu object = gs_cnvmbtnotetempl-template_id TABLES line = lt_tlines EXCEPTIONS no_docu_on_screen = 1 no_docu_self_def = 2 no_docu_temp = 3 ret_code = 4 OTHERS = 5.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING text_question = text-017 text_button_1 = text-018 text_button_2 = text-019 IMPORTING answer = lv_answer EXCEPTIONS text_not_found = 1 OTHERS = 2.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

DOKU_COPY_ALL * CALL FUNCTION 'DOKU_COPY_ALL' * EXPORTING * new_object = gv_dokhl-object * old_id = gc_tx * old_object = lc_object_name * suppress_authority = space * EXCEPTIONS * OTHERS = 10.

DOCU_CPY CALL FUNCTION 'DOCU_CPY' EXPORTING id = gc_tx langu = sy-langu newname = gv_dokhl-object object = lc_object_name EXCEPTIONS ret_code = 1 OTHERS = 2.

DOCU_EXP CALL FUNCTION 'DOCU_EXP' EXPORTING id = gc_tx langu = sy-langu object = gv_dokhl-object typ = 'E' IMPORTING edokhl = ls_dokhl edokil = ls_dokil TABLES line = lt_tlines EXCEPTIONS ret_code = 1 OTHERS = 2.

DOCU_IMP CALL FUNCTION 'DOCU_IMP' EXPORTING edokhl = ls_dokhl edokil = ls_dokil TABLES line = lt_tlines.

DOCU_READ CALL FUNCTION 'DOCU_READ' EXPORTING id = gc_tx langu = sy-langu object = gv_dokhl-object typ = ls_dokil-typ version = ls_dokil-version IMPORTING head = ls_thead TABLES line = lt_tlines.

DOCU_UPDATE_SAVE CALL FUNCTION 'DOCU_UPDATE_SAVE' EXPORTING head = ls_thead state = ls_dokil-dokstate typ = ls_dokil-typ version = ls_dokil-version TABLES line = lt_tlines.

DOCU_ACTIVATE





CALL FUNCTION 'DOCU_ACTIVATE' EXPORTING head = ls_thead state = ls_dokil-dokstate typ = ls_dokil-typ version = ls_dokil-version.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING text_question = text-005 text_button_1 = text-006 text_button_2 = text-007 default_button = '1' display_cancel_button = space IMPORTING answer = lv_answer EXCEPTIONS text_not_found = 1 OTHERS = 2.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-004 text_question = text-003 text_button_1 = 'Yes' text_button_2 = 'No' display_cancel_button = space IMPORTING answer = gv_answer EXCEPTIONS text_not_found = 1 OTHERS = 2.

DOCU_DELETE CALL FUNCTION 'DOCU_DELETE' EXPORTING head = gs_head typ = gv_dokhl-typ version = gv_dokhl-dokversion.

REUSE_ALV_POPUP_TO_SELECT CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT' EXPORTING i_title = 'Templates'(016) i_tabname = 'LT_CNVMBTNOTETEMPL' it_fieldcat = lt_alv_fcat is_private = ls_private IMPORTING es_selfield = ls_selfield e_exit = lv_exit TABLES t_outtab = lt_cnvmbtnotetempl EXCEPTIONS program_error = 1 OTHERS = 2.

DOCU_GET * CALL FUNCTION 'DOCU_GET' * EXPORTING * id = gc_tx * langu = sy-langu * object = ls_cnvmbtnotetempl-template_id * TABLES * line = lt_tlines * EXCEPTIONS * no_docu_on_screen = 1 * no_docu_self_def = 2 * no_docu_temp = 3 * ret_code = 4 * OTHERS = 5.

POPUP_TO_CONFIRM * CALL FUNCTION 'POPUP_TO_CONFIRM' * EXPORTING * text_question = text-017 * text_button_1 = text-018 * text_button_2 = text-019 * IMPORTING * answer = lv_answer * EXCEPTIONS * text_not_found = 1 * OTHERS = 2.

DOCU_CALL CALL FUNCTION 'DOCU_CALL' EXPORTING displ = lv_display id = 'TX' langu = sy-langu object = gv_dokhl-object EXCEPTIONS wrong_name = 1 OTHERS = 2.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.

The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name CNV_MBT_NOTE_MGMT_46 or its description.