BRF expression to check company code in SC

Hello,
I need to check company code in SC as a starting condition. There is standard expression 0V_IN_COMPANYCODE to check Company code in Invoice with those parameters :
Result Type : C
Access FM : /SAPSRM/WF_BRF_0EXP000
0C_C1_C_FWFINRLCNTNT     Class: /SAPSRM/CL_WF_RULE_CONTXT_INV     C     30
0C_C2_C_GET_PROPERTY     Method - Get Atrribute Value     C     12
0C_C3_C_COMPANYCODE     Company Code     C     30
I created a Z expression Z_SC_COMPANY with SC class and those parameters :
Result Type : C
Access FM : /SAPSRM/WF_BRF_0EXP000
0C_C1_C_FWFSCRLCNTNT     Class: /SAPSRM/CL_WF_RULE_CONTXT_SC     C     28
0C_C2_C_GET_PROPERTY     Method - Get Atrribute Value     C     12
0C_C3_C_COMPANYCODE     Company Code     C     30
In an other expression I check Z_SC_COMPANY = '1234' And it does NOT work.
Any idea why?
Thanks in advance.

Hi,
Please go to SWO1 transaction and check attributes for BUS2121 and BUS2205.
You pass Company Code parameter which does not exist in SC. System can not get value from Business Object.
You can create sub object and add attributes in SC Business Object if you need to use standard FM.
Regards,
Masa

