on 05-12-2014 8:30 AM
Dear Experts,
I am now passing Files from browser to SAP Gateway via media resources. I am able to receive file content in the following argument.
ls_doc-content = is_media_resource-value.
I am able to pass value only to this single parameter called "IV_SLUG".But I also want to pass parameters like File name, File type, File size to this method "/IWBEP/IF_MGW_APPL_SRV_RUNTIME~CREATE_STREAM".
Can anyone help how to pass above values from frontend?
Regards
Prabaharan
Dear Experts,
Can anyone suggest on above question raised?
Regards
Prabaharan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Prabaharan,
I think the correct way to do this would be to post the extra properties to the entity, not the stream. If you need to have those properties stored as well, then the entity that the stream is related to can carry those properties. How would you be expecting to read them back? I'd expect them available by GET request, which is most easily done within an entity representation.
This is also much clearer and transparent for a service consumer; passing header values should be avoided unless they are required by the OData specification.
regards
Ron.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Peter,
You won't get it that way - you are thinking in terms of one operation when you need two. You first post the entity to establish its existence on the backend. Within this entity you set any properties that you want it to have such as physical and logical IDs, "added by", etc.
Then you send the stream (as a PUT if I recall correctly) which, being part of the entity, will have the same key.
Cheers
Ron.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.