SAP Reports / Programs | Production Planning and Control | Production Orders(PP-SFC) SAP PP

KOVGSDAT SAP ABAP INCLUDE - documentation and ABAP source code







KOVGSDAT is a standard ABAP INCLUDE 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 KOVGSDAT 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 KOVGSDAT. "Basic submit
SUBMIT KOVGSDAT AND RETURN. "Return to original report after report execution complete
SUBMIT KOVGSDAT VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


INCLUDES used within this REPORT KOVGSDAT

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:

MESSAGES_INITIALIZE call function 'MESSAGES_INITIALIZE'.

CNACL_CHECK_CREATE_EXISTS CALL FUNCTION 'CNACL_CHECK_CREATE_EXISTS' EXPORTING iv_objnr = caufvd-objnr IMPORTING ev_no_acl = lv_no_acl ev_act_type = lv_act_type.

G_VSR_VALIDATION_CALL call function 'G_VSR_VALIDATION_CALL' exporting callup_point = con_val_event_def tab_data1 = caufvd validation = gb93t-valid valuser = con_val_user_ps importing msg_severity = msg_severity tables tabnames = tabnames.

MESSAGES_STOP call function 'MESSAGES_STOP' exceptions a_message = 1 e_message = 2 i_message = 0 w_message = 3.

MESSAGES_SHOW call function 'MESSAGES_SHOW' exporting object = text-204 exceptions no_messages = 1.

POPUP_TO_CONFIRM_STEP call function 'POPUP_TO_CONFIRM_STEP' exporting textline1 = text-607 textline2 = text-605 titel = text-204 cancel_display = space importing answer = lv_answer.

G_BOOL_EXIST_VALIDATION call function 'G_BOOL_EXIST_VALIDATION' exporting valevent = val_event validation = gb93t-valid valuser = con_val_user_ps exceptions others = 1.

G_BOOL_EXIST_VALIDATION call function 'G_BOOL_EXIST_VALIDATION' exporting valevent = val_event validation = tcn41-valid valuser = con_val_user_ps exceptions others = 1.

G_BOOL_EXIST_VALIDATION call function 'G_BOOL_EXIST_VALIDATION' exporting valevent = val_event validation = tcn41-valid_vg valuser = con_val_user_ps exceptions others = 1.

G_BOOL_F4_VALIDATION call function 'G_BOOL_F4_VALIDATION' exporting val_event = val_event val_user = con_val_user_ps importing validation = gb93t-valid valtext = gb93t-valtext exceptions no_values_found = 1 others = 2.

MESSAGES_GIVE call function 'MESSAGES_GIVE' tables t_mesg = loc_mesg.

CO_BT_CAUFV_READ_WITH_INDEX CALL FUNCTION 'CO_BT_CAUFV_READ_WITH_INDEX' EXPORTING INDEX = act_sel-nwind IMPORTING CAUFVD_EXP = tmp_caufvd EXCEPTIONS ENTRY_NOT_FOUND = 1 OTHERS = 2.

CO_TA_TCN41_READ CALL FUNCTION 'CO_TA_TCN41_READ' EXPORTING PLNAW = tmp_CAUFVD-PLNAW PROFIDNETZ = tmp_CAUFVD-PROFID IMPORTING TCN41_EXP = TCN41 EXCEPTIONS NOT_FOUND = 1.

MESSAGES_INITIALIZE call function 'MESSAGES_INITIALIZE'.

CO_BT_CAUFV_READ_WITH_INDEX CALL FUNCTION 'CO_BT_CAUFV_READ_WITH_INDEX' EXPORTING INDEX = act_sel-nwind IMPORTING CAUFVD_EXP = tmp_caufvd EXCEPTIONS ENTRY_NOT_FOUND = 1 OTHERS = 2.

MESSAGE_LINE_SET call function 'MESSAGE_LINE_SET' exporting zeile = loc_zeile.

CO_BT_AFVG_READ_WITH_INDEX call function 'CO_BT_AFVG_READ_WITH_INDEX' exporting flg_conv = 'X' flg_stat = 'X' index = act_sel-acind importing afvgd_exp = tmp_afvgd exceptions error_read_afvg = 1 others = 2.

