on 06-08-2011 8:10 AM
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: isisrsrsgrbcsap.com, isisrsrsgrappsap.com and isisrsrsamsap.com.
ScanView is a view which inside a Web Dynpro Java Component ArticleComp which is inside the dc isisrsrsamsap.com.
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(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, java.lang.String scanData )
{
//@@begin onActionScan(ServerEvent)
//wdComponentAPI.getMessageManager().reportSuccess("Scan value: "+scanData);
wdContext.currentPi_Mat_EanElement().setEan_Upc(scanData);
wdThis.onActionSearch(wdEvent);
//@@end
}
The onActionSearch event for the Go button is onActionSearch :
public void onActionSearch(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
{
//@@begin onActionSearch(ServerEvent)
wdThis.wdGetArticleCompController().scanArticle();
if (wdThis.wdGetArticleCompController().getSizeMatList()>0) {
wdContext.nodePi_Mat_Ean().invalidate();
if (wdThis.wdGetArticleCompController().getSizeMatList()==1)
wdThis.wdGetArticleCompController().goMaterialResult();
else
wdThis.wdFirePlugToDispatcher(INavCodeConstants.NAV_CODE_COPY);
}
//@@end
}
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:
http://emobilescan.co.uk/downloads/manuals/ppt8800.pdf
Please show how to approach and solve this issue.
Thanks & Regards
Kaushik Banerjee
Hi,
I have not worked on mobile development but are you sure wdComponentAPI.getMessageManager.reportSuccuess() works on mobile devices.
Also you have called a method of your Comp Controller in onActionSearch. Check if it might be throwing an exception that is not being printed.
Regards,
Himanshu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.