on 03-26-2009 6:23 AM
Hello all,
As we know CV01n is the SAP transaction code for creating a document. If am not wrong the document attached in the transaction code is stored in the configured DMS as i have come to know from a source.
Now i have a requirement for using a Enterprise Web Service for achieving similar functionality.
Does a service exist?
If yes what is the name?
What is the service parameter to attach a file?
Thnks
ok
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bruno,
I don't know much about WebServices, but you can use function module "C_DESK_DOC_GET_URL" to get the file via a qualified URL. Why not implement a service, which gives you this URL back ? This is easier than implementing the BAPI_DOCUMENT_CHECKOUTVIEW2 to get files directly.
But beware: there can be more than one file stored in the document info record.
Regards,
Markus
Hi Markus,
Thanks for your reply.
In the meantime I had already found my answer. I haven't tested it yet but I believe if you use type XSTRING you should be able to get a file from a webservice.
If this doesn't work, however, I can look into your suggestion as a workaround, thanks!
Regards,
Bruno
Hi Yemi!
Of course RFC's can work in background. The code above was designed precisely for the scenario you are referring to.
You need to save the file to the application server (using OPEN DATASET) in some temporary folder, and then you need to explore the BAPI's for document creation.
Good luck!
Bruno
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.