cancel
Showing results for 
Search instead for 
Did you mean: 

Problem show data in webdynpro

Former Member
0 Kudos

Hi all,

I have make a application in Sap Netweaver Developer Studio. I like show a payslip that in the system R/3 is how a char of long 135.

I show this value in a table but isn't more pretty.

How can i show this value more pretty in the webdynpro?

Thanks in advance.

Vicente Zaragoza

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi vincente,

If you want your ouput just linebyline simillar to table but without any borders then you can just change some properties of table. This will display your data more simillar to form like

Name ID PAY DA

For this you need to change the following properties of table

1) footervisible - false

2)gridMode - node

3)rowSelectable - false

4)selectionMode - none

Regards

Raghu

Former Member
0 Kudos

Hi,

If you can give me more information about this option.

The problem is that the information that i like get of system R/3 is a payslip.

The structure of payslip is:

PAYSLIP>TEXT_COL>TEXT132>CHAR>132

The bapi that i'm using is BAPI_GET_PAYSLIP.

Reagrds

Vicente

Former Member
0 Kudos

Hi Vicente,

The following code may not be directly helps you but his is the way you store data in to a list

public void wdDoInit()

{

//@@begin wdDoInit()

view_Response r = new view_Response();

String po_ref = r.main();

wdContext.currentContextElement().setPO_Ref(po_ref);

cal = r.getDate();

wdContext.currentContextElement().setDate((cal.get(Calendar.MONTH)1)"/"cal.get(Calendar.DATE)"/"+cal.get(Calendar.YEAR));

List l = r.getItem();

int No_Of_Rows = l.size();

for(int i=0 ; i< No_Of_Rows ; i++)

{

POAsASNType.LineItemsType.ItemType item = (POAsASNType.LineItemsType.ItemType)l.get(i);

IPrivateAdvanceShipView.ILine_ItemsElement table = wdContext.createLine_ItemsElement();

table.setItemCode(item.getItemCode().intValue());

table.setItemDescription(item.getItemDescription());

table.setMaterialNo(item.getMaterialNo());

table.setQuantityRequired(item.getQuantityRequired());

table.setSerialNo(item.getSerialNo().intValue());

wdContext.nodeLine_Items().addElement(table);

}

//@@end

}

Hope this helps you

Regards,

RK

Former Member
0 Kudos

Hi Sathya,

Thanks for your reply.

I like make the second option that you say. But i don't know how through a array and pull the entire data as a whole bunch and show in text view.

How can i make it?

Thanks

Vicente Zaragoza

Former Member
0 Kudos

Hi,

my suggestion is insted of using array why don't you use list and from this list get the each row value or set the row value by using for loop..

(if want more specific code i can give you)

Reagrds

RK

Former Member
0 Kudos

Hi Shubhadip,

Now I achieved show the value of system R/3 in a textView but only i can see the first row of payslip.

How Can i see all the payslip?

Regards,

Vicente

Former Member
0 Kudos

Hi

In SAP I assume you are storing the payslip data in table format with each record containing the data in multiple lines. Then In webdynpro, you can use a table to populate the data in rows similar to that of sap instead of textview. without any border,or else.through a array you can pull the entire data as a whole bunch and show in text view , so option is yours!

Hope this helps

Thanks

Sathya

Former Member
0 Kudos

Hi Vincente,

I am facing the same problem that you faced to format the output of the Payslip.

Please let me know how you solved the problem.

Thanks for your help.

Regards,

Revathi Raju.

Former Member
0 Kudos

Hi Shubhadip,

I have proved put a TextView with the value of system R/3 but i can`t show this value.

I have put the "wrapping" property to true of the textView element but i don't show the value.

When i say more pretty i like to say that i like show in another format not in a table.

How can i show?

Regards,

Vicente

Former Member
0 Kudos

Hi Vicente,

didnt understand properly what do you mean when you say its not pretty. Can u elaborate it a bit. Well if the length of the string is longer and in order to display it into one line the table width gets extended beyond permissible limit then you can set the 'wrapping' property to true of that textView element. That will wrap the whole text and show it in multiple lines.

Dont know whether that was the actual problem or not.

Regards,

Shubhadip