on 12-06-2018 11:13 AM
Dear Experts,
My requirement is upload file from web which is designed in webdynpro. I am able to upload the data but the problem is if the data contains unauthorized company code i need to stop processing and should show error message.
For this requirement we created planning sequence with custom planning function type which is having class ZCL_RSPLF_FILE_UPLOAD.
Ex: Assume Flat file contains these two records
Company_code Amount
1111 200
2222 300
i have access for company code 1111, but file contains 2222 company code as well, then i need to display error message like ' No authorization for company code 2222'
I tried the badi ZRSPLF_FILE_UPLOAD, but i could not stop processing the authorized records and i am unable to show messages.
Please do the needful.
Thank you.
Regards,
Chinni
You are seriously asking for help with a Z class and Z bapi that no-one outside your company has ever seen or had involvement with?
Do you understand what the word "Custom" means?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hmm, I find you a little bit tough or on the edge on this one.
This class is a well known class provided by SAP by transport orders you can download from SDN and import into your system (see here). I guess this is not a standard class to easily allow specific adjustments (?).
So anyone having imported this TO could probably answer to the question (where should I control the imported data and generate a clean exit with message in some cases ?).
OK, fair enough, but the OP should really make it clear. Most people seeing a Z class are going to wonder why the question is even being asked.
since you check authorization before upload it to BW so it should be done in web dynpro. check the binding of upload/save button in web dynpro ZRSPLF_FILE_UPLOAD, if you have analysis authorization then call fm: RSSB_AUTHORIZATIONS_OF_USER or some other rsec* function module (find which one meet your need) to get data and compare or else call your custom logic there.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
why don't you use analysis authorizations? This should work out of the box. The data area described by the filter used in the planning function is checked, i.e. you need write authorization; if not authorized you should an error from the system.
Regards,
Gregor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.