Skip to Content
0
Dec 12, 2007 at 07:03 AM

I need information about Xbilk field of char1 type in Web Dynpro Java.

170 Views

Hi,

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 .

wdContext.nodeItemDetailsValue().getItemDetailsValueElementAt(

i).setXbilk(

wdContext

.nodeOutput_K_Vbseg()

.getOutput_K_VbsegElementAt(i)

.getXbilk());

if (wdContext.

nodeItemDetailsValue().

getItemDetailsValueElementAt(i).

getXbilk().

equalsIgnoreCase("X"))

{

wdComponentAPI.getMessageManager().reportException("Entered GL is BS", true);

}

else

{

wdComponentAPI.getMessageManager().reportException( "Entered GL is PL" ,true );

}

Thanks

Laxmikant