How do i copy webdynpro application into a text file - abap

I am copying my abap/ooabap code into text file.
How do i copy a webdynpro applicaton this way.
I don't want to use transport requests.

I guess this is not possible as with normal programs. If you do not want to use transport requests, the default way is using SAPlink.

Related

Sub VI connector for different cluster types

I want to program an API to generate JSON files.
The standard Labview VI "Flatten to Json" has the connector "anything" which I also want to use.
How is that possible?
https://www.ni.com/docs/de-DE/bundle/labview-2020/page/glang/flatten_to_json.html
Use the existing JSONText library found in LV2019 and later. The subVIs therein are malleable VIs that do exactly what you're requesting. If for some reason you don't like how they work, they're open source and editable.

Uploading a file via Jaxax REST Client interface, with third party server

I need to invoke a remote REST interface handler and submit it a file in request body. Please note that I don't control the server. I cannot change the request to be multipart, the client has to work in accordance to external specification.
So far I managed to make it work like this (omitting headers etc. for brevity):
byte[] data = readFileCompletely ();
client.target (url).request ().post (Entity.entity (data, "file/mimetype"));
This works, but will fail with huge files that don't fit into memory. And since I have no restriction on filesize, this is a concern.
Question: is it somehow possible to use streams or something similar to avoid reading the whole file into memory?
If possible, I'd prefer to avoid implementation-specific extensions. If not, a solution that works with RESTEasy (on Wildfly) is also acceptable.
ReastEasy as well as Jersey support InputStream out of the box so simply use Entity.entity(inputStream, "application/octet-stream"); or whatever Content-Type header you want to set.
You can go low-level and construct the HTTP request using a library such as the plain java.net.URLConnection.
I have not tried it myself but there is example code which reads a local file and writes it to the request stream without loading it into a byte array.
Upload files from Java client to a HTTP server
Of course this solution requires more manual coding but it should work (unless java.net.URLConnection loads the whole file into memory)

Form a Excel file (PHPExcel) and mail it as an attachment (PHPMailer) without server storing, possible?

I want to form a file (PHPExcel) and mail it as an attachment (PHPMailer) without server storing, is it possible?
I'm aware of the possibility of forming/creating file in PHPExcel and sending it as an attachment thru PHPMailer here. But it works thru/by writing a file somewhere in a server. Poor as far as server resources consumption.
PHPExcel allows to output this way directly without saving on a server:
$objWriter = new PHPExcel_Writer_Excel2007($objPHPExcel);
ob_end_clean();
header('Content-Type: application/vnd.ms-excel');
...
$objWriter->save('php://output');
Is it possible (and how) to attach it to email on the fly similar as save('php://output')?
To send an attachment without using local files, use the addStringAttachment() method. For example:
$string = $mything->getExcelData();
$mail->addStringAttachment($string, 'myfile.xls');
Internally this will call PHPMailer::filenameToType(), which will set the appropriate application/vnd.ms-excel MIME type for the .xls extension.
In general you probably don't need to worry too much about memory consumption for doing this - PHPExcel itself is far more memory-intensive than simply storing this string temporarily, so if you are running into trouble, you will likely do so before you ever get this far

Sending keys silently

I'm trying to pass messages between a vba application (in powerpoint- during a slideshow) and a .net application I wrote.
The only method I could think of, is sending keystrokes.
However, this method causes the powerpoint to lose focus.
can you suggest a solution ?
If all happens on the same machine, the easiest way maybe is to let the PPT write its status into the registry from where the other application reads it out (GetSetting(), SaveSetting()).
If PTT and the other process run on different machines, you could think of writing out the status into a small text file which can be read out asynchronously.
Another way of (synchronous) communication between two processes/applications on different machines is to use sockets and send information across the network.
I found an interesting way of communication between vba and .net, without file system manipulation, sockets or external objects.
First, We register powerpoint evets, as such:
http://www.vbaexpress.com/kb/getarticle.php?kb_id=327
Second, We update the clipboard in VBA on the presentation-start event:
http://word.mvps.org/faqs/macrosvba/ManipulateClipboard.htm
Third, We use a clipboard a listener on .net:
How do I monitor clipboard content changes in C#?
Last, We restore the original clipboard value on presentation-end event

Is it possible to download/upload SAP code inspector variants?

I would like to set up a Code Inspector variant in one system and then be able to copy it to another system. I know that it is possible to transport code inspector variants, but is it possible to copy a variant to a system that is not in the same system landscape?
Just create the transport request as you would normally do and release it via SE10. Then you have to manually copy the transport files from the directories "cofiles" and "data" of your sap system to the destination system, respecting the original file location.
As soon you have done this, go to STMS and attach the request in the transport queue of the destination system. You can find that option in the sapgui menu of STMS. Now you can import the transport request.
Regards,
Christian