CO_BT_AFVG_READ_WITH_INDEX CALL FUNCTION 'CO_BT_AFVG_READ_WITH_INDEX' EXPORTING FLG_CONV = 'X' FLG_STAT = 'X' INDEX = act_sel-veind IMPORTING AFVGD_EXP = tmp_afvgd EXCEPTIONS ERROR_READ_AFVG = 1 OTHERS = 2.

CR_WORKSTATION_READ





CALL FUNCTION 'CR_WORKSTATION_READ' EXPORTING ID = tmp_afvgd-arbid IMPORTING ARBPL = tmp_afvgd-arbpl EXCEPTIONS NOT_FOUND = 1 OTHERS = 2.

CONVERSION_EXIT_AUFNR_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_AUFNR_OUTPUT' EXPORTING INPUT = tmp_caufvd-aufnr IMPORTING OUTPUT = lv_msgv2.

MESSAGE_SET_DEFAULTLINE call function 'MESSAGE_SET_DEFAULTLINE' exporting arbgb = 'CJ' msgty = 'S' msgv1 = text-103 " Vorgang msgv2 = lv_msgv2 txtnr = '001' zeile = loc_zeile.

CONVERSION_EXIT_AUFNR_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_AUFNR_OUTPUT' EXPORTING INPUT = tmp_caufvd-aufnr IMPORTING OUTPUT = lv_msgv2.

MESSAGE_SET_DEFAULTLINE CALL FUNCTION 'MESSAGE_SET_DEFAULTLINE' EXPORTING ARBGB = 'CJ' MSGTY = 'S' MSGV1 = TEXT-104 " Vorgangselement MSGV2 = lv_msgv2 TXTNR = '001' ZEILE = LOC_ZEILE.

CNACL_CHECK_CREATE_EXISTS CALL FUNCTION 'CNACL_CHECK_CREATE_EXISTS' EXPORTING iv_objnr = tmp_afvgd-objnr IMPORTING ev_no_acl = lv_no_acl ev_act_type = lv_act_type.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = 'CNACL_MSG_CL' msgty = 'E' txtnr = '034'.

G_VSR_VALIDATION_CALL call function 'G_VSR_VALIDATION_CALL' exporting callup_point = con_val_event_vg tab_data1 = tmp_afvgd validation = gb93t-valid valuser = con_val_user_ps tables tabnames = tabnames exceptions not_found = 1.

MESSAGES_COUNT call function 'MESSAGES_COUNT' exporting only_for_actual_line = yx importing count = loc_msg_count.

MESSAGE_STORE call function 'MESSAGE_STORE' exporting arbgb = 'CJ' msgty = 'S' msgv1 = sy-msgv1 txtnr = '001'.

MESSAGES_STOP call function 'MESSAGES_STOP' exceptions i_message = 0 a_message = 1 e_message = 2 w_message = 3.

MESSAGES_SHOW call function 'MESSAGES_SHOW' exporting object = text-204 exceptions no_messages = 1.

CO_DT_LST_GET_ALL_MARKED call function 'CO_DT_LST_GET_ALL_MARKED' exporting lstnr_imp = rc27x-lstnr tables lst_exp = rclst_sav exceptions none_marked = 01.

MESSAGES_INITIALIZE call function 'MESSAGES_INITIALIZE'.

STATUS_TEXT_EDIT call function 'STATUS_TEXT_EDIT' exporting objnr = afvgd-objnr only_active = yx spras = sy-langu importing line = afvgd-vsttxt exceptions object_not_found.

MESSAGE_LINE_SET call function 'MESSAGE_LINE_SET' exporting zeile = loc_zeile.

CONVERSION_EXIT_AUFNR_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_AUFNR_OUTPUT' EXPORTING INPUT = caufvd-aufnr IMPORTING OUTPUT = lv_msgv2.

MESSAGE_SET_DEFAULTLINE call function 'MESSAGE_SET_DEFAULTLINE' exporting arbgb = 'CJ' msgty = 'S' msgv1 = text-103 " Vorgang msgv2 = lv_msgv2 txtnr = '001' zeile = loc_zeile.

CONVERSION_EXIT_AUFNR_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_AUFNR_OUTPUT' EXPORTING INPUT = caufvd-aufnr IMPORTING OUTPUT = lv_msgv2.

