SQL Server administration and T-SQL development, Web Programming with ASP.NET, HTML5 and Javascript, Windows Phone 8 app development, SAP Smartforms and ABAP Programming, Windows 7, Visual Studio and MS Office software SAP ABAP Programming and HANA Database Tutorials
Development resources, articles, tutorials, samples, codes and tools for .Net, SQL Server, Windows, Windows Phone, SAP and ABAP, like SAP UI5, Screen Personas, etc.

CRM Companies List
Web Based CRM Software

Web Dynpro Component Service Syntax Error in Program

When I try to test Web Dynpro component by calling of URL web dynpro service, I experienced the following Web Dynpro syntax error.
Error while processing your request!

I re-created the Web Dynpro error as follows:
I call SAP transaction code SICF - Maintain Service
Drill through the Virtuelle Hosts / Services until I reach my Web Dynpro service
Then I open context menu on service by right click on choose Test Service

After the service test started, the following Web Dynpro syntax error is seen in below screenshot

Web Dynpro syntax error during URL call

In order to understand what caused error in my Web Dynpro component which works successfully in the development SAP system environment, first I called SE80 ABAP Workbench transaction code and open Web Dynpro component. Then I tried to activate the Web Dynpro component but activation of the object failed:

Component [WebDynpro component name] cannot be generated due to errors -> long text

activate Web Dynpro component error

ABAP developers can call the transaction code ST22 ABAP Runtime Error in order to see the error details.

Runtime Errors SYNTAX_ERROR
Date and Time 13.12.2011 07:29:27
Short text
Syntax error in program "/1BCWDY/O3EC1AX6A3OVKK9L5FXO==CP ".

What happened?
Error in the ABAP Application Program

The current ABAP program "CL_WDR_CLIENT_COMPONENT=======CP" had to be terminated because it has come across a statement that unfortunately cannot be executed.

The following syntax error occurred in program
"/1BCWDY/O3EC1AX6A3OVKK9L5FXO==CP " in include "/1BCWDY/B_O3EC2NZ3HIXYGVY9PJV3" in line 14932:
"Type "/KODY/SOM_CRD_DT" is unknown"

Error in the ABAP Application Program

The current ABAP program "CL_WDR_CLIENT_COMPONENT=======CP" had to be terminated because it has come across a statement that unfortunately cannot be executed.
Web Dynpro Component /KODY/SOM_TR_WD_CREDPART
Web Dynpro Controller MAIN

 61 * Get component factory
 62 l_gen_class_name = me->component_info->gen_class_name.
 63 * try.
>>>>> call method (l_gen_class_name)=>if_wdr_classloader~create_instance
 65 receiving
 66 component_instance = me->component_factory.
 68 * catch cx_root into root_excp.
 69 * raise exception type cx_wdr_rt_exception
 70 * exporting
 71 * textid = cx_wdr_rt_exception=>classloader_not_instantiated
 72 * previous = root_excp
 73 * msgv1 = l_gen_class_name.
 74 * endtry.

Call SE24 Class Builder transaction code to check syntax check of the Web Dynpro ABAP code
Provide the class name "/1BCWDY/O3EC1AX6A3OVKK9L5FXO" as object type for the Class Builder application

Then follow the Class > Check > Syntax menu options in the SE24 Class Builder screen.

check syntax code using SE24 SAP transaction code

You can also choose Extended Check if this first Syntax Check does not help you

The syntax check result with enough error information for me to diagnose what is the cause of the error in Web Dynpro component. Actually that was a missing dictionary entry in the test SAP system. That was a fault of me because I forgot to transport the dictionary objects to the test system when I transported the Web Dynpro component itself.

syntax error unknown type in Web Dynpro component

Syntax error : Type "..." is unknown.

SAP Tutorials

SAP Tutorial

SAP Forums

SAP Tools

SAP Transaction Codes Table

Related Articles and Tutorials(http://www.kodyaz.com/sap-abap/web-dynpro-syntax-error-in-program.aspx)
Set Page Title in Web Dynpro Application
Read Checkbox Value in Web Dynpro Editable ALV
Traffic Lights in SAP Web Dynpro ALV Table
How to Clear Web Dynpro Cache
Remove ALV Buttons on SAP Web Dynpro Component
Display Adobe Form in SAP Web Dynpro
Display Data on Web DynPro Table Element
Web Dynpro Text Translation using Assistance Class
Trigger ALV Events in Web Dynpro Component
SAP Web Dynpro ALV Tutorial
Add Button to ALV Table Header on SAP Web Dynpro
Add Web Dynpro Applications to SAP Favorites Menu
Component Usage ALV Does Not Have an Active Component
Create Search Help in ABAP for Web Dynpro Component
Create Transaction Code for Web Dynpro Application
Display and Download Adobe Form as PDF File in SAP Web Dynpro
Find Web Dynpro Class Name to Search in ABAP Code
Web DynPro Tutorial - How to create Web Dynpro Application (Web Dynpro Component)
Test Web Dynpro ABAP Component by Creating Web Dynpro Application
Add Value Help to Web Dynpro Select Options
Translate Web Dynpro Header Title displayed on Web Browser
SAP Web Dynpro Service Cannot be Reached Error
SAP Web Dynpro File Upload using GOS cl_fitv_gos Class
Web Dynpro Component Service Syntax Error in Program /1BCWDY/O3EC1AX6A3OVKK9L5FXO==CP
Web DynPro Tutorial - Display Spool Requests using Web DynPro Table

Copyright © 2004 - 2018 Eralper YILMAZ. All rights reserved.
Community Server by Telligent Systems