on 09-17-2014 12:22 PM
Hi Experts,
I have a requirement in Syclo to customize locally created notifications to upload attachments in single transmit. For this my idea would be
I would need correct direction to get this achieved. Any other options too are welcome.
Hi Syed,
I did the changes and it works fine now. In case someone wants to do the same here are the steps:
Agentry:
JAVA:
SAP:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Marcal,
Thanks for the quick response
When I am looking at the code, it seems to me to be the other way round. Downloaded pictures are getting attached under Notification but new ones are getting stored under Main Object.
In your Agentry Editor, do you have an object DocumentMetaData ?
Thanks,
Fazal.
Hi,
Yeah I expected the difference in version.
In the steps that you provided for Agentry, there is a last step where you are creating a new transaction with update step for attachment. How did you set the Initial Value for the properties of this transaction? Is it 'From Object property'?
Thanks,
Fazal.
Hi Marçal,
regarding
do you recall what kind of problems you had with deprecated code? Did you encounter the problems with ABAP or Java code? (I would like to have the key replacement logic on the java side, using /SYCLO/MDW03 for data persistence.)
Regards, Daniel
Sorry, I don't remember the details, but I'm almost sure it was something in the Java side.
When a record exists in /SYCLO/MDW03 some conditional statement in Java is executed (I found it debugging) and then the fetch was not working properly, but I can't recall what were the exact consequences.
I tried to create the entry temporarily and delete it during the same transmit process using a Work Manager BADI or Enhancement Point, but I wasn't able to solve it. I'm not sure but I think I found what I was supposed to do and then I decided that creating a new Z table was easier and even more elegant.
I find way to only change Agentry and Java and reuse all existing backend BAPIs.
There are multiple ways of doing that. I think SAP should provide it out of box though.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Syed,
Did you manage to implement your proposal?
I have exactly the same requirement, my first thought before reading your thread was the following:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Marçal,
I did not implement yet, I was planning to have it done in similar fashion you mentioned. We can get real id , local id in WM 6.1 as i saw its method called in java layer. Notification create BAPI gets Notification object (context) where as attachment create BAPI requires DocumentLink object (context) and should be called multiple times. I will post reply if this approach works.
Thank You
Hi Syed,
How did you manage to get the cross reference between local notification ID and the one given by SAP?
I'm starting this development now and I still don't see if this relationship is stored somewhere, because actually Work Manager is just deleting the local notification after creating it, and then the real one from SAP is fetched afterwards, so probably the standard solution doesn't need to store this data.
Have you modified your Java/ABAP source to keep it?
Did you finally implement everything?
Thank you,
- Marçal
Hi Marçal,
I have the code built but issue on standard WM6.1 DMS document upload issue is interrupting my testing. I will post once this is successful.
Another approach worth a try is no java change and just Agentry changes which include NotificationAddPost transaction to replace client key instead of delete and as usual post DocumentCreate transaction. I could not test even this approach as well due to bug.
Thank You
But with the 1st approach how are you retrieving the real notification ID when posting the attachment?
Regarding the second, I think it is even better but if I'm not wrong it forces to do some major changes to all the standard Notification creation process (java and ABAP) which I always try to avoid... In Agentry something as simple as replace the object ID can be a nightmare, but I may give it a try.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.