MESSAGE_SET_DEFAULTLINE CALL FUNCTION 'MESSAGE_SET_DEFAULTLINE' EXPORTING ARBGB = 'CJ' MSGTY = 'S' MSGV1 = TEXT-104 " Vorgangselement MSGV2 = AFVGD-UVORN TXTNR = '001' ZEILE = LOC_ZEILE.




CNACL_CHECK_CREATE_EXISTS CALL FUNCTION 'CNACL_CHECK_CREATE_EXISTS' EXPORTING iv_objnr = afvgd-objnr IMPORTING ev_no_acl = lv_no_acl ev_act_type = lv_act_type.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = 'CNACL_MSG_CL' msgty = 'E' txtnr = '034'.

G_VSR_VALIDATION_CALL call function 'G_VSR_VALIDATION_CALL' exporting callup_point = con_val_event_vg tab_data1 = afvgd validation = gb93t-valid valuser = con_val_user_ps tables tabnames = tabnames exceptions not_found = 1.

MESSAGES_COUNT call function 'MESSAGES_COUNT' exporting only_for_actual_line = yx importing count = loc_msg_count.

MESSAGE_STORE call function 'MESSAGE_STORE' exporting arbgb = 'CJ' msgty = 'S' msgv1 = sy-msgv1 txtnr = '001'.

MESSAGE_LINE_SET call function 'MESSAGE_LINE_SET' exporting zeile = loc_zeile.

CO_BT_AFVG_READ_WITH_INDEX CALL FUNCTION 'CO_BT_AFVG_READ_WITH_INDEX' EXPORTING FLG_STAT = YX INDEX = lv_index flg_sta_chk = yx importing afvgd_exp = tmp_afvgd exceptions error_read_afvg = 1 others = 2.

CR_WORKSTATION_READ CALL FUNCTION 'CR_WORKSTATION_READ' EXPORTING ID = tmp_afvgd-arbid IMPORTING ARBPL = tmp_afvgd-arbpl EXCEPTIONS NOT_FOUND = 1 OTHERS = 2.

CONVERSION_EXIT_AUFNR_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_AUFNR_OUTPUT' EXPORTING INPUT = caufvd-aufnr IMPORTING OUTPUT = lv_msgv2.

MESSAGE_SET_DEFAULTLINE call function 'MESSAGE_SET_DEFAULTLINE' exporting arbgb = 'CJ' msgty = 'S' msgv1 = text-103 " Vorgang msgv2 = lv_msgv2 txtnr = '001' zeile = loc_zeile.

CONVERSION_EXIT_AUFNR_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_AUFNR_OUTPUT' EXPORTING INPUT = caufvd-aufnr IMPORTING OUTPUT = lv_msgv2.

MESSAGE_SET_DEFAULTLINE CALL FUNCTION 'MESSAGE_SET_DEFAULTLINE' EXPORTING ARBGB = 'CJ' MSGTY = 'S' MSGV1 = TEXT-104 " Vorgangselement MSGV2 = lv_msgv2 TXTNR = '001' ZEILE = LOC_ZEILE.

CNACL_CHECK_CREATE_EXISTS CALL FUNCTION 'CNACL_CHECK_CREATE_EXISTS' EXPORTING iv_objnr = tmp_afvgd-objnr IMPORTING ev_no_acl = lv_no_acl ev_act_type = lv_act_type.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = 'CNACL_MSG_CL' msgty = 'E' txtnr = '034'.

G_VSR_VALIDATION_CALL call function 'G_VSR_VALIDATION_CALL' exporting callup_point = con_val_event_vg tab_data1 = tmp_afvgd validation = gb93t-valid valuser = con_val_user_ps tables tabnames = tabnames exceptions not_found = 1.

MESSAGES_COUNT call function 'MESSAGES_COUNT' exporting only_for_actual_line = yx importing count = loc_msg_count.

MESSAGE_STORE call function 'MESSAGE_STORE' exporting arbgb = 'CJ' msgty = 'S' msgv1 = sy-msgv1 txtnr = '001'.

CO_BO_OPR_OF_ORDER_GET call function 'CO_BO_OPR_OF_ORDER_GET' exporting aufnr_imp = caufvd-aufnr check_deleted = yx flg_status = yx tables afvgd_get = tmp_afvgd_t.

