SAP Reports / Programs

SECONDHWCORR_2 SAP ABAP Report - Adjustment Report Second Local Currency 2







SECONDHWCORR_2 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 SECONDHWCORR_2 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 SECONDHWCORR_2. "Basic submit
SUBMIT SECONDHWCORR_2 AND RETURN. "Return to original report after report execution complete
SUBMIT SECONDHWCORR_2 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_NEWPO = New Update
Selection Text: P_OLDPO = Old Update
Selection Text: P_TEST = Test Run
Selection Text: P_BLART = D .
Selection Text: S_BUKRS = D .
Selection Text: S_KOART = D .
Selection Text: S_KONTO = D .
Selection Text: U_PAKET = D .
Title: Adjustment Report Second Local Currency 2
Text Symbol: S01 = Session
Text Symbol: S02 = Selection
Text Symbol: S03 = Posting Type


INCLUDES used within this REPORT SECONDHWCORR_2

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:

FI_CURRENCY_INFORMATION CALL FUNCTION 'FI_CURRENCY_INFORMATION' EXPORTING I_BUKRS = g_t001-BUKRS I_LAND1 = g_t001-LAND1 I_RCOMP = g_t001-RCOMP IMPORTING E_X001 = g_X001 EXCEPTIONS CURRENCY_2_NOT_DEFINED = 1 CURRENCY_3_NOT_DEFINED = 2 OTHERS = 3.

MESSAGES_SHOW CALL FUNCTION 'MESSAGES_SHOW' EXPORTING BATCH_LIST_TYPE = ' ' OBJECT = 'Errorlist' EXCEPTIONS * INCONSISTENT_RANGE = 01 NO_MESSAGES = 02.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE' * EXPORTING * COLLECT_AND_SEND = ' ' * RESET = 'X' * LINE_FROM = ' ' * LINE_TO = ' ' * I_STORE_DUPLICATES = ' ' * I_IDENTIFICATION = * CHECK_ON_COMMIT = 'X' * I_RESET_LINE = ' ' * IMPORTING * E_IDENTIFICATION = .

FI_PERIOD_DETERMINE CALL FUNCTION 'FI_PERIOD_DETERMINE' EXPORTING I_BUDAT = X_BKPF-BUDAT I_BUKRS = X_BKPF-BUKRS IMPORTING E_GJAHR = X_BKPF-GJAHR E_MONAT = X_BKPF-MONAT.

RK_KOKRS_FIND CALL FUNCTION 'RK_KOKRS_FIND' EXPORTING BUKRS = X_BKPF-BUKRS IMPORTING KOKRS = X_BSEG-KOKRS EXCEPTIONS ASSIGNMENT_NOT_ALLOWED = 1 INSUFFICIENT_INPUT = 2 NO_KOKRS_ASSIGNED = 3 NO_KOKRS_FOR_BUKRS = 4 NO_KOKRS_FOR_BU_GB = 5 WRONG_KOKRS_FOR_BUKRS = 6 WRONG_KOKRS_FOR_BU_GB = 7 OTHERS = 8.

READ_HAUPTBUCH CALL FUNCTION 'READ_HAUPTBUCH' EXPORTING BUCHUNGSKREIS = T_SCA-BUKRS SACHKONTO = T_SCA-HKONT IMPORTING KONTENPLAN_WA = X_SKA1 EXCEPTIONS KONTENPLAN_NOT_FOUND = 1 SACHKONTO_NOT_FOUND = 2 NOT_AUTHORIZED = 3 OTHERS = 4.

FI_PERIOD_DETERMINE CALL FUNCTION 'FI_PERIOD_DETERMINE' EXPORTING I_BUDAT = P_DATUM I_BUKRS = P_BUKRS-BUKRS IMPORTING E_GJAHR = P_BUKRS-CYEAR EXCEPTIONS FISCAL_YEAR = 1 PERIOD = 2 PERIOD_VERSION = 3 POSTING_PERIOD = 4 SPECIAL_PERIOD = 5 VERSION = 6 POSTING_DATE = 7 OTHERS = 8.

