I require information in Web Dynpro.
I have a field Xbilk which is char1 ABAP field.
Here there are 2 type of accounts which are identified by Xbilk char1 field.
if that is filled then it is a Balance sheet account.
else it is a Profit and loss account.
But in testing it is going to Balance sheet even if it is profit and loss account and end result is always Profit and loss account which is incorrect.
In Dynpro , value attribute and model attribute char1 type is used.
Code is also surrounded by try catch block and for block.
Please see attachments for code .
wdComponentAPI.getMessageManager().reportException("Entered GL is BS", true);
wdComponentAPI.getMessageManager().reportException( "Entered GL is PL" ,true );