cancel
Showing results for 
Search instead for 
Did you mean: 

Locally downloading bapi output?

Former Member
0 Kudos
160

Hi,

A webdynpro application uses adaptiveRFC model to display a list. Can I download this list locally on my PC?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

you can create a file out of the data in the list. Then you can use FileDownload UI for downloading the same in you local machine. Not directly from a BAPI output list.

regards,

Shubhadip

Former Member
0 Kudos

Hi Shubhadip,

can u quote some help links for creating a file out of BAPI output list?

Former Member
0 Kudos

Hi Meesum,

You can iterate through the output node and write the contents into a file.

//Code Sample

StringBuffer sb = new StringBuffer();

for(int i=0;i<wdContext.nodeRFCOutput().size();i++){

IPrivate<<ViewName>>.IRFCOutputElement outputElt = wdContext.nodeRFCOutput().getRFCOutputElementAt(i);

String str1 = outputElt.getField1();

String str2 = outputElt.getField2();

String str3 = outputElt.getField3();

sb.append(str1).append(",").append(str2).append(",").append(str3));

}

write the StringBuffer data to file.

Use the download UI element to download that file to the client machine.

Hope this solves your problem.

Regards,

Santhosh.C

Answers (0)