SAVE PDF Generated in SAP through QTP
A PDF is generated in SAP Gui Screen, which does not have File>Save As option, but has a save button on the PDF to save it to a location.
I want to save this PDF to my local drive. I have Acro QTP Addin and when I record Save PDF file, this action is recorded and even Play back is happening. How do I write the same in descriptive programming?
Any help will be appreciated.
Thanks in advance.
Re: SAVE PDF Generated in SAP through QTP
@sush, Usually in SAP, the scrieen remains always the same and for every button, there is a shortcut key assigned to it which never changes regardless of the environment.
I prefer to use "Sendkey" method followed by the shortcut key. This is very reliable as you need not to worry about the object.
eg. To navigate back
<font class="small">Code:</font><hr /><pre>
SAPGuiSession("Session").SAPGuiWindow("Display Order").Sendkey F3
If you want to use DP, well there is no difference between doing DP of a web page and SAP. you can use the same logic.