Defaulting Business Area  on IT0001 based on Company Code

All - My company wants this field ( GSBER maintained in Table TGSB) to default on IT0001 based on the Company Code. Is there a way to do this, since I see no table in SAP that links Company Code to Business Area. Additional Requirement is that all non-employees ( EE Groups) will not have a Business Area mapped to their IT0001, instead it should default to "not assigned".
Can a custome feature be built in this case based on Molga>Company Code>Employee Group or can you experts provide some recommendations.
Thanks a milion.

Hi Niti,
For PBAS0001 enhancement - EXIT_SAPFP50M_001 function - ZXPADU01 include, write a code like the one below:
IF INNNN=INFTY EQ '0001'.
DATA: wa_P0001 like P0001.
CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN
EXPORTING
PRELP = INNNN
IMPORTING
PNNNN = wa_P0001.
CASE wa_P0001-BUKRS .
WHEN '0001'.
wa_P0001-GSBER = 'B001'.
WHEN '0002'.
wa_P0001-GSBER = 'B002'.
ENDCASE.
CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PNNNN_TO_PRELP
EXPORTING
PNNNN = wa_P0001
IMPORTING
PRELP = INNNN.
ENDIF.
Regards,
Dilek

Similar Messages

  • Can one business area be assigned to several company codes? how to do it?

    Can one business area be assigned to several company codes?
    what are the configurations?
    thanks

    Dear Humility,
    If, I am not wrong, Business Area is assigned to Company Code via Finance (i.e. NO Direct assignment, but can be used across company code). You can assign a business area to an org. object through the account assignment tab.
    Business areas are generally company-code independent. You can post to them from any company code. The Business area field shows up as an additional account assignment when posting to an account as long as the field is turned on in configuration. The field can be made a required entry during posting.
    If certain company codes are not active in specific business areas, you can use a validation to prevent postings to this business area from the company codes specified.
    Important Transactions, related to Business Area Configuration:
    OX03     Create Business Area
    OMJ7     assign Business Area to Plant / Valuation Area and Division
    OVF2     Org Unit: Sales Area - Business Area Determination rule
    OVF0     Org Unit: Business Area Determination rule
    OVF1     Sales Area - Business Area Determination rule Slsorg/DstCh
    Best Regards,
    Amit
    Note: Some Relevant Links:
    [Business Area|http://www.sap-img.com/zf003.htm]
    [SAP Business Area|http://www.saptechies.com/configure-the-sap-business-area/]
    [Validation of Business Area for Company Code|Re: Validation of Business Area for Company code;

  • Defaulting value of Purchasing Group based on Company Code

    Hi All,
    Currently we have two company codes C1 and C2 each have one - one purchasing org(PO1 and PO2) and purchasing group(PG1 and PG2). So Now hierarchy is as below: -
    C1
      PO1
        PG1
    C2
      PO2
        PG2
    Now user of company code C1 can shop for C2 and vice versa but whenever he shops for C1 his Porg and Pgroup should be PO1 and PG1 only and same in the case for C2. Currently on shopping cart screen both company code C1 and C2 are appearing and like wise values of PO1 : PG1 and PO2 : PG2 is appearing in drop down list.
    Now client is asking that whenever he selects C1 as company code PO1 : PG1 should appear as default entry and for C2, PO2 : PG2.
    Can anyone tell me how this can be achieved and which BADI we are suppose to use to implement this solution?
    Thanks
    Siddarth

    Siddarth,
    You shouldn't require a badi, look into the users attributes and extended attributes to see if that is where the extra information is stored.

  • Default Value for Order Type based on Company Code  in ME21N

    Hi,
         Using ME21N, I want to make the PO type defaulted to a certain company code, say for instance Company code  XYZ should have a PO type XYZ Purchase Order, ..company ABC should have a PO type ABC Purchase Order, and so on...I'm just puzzled how to implement it. I know that we can set a Default value for PO Headers in Personal Settings but its doesnt give the result I want coz it will only have one Default Value. What I wanted is when a certain company code is chosen, automatically, the corresponding PO type for that Company code will be displayed in the Order Type drop-down menu (so there's no need to choose on the drop down list what Order type) Is this possible in ABAP? Hope i made myself clear.
        Thanks in Advance.

    Use BADI IF IF_EX_ME_PROCESS_PO_CUST - method OPEN
    View the interface documentation in transaction SE19 and you will see the method OPEN can be used :
    2. Opening of a purchase order (OPEN method)
    The system opens a new document to create, change or display a purchase order. With the OPEN method,
    <b>you can import your own data and prepare it for further processing.</b>
    This is available in 4.7 Enterprise but not sure how far back.....
    hope this helps
    Colin.

  • Trnasfer of Asset frm one Business Area to Another in same Company code

    Hi Experts
    In my Asset Accounting Business Area is mandatory field and when I transfer asset from one business area to another business area system change the asset number from old to new number, the problem is that suppose asset A with useful life of 10 years already utilized three years in business area 1010 and after three years when I transfer this asset to another business area 1020 system again calculate 10 years in new asset which is wrong it should be seven years because 3 years already used in previous business area, please help me that how to resolve this issue.

    Hi
    If you are transferring to a new asset - You can maintain the useful life in the new asset master as 7 yrs
    Else, do the settings in IMG > AA > Transactions > Transfers > Inter CO Asset Trf > Define Trf variants.... Here, you can try to configure which fields must be taken over during transfers... This is usually used for Cross Comp Trf.. however, try to use in your case and see if it works
    br, Ajay M

  • Business area in IT0001

    Hi Experts,
    I am facing posting problem for one employee and  ie.,
    In org structure i have assigned cost centre to position and in IT 0001 it is defaulting Business area because of this, posting is happening for that employee separatly now how can i remove the defaulting of Business area from IT0001
    Pls. help me.
    Thnx in Advance
    Chaitra

    Hi Carlos,
    Thanks for your reply,
    I checked in  P1008-GSBER as it is SAP  standard  changes are not allowing and i chekced in KS02 where i tried to remove Business area but system throwing error message as Already entries are posted cannot be deleted and i checked in Org. structure where cost centre is assigned to the position there also i didn't get any link
    Then how can i remove defaulting
    Thanks
    Chaitra

  • How to default Business Area

    How to default Business Area at line item entry to particular GL accounts
    Satish
    Points assured

    hi,
    for getting finer records u can have user exist programme which will give you finer reports as in other standard report u might face clearing account problem. but user exit can be defined at the miner level of details u required . this is generally used fr multilocation multi business area configuration to which u can also attach SECTION CODE and get those reports in same programme by assigning business place.
    user exit is more useful becuse u might be using same chart of account for all the business area and it is not convinient to have business area at entry level or assigned at company code level, instead by using user exit u can assign it to user at specific business area.
    Warm Regards

  • Shopping cart default delivery address based on company code

    Hi All,
    As a standard behaviour of SRM, currently delivery address in shopping cart is defaulted from attribute (ADDR_SHIPT). But in our case we use cross company purchasing where requisitioners buy for different company codes.
    Some times, they forgot to change the default dlivery address and shopping carts are getting created with wrong delivery address.
    Is there any way, the we can default the delivery address based on company code selected by the user instead of defaulting from user attribute?
    Suggestions would be greatly appreciated.
    Regards,
    Krish

    Hi Krish,
    Am looking for a same solution but instead of delivery address, we are looking for change in invoice recipient address
    ADDR_BILLT. For this i have identifed a FM: BBP_GET_BILL_TO_PARTY from which system pulls the defaulted attribute of user profile. Now we are in a change of pulling the attribute defaulted to the company code entered in SC rather than the user's defaulted ADDR_BILLT.
    Similarly i guess for your issue you can use the FM: BBP_GET_ORG_SHIPTO_ADDR implementing a enhancement in DOC CHANGE BADI
    Regards,
    Nihar

  • Enhancement: PReq-Default Business Area

    Hi Experts,
    I need to default business area(ebkn-gsber) in account assignment tab from sales order(vbap-gsber) while creating or changing PReqs. Please suggest me userexits or BAdi.Version i am working on is 4.6c
    I appreciate all kind of help.
    Thanks.
    Shan

    Hi Shan,
    I guess it is not possible ,all are import parameters so we can't change the values.
    I am sure that there is no user exit at this point,may be in ECC6.00 we may get.
    Reward points if it is helpful.
    Thanks
    Seshu

  • 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

  • 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

  • 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

  • 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

  • To do further segregation based on company codes of the same Satellite syst

    I configured the solution manager service desk with the satellite systems in such a way that it picks up the Business Partner (Sold to Party) from the IBase of the respective systems. This makes one Business Partner per one satellite System. So I am able to do the segregation of the service tickets based on sold to party. Users will post the tickets from the satellite systems only.
    But if I want to do further segregation based on company codes of the same sold to party (Satellite system) in the solution manager, what needs to be done. Pls suggest.
    Thanks and regards
    Basha

    I configured the solution manager service desk with the satellite systems in such a way that it picks up the Business Partner (Sold to Party) from the IBase of the respective systems. This makes one Business Partner per one satellite System. So I am able to do the segregation of the service tickets based on sold to party. Users will post the tickets from the satellite systems only.
    But if I want to do further segregation based on company codes of the same sold to party (Satellite system) in the solution manager, what needs to be done. Pls suggest.
    Thanks and regards
    Basha

  • Bank line items are only permitted in one company code Error

    Hi Experts,
    While doing MIRO with retention money i get the following error
    "Bank line items are only permitted in one company code"
    The transaction i am trying is in only one company code. Also i refered the following links in SDN
    http://forums.sdn.sap.com/thread.jspa?threadID=2100162
    http://forums.sdn.sap.com/thread.jspa?threadID=2100332
    As per the first link i tried to apply the note 1548167 but it has dependancy to numerous notes including
    146691, 1469138, 1477908, 1226698 and so on
    This scenario was working earlier without these notes
    Please advice

    sir
    thanks for your reply. as per your suggestion i am trying to change in fs00 to uncheck the line item management but  i am unable to do that,system shows that i have to uncheck the open item managemt also but the said account contain the open item. so i am not able to change the same. is there any other way to do that. can you please suggest me in detail? and one more thing that i am able to see only the balaces in fs10n. but not able to see the line item.this is probably for missing the business area in line item.
    but i needs to see the line items.
    can you please tell me any alternate way in detail to solve this problem?
    thanks and regards
    konishko

Maybe you are looking for