cancel
Showing results for 
Search instead for 
Did you mean: 

The ASSERT condition was violated. (termination: RABAX_STATE)

Former Member
0 Kudos

Dear Experts,

We are in process of setting up the SRM 7.0 Ehp1 system. When we click on the Shop, we are getting blank pop screen which says

500 SAP Internal Server Error

ERROR: The ASSERT condition was violated. (termination: RABAX_STATE)

We have checked in ST22 and it reads as below

Category                          -  ABAP Programming Error

Runtime Errors                -  ASSERTION_FAILED

ABAP Program                 - /SAPSRM/CL_PDO_SO_CATLGSEARCH=CP

Application Component  - SRM

Short text

    The ASSERT condition was violated.

What happened?

    In the running application program, the ASSERT statement recognized a situation that should not have occurred.

    The runtime error was triggered for one of these reasons:

    - For the checkpoint group specified with the ASSERT statement, the activation mode is set to "abort".

    - Via a system variant, the activation mode is globally set to "abort" for checkpoint groups in this system.

    - The activation mode is set to "abort" on program level.

    - The ASSERT statement is not assigned to any checkpoint group.

Information on where terminated

    Termination occurred in the ABAP program "/SAPSRM/CL_PDO_SO_CATLGSEARCH=CP" -

     in "/SAPSRM/IF_PDO_SO_CATLGSEARCH~INITIALISE_WS".

    The main program was "SAPMHTTP ".

    In the source code you have the termination point in line 3

    of the (Include) program "/SAPSRM/CL_PDO_SO_CATLGSEARCH=CM00Y".

Source Code Extract

Line  SourceCde

    1 METHOD /sapsrm/if_pdo_so_catlgsearch~initialise_ws.

    2

>>>>>   ASSERT /sapsrm/cl_sw_self_service_1=>simplified_sc_is_active( ) EQ abap_true.

    4

    5   DATA:

    6

    7         ls_catalog LIKE LINE OF it_catalogs,

    8         lt_catalog LIKE it_catalogs,

    9         lv_user_session_id TYPE bbp_agent_indx_srtfd,

   10         lv_ws_enabled TYPE xfeld.

   11

   12

   13 * Delete all the catalogs which are not webservice enabled

   14

   15   LOOP AT it_catalogs INTO ls_catalog.

   16     CALL METHOD me->/sapsrm/if_pdo_so_catlgsearch~check_catalog_ws_enabled

   17       EXPORTING

   18         iv_service_id = ls_catalog-service_id

   19       IMPORTING

   20         ev_ws_enabled = lv_ws_enabled.

   21     IF lv_ws_enabled EQ abap_true.

   22       APPEND ls_catalog TO lt_catalog.

Also we have checked the SRM_Self_Service_1 business Function is already activated.

Can you please provide your suggestions.

Regards

Ketan

Accepted Solutions (1)

Accepted Solutions (1)

laurent_burtaire
Active Contributor
0 Kudos

Hello,

your ABAP user (PFCG transaction) has EhP1 role /SAPSRM/EMPLOYEE_EHP1.

As a consequence, /SAPSRM/IF_PDO_SO_CATLGSEARCH~INITIALISE_WS method is called (/SAPSRM/CL_PDO_SO_CATLGSEARCH class) when you launch transaction "Shop".

This method checks customizing Switch SRM_701_SIMPLIFIED_SC is activated: if not, you will have a DUMP.

I think you activated Business Function SRM_SELF_SERVICE_1 but not the concerned customizing switch:

SAP Implementation Guide  SAP Supplier Relationship Management  SRM Server   Cross-Application Basic Settings  Self-Service Procurement  Activate/Deactivate Simplified Shopping Cart

Regards.

Laurent.

Matt_Fraser
Active Contributor
0 Kudos

Laurent,

You were exactly right!  I double-checked, and we had exactly the combination of factors you described.  I didn't see anywhere in the documentation which says that if you activate SRM_SELF_SERVICE_1 you must also activate SRM_701_SIMPLIFIED_SC, but doing so indeed solved the problem.  Thank you!

Ok, on to the next problem to resolve...

Best regards,

Matt

pkar036
Advisor
Advisor
0 Kudos

Hello Matt, Hello Laurent,

Thanks for your suggestion. I did check in my system. I have two landscapes and system is behaving differently. So I am not sure what might the issue in my case. I face the same issue as well.

Both the systems are similar in version and patch level.

Dev landscape : Scenario is working fine.

SRM_SELF_SERVICE_1                   not acitvated

SRM_701_SIMPLIFIED_SC              not present at all.



Test landscape :  Scenario is not working, with the code dump as mentioned in the ticket.


SRM_SELF_SERVICE_1                      not activated

SRM_701_SIMPLIFIED_SC                  not present at all.



Kindly advice.

- Karthi

vinita_kasliwal
Active Contributor
0 Kudos

Hi karthik ,

Can you c ompare your roles for the users as well in both the systems ?

It seems you have Business Function linked to ESS activated, but in Portal, your SRM user with SRM role does not have corresponding EhP1 Portal role

Please paste here the roles for both the users as well .

Matt_Fraser
Active Contributor
0 Kudos

If you are not planning to activate the EhP1 functions and customizing switches, then you also need to not assign the EhP1 roles to your users.  We determined that we don't want to use the Simplified Shopping Cart at this time, and so when we deactivated SRM_701_SIMPLIFIED_SC and SRM_SELF_SERVICE_1, we also had to switch which role we assigned to users, i.e. assign /SAPSRM/EMPLOYEE instead of /SAPSRM/EMPLOYEE_EHP1.

Regards,

Matt

Former Member
0 Kudos

Thanks Matt.  Came across the same issue today.  Odd that the role and enhancement pack are related...

Answers (2)

Answers (2)

Matt_Fraser
Active Contributor
0 Kudos

We are getting this exact same symptom and error, on the same line of code.  This is a newly upgraded system to SRM 7.0 EhP3 from SRM 5.0.  We are using the Portal-Independent Navigation Frame (i.e., no Portal).

former_member208675
Active Contributor
0 Kudos

Hi,

Can you check if your portal user has corresponding role?

Regards,