Similar Messages

  • PO creation-ME21n-Why SAP does not check company code and Plant relation

    Hi All,
    Does someone know, why SAP does not check Plant and company code relation at the time of PO creation or how can we put validation between plant and company code at the time of PO creation.
    <b>Example:</b> Suppose i have a company 0001 which is assinged to Plant 0001. when i am creating a PO with another company code 0002(Entering at header level-Org, data) and using Plant 0001 at line item level. SAP does not do this validation.
    How can we put this check in place?
    Thanks in advance.
    Deepak

    Hello Deepak,
    There are three types of purchasing
    - Company code specific :You need to assign company code to Pur organization
    - Plant specific : You must assign plant to pur organization
    - Cross company purchasing: No assignment between company code and pur organization.
    In the case 3, the system will not check company code and plant relationship, but it will check plant and pur organization specific.
    The following is the copy of sap help text:
    You can assign a purchasing organization to one company code. This is company-specific purchasing.
    You can assign a purchasing organization to no company code. This purchasing organization can then procure for all plants assigned to it, irrespective of the company code to which the plant belongs.
    Since each plant must be assigned to a company code, the company code can be determined via the plant in each procurement transaction, even if the procuring purchasing organization is not assigned to a company code.
    A purchasing organization must be assigned to one or more plants. This is plant-specific purchasing.
    Now, check your company-code and purchase organization assignment.
    Hope this helps.
    Regards
    Arif Mansuri

  • Double Invoice check across company code

    Hi All,
    I have been trying to use the double invoice check functionality across company codes. i.e. when an invoice is posted in Company code A with ref no: xxx, and when I try to post a new inovice with the same reference ie. xxx in company code B, system does not give error message.
    Please note: I have maintained message in application F5, no: 117 and 312.
    Also in customization for double invoice check, I have unchecked "Check Company code" and checked "check reference" and "check invoice date"
    I have also maintained the double invoice check flag in the vendor master.
    Please help at the earliest.
    Regards,
    Ankush

    Hi Ankush,
    Good Day,
    Duplicate invoice check across company code will not check for FI related invoice ( Like FB60)
    But you can able to achive this with BTE ( SAMPLE_PROCESS_00001110 for FI Duplicate invoice check)
    Steps for Implementing a BTE
    (1)Goto transction FIBF menu Environment->Info System (P/S )
    (2)Select the BTE you want to implement.
    (3)Press button Sample function module
    (4)This brings you to SE37 - Copy the sample function module to a Z-function module (First create a new function group for the function module) . Note: The name of the Z-functionmodule is not important
    (5)Edit the code in the new function module
    (6)Go back to transaction FIBF - Menu Settings->Products -> Of a customer and create a new product whicj identifies the new product . Remember to mark the Active field.
    (7)Go back to FIBF menu Settings->P/S function modules->of a customer - Create an entry that links the BTE and Product with the new function module
    Best Regards,
    KSK

  • BRF expression : Requester's Org unit is under that org unit

    Hello,
    How can we express the Requester's org unit has to be under a specific Org unit in the org structure in a BRF expression?
    Thanks in advance

    Hello
    I can check the requester's OU and the company's OU.
    How would you write the BRF expression to check requester's OU hierarchically belongs to company's OU?
    Thanks

  • PO created instead posting block set & vendor not extended to company code!

    Dear friends,
    I have a vendor created for a purchasing organisation in  a company code. there are two problems that i am facing.
    1) I have  blocked  a particular vendor completely. Even then system is allowing to create the PO using this vendor.
    2) This vendor has been created for a particular company code & has not been extended to another company code. Even then it is allowing to create the PO using the vendor centrally blocked for creating purchase order in another company code.
    There is a service PR specifying this vendor as desired vendor & the vendor is ticked for auto PO. Could this be a problem? but i think even then it should not allow to create PO that too for a different company code.
    Thanks & Regards
    Tasleem Arif

    1) I have blocked a particular vendor completely. Even then system is allowing to create the PO using this vendor.
    Answer:  While creation Purchase order, purchase orgnization mandatory for vendor,  if vendor blocked at company code level means system will not check Company code at the time of PO creation. here in PO creation use of company code is to recognise Currency of the company code.
    2) This vendor has been created for a particular company code & has not been extended to another company code. Even then it is allowing to create the PO using the vendor centrally blocked for creating purchase order in another company code.
    Answer: While creation of Purchase order, Comapny code is used for only currency recognisation , system will not check vendor is created for comapny code or not? but vendor should at Purchase org level.
    If vendor is not defined at company code , then it will give an error at the time of invoice only. not at PO level.
    At  PO level Purchase orgnisation is very important
    Regards
    Mahesh Naik.

  • Creation of new Company code in 4.7 Enterpise version

    Hi
    We are having SAP implemented since 4 years with ONE active Company code and 4 other dummy company codes.Dummy means they are only used for financial loan&interest postings between Main company code and other dummy company codes.Dummy company codes does not have any  SD/MM/other module integration.Right now  financial reports for all company codes are extracted from SAP and consilidation is done out side SAP.
    Dummy company codes have bank accounts and a bank statement is uploaded in to SAP for them for few entries monthly.
    Now the rerquirement is>>>>We need to create couple  more dummy company codes only for financial entries(loan adjustment entries) like existing one's where the bank statement upload has to happen like existing one's.
    PLEASE LET ME KNOW
    1.Which is the simplest&best  way to create new dummy comapny codes?
    2.Is there any precautions we need to take when creating new company codes,so that exsiting company codes functionality is NO WAY  disturbed?
    3.What settings I need to make for bank statement upload?
    regards

    Hello,
    1.Which is the simplest&best way to create new dummy comapny codes?
    Copy from the existing company code
    IMG ==> Enterprise Structure ==> Definition ==> Financial Accounting ==> Edit, copy, delete, check company code
    2.Is there any precautions we need to take when creating new company codes,so that exsiting company codes functionality is NO WAY disturbed?
    If you company in a proper way, it wont disturb your existing company code, unless you disturb existing config.
    3.What settings I need to make for bank statement upload?
    Manual Bank Statement Upload: IMG ==> Financial Accounting ==> Bank Accounting ==> Business Transactions ==> Payment Transactions ==> Manual Bank Statement
    Electronic Bank Statement Upload: IMG ==> Financial Accounting ==> Bank Accounting ==> Business Transactions ==> Payment Transactions ==> Electronic Bank Statement ==> Make global settings for electronic bank statements
    Regards,
    Ravi
    regards

  • Steps Invloved in Company Code Creation

    I need to create a new company code in the existing landscape of SAP. Please tell me all the steps involved while creation of a new company code in the existing landscape . I mean I need to know all the high level steps involved. e.g.
    create new company code
    Identify the Z tables where this new company code will impact
    Identify KDS for new company for which we are creating this new company code
    Design Workflow
    The same way I need a detailed activity list for the above project ( i.e. Creation of new company code in the existing SAP landscape )
    Moderator message: not related to ABAP development, also SDN is not your free consulting service, please investigate yourself.
    locked by: Thomas Zloch on Sep 2, 2010 3:18 PM

    Edit, Copy, Delete, Check Company Code(T001)
    Company is created by FI Consultant.
    The company code is an organizational unit used in accounting. It is used to structure the business organization from a financial accounting perspective.
    IMG -> Enterprise Structure -> Definition -> Financial Accounting -> Define, copy, delete, check Company Code
    Regards,
    Jaiprakash.P.T

  • Fi Company code

    Hello All,
    Can anyone plz tell me how to create a company code in R/3.
    I know its tehnical forum but if some one can help me it wil  be great.
    Thanks in advance.
    *************Points will be rewarded****************

    The company code is an organizational unit used in accounting. It is used to structure the business organization from a financial accounting perspective.
    Goto Tcode: SPRO -- Enterprise Structure -- Definition -- Financial Accounting -- Edit, Copy, Delete, Check Company Code -- Copy, delete, check company code -- Click on 'Copy Org object'. Mention from which company code u r copying to which company code ie from and to.
    SAP recommends the following procedure when creating company codes:
    1. Create the company code using the function "Copy Company Code".
    2. Enter special company code data with the function "Edit Company Code Data".
    You can also use the function "Edit Company Code Data" to create a company code. However, in this instance, the company code "global data" is not copied. If you create a company code using the "Copy" function, most of the "global data" is also copied.
    Company is the smallest organizational unit for which individual financial statement can be drawn according to the relevant commercial law.
    Company code is the smallest organizational unit for which complete, self-contained set of accounts can be drawn up for external reporting purposes

  • There are 2 places to define Company Code, which is correct.

    There are 2 places to define company code i.e.:
    IMG -> Enterprise Structure -> Definition -> Financial Acc -> Define Company, and
    IMG -> Enterprise Structure -> Definition -> Financial Acc -> Edit, Copy, Delete, Check Company code.
    I know the one path updates table T001 and the other T880 but I don't understand the differences... probably as I am abapper.
    Edited by: Gemini Twin on Jun 15, 2011 10:43 AM

    Hi Gemini,
    Company and Company Code are different.
    The first path is to define Company:
    IMG -> Enterprise Structure -> Definition -> Financial Acc -> Define Company
    Second path is to define Company Code:
    IMG -> Enterprise Structure -> Definition -> Financial Acc -> Edit, Copy, Delete, Check Company code.
    (the practice when creating any new config in SPRO is to used Copy function instead of Create)
    We can make do without Company. In my customer's system, we do not set up Company.
    Company Code is a must and is the first step that you need to define before defining anything else (Pers Area, PSA, etc).
    Chart of Account also linked to Company Code, not Company. The two are different, please do not confused them into one.

  • How to restrict the user id to a specific company code?

    Hi,
    I want to restrict a user id to access a specific company code only for both customizing and application data creation. This means that the user id can do customizing and create application data for that company code only and not for any other company codes.
    how can i do this?

    Hello Raja,
    You requirement of restricting users for application data can solved by adding the company code in the organization level button and the user will be restricted to mainatin application (transaction) data for the org element for which he is authorized for, if the transaction has objects which check company code.
    Customizing data authorization can be very tricky, as most of the customizing transactions are for maintaining customizing tables will not necessarily have an authorization check for org elements. In this case you may to manually insert a object called S_TABU_LIN alongwith S_TABU_DIS it will perform the job of restricting authorizations.
    In cases where the end user is accessing tables directly with SE16 S_TABU_DIS is the object that is check and maintained in PFCG.But,Such a restriction cannot be made with S_TABU_DIS alone. Fortunately SAP provides us with another authorization object S_TABU_LIN (Authorization for Organizational Unit), which can be used in conjunction with S_TABU_DIS to enforce such a restriction.
    This authorization object works only with Maintenance Views and Customizing tables. Also note that an Organization Criterion is a prerequisite for implementing the same
    A detailed step by step procedure to be followed is given below:
    1. The first step in implementation of line authorization is defining an Organization Criterion. For this we need to access the u201CSAP Reference IMGu201D customization page from SPRO transaction.
    2. From the IMG display screen select SAP Web Application Server -> System Administration -> Users and Authorizations -> Line Oriented Authorizations. Select the execute ( ) button for the u201CDefine Organization Criteriau201D.
    3. The resulting table display show all available Org Criteria values existing in the system. For our purposes we will create a new Org Criteria to suit our needs. Select the tab u201CNew Entriesu201D as shown below.
    4. Give an appropriate name starting with Y or Z for the new value. Note that a name starting with another letter will not be accepted by the SAP system. Click on u2018Saveu2019 button to save the newly created Org Criteria. This opens a new window asking for a Workbench Transport Request. This would be required so as to transport the new Line authorization restrictions further to the test and production systems.
    5. Now select the new Org Criterion u201CY_TESTu201D and double-click the u201CAttributesu201D tab as below to define the various Org Attributes.
    6. Provide the new Attribute name and Description for the same. Also fill the Authorization field value from the provided dropdown (1st Org Criterion Attribute u2026. 8th Org Criterion Attribute). The search help field is an optional field which can be filled if a search criterion exists or has been created earlier for the specific purpose. This field enables the u201CF4u201D when filling entries in the authorization object
    7. We already have a search help (C_T001) available, which provides as an F4 help the list of all available Company Codes in the system.
    Note that we can create up to 8 Org Attributes as per our requirements (by selecting u201CNew Entriesu201D tab), each corresponding to a column in the target table.
    8. Selecting the attributes link again will show us a list of all defined attributes and the authorization Field it will appear in. Now that we have defined the Attribute Field that we require, we need to associate each attribute to the corresponding Table Field in the target table.
    Select one of the attributes as below and double-click on the u201CTable Fieldsu201D button to define the field associations.
    9. Select the u201CNew Entriesu201D tab to create a new table field association.
    10. The View/table field must be filled with the target table which we need to control.
    11. The u201CField Nameu201D will require the field name of the target table which be linked with the specific Org Attribute. Performing an F4 on this field will display the list of all possible fields available in the View/table provided earlier. Here we will select the field name BUKRS (Company Code). Save the entries in the same workbench request created earlier.
    12. The next step would be to activate this new Org Criterion so that SAP now checks the authorization for S_TABU_LIN for every user
    13. In the u2018IMG displayu2019 go to SAP Web Application Server -> System Administration -> Users and Authorizations -> Line Oriented Authorizations. Select execute ( ) button for the u201CActivate Organization Criteriau201D.
    14. From the resulting customization screen tick the check-box for the Org Criterion that we have created. On saving the settings the system then asks for a Customizing Transport Request for further transport into test and development systems.
    15. Any user without this authorization will not be allowed in to the SM30 display/change screen for this table.
    16. In the role for which the S_TABU_DIS provides maintenance access for the table , we will now also need to maintain the object S_TABU_LIN.
    17. On selecting change button besides any authorization field you will need to select the Organization criterion which needs to be maintained here. Note that only one Org Criterion can be maintained in one instance of S_TABU_LIN object.

  • Users with Company Code

    Hi All,
    Can anybody please tell me the best possible way to find out the company code (Organisational Assignment) for Users without getting into each role and checking the Company code through the Organisational Assignment.
    Fo Eg: Suppose i have 10,000 Users in my Company and i need to check what company code has been assigned to each User.
    One way   -> is to first check all the roles in the User, then checking Organisational level Assigment for each role.
    Second way -> In SU01 -> Environment -> Organisational Asignment but not able to find aything from that.
    Revert if there is any other solution for this.
    Thanks & Regards

    You can check through SUIM -> Where used list -> Authorization values - > in Users -> Execute - > Authorization Object (F4 - to check company code object)  -> Entry Values (enter your company code value) and Execute.
    Cheers
    Shaji

  • Set tax departure country as company code country and not plants country

    set tax departure country as company code country instead of plants country, where do we configure this, plz let me know

    Hi,
    Check if yours C-Codes in F110 are in same Country.
    Go to SPRO:
    Enterrprise structure - Definition - Financial Accounting - Edit, Copy, Delete, Check Company Code - Edit Company Code Data.
    Regards

  • The company code TEST does not exist or has not been fully maintained

    Dear Experts,
    I received the following message when I tried to create a material master from Plant Maintenance module (select view based on general plant data / storage 1).
    "The company code TEST does not exist or has not been fully maintained
    Message no. M3150
    Diagnosis
    You have entered either the company code TEST or a plant assigned to this company code. However, the company code either does not exist or has not yet been configured for materials management.
    Procedure
    Ask your system administrator to configure the company code.
    Procedure for System Administration
    Carry out the following activities as required:
    Create the company code if it does not already exist.
    You do this in Customizing for Enterprise Structure in the activity Define, copy, delete, check company code.
    Make sure that a fiscal year variant is assigned to the company code.
    You do this in Customizing for Financial Accounting (Global Settings) in the activity Enter global parameters.
    Configure the company code for materials management.
    You do this in Customizing for the Material Master in the activity Maintain company codes for materials management.
    However, I've done all the above instructions, yet the message still appear.  what else should I check?
    regards,
    Abraham

    Hi,
    I've done that earlier..
    However, I've chosen the default plant 0001 instead of my own created plant, it works.  Then I tried to do it again, with my own plant, it works also..
    Anyway, thanks a lot.
    regards,
    Abraham

  • How to reset data for the company code 1000

    Hi Gurus,
    I am practicing SAP SD on a sandbox server as am learning it.
    But i see that the standard data for the company code 1000 has been altered by previous users and most of the standard setttings have been changed.
    Due to this am having a lot of issues while configuring a new company code by copying it from 1000.
    Please help me reseting the data for the company code 1000 so that it will be easier for customizing and learning.
    Regards,
    Harish

    Hi Harish,
    Follow the step given below
    SPRO --> Enterprise Structure --> Definition --> Financial Accounting --> Edit, Copy, Delete, Check Company Code
    A pop screen will appear which will give you two options
    1)  Copy, delete, check company code
    2)  Edit Company Code Data
    Select option one
    On next screen --> Click at " Check org. object" or press F8 --> It will ask your company code --> enter your company code 1000 --> Enter
    It will check all the related table and if it find any discrepency
    then it will show you one pop up screen
    Errors in
    foreign key dependencies
    Do you want the error log
    displayed now?
    Click at Display now --> correct all the fields which are wrongly maintained.
    Hope this helps
    Regards,
    MT

  • Delete data company code FS-CD

    Hello,
    I've a question concerning deletion of company code data in our system.
    We have several company codes active in our production system.
    Now, we've sold one company and want to clean-up our system.
    How can we remove all master and transactional data (FS-CD + FI) concerning this company code in our system?
    Is there a standard way doing this?
    Thanks in advance.
    Noël Vanderhoven.

    Hi Noël,
    You can delete the unwanted company codes from your system.
    To do so, go to IMG  >Enterprise Structure > Definition > Financial Accounting > Edit, Copy, Delete, Check Company Code.
    Transaction code EC01.
    Also review program SAPF020 (transaction OBR1).
    Carefully read all documentations.
    regards,
    David
    Edited by: David Tonade on Mar 8, 2012 4:39 PM

Maybe you are looking for

  • How do I move photos from album to album in Photo

    How do I move photos from album to album in Photo?

  • 1:N multimapping, IDoc change occurrence in XSD or Signature

    Hi SDNers, In the current assignment, I have 1:N (File to IDoc) Scenario, In order to do this 1:N Multimapping for receiver IDoc we can either change the occurrence of IDoc as 0..unbounded(Using External Definition) or we can change the signature of

  • Clearing Page Parameters After Use

    Whenever a parameter is sent to a page, either from a portlet event or otherwise, the parameter remains active accross multiple requests to the same page. This causes a problem in my particular scenario. Consider a root page that has 2 tabs. Tab 1 ha

  • Partition elimination using views

    Hi all, i am having problem with a view which is accessing all the partitions in my table. i have a table which has 30 columns and is partition by one column called cid. it is a list partition. when i do a query on the table, the explain plan show pa

  • Missing service (Isi_ir_hhr)

    Missing service (lsi_ir_hhr) in Publisher of cisco call manager 8.6.1 But this service is present on the Subscriber. Can this be addressed in case this service may play an important role to the health of the Call Manager cluster. I already try reboot