MESSAGES_INITIALIZE call function 'MESSAGES_INITIALIZE'.

MESSAGE_LINE_SET call function 'MESSAGE_LINE_SET' exporting zeile = loc_zeile.

CONVERSION_EXIT_AUFNR_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_AUFNR_OUTPUT' EXPORTING INPUT = caufvd-aufnr IMPORTING OUTPUT = lv_msgv2.

MESSAGE_SET_DEFAULTLINE call function 'MESSAGE_SET_DEFAULTLINE' exporting arbgb = 'CJ' msgty = 'S' msgv1 = text-103 " Vorgang msgv2 = lv_msgv2 txtnr = '001' zeile = loc_zeile.

CONVERSION_EXIT_AUFNR_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_AUFNR_OUTPUT' EXPORTING INPUT = caufvd-aufnr IMPORTING OUTPUT = lv_msgv2.

MESSAGE_SET_DEFAULTLINE CALL FUNCTION 'MESSAGE_SET_DEFAULTLINE' EXPORTING ARBGB = 'CJ' MSGTY = 'S' MSGV1 = TEXT-104 " Vorgangselement MSGV2 = lv_msgv2 TXTNR = '001' ZEILE = LOC_ZEILE.

CR_WORKSTATION_READ CALL FUNCTION 'CR_WORKSTATION_READ' EXPORTING ID = tmp_afvgd_t-arbid IMPORTING ARBPL = tmp_afvgd_t-arbpl EXCEPTIONS NOT_FOUND = 1 OTHERS = 2.

G_VSR_VALIDATION_CALL call function 'G_VSR_VALIDATION_CALL' exporting callup_point = con_val_event_vg tab_data1 = tmp_afvgd_t validation = gb93t-valid valuser = con_val_user_ps tables tabnames = tabnames exceptions not_found = 1.

MESSAGES_COUNT call function 'MESSAGES_COUNT' exporting only_for_actual_line = yx importing count = loc_msg_count.

MESSAGE_STORE call function 'MESSAGE_STORE' exporting arbgb = 'CJ' msgty = 'S' msgv1 = sy-msgv1 txtnr = '001'.

MESSAGES_STOP call function 'MESSAGES_STOP' exceptions i_message = 0 a_message = 1 e_message = 2 w_message = 3.

MESSAGES_SHOW call function 'MESSAGES_SHOW' exporting object = text-204 exceptions no_messages = 1.

POPUP_TO_CONFIRM_STEP call function 'POPUP_TO_CONFIRM_STEP' exporting textline1 = text-607 textline2 = text-605 titel = text-204 cancel_display = space importing answer = lv_answer.

MESSAGE_STORE call function 'MESSAGE_STORE' exporting arbgb = msgid msgty = msgty msgv1 = msgv1 msgv2 = msgv2 msgv3 = msgv3 msgv4 = msgv4 txtnr = msgno exceptions not_active = 1.

MESSAGE_ADD CALL FUNCTION 'MESSAGE_ADD' EXPORTING MSGID = MSGID MSGNO = MSGNO MSGTY = MSGTY MSGV1 = MSGV1 MSGV2 = MSGV2 MSGV3 = MSGV3 MSGV4 = MSGV4.

G_BOOL_EXIST_SUBSTITUTION call function 'G_BOOL_EXIST_SUBSTITUTION' exporting substitution = gb92t-subsid valevent = val_event valuser = con_val_user_ps exceptions others = 1.

G_BOOL_EXIST_SUBSTITUTION call function 'G_BOOL_EXIST_SUBSTITUTION' exporting substitution = tcn41-subst valevent = val_event valuser = con_val_user_ps exceptions others = 1.

G_BOOL_EXIST_SUBSTITUTION call function 'G_BOOL_EXIST_SUBSTITUTION' exporting substitution = tcn41-subst_vg valevent = val_event valuser = con_val_user_ps exceptions others = 1.

G_BOOL_F4_SUBSTITUTION call function 'G_BOOL_F4_SUBSTITUTION' exporting val_event = val_event val_user = con_val_user_ps importing substitution = gb92t-subsid substext = gb92t-substext exceptions no_values_found = 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 KOVGSDAT or its description.