PERIOD_DAY_DETERMINE CALL FUNCTION 'PERIOD_DAY_DETERMINE' EXPORTING I_GJAHR = P_BUKRS-CYEAR I_MONAT = '01' I_PERIV = P_BUKRS-PERIV IMPORTING E_FDAY = P_BUKRS-STIDA EXCEPTIONS ERROR_PERIOD = 1 ERROR_PERIOD_VERSION = 2 FIRSTDAY_NOT_DEFINED = 3 PERIOD_NOT_DEFINED = 4 OTHERS = 5.

FI_CURRENCY_INFORMATION CALL FUNCTION 'FI_CURRENCY_INFORMATION' EXPORTING I_BUKRS = P_BUKRS-BUKRS IMPORTING E_X001 = X001 EXCEPTIONS CURRENCY_2_NOT_DEFINED = 1 CURRENCY_3_NOT_DEFINED = 2 OTHERS = 3.

G_GIVE_LEDGERS_FOR_GLT0 CALL FUNCTION 'G_GIVE_LEDGERS_FOR_GLT0' EXPORTING BUKRS = P_BUKRS-BUKRS CURTP = P_BUKRS-CURT2 TABLES LEDTAB = XGLEDTAB EXCEPTIONS OTHERS = 1.

G_GIVE_LEDGERS_FOR_GLT0 CALL FUNCTION 'G_GIVE_LEDGERS_FOR_GLT0' EXPORTING BUKRS = P_BUKRS-BUKRS CURTP = P_BUKRS-CURT3 TABLES LEDTAB = XGLEDTAB EXCEPTIONS OTHERS = 1.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE'.

EWU_AUTHORITY_CHECK CALL FUNCTION 'EWU_AUTHORITY_CHECK' EXCEPTIONS NO_PERMISSION = 1 OTHERS = 2.

EWU_STATUS_INITIALIZE CALL FUNCTION 'EWU_STATUS_INITIALIZE' EXPORTING PROGRAMM = P_PROGNAME IMPORTING AUFSETZARG = P_RESTART EXCEPTIONS NO_PROGRAM_ENTRY = 1 WRONG_PHASE = 2 PRECESSOR_NOT_OK = 3 PROGRAM_ALREADY_STARTED = 4 PROGRAM_ALREADY_FINISHED = 5 NO_PAKET_ENTRY = 6 FOREIGN_LOCK = 7 SYSTEM_FAILURE = 8 ACTIVE_PAKET_NOT_FOUND = 9 OTHERS = 10.

FI_EWU_CONVERTED_COMPANYCODES CALL FUNCTION 'FI_EWU_CONVERTED_COMPANYCODES' EXPORTING P_PAKET = P_PAKET P_10 = P_10 P_W2 = P_W2 P_W3 = P_W3 P_LW = P_LW P_11 = P_11 TABLES T_BUKRS = P_BUKRS EXCEPTIONS OTHERS = 1.

EWU_PAKET_GET CALL FUNCTION 'EWU_PAKET_GET' IMPORTING PHASE = P_PHASE CHANGING PAKET = P_PAKET EXCEPTIONS ACTIVE_PAKET_NOT_FOUND = 1 OTHERS = 2.

EWU_STATUS_UPDATE CALL FUNCTION 'EWU_STATUS_UPDATE' EXPORTING STATUS = P_NEWSTAT AUFSETZARG = P_RESTART EXCEPTIONS NO_PAKET_ENTRY = 1 FOREIGN_LOCK = 2 SYSTEM_FAILURE = 3 NO_PROGRAM_ENTRY = 4 WRONG_CALL = 5 ACTIVE_PAKET_NOT_FOUND = 6 UPDATE_DENIED = 7 OTHERS = 8.

MESSAGES_SHOW CALL FUNCTION 'MESSAGES_SHOW' EXPORTING BATCH_LIST_TYPE = ' ' OBJECT = TITLE EXCEPTIONS * INCONSISTENT_RANGE = 01 NO_MESSAGES = 02.

EWU_PROTOCOL_WRITE





CALL FUNCTION 'EWU_PROTOCOL_WRITE' EXCEPTIONS ERROR_IN_FUNCTION_CALL = 1 TABLE_EMPTY = 2 SQL_ERROR = 3 WRONG_CALL = 4 OTHERS = 5.

