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

CNV_TDMS_01_FROM SAP ABAP Report - Analyse and define 'From Date'







CNV_TDMS_01_FROM 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_TDMS_01_FROM 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_TDMS_01_FROM. "Basic submit
SUBMIT CNV_TDMS_01_FROM AND RETURN. "Return to original report after report execution complete
SUBMIT CNV_TDMS_01_FROM 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_PHASE = D Phase
Selection Text: P_PACK = D Package
Selection Text: P_ACT_ID = D Activity ID
Title: Analyse and define 'From Date'
Text Symbol: 072 = Included Periods
Text Symbol: 073 =
Text Symbol: 074 = You have unsaved changes. Do you want to save changes before switching to display only mode ?
Text Symbol: 075 = DS Date
Text Symbol: 076 = Posting Period
Text Symbol: 077 = Posting Year
Text Symbol: 078 = Package
Text Symbol: 079 = Last Set Data Slice Date
Text Symbol: 080 = Description
Text Symbol: 081 = Fiscal Year Variant
Text Symbol: 082 = is inconsistent for
Text Symbol: 083 = Data slice date is: First day of the month
Text Symbol: 084 = Data slice date is not the first day of the month
Text Symbol: 085 = is Blank.
Text Symbol: 086 = Check Table
Text Symbol: 087 = Fiscal Year Variant for
Text Symbol: 088 = . Compare Table T009 and
Text Symbol: 089 = Inconsistent Org. Unit
Text Symbol: 090 = Some Org. Units are inconsistent. For more details, please check in the lower ALV, 'Details of Inconsistency', 'Description' column.
Text Symbol: 091 = Choose 'View' to see the inconsistent org. unit.
Text Symbol: 092 = View
Text Symbol: 093 = Continue
Text Symbol: 094 = Press 'Continue' to Continue.
Text Symbol: 095 = ALV Display
Text Symbol: 096 = Click on 'Continue' to assume a posting period which is six calendar months ahead of the analyzed date
Text Symbol: 097 = Posting Period assigned based on assumption
Text Symbol: 071 = do you want to set Suggested Date &DATE& as the data slice date?
Text Symbol: 001 = You have unsaved changes. Would you like to save changes before exiting ?
Text Symbol: 002 = Yes
Text Symbol: 003 = No
Text Symbol: 004 = Specify the data slice date
Text Symbol: 005 = Warning
Text Symbol: 006 = Selected date is a future date. Continue?
Text Symbol: 007 = Org. Unit





Text Symbol: 008 = Value
Text Symbol: 009 = Period / Year
Text Symbol: 010 = First day
Text Symbol: 011 = Choose view/change mode
Text Symbol: 012 = Status
Text Symbol: 013 = Best Date
Text Symbol: 014 = Total No. of Periods
Text Symbol: 015 = Evaluate 'Best Date'
Text Symbol: 016 = Evaluate
Text Symbol: 017 = Analyzed Date
Text Symbol: 018 = Rating in percentage (%)
Text Symbol: 019 = Show Details
Text Symbol: 020 = Details
Text Symbol: 021 = Set as the data slice date
Text Symbol: 023 = Delete
Text Symbol: 024 = Loading
Text Symbol: 025 = Legend
Text Symbol: 027 = View
Text Symbol: 028 = Change
Text Symbol: 067 = Show Legend
Text Symbol: 068 = Evaluated date matches with 'First Date' of period
Text Symbol: 069 = Evaluated date is after the 'First Date' of the period
Text Symbol: 070 = do you want to set Evaluated Date &DATE& as the data slice date?


INCLUDES used within this REPORT CNV_TDMS_01_FROM

INCLUDE CNV_MBT_SM_PARAMS.
INCLUDE CNV_TDMS_01_FROM_TOP.
INCLUDE CNV_TDMS_01_FROM_CLASS.
INCLUDE CNV_TDMS_PROTMESS_TOP.
INCLUDE CNV_TDMS_CONSTANTS.


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:

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = 50 text = text-024.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-005 "warning * DIAGNOSE_OBJECT = ' ' text_question = text-074 * text-001: You have unsaved changes.Would you like to save

CNV_TDMS_01_EVALUATE_INCONSIST * CALL FUNCTION 'CNV_TDMS_01_EVALUATE_INCONSIST' * DESTINATION gv_sender_dest * TABLES * t_tabnames = lt_tabname.

CNV_TDMS_01_EVALUATE_DATE CALL FUNCTION 'CNV_TDMS_01_EVALUATE_DATE' DESTINATION gv_sender_dest EXPORTING im_from_date = io_date im_packid = p_pack im_tim = p_tim " ++ NK05022008 im_tcc = p_tcc " ++ NK05022008 im_btm = p_btm " ++ NK05022008 im_ctm = p_ctm " ++ NK05022008 IMPORTING x_eval_struct = ls_eval_struct e_subrc = l_subrc TABLES xt_from_periods = lt_temp_periods xt_inconsistent = lt_inconsistent "++Mohit200109 EXCEPTIONS communication_failure = 1 MESSAGE gv_msg system_failure = 2 MESSAGE gv_msg RESOURCE_FAILURE = 3 * Changes done by Mridu 11 Dec 08.

