Skip to Content

Badi for Authorization check

Dear Friends

I am working on a issue to check authorizations for role in my CRM BSP application. I am checking the authorization to give access to the application, like

when user id = sold to party allow only display and edit.

when user id = bill to party allow display

when none of the above No access..

to achieve this i am using this badi


Here I am passing guid id to crm_order_read.

but I am not recieving any data back in importing parameter.

I am just passing the guid_id + authorization flag set 'X'.

would you like to tell me what is this guid_id. is it what partner_guid ?

This is my primary code:

MOVE iv_header_guid TO wa_order_guid.

APPEND wa_order_guid TO order_guid.



it_header_guid = order_guid

iv_no_auth_check = auth_check_flag


et_orgman = org

et_partner = partner_order


cv_log_handle = y_lv_log_handle


document_not_found = 1

error_occurred = 2

document_locked = 3

no_change_authority = 4

no_display_authority = 5

no_change_allowed = 6

others = 7.

IF partner_order IS NOT INITIAL.

flag = 'X'.


flag1 = 'X'.


IF flag1 EQ 'X'..

RAISE no_authority .



please tell me where i am doing wrong. In order to achieve this task what else need to be done.

Any help will be appreciated..

Thanking you



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jan 07, 2008 at 10:09 AM


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.