Monday, July 16, 2012

UNCAUGHT_EXCEPTION - CX_SY_NO_HANDLER in CL_RSBK_CMD_X=================CP ABAP Program


When I am loading data from PSA to DSO, this kind of exception is generated. Generally, this error occurs when we load huge volumes of data.


--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Category               ABAP Programming Error
Runtime Errors         UNCAUGHT_EXCEPTION
Except.                CX_SY_NO_HANDLER
ABAP Program           CL_RSBK_CMD_X=================CP
Application Component  BW-WHM-DST
Date and Time          15.07.2012 23:33:24




 What can you do?
     Take note of the actions and inputs that lead to the error.


     Contact your SAP administrator for further processing of the problem.


     Using transaction ST22 for ABAP short dump analysis you can see and
     administrate termination messages and retain them for a longer period.






 Error analysis
     An exception occurred which is explained in detail below.
     The exception, which is assigned to class 'CX_SY_NO_HANDLER', was not caught
      and
     therefore caused a runtime error.
     The reason for the exception is:
     An exception with the type CX_SY_OPEN_SQL_DB occurred, but was neither handled
     locally, nor declared in a RAISING clause


     The occurrence of the exception is closely related to the occurrence of
     a previous exception "CX_SY_OPEN_SQL_DB", which was raised in the program
      "CL_RSODSO_SEMANTIC_PACKETIZER=CP",
     specifically in line 79 of the (include) program
      "CL_RSODSO_SEMANTIC_PACKETIZER=CM002".
     The cause of the exception was:


     The database returned a value containing an error


How to correct the error
    You may able to find an interim solution to the problem
    in the SAP note system. If you have access to the note system yourself,
    please use the following search criteria:

        "UNCAUGHT_EXCEPTION" "CX_SY_NO_HANDLER"
        "CL_RSBK_CMD_X=================CP" bzw.
     "CL_RSBK_CMD_X=================CM00R"
        "IF_RSBK_CMD_X~GET_DATAPACKAGE_GENERAL"

    If you cannot solve the problem yourself, please send the
    following documents to SAP:

    1. A hard copy print describing the problem (short dump).
       To obtain this, select "System->List->Save->Local File (unconverted)"
       on the current screen.

    2. A suitable hardcopy printout of the system log.
       To obtain this, call the system log with Transaction SM21
       and set the time interval to 10 minutes before and 5 minutes after
       the short dump. In the display choose "System->List->Save->
       Local File (unconverted)"

    3. If the programs are your own programs or modified SAP programs,
       supply the source code.
       To do this, choose "More Utilities->Upload/Download->Download" in the
       Editor.

    4. Details regarding the conditions under which the error occurred
       or which actions and input led to the error.

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Error Analysis:
So, after digging on search engine and SAP Notes. The problem or challenge in this ABAP dump analysis is that the process has lack of storage, lack of PSATEMP storage. PSAPTEMP is an ORACLE temporary tablespace using by the SAP BW. Like temp table on Microsoft SQL Server.
You can use ST14 to perform a Business Warehouse Application analysis, finding the large(largest) table so you can determine the suitable(minimum) size for PSAPTEMP. eventhough the exact size might be hard to figure, at least we can figure out the minimum storage size.

The process that took the significant ammount of storage is caused by ‘Semantic Groups’ technique. The ‘Semantic Groups’ feature will first gather all the information based on primary key / groups primary key to sort all the records across the packet.

2.Turn Off the ‘Semantic Groups’ feature in DTP. This will do the work also without extend the PSAPTEMP.
The consequence of turning off the ‘Semantic Groups’ is that you might be end up with fixing a lot of unqualified data despite those records have same key(primer key) or group key.


Option for solution, workaround:
1.Extend  PSAPTEMP
2.Turn Off the ‘Semantic Groups’ feature in DTP. This will do the work also without extend the PSAPTEMP.
The consequence of turning off the ‘Semantic Groups’ is that you might be end up with fixing a lot of unqualified data despite those records have same key(primer key) or group key.

Thursday, July 12, 2012

Rough fiscal year variant not processed


While loading the data for 2LIS_03_UM data source, I have got the error message "Rough fiscal year variant not processed".

To resolve this error, I have followed the below steps.

SPRO -> SAP Customizing Implementation Guide -> SAP NetWeaver -> Business Warehouse -> Settings for BI Content -> Trade Industries -> Retailing -> Set Fiscal Year Variant

Go through the abovE mentioned path – IN BW SYSTEM


MAINTAIN the rough fiscal year variant – IN BW SYSTEM

Use
The purpose of this activity is to maintain the fiscal year varaiant that are significant in SAP Retail Merchandise and Assortment Planning. Three fiscal year variants are relevant here.

Detailed Fiscal Year Variant:
 This fiscal year variant determines the detailed periodicity, for example, weekly periods. This periodicity is used in planning and reporting.

Rough Fiscal Year Variant: 
This fiscal year variant determines the rough periodicity, for example, monthly periods. It is particularly significant in planning for the entry of sales and inventory plans, but can also be used for reporting purposes.

Fiscal Year Variant: Very Rough:
 This fiscal year variant determines very rough periods, such as quarters or seasonal periods. It is used in the stock ledger for reporting purposes.

SSM: Fiscal Year Variant: 
This fiscal year variant is used in slow seller management.

Procedure
1.     Access the activity using one of the following navigation options:
Transaction Code
SPRO
IMG Menu
SAP Customizing Implementation Guide -> SAP NetWeaver -> Business Warehouse -> Settings for BI Content -> Trade Industries -> Retailing -> Set Fiscal Year Variant

2.    Enter the following data:  here enter 3 different variants, otherwise it will show the error message  "fiscal year variant * is already being used".

Field name
User values
Detailed Fiscal Year Variant
(Our FISCVARNT)
Rough Fiscal Year Variant
V3(Our FISCVARNT)
SSM: Fiscal Year Variant
(Our FISCVARNT)

3.     Choose the Button  "Save".