MESSAGES_SHOW CALL FUNCTION 'MESSAGES_SHOW' EXPORTING BATCH_LIST_TYPE = ' ' OBJECT = TEXT-900 EXCEPTIONS NO_MESSAGES = 02.

EWU_PROTOCOL_WRITE CALL FUNCTION 'EWU_PROTOCOL_WRITE' EXCEPTIONS ERROR_IN_FUNCTION_CALL = 1 TABLE_EMPTY = 2 SQL_ERROR = 3 WRONG_CALL = 4 OTHERS = 5.

MESSAGES_SHOW CALL FUNCTION 'MESSAGES_SHOW' EXPORTING BATCH_LIST_TYPE = ' ' OBJECT = TEXT-900 EXCEPTIONS * INCONSISTENT_RANGE = 01 NO_MESSAGES = 02.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING ARBGB = L_MSGID MSGTY = P_MSGTY MSGV1 = P_MSGV1 MSGV2 = P_MSGV2 MSGV3 = P_MSGV3 MSGV4 = P_MSGV4 TXTNR = L_MSGNO EXCEPTIONS MESSAGE_TYPE_NOT_VALID = 1 NOT_ACTIVE = 2 OTHERS = 3.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING ARBGB = L_MSGID MSGTY = P_MSGTY MSGV1 = P_MSGV1 MSGV2 = P_MSGV2 MSGV3 = P_MSGV3 MSGV4 = P_MSGV4 TXTNR = L_MSGNO EXCEPTIONS MESSAGE_TYPE_NOT_VALID = 1 NOT_ACTIVE = 2 OTHERS = 3.

EWU_PROTOCOL_APPEND CALL FUNCTION 'EWU_PROTOCOL_APPEND' EXPORTING LEVEL = P_LEVEL MSGTY = L_MSGTY LANGU = SY-LANGU MSGID = L_MSGID MSGNO = L_MSGNO NEWOBJ = P_NEWOBJ MSGV1 = L_MSGV1 MSGV2 = L_MSGV2 MSGV3 = L_MSGV3 MSGV4 = L_MSGV4 EXCEPTIONS OTHERS = 1.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING ARBGB = L_MSGID MSGTY = P_MSG-MSGTY MSGV1 = P_MSG-MSGV1 MSGV2 = P_MSG-MSGV2 MSGV3 = P_MSG-MSGV3 MSGV4 = P_MSG-MSGV4 TXTNR = L_MSGNO EXCEPTIONS MESSAGE_TYPE_NOT_VALID = 1 NOT_ACTIVE = 2 OTHERS = 3.

FI_MESTYP_ACTIVE_CHECK CALL FUNCTION 'FI_MESTYP_ACTIVE_CHECK' EXPORTING I_MESTYP = P_MESTYP I_BUKRS = P_BUKRS-BUKRS IMPORTING E_DISTRIBUTE = X_ALE_FLAG EXCEPTIONS NO_INFO_FOUND = 1 OTHERS = 2.

AC_DOCUMENT_CREATE CALL FUNCTION 'AC_DOCUMENT_CREATE' TABLES t_acchd = t_acchd t_accit = t_accit t_acccr = t_acccr EXCEPTIONS OTHERS = 1.

AC_DOCUMENT_POST CALL FUNCTION 'AC_DOCUMENT_POST' EXPORTING i_awtyp = wa_acchd_key-awtyp i_awref = wa_acchd_key-awref i_aworg = wa_acchd_key-aworg i_awsys = g_awsys EXCEPTIONS OTHERS = 1.

FI_DOCUMENT_RETURN CALL FUNCTION 'FI_DOCUMENT_RETURN' TABLES t_accdn = t_accdn l_bkpf = tmp_bkpf l_bseg = tmp_bseg EXCEPTIONS OTHERS = 1.

CLEAR_DOCUMENTS CALL FUNCTION 'CLEAR_DOCUMENTS' IN UPDATE TASK TABLES t_ausz1 = t_ausz1 t_ausz2 = t_ausz2 EXCEPTIONS OTHERS = 1.



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 SECONDHWCORR_2 or its description.