CNV_TDMS_01_FIND_BEST_DATES





CALL FUNCTION 'CNV_TDMS_01_FIND_BEST_DATES' DESTINATION gv_sender_dest EXPORTING i_value = io_value i_poper = io_poper i_year = io_year TABLES xt_best_dates = gt_best_dates EXCEPTIONS communication_failure = 1 MESSAGE gv_msg system_failure = 2 MESSAGE gv_msg RESOURCE_FAILURE = 3 OTHERS = 4.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-005 text_question = text-006 text_button_1 = text-002 text_button_2 = text-003 default_button = gc_2 display_cancel_button = space IMPORTING answer = lv_ans EXCEPTIONS text_not_found = 1 OTHERS = 2.

CNV_TDMS_01_FIND_ACTIVE_OC CALL FUNCTION 'CNV_TDMS_01_FIND_ACTIVE_OC' DESTINATION gv_sender_dest TABLES lt_erkrs = lt_erkrs EXCEPTIONS system_failure = 1 MESSAGE gv_msg communication_failure = 2 MESSAGE gv_msg.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-005 "warning * DIAGNOSE_OBJECT = ' ' text_question = text-001 * text-001: You have unsaved changes.Would you like to save

CNV_TDMS_01_EVALUATE_DATE CALL FUNCTION 'CNV_TDMS_01_EVALUATE_DATE' DESTINATION gv_sender_dest EXPORTING im_from_date = lv_eval_date im_packid = p_pack im_tim = p_tim " ++ NK05022008 im_tcc = p_tcc " ++ NK05022008 im_btm = p_btm " ++ NK05022008 im_ctm = p_ctm " ++ NK05022008 IMPORTING x_eval_struct = ls_eval_struct TABLES xt_from_periods = lt_temp_periods xt_inconsistent = gt_inconsistent "++Mohit20.01.2009

DOCU_CALL CALL FUNCTION 'DOCU_CALL' EXPORTING displ = gc_x displ_mode = gc_2 id = gc_tx langu = sy-langu object = 'TD01P_FROM' EXCEPTIONS wrong_name = 1 OTHERS = 2.

CNV_MBT_L_STATE_INIT CALL FUNCTION 'CNV_MBT_L_STATE_INIT' EXPORTING packid = p_pack phase = p_phase activity_id = p_act_id.

CNV_MBT_L_STATE_FINISH CALL FUNCTION 'CNV_MBT_L_STATE_FINISH' EXPORTING packid = p_pack phase = p_phase activity_id = p_act_id EXCEPTIONS OTHERS = 1.

CNV_TDMS_01_EVALUATE_DATE CALL FUNCTION ' CNV_TDMS_01_EVALUATE_DATE' DESTINATION gv_sender_dest EXPORTING im_from_date = io_best_date im_packid = p_pack im_tim = p_tim " ++ NK05022008 im_tcc = p_tcc " ++ NK05022008 im_btm = p_btm " ++ NK05022008 im_ctm = p_ctm " ++ NK05022008 IMPORTING x_eval_struct = ls_eval_struct e_subrc = l_subrc TABLES xt_from_periods = lt_temp_periods xt_inconsistent = gt_inconsistent "++Mohit20.01.2009

CNV_TDMS_CHECK_EXECUTION CALL FUNCTION 'CNV_TDMS_CHECK_EXECUTION' EXPORTING packid = p_pack phase = p_phase activity_id = gc_act_id_confirm IMPORTING state_tec = lv_state_tec state_log = lv_state_log EXCEPTIONS no_destinations_for_packid = 1 no_pcl_destination_for_packid = 2 entry_does_not_exist = 3 other_error = 4 OTHERS = 5.

CNV_TDMS_01_OU_PROD_INDICATOR CALL FUNCTION 'CNV_TDMS_01_OU_PROD_INDICATOR' DESTINATION gv_sender_dest TABLES t_orsel = lt_orsel_str t_ormas = lt_ormas_str EXCEPTIONS communication_failure = 1 system_failure = 2 RESOURCE_FAILURE = 3 function_call_error = 4 OTHERS = 5.

CNV_TDMS_01_SET_ORSEL_DETAILS CALL FUNCTION 'CNV_TDMS_01_SET_ORSEL_DETAILS' DESTINATION gv_sender_dest EXPORTING im_packid = p_pack TABLES t_orgunits = lt_orsel_str EXCEPTIONS communication_failure = 1 MESSAGE lv_msg system_failure = 2 MESSAGE lv_msg OTHERS = 3.

CNV_TDMS_01_LSET_ORSEL_DETAILS CALL FUNCTION 'CNV_TDMS_01_LSET_ORSEL_DETAILS' EXPORTING im_packid = p_pack TABLES t_orgunits = lt_orsel_str EXCEPTIONS communication_failure = 1 system_failure = 2 OTHERS = 3.

