Adding Company code to Transaction KP90.

Hi Experts,
Is it possible to add company code on the selection screen of KP90 and then clear the plan data based on the company code value entered?
Please let me know if this is possible.
If yes, then few hints will be of great help.

Hi
  I believe you would need an exit cause, FCHN is feed from table PAYR, and in taht table you don t have the sending company code field
Regards
Jose

Similar Messages

  • How to calculate no.of records for a specific company Code and Transaction

    Hi All,
    Could you please help me how to calculate or count no.of records, in a table which are having a specific Company Code and Transaction Code and populate  in an output table displaying that these many records are present for this company code and Transaction code.
    The table is having the data like this:
    LOB   TRAN CODE    COUNT
    X1                             1   
    X1                              2   
    X1                              3   
    X1                              4   
    F1   NB                      5   
    F1   NB                     6   
    F1   NB                     7   
    F1   NB                    8   
    F1   NB                    9   
    F1   NB                    10  
    F1   NB                    11  
    F1   NB                    12  
    F1   NB                     13  
    F1   NB                     14  
    F1   NB                     15  
    F1   NB                     16  
    F1   NB                     17  
    F1   NB                     18
    F1   NB                    19  
    F1   NB                    20  
    F1   NB                   21  
    F1   NB                   22  
    F1   NB                   23  
    F1                          24  
    F1                         25  
    F1                         26  
    F1                         27  
        In the above table there are totally 27 records,where as the no.of records with F1 as company code and NB as transaction code are 18..so i have to display like F1 NB and 18 as one record as output.
    Thanks and Regards,
    Johny

    You can go for Control Breaks for your requirement.
    First sort the internal table by company code and transaction. Declare a counter variable.
    Now loop the internal table and increment the counter variable. within the loop use AT END OF tcode.......ENDAT. Within the control break append the counter variable as well as the company code and tcode to some other ITAB and clear the counter.
    This will give you the total number of records for a combination of co code and tcodes.
    This will be a good reference for your requirement. What I am doing here is, for each Vendor i am calculating total number of deliveries and amounts for that vendor. For every new vendor i am writing the ouput on to a list and clearing the counter variables.
      LOOP AT t_vend_prod_grp INTO fs_vend_prod_grp.
        w_total_delv = w_total_delv + 1.
        w_total_amt = w_total_amt + fs_vend_prod_grp-dmbtr.
        AT NEW matkl.
          w_mat_grp = fs_vend_prod_grp-matkl.
    * To display the material group and the header texts for the data
    * grouped by material group and vendor.
          SKIP 1.
          WRITE:  text-mtk  COLOR COL_HEADING
                                  INTENSIFIED,
                / w_mat_grp COLOR COL_NORMAL
                                  INTENSIFIED OFF.
          SKIP 1.
          FORMAT COLOR COL_HEADING ON INTENSIFIED.
          ULINE  1(54).
          WRITE:/ sy-vline,
                2 text-ven,
               12 sy-vline,
                  text-dlv,
               26 sy-vline,
               38 text-amt,
                  sy-vline,
               46 text-cur,
               54 sy-vline.
          ULINE /1(54).
          FORMAT COLOR COL_HEADING OFF INTENSIFIED.
        ENDAT.                             " AT NEW MATKL
        AT END OF lifnr.
    * To display the actual data for the grouping based on Material group
    * and Vendor.
          FORMAT COLOR COL_NORMAL ON INTENSIFIED OFF.
          WRITE: / sy-vline,
                 2 fs_vend_prod_grp-lifnr COLOR COL_KEY,
                12 sy-vline,
                   w_total_delv,
                26 sy-vline,
                   w_total_amt CURRENCY text-usd,
                   sy-vline,
                46 text-usd,
                54 sy-vline.
          FORMAT COLOR COL_NORMAL OFF INTENSIFIED OFF.
          CLEAR: w_total_amt,
                 w_total_delv.
        ENDAT.                             " AT END OF LIFNR
      ENDLOOP.                             " LOOP AT T_VEND_PROD_GRP

  • How to process AT END OF command for company code and transaction number.

    Hi,
      I  have report with selection screen with company code and key date.  Based ON key date given I should calculate Accrued interest for all transaction with in each company code.
        When I run report with one company code it works fine. But when I run with multiple company codes the amounts are messed up.
    I am getting all company codes with transaction details in to ITAB1 like this below, and PERFORM get_processdata. has my calculation for interest rate.
      SORT itab1 BY company_code  transaction.
      LOOP AT itab1 INTO wa_tab1.
        itab2 = wa_tab1.
        APPEND itab2.
        AT END OF transaction.
           PERFORM get_processdata.
        ENDAT.
      ENDLOOP.
    Thank you.

    Hello,
    You need to use AT New event to clear your total variables.
    AT New - this will go for first time also but we want to clear variables from second time. it requires flag to stop going it first time
    Pseudo code:
    clear: flag.
    Loop at itab1 to itab2.
    At New.
    if flag eq c_x.
    clear: <total variables>, intenal tables.
    move c_x to flag.
    endif.
    tab2 = wa_tab1.
    APPEND itab2.
    AT END OF transaction.
    PERFORM get_processdata.
    ENDAT.
    ENDLOOP.

  • Adding "Sending company code" to Transaction FCHN

    Hi,
    We would like to add a column "Sending company code" to the report out of transaction FCHN. The info for this column is present in REGUH-ABSBU. Is there anyway this could be done without copying the standard program into a custom program and modifying it.
    Any help will be appreciated.
    Thanks,
    ALAM.

    Hi
      I believe you would need an exit cause, FCHN is feed from table PAYR, and in taht table you don t have the sending company code field
    Regards
    Jose

  • Delete G/L Accounts for one company code when transaction data exists

    SAP transaction OBR1 can be used to reset transaction data.
    If you execute this transaction for a specific company code, the FI transaction data of that company is deleted. Because of the procedure to keep FI and CO in line, also the CO data has te be deleted.
    But you can not reset CO transaction data for one company code. You have to reset CO transaction data for a whole controlling area.
    If you can not delete the FI and CO transaction data for a specific G/L account in one company code, you can not delete that G/L account.
    There exists another solution for the deletion of FI and CO transaction data for one company code, and thus for the deletion of G/L accounts?
    Thank you very much for your feedback.
    Edited by: E. Deleu on Mar 3, 2008 3:42 PM

    Helllo,
    I believe the account group information is what you get when loading hierarchies. Please look into the hierarchy extractor 0GL_ACCOUNT_T011_HIER.
    Regards,
    Christoffer

  • Set up Payment Methods Per Company code for Transaction

    Hi All,
    Can any expert please suggest whether do we need to enter only paying company codes while defining the payment methods per company code or enter all company codes.
    Ex: We have 10 company codes for which there are 3 paying company codes. After defining the payment methods in the country, while defining payment methods per company code do we need to define for only 3 paying company codes or for all 10 company codes. Because when you are paying through one company code on behalf of three company codes, how does it make sense having the payment method in company codes which are not paying. I hope my query is sensible.
    Thanks&Regards
    Srinivas

    Hi,
    You should define the payment method in all the 10 company codes regarding they are the paying or non paying company code.
    If you are not defining them they you will not have the option to select the payment for that particular company code.
    regards
    pbb

  • Within Company Code Material transaction

    Hi All,
    We are making a Stock Transfer betweeen 2 plants( A to B) WITHIN a company code.
    Here we have maintained the cost of material in Plant A as USD100. Now when this material from plant A is transferred to plant B the cost of this material in B should automatically increase by 4% i.e. it should become USD104.
    Can somebody tell us how this can be done.
    Regards,
    Jn.
    Edited by: terrence jn on Mar 10, 2008 10:36 AM

    See thread:
    Re: BAPIs for asset transfer
    Regards.

  • Adding company code

    Is there any way to add company code to the selection screen on cost center report/t-code S_ALR_87013611

    There is no standard way to do that. What you can do though is, create a cost center groups (KSH1) for each company code and assign all the cost centers related to corresponding company codes to such group. Use cost center group/s while running the report.
    Hope this helps.
    Regards
    Subodh

  • Adding company code to SRM 07 contract

    Dear Experts,
    I am working with SRM 7.01.
    Can I work with one contract for users from different company code?
    How can i add company code to contract?
    Thank you.
    Yaron

    Hello,
    When you go to FD01 you enter first the customer account group, the customer no and the company code you want to create the customer in.
    Underneath you find the possibility to enter reference data. The combination I mean is: same customer no and other (the one in which the customer already exists) company code.
    Regards,

  • No Company Code Track in Inter Company Code Transactions

    Hi,
    When we post an inter company code transaction system generates two documents in Both company codes involved in the transaction and an internal auto generated cross company code document number. But when i view these documents i am unable to see from which company receivable is standing and two which company payable is standing. it only shows in which company code the transaction was posted but no information is being provided against line item so that we can see on which company behalf have we booked or paid the expense. we are posting inter company code transaction through f-02. is there any other specific transaction code for this? or any report or any other way to view how much from which company is recyclable/Payable standing? please also not that we are using two different g/l for inter company receivable and payable.
    Regards,

    hi ,
    Can you please post the screen shot of one of those document . IF i am not wrong you want to know that  in which company ocde it posted . YOu can  find out from the Number range and then Comapny code in Docuemnt number .( In this Trading Partner poplauted Automatically) So definately you need Tranding partner  to do intercomapny reconciliation
    IF you have Cross comapny code Transaction you will have cross comapny  docuemnt number in FB03 as below which you can see in FBU3 .
    Sometime  you do not post Cross company transaction but you post in Individual companies with trading Partner .
    in this case there will not be any cross company document .. Please check your OBYA configuration and check which GL code you have defined and whether you have maintaned the config tfor that

  • Blocking of J1IEX Transaction for particular company code

    Hi,
    I have two requirment,
    1 :  For our one company code  C011 , J1IEX transaction should not allow ,  we have one user and that user is working on different conpany code  but for particular to this company code C011,  how to block the J1IEX transaction user should not take the cenvat
    2: For the same company code J1IEX transaction is allowed  only of in Purchase order material code is  XYZ ,  otherwise for other materials materials should not come i n J1IEX  to get the cenvat benifit.
    regards,
    zafar

    Hi Zafar.
    I belive this would be an authorization issue in this case (guys on the forum pls correct me if I'm wrong).
    Maybe you should put a request for the Basis/Security management team who supports your company, informing what C.Code restrictions to add in this transaction, and for what users, so that they would find out what authorization objects to restrict.
    Regards,
    Rodrigo.

  • OBR2: Error while deleting G/L Account from Company code

    Hello,
    I want to delete some G/L accounts created for a specific company code
    using Transaction Code OBR2.
    I am giving follwing input in the screen of OBR2
    Delete G/L Account - XXXXXXX ( G/L account No.)
    With General master Data in company code - XXXX ( Company Code)
    Tick ( X) on Delete per deleetion flag only.
    When i am deleting this G/L account, i am getting an error message as
    follows:
    " Reset the number ranges if necessary" Message no. BL001
    I am not getting any Long text for this error message.
    As this is an impact on other Company codes and at Chart of Account
    level, before i do mass changes, i would like to confirm why this error
    message is coming.
    Thanking you for providing me solution.
    Regards,
    Jignesh

    Dear Jignesh,
    The program SAPF019 (trans. OBR2) is used prior to going "live" to delete customer / vendor and G/L account master data which was used during pre-production testing and is not needed in the
    Production system.
    Before using this report, please read carefully the online documentation of the report via SE38 > sapf019.
    This program is intended to delete test data prior to productive start.
    Once the production indicator is set in a company code, deletion in this company code with this program is no longer possible.
    Another option to deleting the GL master data is to use the archiving function (transaction SARA, object FI_ACCOUNT).
    Please also review the following attached note for further information:
        0013583 - General G/L account master data cannot be deleted
    I hope it helps you
    Best Regards,
    Vanessa Barth.

  • Cross-company code postings - FI validation

    Hi,
    We start using the cross-company code postings (transaction OBYA) between company code A and company code B and have to give authorizations both company codes to the Finance users. The idea is to have a set of G/L accounts which are allowed to be used when company code A and B are posted via cross-company code posting.
    SAP recommends to implement a validation in FI to restrict the Intercompany scenatios. I attempted to create a FI validation for complete document (call-point 3) with no success:
    1)
    IC Rule: BSEG-BUKRS = A and BSEG-BUKRS = B and BSEG-HKONT IN ACCOUNTSET
    Prerequisite: TRUE
    Check: IC rule
    Message: E-  Account & not allowed for cross-company postings
    When I test it, the Intercompany clearing account configured in OBYA, and which is in ACCOUNTSET, shows up in the error message, which unwanted.
    2)
    IC Rule 1: BKPF-BUKRS = '0017' AND BKPF-BUKRS = '0005'
    IC Rule 2: BSEG-HKONT IN ACCOUNTSET
    Prerequisite: TRUE
    Check: IC Rule 1 --> IC Rule 2
    Message: E-  Account & not allowed for cross-company postings
    No error message is issued at all, even if the G/L account is not in ACCOUNTSET.
    Please advise what I am missing.

    Hi Nitin,
    Thank you for your feeback.
    I just wanted to clarify that the cross-company code posting is when company code A can intitiate a posting to company code B simultaneously (for example Intercompany re-charge, cash concentration, etc.). The trigger for cross-company code posting is the company code field on the line item. If company code A is in the header (BKPF-BUKRS) and at least one document line item filled up as company code B, the system created two documents for each company code, offsetting the Intercompany clearing account, configured in OBYA.
    For example:
    Posting via FB50: Leading company code = company code A (BKPF-BUKRS)
    Item 1: Debit; G/L account 1; Cost Center 1; Amount 200; Company code A (as a default)
    Item 2: Debit; G/L account 1; Cost Center 2; Amount 100; Company code B (manually changed)
    Item 2: Credit; G/L account 2;                        Amount 300; Company code A (as a default)
    The systen creates two postings:
    Posting 1: company code A
    Item 1: Debit; G/L account 1; Cost Center 1; Amount 200;
    Item 2: Credit; G/L account 2;                        Amount 300;
    Item 2: Debit ; I/C Clearing Account;              Amount 100;
    Posting 2: company code B
    Item 1: Debit; G/L account 1; Cost Center 2; Amount 100;
    Item 2: Credit;I/C Clearing Account;              Amount 100;
    The only connection between the two is the cross-company code number (BKPF-BVORG), which assigned by the system once posted, as a logical connection.
    I guess we could use a dedicated document type. If that's the case, how would the validation work then?
    Coudl you please share more details on the BTE option?
    Thank you,
    Inna

  • Company Code not Found

    Hi Experts,
    We are using OOB webshop with CRM 2007 backend.
    When we are trying to replicate one of Transaction types to ECC, we are getting this error in order:
    +An error has occured in the system FETCLNT100 while copying the document
    Message no. CRM_ORDER_MISC 020
    Diagnosis
    Errors have occured while transferring the document into another system. Remove the error messages from the enclosed log.
    Transmission log
    Characteristics for Controlling object have errors (Notification E IAOM 034)
    Company code  is not defined (Notification E F5 165)
    Company was not supplied in Function Module interface (Notification E FI 320)
    You must enter a company code for transaction (Notification E KI 180)
    Characteristics for Controlling object have errors (Notification E IAOM 034)+
    Kindly let em know how to approach this error.
    Regards,
    Rahul

    hi,
    Error : A company code cannot be determined for LS
    This means that SAP cannot match an appropriate company code with a partner profile :-  and hence, doesn't know where to post the invoice.
    Partner Type = "LS" (Logical System)
    Partner Name = ""
    I think what you've got is message FD006 - longtext for it can be found via transaction SE91 and sounds like this:
    The system cannot determine the relevant company code since the allocation of the data transferred in the invoice is missing in Financial Accounting customizing.
    The company code can be determined outside of the system and be put into the intermediate document (for example, from the EDI subsystem). Then the company code must be put into the E1EDK14 segment and ORGID field and the value "011" used as the qualifier.
    Determine the company code for & & & in Financial Accounting customizing.
    LS  is your Logical System. So you might want to have a look at transaction OBCA where you can assign a company code name in the invoice for your Logical System.
    In the E1EDKA1 segment. there are two fields PARVW (which is the qualifer or Partner function) PARTN (partner number). The information that is sent in the PARTN has to either match the information in SAP or has to be converted.
    If the later is the case try transaction VOED.

  • Special GL or new company code

    Hi Experts,
    We are on ECC 6.0 but new GL is not activated.
    Currently there is a India company code but operating under US GAAP, now they want to roll out and use local accounting standards.
    Options are
    1. create new special ledger or
    2. create new company code for statutory purposes while retaining current company code for India for  U.S. GAAP reporting
    Which option will be more beneficial if the long term plan is to migrate to NEW GL
    Thanks,

    Hi,
    In your environment  the Special ledger is a better option. If you are creating new company code, same transaction  you have to enter in both the company codes it will require more man hours.
    Prasad

Maybe you are looking for