ABAP Query: add field on layout based on Company code

Hello Experts,
I currently working on ABAP Query report  for asset master issues and would like one more field added to layout for Company code XXXX . Is it possible to add fields to this layout based on company code .
Thanks in Advance
Nupur

Hello Andreas,
I'm asking is that possible to change ABAP Query report layout based on Company code.
For Instance:
Company code :1111
Layout should : A B C D E F
other than 1111.
layout should : A X Y Z F
My scenario is :
ABAP Query is working fine but users from UK wants some more fields on the layout but rest of the country users other than UK, they don't want such changes.
Regards,
nupur

Similar Messages

  • Restriction of Tcode SQ01 based on Company code

    We are running one customized query using Tcode SQ01.  We need to restrict Tcode SQ01 in company code level.  We have checked about authorization object in st01. But there is no check of authorization object. Can anybody help to restrict SQ01 based on company code level?
    Regards
    Auroshikha

    Hi Auroshikha,
    Itu2019s very easy to maintain authorization in your Infoset Query report. I got and implemented similar requirement i.e. restriction /authorization as per company code.
    You need to use authority check for authorization object  P_ORGIN in your infoset.
    Please follow the bellow steps:
    -->Go to SQ02, Enter your Infoset name and click on Change button.
    -->Click on 'Code' (Shift+F8) icon dispalyed on application toolbar, you will be moved to Code Section of Infoset that lists different events.
    -->Choose Record Processing event from code section.
    -->Write the following code in 'Record processing' event of your Infoset.
    AUTHORITY-CHECK OBJECT 'P_ORGIN'
    *ID 'INFTY' FIELD '*'
    *ID 'SUBTY' FIELD '*'
    ID 'AUTHC' FIELD 'R' "read
    ID 'PERSA' FIELD P0001-WERKS
    *ID 'PERSG' FIELD DUMMY
    *ID 'PERSK' FIELD DUMMY
    *ID 'VDSK1' FIELD DUMMY.
    CHECK Sy-SUBRC EQ 0.
    Note: PERSA field used in this Authorization object plays an importan role , if you are in different module other that HR , then pass here table_name-companycode_field
    -->Genetare Infoset
    -->Go to SQ01 (in a new session) , Click on exeute or 'Test button' to check authorization is working for report
    Let me know if you need any more details.
    Thank you.
    Regards,
    Dinesh Tiwari

  • Decimal places adjustment based on company code or currency

    Hi experts,
        my requirement is i have to adjust the decimal places in amount fields of internal table based on company code or currency given by user.
    suppose for example in my internal tables having 5 amount fields like 1.50 1.234 1.45 1.34, 1.67  for  company code is in01
    the same values for VN01 should be like this
    150 1234 145 134  167  ....
    can any body plz tell me any functional module is there to covert or abapcode?
    Thanks in advance,
    veena.

    That code is a bad idea.  Why would you hard-code that type of action for currency/amount handling?
    @poster: If the output is based on the local currency defined for the specified company code or one specified by the user, then use it.  SAP handles amount output automatically with a currency specification because the currency definition identifies where/how the decimal is output. 
    Just use WRITE as Florian indicated but  use the CURRENCY extension instead of DECIMALS.  You can do this dynamically based on the company code easily...
    A simple 3 line program shows you how this works:
    PARAMETERS: p_wrbtr type wrbtr.
    write:/ p_wrbtr CURRENCY 'USD'.
    write:/ p_wrbtr CURRENCY 'JPY'.
    Edited by: Brad Bohn on May 12, 2011 1:07 PM

  • Creating additional screen field in Vendor Master at Company Code Level

    Hi All,
    I have to add some custom fields in Vendor master at Company Code Level.I have alraedy implemented a BAPI suggested by the system to add additional fields.
    A  new Button is coming after implementing the BAPI , which gives me a space to add new custom fields , which i have appended at LFA1.
    My problem is that , the new Button is visible at each screen, i.e Button is coming at Address tab, Control tab, all screen correspond to company code and all tab correspond to purchasing.
    While i want that Button should only be visible at screens correspond to company code.
    Please suggest how to acheive the same.
    Regards,
    Subhash

    Hello Karidhal Subhash -
       I'm facing a similar problem. I've got my BADI working properly with the exception of...
    I only want my custom button to appear if they've input a Company code on the selection screen. Did you find a way to solve this problem?
    regards.

  • Reason for change of Infotype Based on Company Code

    Hi Experts,
    I have a requirement where I need to restrict the F4 HELP in
    PA30 Transaction for the infotype 15  based on company code for the field reason for chagne.
    I know that reason for change of infotype are maintained in the table T530E.
    But can this be restricited through SPRO configuration.
    Thanks in Advance.
    Regards,
    IFF

    Hi.
    It's possible to change the search helps with a search help exit.
    Take a look in SE11 for search help H_T530E.
    Search help exit
    A search help exit is a function module for making the input help process described by the search help more flexible than possible with the standard version.
    This function module must have the same interface as function module F4IF_SHLP_EXIT_EXAMPLE. The search help exit may also have further optional parameters (in particular any EXPORTING parameters).
    A search help exit is called at certain timepoints in the input help process.
    Note: The source text and long documentation of the above-specified function module (including the long documentation about the parameters) contain information about using search help exits.
    Function modules are provided in the function library for operations that are frequently executed in search help exits. The names of these function modules begin with the prefix F4UT_. These function modules can either be used directly as search help exits or used within other search help exits. You can find precise instructions for use in the long documentation for the corresponding function module.
    Regards.

  • 0HR_PY_PP_1 restricting based on Company Code

    Hi ,
    I am trying to use extractor  HR_PY_PP_1. The extractor pulls all the CC data as it do not allow selection based on Company Code.
    When we try to change in extractor in source system it does now show field for selection. So I changed the values in ROOSFIELD table .
    Now I see CC for selection but still after making the company code selection , it do not select  the data based on that particular company code.
    Any idea in this direction will be much appreciated.

    Vamsi,
    I think you do not want to allow to see the some FI user these Tcodes data for specific companies.
    I think you have assigned more then one role to user and mentined 3 Tcodes are coming from multiple roles and the user buffer is having multiple entry for the . If this is the case please keep these Tcodes in one role only and restrict the user only in F_BKPF_BUK BUKRS.
    If only one role is assigned to you then assigned the required company codes at Orgranisation Level only and it will populated at Authorisation Object F_BKPF_BUK BUKRS for company codes.
    I would advise you not to modify the SAP standard object in SU24 because it can distrub the Standard Auth. Object.
    Hope this will help.
    Lokendra

  • Configure OBA7 based on company code

    Hi Gurus
    heres my problem.
    in OBA7-- in "required during document entry tab",  the check box for reference number is ticked.
    but i want that to be set up based on company code.
    for 1 company code, they want it to be not required, where as others want it.
    Please let me know is there a way i can do this, the same set up where i can even enter company code.
      also let me know is its a problem to uncheck it.
    Thanks a lot
    kavana

    Hi
    Do not make it required at in OBA7
    build a Validation to check the field and throw an error for the specific company code .
    Regards
    Sach!n

  • Migo BADI Based On Company Code

    Hi All,
    I created custom fields in Migo & updated them to database using MB_Migo_Badi.
    Now i need to display this tabstrip based on Company code.
    .I need to hide the subscreen for a Purchase Order Based on Company Code A & display Subscreen for Purchase Order Based on Company Code B.
    Can anyone suggest code for it.
    Thanks,
    Neelima.

    Hi,
    MIGO number ranges will be based on the company code and fiscal year in standard transaction.
    Go to FBN1 transaction and maintain the number ranges for your company code and assign that to GR document type.
    Regards,
    Bharat.

  • Inserting  logo based on Company Code in Adobe Forms

    Hi All,
    I need to insert three different logos in adobe foms based on company code.
    Please help.
    Regards,
    Sreelakshmi

    Hi,
      Thank you very much for your reply. I need to pass logo from interface. Can you please tell me how to include logo field in the form interface.
    regards,
    sreelakshmi.

  • OB52 based on Company Code

    Dear All,
           As we are having several company codes and want users only to be able to open and close periods from transaction code OB52 belonging to their posting period with respect to company codes how can I restrict and allow them open & close periods based on company code repectively. Is there any process this be done.
    I tried with the notes I got from one sap-img link. But it did not work & there something is missing. Kindly if anyone have done this before send be step by step process. Awaiting for you reply...
    regards,
    Raj B...

    How about trying it this way?
    1. Remove access to OB52
    2. Create a maintenance view similar to V_T001B specific for each company.
    3. Create a TCODE for each of these views.
    4. Use this TCODE for authorization assignment.
    This should be simple but your number of views would be increasing with respect to the number of companies.
    ~Eswar

  • Gl a/c short and long text based on company code

    Hello Friends,
    In table skat the gl account description is given based on chart of accounts but what if i want the description based on company code.
    I want the table where i can get the gl account description based on company code??
    Pls suggest.
    Regards,
    Sunny

    Hi,
    you can look at the database view for requirement
    GL_ACCT_CC_TEXT
    regards\
    Mahesh

  • SKF transactional values based on company code

    Can anybody let me know the logic how we can seggregate transactional value passed to statistical key figure based on company code or is there anytable where we can direclty find SKF transactions involved based on company code ?
    Need to upload SKF transactional figures from one SAP system to another.Hence require process for extraction and uploading of the same

    Hi Amogh
    Hope you are looking for actual SKF quantities posted. kindly check s_alr_87013611 CC report, I think on the lower part this comes. This time I am not in front of system so you please check.
    Regards
    Rajneesh

  • Any option to restrict SE16 record level access based on company code?

    Hi All,
    I have a requirement to restrict record level access in SE16 based on company code.
    Our SAP system has two company codes. The requirement is that users of one company code should not be able to see records of other company code in SE16.
    Is it possible through some exits/badis/other methods?
    Thanks in advance.
    Regards,
    Arun Mohan

    You could write a small front end that accepts the company code, applies custom authorization code for each value and retains or removes, then calls the transaction and enters the selections the user requested and that your authorization check resulting in "passing"....  Of course, you'd have to block those users from "pure" SE16...   I once worked in situation similar, users in one country couldn't see USA data, etc. I think someone wrote an entire new program, called by ZSE16, for that.

  • Get pernr based on company code in logical databse

    Hi,
        When using the get pernr event, all the pernrs that I get are in the ascending order  I want them first grouped based on the company code and then on pernr.
    Any suggestions would be appreciated abd suitably rewarded.
    for ex: get pernr.
               write:/ pernr, bukrs.
             end-of-selection.
    result:   00000099 1001
              00000002 1003
    Regards
    Vick
    Message was edited by:
            vick vennav

    for ex: get pernr.
    write:/ pernr, bukrs.
    end-of-selection.
    result: 00000099 1001
    00000002 1003
    We are sending the payroll information to the 3rd party for pay check purposes, at my client side they have inserted a custom include in the standard program and populating the information in a flat file which needs to be sorted first based on company code and then on pernr. If I try to do it later,the code is becoming a mess, so I want to know is there a way to get pernr using logical database whose order is based on company code.
    Regards

  • Add freight cost in a cross company code scenario using a costing sheet

    Dear Forum,
    I will like to add freight cost to a material using a costing sheet. The freight percentage is very easy to add and works fine when the cost is added in the company code costing. My problems start when I want to add the freight in the cross-company code costing. I want to setup a cross-company code costing where the freight cost is added to the material in the buying company code and not on the selling company code. The cross-company code costing is setup using special procurement costing keys. 
    In below costing (CK11N) the procurement costing key is not used.
    From the itemization it is shown that purchase info.record 5300067643 is read and the price of 12,97 is determined. There is added 10% in freight coming from the costing sheet.
    The freight is shown in the cost component structure as well.
    The special procurement type is now changed from ‘20’ to ‘AT´ on the MRP2 screen in the material master. The procurement is now pointing to an internal plant called ‘DCN’.
    The costing of material 105050 is now repeated. I get the expected result from changing the procurement key, as I can now see the material is sourced from plant ‘DCN’. DCN is sourcing the material from BJ07, but that is not relevant for the example.
    If I now look at the itemization again on the costing in BGA1 I now see that the price is not coming from the info.record. It is the costing in DCN that is used.
    I will still like to add the freight cost in BGA1.
    How do I add freight cost in BGA1 when I at the same time want to have the costing to be taken from plant DCN?
    Please let me know if you need additional information on the customizing setup of the system.
    Best regards,
    Kim Hjorth Poulsen

    Hi Srinu,
    Thank You for a prompt feedback.
    I have tried to follow Your advise. The special procurement costing key is customized like below.
    I have updated the special procurement costing key on the costing 1 view of the material master. When costing the material it is using the special procurement key. This can be seen from the qty. structure tab in CK11N.
    It is also costing cross company as intended.
    The itemization looks like below.
    and the cost component structure looks like below.
    Unfortunately the freight is not added in the costing in BGA1.
    I noticed that when the costing is made without special procurement key the costing sheet used in the costing is for material components. If the costing is made with the special procurement keys the costing sheet used is for finished and semi-finished materials. The customizing in both of the costing sheets are the same, but only when costing is without the special procurement keys the freight is added.
    So unfornutely Your suggestion did not solve the problem.
    Best regards,
    Kim

Maybe you are looking for