Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

GoFunctionKey not working in SAP SRS application

Hi Friends,

I have been working on SAP SRS application which is created in Web Dynpro Java and some ABAP part too.

It 7 dcs.

The main dcs are:, and

ScanView is a view which inside a Web Dynpro Java Component ArticleComp which is inside the dc

The ScanView has 4 buttons:

1> Go button,

2> Cancel button,

3> Overview button

and 4> Advanced Search button.

The ScanView has 5 functionkey for mobile devices:

1> GoFunctionKey,

2> CancelFunctionKey,

3> OverviewFunctionKey,

4> AdvancedSearchFunctionKey

and 5> BarCodeReader.

The GoFunctionKey is not working.

It has keycode PI_MaterialScanFk.Search_Go which gets the value 13 from a RFC.

The onAction event of the function key GoFunctionKey is:

public void onActionScan( wdEvent, java.lang.String scanData )
    //@@begin onActionScan(ServerEvent)
	//wdComponentAPI.getMessageManager().reportSuccess("Scan value: "+scanData);

The onActionSearch event for the Go button is onActionSearch :

public void onActionSearch( wdEvent )
    //@@begin onActionSearch(ServerEvent)
	if (wdThis.wdGetArticleCompController().getSizeMatList()>0) {
		if (wdThis.wdGetArticleCompController().getSizeMatList()==1)

So, internally GoFunctionKey calls the function of the Go button.

But nothing happens when client clicks this Enter button of the mobile device.

I am planning to debug the code by putting some breakpoints but it would not help.

I have already tried to print statements inside the onActionScan by using wdComponentAPI.getMessageManager.reportSuccuess();

but nothing is getting printed as the action is not getting called.

There are some changes done in ABAP side but no customization done in the java side.

Also, the mobile devices used are given below:

Please show how to approach and solve this issue.

Thanks & Regards

Kaushik Banerjee

Former Member
Not what you were looking for? View more on this topic or Ask a question