Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI returns PDF

Former Member
0 Likes
729

Hi all,

Am trying to implement a BAPI that rerutrns a PDF to a webdynpro. I create the PDF from a smartform through FM 'CONVERT_OTF_2_PDF'. Now this FM returns a table of type TLINETAB, and when a try to put a parameter of the same type in my BAPI i get the following message "Data type TLINETAB cannot be used for methods". Do you guys know what type should I use for the BAPI to return the PDF?

1 ACCEPTED SOLUTION
Read only

sridhar_k1
Active Contributor
0 Likes
665

Use structure TLINE.

Regards

Sridhar

4 REPLIES 4
Read only

sridhar_k1
Active Contributor
0 Likes
666

Use structure TLINE.

Regards

Sridhar

Read only

0 Likes
665

Thank you Sirdhar for replying. TLINE is a structure, but i need to return a table, if i eventually use TLINE I would be able to return just one line. Do you have any other ideas. I know i can convert my table to an xstring, but again BAPIs do not return xstrings. Thanks for your help.

Read only

0 Likes
665

Are you creating a custom BAPI fm? You should not have any problem adding a tables parameter LIKE TLINE in the tables tab.

Regards

Sridhar

Read only

0 Likes
665

I added the TLINE like you said, it works fine. You got your reward points, thanks you for your help.