cancel
Showing results for 
Search instead for 
Did you mean: 

Flat file upload authorization(ZCL_RSPLF_FILE_UPLOAD) in SAP BW

chinni_adapa
Participant

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

Accepted Solutions (0)

Answers (3)

Answers (3)

matt
Active Contributor

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?

former_member186338
Active Contributor
0 Kudos

It's a typical question today!

FCI
Active Contributor

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 ?).

matt
Active Contributor

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.

DoanManhQuynh
Active Contributor
0 Kudos

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.

0 Kudos

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