Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

InvalidFunctionGroup exception ADT Eclipse

matt
Active Contributor
0 Likes
1,773

Here's the exception.

com.sap.adt.communication.resources.ResourceException: Execution of request "POST /sap/bc/adt/navigation/target?uri=%2Fsap%2Fbc%2Fadt%2Ffunctions%2Fgroups%2Fzmatt%2Ffmodules%2Fz_matt_email_subject%2Fsource%2Fmain%23start%3D11%2C16&filter=implementation&filter=matchingStatement" failed: 500 Internal Server Error
An exception was raised
------------ Request -----------------------
POST /sap/bc/adt/navigation/target?uri=%2Fsap%2Fbc%2Fadt%2Ffunctions%2Fgroups%2Fzmatt%2Ffmodules%2Fz_matt_email_subject%2Fsource%2Fmain%23start%3D11%2C16&filter=implementation&filter=matchingStatement HTTP/1.1
Content-Type: text/plain
Accept: application/xml
User-Agent: Eclipse/4.22.0.v20211124-1800 (win32; x86_64; Java 11.0.9.1) ADT/3.22.1 (devedition)
X-sap-adt-profiling: server-time

FUNCTION Z_MATT_EMAIL_SUBJECT
  EXPORTING
    EV_CANCEL TYPE FLAG
  CHANGING
    CT_SUBJECTS TYPE ZT_EMAIL_SUBJECT_TRANS.



  email_subject_handler = zemail_subject_handler_factory=>get_instance( ).
  email_subject_handler->set_subject_list( ct_subjects ).
  CALL SCREEN 100.
  ev_cancel = email_subject_handler->dialog_was_cancelled( ).
  ct_subjects = email_subject_handler->get_subject_list( ).

ENDFUNCTION.
------------ Response ----------------------
HTTP/1.1 500 Internal Server Error
~server_protocol: HTTP/1.1
X-sap-adt-profiling: server-time=3949
Content-Type: application/xml

<?xml version="1.0" encoding="utf-8"?><exc:exception xmlns:exc="http://www.sap.com/abapxml/types/communicationframework"><namespace id="com.sap.adt"/><type id="invalidFunctionGroup"/><message lang="EN">An exception was raised</message><localizedMessage lang="EN">An exception was raised</localizedMessage><properties/></exc:exception>
--------------------------------------------

	at com.sap.adt.communication.internal.resources.RestResource.createResourceException(RestResource.java:252)
	at com.sap.adt.communication.internal.resources.RestResource.createResultFromResponse(RestResource.java:151)
	at com.sap.adt.communication.internal.resources.RestResource.invoke(RestResource.java:141)
	at com.sap.adt.communication.internal.resources.RestResource.post(RestResource.java:81)
	at com.sap.adt.tools.core.internal.navigation.AbapNavigationServices.post(AbapNavigationServices.java:107)
	at com.sap.adt.tools.core.internal.navigation.AbapNavigationServices.getNavigationTarget(AbapNavigationServices.java:74)
	at com.sap.adt.tools.abapsource.ui.internal.navigation.SourceCodeNavigationHandler.getNavigationTarget(SourceCodeNavigationHandler.java:431)
	at com.sap.adt.tools.abapsource.ui.internal.navigation.SourceCodeNavigationHandler$2.run(SourceCodeNavigationHandler.java:347)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)

In SAPGui, there's no issue with the function group. It's active. This exception comes up from Eclipse when I press F3 for navigation on the 100 in CALL SCREEN 100.

This has definitely worked fine before - opening up a sapgui session showing screen 100.

1 ACCEPTED SOLUTION
Read only

ThFiedler
Product and Topic Expert
Product and Topic Expert
0 Likes
1,621

Looks like the function group has some inconsistencies.

Maybe you try in SE37: SE37 (initial screen) -> Utilities -> Repair Function Group

If this does not solve the issue please create a ticket on component BC-DWB-TOO-FUB

Many Thanks,

Thomas.

5 REPLIES 5
Read only

FredericGirod
Active Contributor
1,621

Z_MATT_EMAIL_SUBJECT

Worst than Hungarian expression, put his name in the name of a function ... 😄

Read only

matt
Active Contributor
0 Likes
1,621

@ frdric.girod It's a FM which is designed for determining the subjects to use for emails sent to me!

(Actually, it's a demo program).

Read only

FredericGirod
Active Contributor
0 Likes
1,621

stupid question, did you check for Eclipse update ?

Read only

matt
Active Contributor
0 Likes
1,621

Yes. That wasn't it.

Read only

ThFiedler
Product and Topic Expert
Product and Topic Expert
0 Likes
1,622

Looks like the function group has some inconsistencies.

Maybe you try in SE37: SE37 (initial screen) -> Utilities -> Repair Function Group

If this does not solve the issue please create a ticket on component BC-DWB-TOO-FUB

Many Thanks,

Thomas.