01-14-2013 7:08 AM
Hi ,
When i am trying to use code completion tool in Eclipse, its not working properly. When i click ctrl + space , i see list of methods or function module(as well as i can see signatures). But , when i press shift+enter , as mentioned in document , i just get the function module name or method name in my program. The code completiong doesnt get all the parameters.
How do i resolve this issue.
Thanks
Madhumati
01-18-2013 8:04 AM
Hi Madhumati,
I'm having exactly the same issues as you describe. I seem to have just found a workaround that works sometimes:
When calling the code completion from the class and selecting the method, Shift + Enter inserts the method name but not the signature.
However if you immediately call code completion again, and hit Shift + Enter, it (sometimes) inserts the signature propperly.
Regards,
Gerald
P.S. @Felix: I'm also running GUI 730, but Eclipse 4.2 (Juno)
01-14-2013 8:42 AM
Hi Madhumati,
we need some details to reproduce the issue.
Which version of Eclipse do you use?
For which function module did you try to get the signature to be inserted (is it local, is it a name space, ...)?
Regards, Felix
01-14-2013 11:13 AM
Hi Felix,
I am using Eclipse Indigo. SAP GUI is 730.
I have created a class with 2-3 methods as local object . I have tried to use auto completion for these methods , which didnot work.
Then i tried to call 'BAPI_SALES_ORDER_CREATE' using code completion , which didnt work either.
When i press shift+enter , the pattern(importing/exporting parameters) doesnt get copied.
Thanks
Madhumati
01-18-2013 8:04 AM
Hi Madhumati,
I'm having exactly the same issues as you describe. I seem to have just found a workaround that works sometimes:
When calling the code completion from the class and selecting the method, Shift + Enter inserts the method name but not the signature.
However if you immediately call code completion again, and hit Shift + Enter, it (sometimes) inserts the signature propperly.
Regards,
Gerald
P.S. @Felix: I'm also running GUI 730, but Eclipse 4.2 (Juno)
01-21-2013 11:53 AM
Hi Madhumati,
it would be great if you could give us some more information which should help us troubleshoot the problem.
1) Please open the "ABAP communication log" view via menu "Window->show view". Switch on the log by clicking on the green play button. The log shows you the requests which the client fires against the backend. When the code insertion works the log has the following entries.
POST /sap/bc/adt/abapsource/codecompletion/insertion?uri=XXXXXXX
POST /sap/bc/adt/abapsource/codecompletion/elementinfo?uri=XXXXXXX
POST /sap/bc/adt/abapsource/codecompletion/proposal?uri=XXXXXXXX
Please reproduce the bug and post your log entries here. Does the client send the "insertion" request?
2) Please open the "Error Log" view via menu "Window->show view". After executing the broken functionality see if new entries did appear in the error log.
3) Since the code completion gets executed in a background thread there might be errors happening in the backend which you are not aware of. Please check whether the bug produces shortdumps in the backend via transaction st22.
regards,
Thomas
01-21-2013 1:05 PM
Hi Gerald - Its working as you suggested.
Hi Thomas - I have tried couple of times after trying Gerlad option , but i am not getting the issue. If I get issues again , i will post you log.
Thanks
Madhumati
01-22-2013 7:45 AM
Hi Thomas,
An example for you guys:
This was produced with the following code, and then selecting the ‘describe_by_data’ method:
DATA: lo_tab_descr TYPE REF TO cl_abap_tabledescr.
lo_tab_descr ?= cl_abap_tabledescr=><#code completion called here#>
After completion is called with ‘Shift + Enter’ only the method name is inserted without the signature:
lo_tab_descr ?= cl_abap_tabledescr=>describe_by_data
Communication log shows:
POST /sap/bc/adt/repository/nodepath?uri=%2Fsap%2Fbc%2…
POST /sap/bc/adt/abapsource/codecompletion/proposal?uri=%2Fsap…
POST /sap/bc/adt/abapsource/codecompletion/elementinfo?uri=%2Fsa…
POST /sap/bc/adt/abapsource/codecompletion/elementinfo?uri=%2Fsap%2Fbc%2…
The Error log is empty
Hope this helps and keep up the great work
Gerald
01-29-2013 12:22 PM
Hi Gerald,
Thanks for all information you sent: it seems that Eclipse sends no request to the ABAP system to do the insertion with the signature.
One short question: How do you select the entry which you want to insert in your coding? Do you select it using the mouse or using the keys UP/DOWN? There is a known issue when you select the entry using the mouse.
Michael
01-29-2013 12:45 PM
Hi Michael,
I've indeed been using the mouse to select. Will use the keys in future and see if this avoids the issue.
Regards,
Gerald
06-28-2013 10:41 AM
Hi Thomas,
I just ran into this problem. It worked for weeks until today.
com.sap.adt.communication.resources.ResourceNotFoundException: Execution of request "POST /sap/bc/adt/abapsource/occurencemarkers?uri=%2Fsap%2Fbc%2Fadt%2Ffunctions%2Fgroups%2Fz_qm_qa01%2Ffmodules%2Fz_pp_qm_umbu_bestand_dez%2Fsource%2Fmain%23start%3D236%2C20" failed: 404
Anweisung FUNCTION fehlt
------------ Request -----------------------
POST /sap/bc/adt/abapsource/occurencemarkers?uri=%2Fsap%2Fbc%2Fadt%2Ffunctions%2Fgroups%2Fz_qm_qa01%2Ffmodules%2Fz_pp_qm_umbu_bestand_dez%2Fsource%2Fmain%23start%3D236%2C20 HTTP/1.1
X-sap-adt-profiling: server-time
Content-Type: text/plain
<<MY CODE>>
------------ Response ----------------------
HTTP/1.1 404
X-sap-adt-profiling: server-time=6526
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.ris"/><type id="Error"/><message lang="EN">Anweisung FUNCTION fehlt</message><localizedMessage lang="DE">Anweisung FUNCTION fehlt</localizedMessage><properties/></exc:exception>
--------------------------------------------
at com.sap.adt.communication.internal.resources.RestResource.createResultFromResponse(RestResource.java:131)
at com.sap.adt.communication.internal.resources.RestResource.invoke(RestResource.java:114)
at com.sap.adt.communication.internal.resources.RestResource.post(RestResource.java:75)
at com.sap.adt.tools.abapsource.internal.sources.occurrence.OccurrenceFinderServices.doPost(OccurrenceFinderServices.java:105)
at com.sap.adt.tools.abapsource.internal.sources.occurrence.OccurrenceFinderServices.getOccurrenceInfo(OccurrenceFinderServices.java:91)
at com.sap.adt.tools.abapsource.internal.sources.occurrence.BackendOccurrenceFinder.findOccurrences(BackendOccurrenceFinder.java:51)
at com.sap.adt.tools.abapsource.ui.internal.occurrence.OccurrenceHandler$OccurrencesFinderJob.run(OccurrenceHandler.java:713)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
06-28-2013 11:28 AM
Hi Fabio,
the log you sent seems not to be related to code completion but occurrence marker. Is your function module (or even better the whole function group) syntactically correct, in which you would like use the functionality?
The log states, that the statement FUNCTION is missing somewhere:
Anweisung FUNCTION fehlt
Best regards,
Michael
06-28-2013 12:34 PM
Hi Michael,
It seems like there was/is a problem with the function itself (ENQUEUE_EMMCHA). Everything on our side should be correct and seems to work now.
Regards,
Fabio
07-23-2016 2:10 PM
Hi All.,
this is a just info for Eclipse users,
if you want to insert the signature on completion and it does not wok, just active the box in eclipse.
Regards
Ebrahim