CNV_TDMS_CHECK_EXECUTION CALL FUNCTION 'CNV_TDMS_CHECK_EXECUTION' EXPORTING packid = p_pack phase = p_phase activity_id = gc_act_id_orgunit IMPORTING state_tec = lv_state_tec state_log = lv_state_log EXCEPTIONS no_destinations_for_packid = 1 no_pcl_destination_for_packid = 2 entry_does_not_exist = 3 other_error = 4 OTHERS = 5.

CNV_MBT_RFC_GET CALL FUNCTION 'CNV_MBT_RFC_GET' EXPORTING packid = p_pack exec_target = 'S' IMPORTING destination_id = gv_sender_dest TABLES desttab = lt_desttab EXCEPTIONS no_destinations_for_packid = 1 no_specific_destination_type = 2 OTHERS = 3.

POPUP_TO_DECIDE * CALL FUNCTION 'POPUP_TO_DECIDE' * EXPORTING * defaultoption = '1' * textline1 = text-004 ** TEXTLINE2 = ' ' ** TEXTLINE3 = ' ' * text_option1 = text-027 * text_option2 = text-028 * icon_text_option1 = 'ICON_DISPLAY' * icon_text_option2 = 'ICON_CHANGE' * titel = text-011 * start_column = 25 * start_row = 6 * cancel_display = 'X' * IMPORTING * answer = lv_ans.

CNV_TDMS_CHECK_EXECUTION ** CALL FUNCTION 'CNV_TDMS_CHECK_EXECUTION' ** EXPORTING ** packid = ls_ref_pack-packid ** phase = p_phase ** activity_id = gc_act_id_confirm ** IMPORTING ** state_tec = lv_stat_tec ** state_log = lv_stat_log ** EXCEPTIONS ** no_destinations_for_packid = 1 ** no_pcl_destination_for_packid = 2 ** entry_does_not_exist = 3 ** other_error = 4 ** OTHERS = 5.

CNV_TDMS_CHECK_EXECUTION CALL FUNCTION 'CNV_TDMS_CHECK_EXECUTION' EXPORTING packid = ls_ref_pack-packid phase = p_phase activity_id = gc_act_id_confirm IMPORTING state_tec = lv_stat_tec state_log = lv_stat_log EXCEPTIONS no_destinations_for_packid = 1 no_pcl_destination_for_packid = 2 entry_does_not_exist = 3 other_error = 4 OTHERS = 5.

F4IF_INT_TABLE_VALUE_REQUEST CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING * DDIC_STRUCTURE = ' ' retfield = 'PACKID' * PVALKEY = ' ' dynpprog = prog dynpnr = dynr dynprofield = 'REF_PACK' * STEPL = 0 * WINDOW_TITLE = * VALUE = ' ' value_org = 'S' * MULTIPLE_CHOICE = ' ' * DISPLAY = ' ' * CALLBACK_PROGRAM = ' ' * CALLBACK_FORM = ' ' * MARK_TAB = * IMPORTING * USER_RESET = TABLES value_tab = gt_ref_pack * FIELD_TAB = * RETURN_TAB = * DYNPFLD_MAPPING = * EXCEPTIONS * PARAMETER_ERROR = 1 * NO_VALUES_FOUND = 2 * OTHERS = 3 .

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING * TITLEBAR = ' ' * DIAGNOSE_OBJECT = ' ' text_question = l_text text_button_1 = 'Ja'(093) * ICON_BUTTON_1 = ' ' text_button_2 = 'Nein'(092) * ICON_BUTTON_2 = ' ' * DEFAULT_BUTTON = '1' display_cancel_button = 'X' * USERDEFINED_F1_HELP = ' ' * START_COLUMN = 25 * START_ROW = 6 * POPUP_TYPE = * IV_QUICKINFO_BUTTON_1 = ' ' * IV_QUICKINFO_BUTTON_2 = ' ' IMPORTING answer = lv_answer * TABLES * PARAMETER = EXCEPTIONS text_not_found = 1 OTHERS = 2 .




HELP_OBJECT_SHOW CALL FUNCTION 'HELP_OBJECT_SHOW' EXPORTING dokclass = 'TX' * DOKLANGU = SY-LANGU dokname = 'TD01P_FROM_RAD' * DOKTITLE = ' ' * CALLED_BY_PROGRAM = ' ' * CALLED_BY_DYNP = ' ' * CALLED_FOR_TAB = ' ' * CALLED_FOR_FIELD = ' ' * CALLED_FOR_TAB_FLD_BTCH_INPUT = ' ' * MSG_VAR_1 = ' ' * MSG_VAR_2 = ' ' * MSG_VAR_3 = ' ' * MSG_VAR_4 = ' ' * CALLED_BY_CUAPROG = ' ' * CALLED_BY_CUASTAT = * SHORT_TEXT = ' ' * CLASSIC_SAPSCRIPT = ' ' TABLES links = links EXCEPTIONS object_not_found = 1 sapscript_error = 2 OTHERS = 3 .

DATE_GET_WEEK CALL FUNCTION 'DATE_GET_WEEK' EXPORTING * +lambas note calzedonia date = lv_olddate * date = lv_newdate IMPORTING week = lv_spwoc EXCEPTIONS date_invalid = 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_TDMS_01_FROM or its description.