on 01-19-2021 7:03 PM
Hi All,
Good day.
For removing the Orphan privileges, i have tried the below steps same as in the note, but still the PRIVs are not removed from DB.
The source tab query actually given output, so seems not the issue with Source.
Please suggest if i missed some where.
Source :
select L.mcUniqueId, E.mcIDStore from IDMV_LINK_EXT L INNER JOIN IDMV_ENTRY_SIMPLE E ON L.MCTHISMSKEY = E.MCMSKEY where MCTHISMSKEYVALUE = 'XXXX' and MCORPHAN = 1
Des:
$FUNCTION.sap_core_callStoredProcedure(mxi_deleteOrphanAssignment!!'%mcUniqueId%', '%mcIDStore%', 0, 'ADDITIONAL PROCESS INFORMATION')$$
pass Successful. But it shown ToODBC
Thanks,
Aravind.
Hi Aravind,
I use the stored procedure within a job in a toDatabase-Pass. My source is similar to yours (no restriction on L.MCTHISMSKEYVALUE and L.MCORPHAN != 0). In my destination I use %MCUNIQUEID% without single quotes. Same applies for %MCIDSTORE%.
$FUNCTION.sap_core_callStoredProcedure(mxi_deleteOrphanAssignment!!%mcUniqueID%,%mcIDStore%,0,'remove orphaned assignments - $ddm.datetime8601')$$
This works fine for me.
HTH
Regards,
Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alex,
Thank you for the details.
Unfortunately, i received the issue even after i copy pasted the exact entry as you mentioned.
$FUNCTION.sap_core_callStoredProcedure(mxi_deleteOrphanAssignment!!%mcUniqueID%,%mcIDStore%,0,'TEST')$$
i received the below error.
Error SQL Update failed. SQL:call mxi_deleteOrphanAssignment (,,0,'TEST')Hi Alex,
i actually checked the query in SQl and it given me the results, i even tried with if this is case sensitive any.
Source :
select L.mcUniqueId, E.mcIDStore from IDMV_LINK_EXT L INNER JOIN IDMV_ENTRY_SIMPLE E ON L.MCTHISMSKEY = E.MCMSKEY where MCTHISMSKEYVALUE = 'XXXX' and MCORPHAN = 1
Also, just to make sure the syntax correct, i have passed the parameter values like below
$FUNCTION.sap_core_callStoredProcedure(mxi_deleteOrphanAssignment!!'12345', '%mcIDStore%', 0, 'ADDITIONAL PROCESS INFORMATION')$$
and it worked.
So its seems not passing mcUniqueID from source, not sure why.
Also in my previous error message, i did not given the single quotes, that's why it did not capture either unique ID or ID store value. But with single quotes and when i passed the values directly, then its working.
Okay then, you have to troubleshoot the source query. Maybe just use a toASCII-Pass to write the results into a file or another toDatabase-Pass to write them into a temporary table. After that you should find something that is causing the problem.
Maybe you want to add an L. to your where statement with MCTHISMSKEYVALUE and MCORPHAN and keep in mind that this is case sensitive in Oracle DB.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.