cancel
Showing results for 
Search instead for 
Did you mean: 

METHOD CL_WD_RUNTIME_SERVICES=>ATTACH_FILE_TO_RESPONSE doesn't work !

Former Member
0 Kudos

hi all,

iwant to display a CV by calling the METHOD CL_WD_RUNTIME_SERVICES=>ATTACH_FILE_TO_RESPONSE,

but alawys an error occure says that the methode is pointed to NULL !!

the content is filled as XSTRING

i already used that method for other functions, and the same way again hier by calling the CV, but alawys the same error occure

can anyone tell me how can i resolve this?

thank you all

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hallo ,

I do not know how you coded. This has been discussed several times. Simple search would bring you several results.

Please have a look at this thread Saarbjeet Singh reply and code snippet.

[|]

Former Member
0 Kudos

question??

normaly, i have called this Method befor only in other methods and it worked, BUT this time i called it in a report, and it didnt !!!

do i need to do something eles to let this method works???

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

>BUT this time i called it in a report, and it didnt !!!

What do you mean you called it in a report? This method only works within Web Dynpro. You aren't trying to use this from a normal SAPGUI application are you? From a SAPGUI application you would use CL_GUI_FRONTEND_SERVICES instead.

Former Member
0 Kudos

Wait a moment, i have used it also in method class, and it did work !!! not a web dynpro method,

but anyway i will be very happy if you show me how can i display my CV in a PDF form, this works while calling a Smartforms app, and everything is working fine after converting pdf to xstring obly by calling the methods, something didnt works !!!

thanks for help

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Perhaps you should be clear about what kind of application you are writting - SAPGUI or Web Dynpro. You might have used this method within a class, but was that class running within the SAPGUI or Web Dynpro. I can assure you CL_WD_RUNTIME_SERVICES=>ATTACH_FILE_TO_RESPONSE will not work outside the Web Dynpro framework.

Former Member
0 Kudos

yes that's right, most of the time i used it in WBDYNPRO, but this is the first time that i called it in SAP GUI,

anyway that was nice form you, i noticed now my mistake

Answers (0)