Skip to Content
author's profile photo Former Member
Former Member

BAPISDORDER_GETDETAILEDLIST & Authority check

Hello there!

I work on the functional side and require some input from you ABAP experts out there. We have used BAPISDORDER_GETDETAILEDLIST to return sales document information to a web page...problem is that the sales document data is not being restricted by authorisations. Apparently this is because BAPISDORDER_GETDETAILEDLIST does not check authorisation objecs. My question. does this BAPI need to be enhanced in order to do this? or is there some other way ? I want auth object V_VBAK_VKO to be checked.

Thanks in advance for your help!

Best regards

Elizabeth

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Oct 23, 2006 at 12:01 PM

    Hi Elizabeth,

    You have to create a WRAPPER bapi which incudes the authorization check as well.

    in that new BAPI,

    the first step shouls be the call to the FM:

    AUTHORITY_CHECK

    CALL FUNCTION 'AUTHORITY_CHECK'

    EXPORTING

    user = sy-uname

    object = 'V_VBAK_VKO'

    field1 = l_field

    value1 = l_value

    EXCEPTIONS

    user_dont_exist = 1

    user_is_authorized = 2

    user_not_authorized = 3

    user_is_locked = 4

    OTHERS = 5.

    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.