Restrict display and posting for specific document types

Hi,
Is it possible to restrict display and posting for specific document types? I want to restrict authorization to SM document type in FS10N, and KSB1 tcode. Please help
Best Regards,
KIRAN.

Sandipan Choudhury wrote:
FS10N checks for this object ("Check" in Su24) but when user doesnot has this authorization object he gets access to all doc types and when the user is restricted to specific doc types (object present in user's authorization) he will get access to only those doc types. This is how the authorization check for F_BKPF_BLA works, in other words this authorization is Optional.
Sorry, but this is not true and seems to be an invention of how you would like it to work...
The coding works like this (generally):
    if sy-subrc ne 0.
      select single * from  t003 where blart = postab-blart.
      check sy-subrc = 0.
      blrtab-blart = t003-blart.
      blrtab-brgru = t003-brgru.
      append blrtab.
    endif.
    if blrtab-brgru ne space.    "<--- important condition!!
      authority-check object 'F_BKPF_BLA'
           id 'BRGRU' field blrtab-brgru
           id 'ACTVT' field actvt.
      if sy-subrc ne 0.
        rcode = 4.
      endif.
    endif.
  endif. 
The "optional" aspect is whether or not the document type has an auth group on it in T003, failing which the check is suppressed.
If it reaches the check, then it found something and then checks that selected value.
Moral of the story:
--> Do not believe SU53.
--> Do not make assumptions from ST01 traces.
--> Read the documentation carefully.
--> Read the code to see how it really works (you can jump to the coding location from the trace).
Cheers,
Julius

Similar Messages

  • Can not display graph bean for specific chart types in Forms 11g Rel2

    Hi all, I have this piece of code:
    declare
    v_tx_data varchar2(200);
    v_delimitador varchar2(1);
    begin
    set_custom_property('control.BeanArea1',1,'CLEAR_GRAPH','');
    v_delimitador :=',';
    go_block('CLC');
    first_record;
    loop
    v_tx_data := :clc.nb_clase_cliente||v_delimitador||'Monto'||v_delimitador||to_char(:clc.mn_venta);
    set_custom_property('control.BeanArea1',1,'ADD_ROWDATA',v_tx_data);
    exit when :system.last_record = 'TRUE';
    next_record;
    end loop;
    set_custom_property('control.BeanArea1',1,'ENABLE_TOOLTIPS','ALL');
    set_custom_property('control.BeanArea1',1,'GRAPHTYPE',:control.v_tipo_grafico_clc);
    set_custom_property('control.BeanArea1',1,'SET_DEPTH','30,75');
    set_custom_property('control.BeanArea1',1,'SET_DELIMITER','#');
    set_custom_property('control.BeanArea1',1,'SET_TITLE','Ventas x Tipo Cliente#120,234,120#bi#12');
    set_custom_property('control.BeanArea1',1,'SET_DELIMITER',',');
    set_custom_property('control.BeanArea1',1,'ADD_DATA_TO_GRAPH','');
    end;
    The graph type is selected from a list item. It all works perfectly except when :control.v_tipo_grafico_clc takes the following values:
    - VERTICAL_STACKED_LINE_GRAPH.
    - HORIZONTAL_STACKED_LINE_GRAPH.
    Is there a special requirement for this type of chart...? Something i missed reading...?
    Best regards, Luis ....!

    All graphs are working fine.
    This is a list of graphs:
    HORIZONTAL_BAR
    VERTICAL_BAR
    VERTICAL_STACKED_BAR
    HORIZONTAL_STACKED_BAR
    VERTICAL_PERCENT_BAR
    VERTICAL_PERCENT_BAR
    HORIZONTAL_PERCENT_BAR
    VERTICAL_LINE_GRAPH
    HORIZONTAL_LINE_GRAPH
    VERTICAL_LINE_SPLIT_GRAPH
    RING_BAR_GRAPH
    MULTI_RING_GRAPH
    MULTI_RING_PROPORTIONAL_GRAPH
    VERTICAL_STACKED_LINE_GRAPH
    HORIZONTAL_STACKED_LINE_GRAPH
    VERTICAL_AREA_GRAPH
    VERTICAL_PERCENT_AREA_GRAPH
    VERTICAL_STACKED_AREA_GRAPH
    PIE_GRAPH
    PIE_BAR_GRAPH
    MULTI_PIE_GRAPH
    MULTI_PIE_PROPORTIONAL_GRAPH
    RADAR
    STOCK_HIGHLOW_GRAPH
    3D_AREA_GRAPH
    3D_AREA_GROUP_GRAPH
    3D_CUBE_GRAPH
    3D_BAR_GRAPH
    There is diff in size between formsgraph in forms demo pack (http://download.oracle.com/otndocs/demos/forms/11g/demos_11g.zip)
    and formsgraph in Oracle Forms Graph Java Bean Demo (http://www.oracle.com/technetwork/developer-tools/forms/downloads/formsgraph-522400.jar).
    Formsgraph in demo pack is old one (from version 9i) but it's working.
    Regards

  • Service group for particular document type or Purchase Organisation

    Dear Gurus,
    I want to add service group as like Material group. but my objective is to restrict those service group for particular document type or Purchase Organisation??
    Is it possible, if so please advice me the SPRO Settings
    Thanks
    RS

    Hi,
    Basically, this task (both customized table activation via SE11 transaction and user exit activation via SE37 transaction) will be done by ABAPer.  All you should do is to prepare the functional specs document in which you require -
    1)   A generation and activation of the customized table which consists of at least four columns -
         a)   Purchasing Organization;
         b)   Purchasing Document Type;
         c)   Material group/service group
         d)   Purchasing Document Creation Date
    2)   A coding and activation of the related function module (You can use SMOD transaction to view the enhancement MM06E005 to view related user exit).
    Cheers,
    HT

  • Number range table for MM document types

    hi
    Can anybody help me to find the number range for the mm document types.
    Regards
    rajeev

    Hi,
    go to transaction SPRO, Materials Management, then choose one of the following:
    Purchasing or
    External Services Management or
    Logistics Invoice Verification or
    Inventory Management and Physical Inventory
    and look for the document types you would like to customize.
    Like within purchasing for purchase order -> Define Number Ranges. In this step, you maintain the number ranges for the following purchasing documents:
    RFQ/quotation
    Purchase order
    Contract
    Scheduling agreement
    After that you can add the number ranges to the document types under Define Document Types. ...
    Please be more specific next time as MM document types can relate to 4 main areas within MM.
    Regards,
    Edit

  • User can hold PO for other document type except than the one in authorizati

    Dear experts,
    we set authorization activity * and PO doc type A only for a user, but end up user can hold PO for document type B . End up user cannot change or delete the particular PO.
    what is the activity in authorization for user to hold  so we can take out that activity..
    pls advise

    user has activity * and allow for PO document type A only.
    But she can hold PO for document type B..
    shall we remove the activity * from its profile , and if yes, what is the activity for hold PO in authorization?

  • Period is closed for posting or correct document type is not being used

    Hi All,
    I am trying to post transaction in AB01. But i am getting below error.
    I have checked OB52 and the periods for "+" & "A" are open for 2012.
    Error:
    Period is closed for posting or correct document type is not being used.
    Please assist

    document type i am using is AA.check it other side entery documenttype period open or not

  • Restrict GOS attachments in IW32 for specific doc type

    My requirement is we would like to restrict the Services for object
    attachments for specific doc type in IW32 transaction.
    Can blocking be made on doc type level?
    In this case jpg, bmp, and gif should be allowed, but blocking dwg, doc, xls, pdf etc.
    Didn't find any option in SGOS transaction or SGOSATTR table.
    Any suggestions are welcome..

    PARAMETERS: p_key TYPE swo_typeid OBLIGATORY,
    p_type TYPE swo_objtyp OBLIGATORY,
    p_file TYPE c LENGTH 100 OBLIGATORY,
    p_desc TYPE so_obj_des OBLIGATORY.
    data wa_kan1 type kna1.
    DATA: ls_fol_id TYPE soodk,
    ls_obj_id TYPE soodk,
    ls_obj_data TYPE sood1,
    ls_folmem_k TYPE sofmk,
    ls_note TYPE borident,
    ls_object TYPE borident,
    lv_ep_note TYPE borident-objkey,
    lv_offset TYPE i.
    DATA: it_objhead TYPE STANDARD TABLE OF soli,
    it_content LIKE STANDARD TABLE OF soli,
    wa_content LIKE soli.
    ls_object-objkey = p_key.
    ls_object-objtype = p_type.
    **if objtype = kna1 then 
    HERE I CHEK CUSTOMER NO U PUT YOUR OBJ ID AND USING SELECT QUERY U CAN CHECK DOC.TYPE
    select *from kna1 into wa_kna1
    where kunnr = p_key
    if sy-subrc <> 0.
    exit.
    endif.
    TRY.
    OPEN DATASET p_file FOR INPUT IN BINARY MODE.
    WHILE sy-subrc = 0.
    READ DATASET p_file INTO wa_content.
    APPEND wa_content TO it_content.
    ENDWHILE.
    CLOSE DATASET p_file.
    CATCH cx_sy_file_access_error.
    MESSAGE 'Error reading file' TYPE 'E'.
    ENDTRY.
    CALL FUNCTION 'SO_CONVERT_CONTENTS_BIN'
    EXPORTING
    it_contents_bin = it_content[]
    IMPORTING
    et_contents_bin = it_content[].
    Edited by: kk.adhvaryu on Mar 9, 2010 10:54 AM

  • IDCO for Parking and Posting of FI documents

    Hi all,
    Could you please help me the IDCO for Parking and Posting of FI documents.
    Regards
    Paul

    Hi Gomathy,
    Can you please confirm whether this IDOC is used to park or post FI documents, when I checked the documention of the IDOC it says it is used for posting , kindly confirm the same.
    Regards
    Dhanoo

  • PR(ME52N) field change for one document type

    Hi all,
    I have a requirement to have quanity field in display mode in ME52n (PR change) for only one document type say NB. for other document type the quantity field should be change mode. is this possible..if so cna you please explain in detail.
    Thanks,
    vatchan

    Hey vatchan,
    Here should be slight change to the earlie posted version.
    1. Materials Management - > Purchasing -> Purchase Requisition -> Define Screen Layout at Document Level
    2. select the Screen layout ME52N & copy this to new 'Felid selection group' (Say ZZZZ) and check Quantity field to be 'display' check box. (It is usually not advisable to make changes to standard 'Felid selection group')
    3. Then, Materials Management - > Purchasing -> Purchase Requisition -> Define Document Types
    4. define the screen layout in Field Selection Key created (ZZZZ) against the document type 'NB' and your ME52N should restrict 'quantity' field as 'Display' while other document types can still show 'Quantity' field as editable.
    Regards,
    Kik.

  • Authorization for UB document type in PO create

    Hi All,
    We wanted to restirct some user from creating PO other than UB. We want them to give authorization only for UB document type in ME21N. What is teh best way to make it work?
    Thanks for your support.
    KHAN

    Hi Khan,
    If you want to restrict the User for creating PO other than UB document type. You need to discuss with Basis consultant.
    For that particular user you need to restrict the activites like Create, Change , display for  the authorization object "M_BEST_BSA" which is assigned for Document type for Purchase order.
    Based on your requirement inform the basis consultant to remove the  all other document type or * symbol  and assign only UB document type to that user. So he/she will be restricted to that document type only when ever he creates any PO.
    rgds
    Chidanand

  • Ledger Group vs. Ledger Specific Document Types

    Can anyone tell me the value in having a document type that is purely used for tracking accounting principle specific adjustments (GAAP Adjustments / STAT Adjustments / IFRS Adjustments / etc.)?  If you already have various ledger groups hitting various accounting principles using a standard accounting document why would you need a ledger specific document type and when would it be used in normal business transactions instead of using a ledger group / standard accounting doc type combination?

    HI,
    In my company I set up IFRS-leading ledger, 2 local ledgers for each comp. code.
    Accounting key-user found it easier and more traceable to make ledger specific postings using one special doc.type / number range for each ledger (group). "normal" doc. types can only be used to make posting in all ledgers assigned to each comp. code.
    With this setting they can easy identify ledger group specific postings from postings happened to all ledgers using the same account number.
    But,as you mentioned, its not really necessary to do so.
    BR Christian

  • How to add a default user group for multiple document type's?

    Hi,
    I am trying to add same default user group for different document types when MA is created. Is there any way to setup using a single "Document Security Template"? Or I need to create different templates for different document types?
    Please confirm.
    Thanks,
    Saloni

    Hi Saloni,
    Based on what your specific requirement, it might be easier to do it with scripting.
    If you are doing it using Document Security Templates, you would have to create a Document Security Template for each of the 6 MA types and assign the default group. Create another one and leave the Document Type field blank, so it will apply to the other 4 MA types that don't have a default group.
    Regards,
    Vikram

  • Restriction of Purchase Group on PO Document Type

    Hi Experts,
    We have different PO Document Type, and Purchase Group. Now, want to restrict Purchase Group based on PO Document Type.
    For Example:
    For PO RM Document Type only Purchase group P01 - RM allow in PO; for other purchase group system should not allow saving PO.
    Please guide ...
    Thanks in advance
    With Warm Regards,
    Dipen

    Hi Dipen,
                   You can definitely restrict the users via Roles and Authorizations.
    in the role for PO creation, the object for Purchasing Grp is  M_BANF_EKG
    field is EKGRP
    Make sure that he has the value as P01(Only)
    and the object for the Document Type is M_BANF_BSA
    Field is: BSART:
    give the field Value as RM
    Hope it helps you.
    Regards,
    Yawar Khan

  • Multiple Number Ranges for AP Document Type not getting triggered

    Hi all,
    We are posting receivables in the system using BAPI_CTRACDOCUMENT_CREATE. We have huge data of 3.9 million records for which receivables has to be posted. So multiple number ranges has been configured in the system for AP document type.
    The issue is even though multiple number ranges for mass processing are configured in the below location in SPRO, none of them are getting triggered. The number range at the first level on the screen is only getting triggered, due to this it is taking lot of time to post documents. Any help on this?
    Financial Accounting(new)
         Contracts Accounts Receivable and Payables
         BasicFunctions
         Postings and Documents
         Document
         Maintain Document Assignments
         Document Types
         Maintain Document Types and Assign Number Ranges
    Regards,
    Karthick.

    Karthick:
    Mass ranges are only used for FICA parallel mass activities.  For your situation, you can define and assign multiple ranges for individual processing in the same IMG activity.  Those would then be chosen for your mass postings.
    regards,
    bill.

  • Error message 'Display only possible for print documents'

    Hi All,
    This issue is with the transaction code ME21N. When the user clicks on PRINT PREVIEW  it gives an error of 'Display only possible for print documents'. When the user clicks the MESSAGES tab and then COMMUNICATION METHOD tab it gives an error 'No communication data has been defined for transmission medium 6'. The vendor is not getting the order. Does anyone has any idea of what these error messages mean and where should I look further?
    Thank you,
    Regards,
    Shanu

    Hi
    this seems tobe relates to print program "" ask your ABABer what program he has written to send the PO to vendor your problam willbe solved.
    the moment you give the print it will ask the printer by  default LP01 then print immediately check you need to do that.then beground print program and partner you need check. whether this out type you have assigned to this partner or not (vendor).  check complecte condition technic.diffnettly it will works.
    i hope you have understood
    thanks &Regards

Maybe you are looking for