Finding company code based on SY-UNAME

Hello all,
   please anyone suggest me how to find company code of particular user based on SY-UNAME.
Thanks

Check if program RSUSR002_ADDRESS is helpful to you.
Total Questions:  16 (14 unresolved) 
P.S: plz close the  threads once they are resolved.

Similar Messages

  • Change company code based on profit center at line item level in FB50

    Hi All,
    Following is my requirement, would be thankful if anyone can provide inputs on the same.
    When posting documents through FB50, In line item table control company code column gets un-editable ones correct entries are entered for that line. But after this if we want to change the profit center which belongs to different company code system throws error and makes company code column un-editable. In this situation there is no option left for user to correct the values unless he deletes the current line and creates a new one.
    Here can we make the company code field always editable?
    If not can we update the company code based on the profit center entered on that line item?
    I looked for exits but couldn't find any, validation and substitution are also not working because error message thrown by SAP is getting triggered before the substitution or validation code is executed.
    Please drop in your comments/inputs.
    Thanks in advance.
    Lucky.

    Transaction Code - FB50                     G/L Acct Pstg: Single Screen Trans.
    Exit Name           Description
    RFAVIS01            Customer Exit for Changing Payment Advice Segment Text
    RFEPOS00            Line item display: Checking of selection conditions
    RFKORIEX            Automatic correspondence
    SAPLF051            Workflow for FI (pre-capture, release for payment)
    F050S001            FIDCMT, FIDCC1, FIDCC2: Edit user-defined IDoc segment
    F050S002            FIDCC1: Change IDoc/do not send
    F050S003            FIDCC2: Change IDoc/do not send
    F050S004            FIDCMT, FIDCC1, FIDCC2: Change outbound IDoc/do not send
    F050S005            FIDCMT, FIDCC1, FIDCC2 Inbound IDoc: Change FI document
    F050S006            FI Outgoing IDoc: Reset Clearing in FI Document
    F050S007            FIDCCH Outbound: Influence on IDoc for Document Change
    F180A001            Balance Sheet Adjustment
    FARC0002            Additional Checks for Archiving MM Vendor Master Data
    FEDI0001            Function Exits for EDI in FI
    No of Exits:         14
    USER EXIT
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    http://www.sap-img.com/ab038.htm
    http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
    USER EXIT
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html
    Rewards if useful.........
    Minal

  • How to get vendor and company code based on logistic invoice document

    how to get vendor and company code based on logistic invoice document in abap/4?

    Hello Kumar
    When you call BAPI_INCOMINGINVOICE_GETDETAIL using
    INVOICENUMBER = <number of invoice>
    FISCALYEAR = <fiscal year>
    the returned HEADERDATA contains what you are looking for:
    HEADERDATA-COMP_CODE
    HEADERDATA-DIFF_INF
    Regards
      Uwe

  • How to find company code using sales doc. No

    Hi,
         I need to print company code, how to find company code using sales doc no. I don't find it VBAK.
    Cheers
    Senthil

    Dear Senthil
    You can find in table VBAK itself - Field BUKRS_VF
    thanks
    G. Lakshmipathi

  • Unable to find company code in assignment of company code (OX19)

    Hi,
    Please advice me why I am unable to find the newly created company code in assignment of company code (OX19).
    TQ

    Hello
    Comapnay code can be assigned to one controlling area only, so this might be assigned to some other CO Area, check the table TKA02, you can see that.
    Before you can delete the assignment, you must delete all master data in controlling area ALMA referring to company code you want assigned.
    Regards
    Dinabandhu

  • How to find company code and its org unit?

    Hi All,
    For a given company code, i need to find its org unit. Please let me know the info type table or any FM.
    Thanks,
    SKJ

    Hi Ravi,
    Yes, i just came to know about that. I clicked on account assignment features button in PPOS_OLD and specified pers area, pers sub area and company code and found that an entry was created in HRP1008 for the company code with org unit.
    Thank you very much.
    SKJ

  • Finding t-codes based on database field

    Dear All,
    I have a field AUFK-KOSTL, I want to find in which transactions or transaction codes, this field is being used.
    Please let me know on which transactions the field AUFK-KOSTL is being used.
    Thanks in Advance,
    Ramana

    hi,
      Try the transaction code  AS01
    hope this helps u.
    regards,
    sri

  • HOW TO FIND TRANSACTION CODE BASED ON uSER eXIT.

    HI FRIENDS,
    I WOULD LIKE TO KNOW HOW WE CAN FIND OUT A TRANSACTION CODE OF AN USER EXIT.
    MY USER EXIT IS : EXIT_SAPLV60B_002 .
    PLEASE LET ME KNOW .
    THANS IN ADVANCE,
    REGARDS,
    ROBERTS.K

    FUNCTION EXIT_SAPLV60B_002.
    ""Lokale Schnittstelle:
    *"  IMPORTING
    *"     VALUE(XACCIT) LIKE  ACCIT STRUCTURE  ACCIT
    *"     VALUE(VBRK) LIKE  VBRK STRUCTURE  VBRK
    *"     REFERENCE(DOC_NUMBER) LIKE  VBRK-VBELN OPTIONAL
    *"  EXPORTING
    *"     VALUE(XACCIT) LIKE  ACCIT STRUCTURE  ACCIT
    *"  TABLES
    *"      CVBRP STRUCTURE  VBRPVB OPTIONAL
    *"      CKOMV STRUCTURE  KOMV
      INCLUDE ZXVVFU02.
    ENDFUNCTION.
    Above is the interface of the function module stated by you, create the include zxvvfu02 by double clicking on it,
    put a break point in it and activate and in the debugging mode you can see that the structure XACCIT has EBELN i.e.
    purchase order no. assign it to the reqd field.

  • How to find country code based on delivery number

    HI Folks,
    plz suggest which table is having country code(ship-to party) based on delivery number.this should be storage location country.
    Thanks,
    Ritesh.
    Message was edited by:
            Ritesh Shrivastava

    Hi,
    You can also get it from the table VBPA..
    SELECT SINGLE * FROM VBPA
                  WHERE VBELN = 'DELIVERY NUMBER'
                  AND       PARVW = 'WE'.   "SHIP TO PARTY.
    VBAP-LAND1 will be the country code..
    Thanks,
    Naren

  • How to find out company code from a plant ?

    Hello friends,
    I have to modify a program that uses FM "BAPI_COMPANYCODE_GET_PERIOD".   For that, we have to export company code ID.  Currently it is hard coded with one company code.  Now we want to make this program usable by all company codes.  So instead of hard coding, I would like to dynamically find out company code based on the plant.   So I want to know - how to find out company code from a plant ?  Is there any table that has plant to company-code assignment data, or any other FM/BAPI to get this info ?
    Thanks,
    - Chetan

    hi
    u can find this from table T001K
    or just goto EC01
    here click on STRUCTURE>NAVIGATION
    double click on co code u will get the list
    u can slo try this in EC02
    regards
    kunal

  • TDMS copy based on Company Code and time based reduction.

    I'm struggling to understand the process of this scenario.
    I created a new client in the target system (using local client copy with SAP_UCSV).
    I configured a time based and company code based reduction.
    After the TDMS copy is complete, I check the target system and still find plenty of data that isn't related to the company codes I selected. It appears that it still copies part of the excluded data. For example: I can still find work orders and sales orders for company codes that I specifically didn't select for the copy process.
    Any idea why this is? It appears that the copy doesn't bring across ALL of the excluded data. Just some.
    I double checked and triple checked my TDMS selection for company code based reduction and I can't find any error in there.
    To be more specific: I selected company code A01 A02 A03 and left B01 B02 B03 out. After the copy there are still orders visible in the target system with company code B01 B02 B03.
    This is after I created an empty target client first so it's not copying into an already existing client.
    Thanks for any guidance guys.

    Hm, not sure what's going on. There is no clear link between those existing orders and the company codes I initially selected. Then again it only seems to have a "high level" record of the data. As soon as one starts to drill down, the data is missing as expected. Same goes for other areas as well.
    Looks like we can live with that for now so I won't lose any sleep over it anymore.

  • Sales orders in TDMS company/time based reduction  are outside the scope

    Guys,
    I have had some issues with TDMS wheras it didn't handle company codes without plants very well. That was fixed by SAP. But I have another problem now. If I do a company code and time based reduction, It doesn't seem to affect my sales orders in VBAK/VBUK as I would have expected. I was hoping it would only copy sales orders across that have a plant which is assigned to a company code that was specified in the company code based reduction scenario. That doesn't seem to be the case.
    VBAK is now about one third of the size of the original table (number of records). But I see no logic behind the reduction. I can clearly see plenty of sales documents that have a time stamp way back from what I specified in my copy procedure and I can see others that have plant entries that should have been excluded from the copy as they do belong to different company codes than the ones I specified.
    I was under the impression that TDMS would sort out the correct sales orders for me but somehow that doesn't seem to be happening. I have to investigate further as to what exactly it did bring across but just by looking at what's in the target system I can see plenty of "wrong" entries in there either with a date outside the scope or with a plant outside the scope.
    I can also see that at least the first 10'000 entries in VBAK in the target system have a valid from and to date of 00.00.0000 which could explain why the time based reduction didn't work?
    Did you have similar experiences with your copies? Do I have to do a more detailed reduction such as specifying tables/fields and values?
    Thanks for any suggestions
    Stefan
    Edited by: Stefan Sinzig on Oct 3, 2011 4:57 AM

    The reduction itself is not based on the date when the order was created but the logic enhances it to invoices and offers, basically the complete update process.
    If you see data that definitely shouldn't be there I'd open an OSS call and let the support check what's wrong.
    Markus

  • Bank and company code

    hi all,
    Can someone please tell me how to find out which bank from table bnka belongs to which company code,
    Regards,
    Tarun Bahal

    Hi Tarun
    Check table : T012 where you will find company code and bank
    Best Regards
    Ashish Jain

  • PO/ Invoice created for supplier does not exist for particular company code

    Hi Gurus,
    We have a case where PO created w.r.t supplier X does not exist for any company code A. Also Invoice is generated.
    As per my analysis:
    1. Purchasing organization is assigned to the particular plant and Plant does assigned to company code. This purchasing organization does not assigned to any company code and kind of centrally allowed to any company code based on above link.
    2. Supplier X does exist for the purchasing organization. And in Partner function-For PI (Invoice presented) partner function, it is defined for another supplier Y. This Y supplier does exist for company code A and might be the reason, it is allowing creating PO and Invoice.
    Please correct me, if I am wrong or If there will be any other reason for the same. Just for your information, there is no Info record exist for this PO as it is created for service without any material number.
    Thanks for your response.
    Best regards,
    Karun Kumar

    You can create vendor only with reference to purchase organization and withoout company code.
    for this vendor, you can create PO and MIGO and system will allow but when you try to post the invoice system will prompt you to enter different invoice party. if you dont enter different invoice party, system will throw an error message "vendor is not defined in XXXX.
    So in your case, your analysis is correct.

  • Creating Asset in one Company Code and transferring it into multiple ccodes

    Hi ,
    We want to create a asset in one company code and then want to transfer it to multiple company codes based on %.
    eg: Asset XYZ in Ccode 100 for $10000
      transferring it to multiple company codes 100  20%
                                                                  200  50%
                                                                  300 30%  
    At present we are using AS01 and then using ABT1N multiple times. Is there an alternative way for doing it.
    Best Regards,
    Venkatram

    You can also create a custom program which takes your excel file with all the new asset numbers in new company code and the partial amount and process t-code ABT1N in batch.. if your partial transfer list is huge. If you have few assets than manual approach is better.

Maybe you are looking for

  • How to update a JPanel in a JApplet

    Hi All, I'm trying to make my own sudoku JApplet. JApplet uses a BorderLayout() adding the sudoku Puzzle in the center, JButtons for New Games in a JPanel in the west and a GridLayout(3,3) to select the number to put in the puzzle in the east. The pr

  • Mail sent from iPad won't show on MacBook

    I've had my iPad for less than a week and just noticed that the emails I send through my Gmail account (IMAP) from the iPad won't download to my MacBook, whereas the ones I send from my laptop do appear on my iPad as soon as I press the send button.

  • Moving an existing site?

    I have a feeling I know the answer to this but here goes: I have a web site managed elsewhere. Can I move it to .Mac? Or would I have to redo it using Iweb? Paul

  • How to get back music lost while syncing to itunes?

    how to get back music lost while syncing to itunes?

  • Output Flatfile, fields alignment

    Dear SAP experts, I have this output flatfile, in which, SALES and TURNO fields were left-justified. PERIO;EAN;ILN;SALES;TURNO;PERFL;SUBSFL;SALUN;%CURRENCY%;STOCK;STOUN;ARTNR;ARKTX 20071215;737052018126 ;4327498000005;1____;10.50____;W;X;ST ;EUR;0000