Excluding particular Company Code

Hi Experts,
We have Company Code as one of the selection field in the Info Package (In Data Selection Tab) . Now we need to load data Excluding one particular Company Code. Do we have any option in the Info-Package level to Exclude specific Comapny Code.
Waiting for the Prompt response as it is bit urgent..
Thanks in Advance...
XYS Redd
Regards,

Hi Reddy,
<b>Sample Code:</b>
Define a structure... like
Data : ls_range type l_t_range.
Data : l_idx type i.
Define a internal table for company codes.
Data : lt_comp like /bi0/comp_code occurs 0 wiht headerline.
--> Select company codes
Select comp_code from /bi0/comp_code into   corresponding fields of lt_comp.
--> Delete the company codes you dont want from this internal table.
Delete lt_comp where comp_code = 'XXXX'.
read table l_t_range with key
         fieldname = '<Fideld Name>'.
         l_idx = sy-tabix.
--> To delete the existing value(if any or bland value)
Delete l_t_range where fieldname = '<Fideld Name>'.
--> To Create selection
Loop at lt_comp.
l_t_range-sign = 'I' ("Include").
l_t_range-low = lt_comp-comp_code.
l_t_range-OPTION = 'I'.(Inlcude)
append l_t_range.
endloop.
<b>OR</b>
If you want to exclude only 1 company code, Using range include all by creating multiple selections in the infoObject selection Tab(No need to go for the coding, Bcoz it is not changing dynamically).
Ex: if you have company codes like 1000,1500, 2000, 3000 & 4000 and you want to exclude 3000 then
In selection
Comp_code : from(1000) - 2000(to)(include 1000,1500 & 2000).
comp_code : 4000(another selection in same infopackage).
Save the infoPackage.
Hope this Helps
Srini

Similar Messages

  • Restrict PR/PO/GR for a particular company code from particular date

    Hi Experts
    How we can restrict PR/PO/GR for a particular company code from a particular date?
    I know PR is not directly linked with company code
    PO can be restricted by deactivating the assignment between company code & plant
    GR- we can use posting period option.?
    Suggest me the best solution for the above requirment.
    Thanks/karthik

    hi
    Obvoiyusly , you can stop the company code posting by not activating the month end closing of periods (MMPV) in MM and similarly in FI ( OB52).
    By removing the assignment you can stop PO creation for the company code but you need to ensure that all the old, un-finished PO/SA and other related activities are taken care off before that.
    Regards

  • How to pass the currency of particular company code into a text variable.

    Hi
    I want to pass the currency of particular company code into a text variable.
    The company code is selected by the user using Input variable "0S_COM_M".
    I have created a text variable "ZD_CURR" with processing type customer exit.
    I have written the following abap code but its not working.
    DATA : LV_CURR type /BI0/OICURRENCY.
      WHEN 'ZD_CURR'.
        IF I_STEP = 2.
          CLEAR  XTAB.
          READ TABLE I_T_VAR_RANGE INTO XTAB WITH KEY VNAM = '0S_COM_M'.
          SELECT SINGLE CURRENCY FROM /BI0/PCOMP_CODE INTO LV_CURR WHERE COMP_CODE =  XTAB-LOW.
          L_S_RANGE-LOW = LV_CURR.
          L_S_RANGE-SIGN = 'I'.
          L_S_RANGE-OPT  = 'EQ'.
          CLEAR E_T_RANGE.
          APPEND L_S_RANGE TO E_T_RANGE.
        ENDIF.
    Pls let me know how to resolve this issue or what modification can be done to this code.
    Is there a way where we can debug customer exit code for variables.
    Thanks.

    Hi.
    You should debug your code to check behaviour of it.
    Just set external breakpoint (or create checkpoint via tc SAAB) and run your query.
    You may run query via RSRT.
    Regards.

  • Asset Claas Activate For particular Company code in Company

    Hi,
    Asset class is defined at client and how can we activate asset class for particular company code in group company how can assign the asset class for particularly one company code in group company
    Regards,
    Harish

    Asset class depends on chart of depreciation , so if you have created an asset class on lets say US chart of Depreciation, it will be available to all the companies that have US Chart of Depreciation assigned to them .
    Thanks

  • Calculate the database size for a particular company code in SAP

    Hi Experts,
    We have 30 company codes in our FI production system. So to plan another new company code to be deployed into the system, we need to know exact data capacity (database) of the previous company code that we already deployed. Kindly let me know whether it possible to calculate the database size occupied for a particular company code in a SAP system.

    >
    Kalyan Kumar Bandlamudi wrote:
    > Hi Experts,
    >
    > We have 30 company codes in our FI production system. So to plan another new company code to be deployed into the system, we need to know exact data capacity (database) of the previous company code that we already deployed. Kindly let me know whether it possible to calculate the database size occupied for a particular company code in a SAP system.
    Its not possible to calculate data size based on company code.
    By creating company code It will not occupy much space. Depends on your posting documents for particular company codes.
    Thanks
    Siva

  • Calculate database size for a particular company code

    Hi Experts,
    We have 30 company codes in our FI production system. So to plan another new company code to be deployed into the system, we need to know exact capacity (database) of the previous company code that we already deployed. Kindly let me know whether it possible to calculate the database size for a particular company code in a ERP system.

    >
    Kalyan Kumar Bandlamudi wrote:
    > Hi Experts,
    >
    > We have 30 company codes in our FI production system. So to plan another new company code to be deployed into the system, we need to know exact data capacity (database) of the previous company code that we already deployed. Kindly let me know whether it possible to calculate the database size occupied for a particular company code in a SAP system.
    Its not possible to calculate data size based on company code.
    By creating company code It will not occupy much space. Depends on your posting documents for particular company codes.
    Thanks
    Siva

  • How see, howmany internal orders are locked status- particular company code

    Hi
    Can any one tell, what table it uses to see the total number of  locked status of internal orders in a particular company code.
    Regards
    Krish

    Hi Krish
    Use SE16N on table JEST for the status I0043 (there maybe other status called "locked" that you use, for a full list see BS23 and sort the text column to see all).
    As an alternative use KOK3 to display collectively, this includes a column for the status.
    Hope this helps.
    Elaine

  • Prevent billing on a particular company code

    Dear All,
    I want to stop the billing on particular company code from certain date. What would be the best way to do it. The requirement is not through authorisation or through blocking the customers/payers.
    The billing F2 sahll be still to be used for other company codes
    Reg
    CD

    If the date happens to be month-end then close the FI and MM period for all subsequent periods for the particular company code.
    Closing MM period will block creation of delivery (PGI) and hence billing.
    Closing FI period will block posting billing doc to FI.

  • Authority-check for a particular company code

    Hi,
       I need to check authorization for a particular company code.In my bdc call transaction program i'm fetching mass data from excel file and for every record i've to check the company code field.If the company code is not the required one then that record should not be processed.
      So before filling the bdc data i wrote like
    LOOP AT gt_inrec INTO gs_inrec.
         AUTHORITY-CHECK OBJECT 'F_BKPF_BUK'
                   ID 'ACTVT' field '02'
                   ID 'BUKRS' field '2800'.
        IF NOT sy-subrc = 0.
          MESSAGE e058(zz) WITH gs_inrec-bukrs.
          EXIT.
        ENDIF.
         PERFORM fill_bdc.
      ENDLOOP.
    but it is not exiting for different company codes and is allowing records with all company codes.
    can anybody pls tell me how to rectify this?
    thanks in advance,
    poornima

    I need to perform authority check on the field NAME1 present in the standard screen - customer master ( T.Code-XD02). Only certain users should be allowed to edit the field and others should be restricted.
    I have created a field exit FIELD_EXIT_AD_NAME1 for the ADRC-NAME1 field.
    Now inside this field exit i need to write the authority-check code.
    I have created the authorisation object Z_KNA1_NAM for the field NAME1 using the SU20 and SU21.
    For this scenario how do i write the authority-check code in my field exit?
    Below is my field exit code,is that correct?
    FUNCTION FIELD_EXIT_AD_NAME1.
    ""Local Interface:
    *" IMPORTING
    *" REFERENCE(INPUT)
    *" EXPORTING
    *" REFERENCE(OUTPUT)
    AUTHORITY-CHECK OBJECT 'Z_KNA1_NAM'
    ID 'NAME1' FIELD SY-UNAME
    ID 'ACTVT' FIELD '03'.
    IF SY-SUBRC = 0.
    MESSAGE 'Not Allowed to Edit the Name 1 Field' TYPE 'E'.
    ENDIF.
    ENDFUNCTION.
    In the above code i have given SY-UNAME in the code line 2 - ID 'NAME1' FIELD SY-UNAME ,is that correct? what should i give there?
    Please help me on this issue.
    Cheers,
    P.S.Chitra

  • Defaulting document types for a particular company codes.

    Dear All,
    Is there a way to default certain document types to particular company codes, so that when ever if we enter that particular company code then automatically the default document types has to come. I tried to check for configurations but could not. Please let me know how to achieve this scenario.
    Regards
    Srikanth

    Hi,
    No, does not seem possible to me without development...
    Regards,
    Eli

  • How to block postings for particular company code ?

    Hello All,
    I have a scenario like FI document shouldn't generate automatically when I invoice with reference to order/delivery document.
    Just I want only Invoice number but not FI document (It should park instead of creating automatically) for particular company code among all and later I will create manual FI document with reference to that Invoice.
    Existing solutions:
    1.Can control in document functionality but I am using single document for all company codes
    2.Can control using FD02 transaction but I have many customers
    Please suggest any new solution other than above.
    Regards,
    Gangadhar

    Hi,
    Please check the below thread:-
    Re: VF01: Prevent document posting in FI via user exit
    It should be useful in your situation.
    Regards,
    Gaurav

  • 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.

  • 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.

  • Unable to clear customer line items for a particular company code

    Hello,
    For a certain company code, even though open items are present for some customers, i am unable to clear them using F-28 or F-32.I am getting the message 'No open item exists', Anyone come across this scenario before?

    Hi:
             Make sure you are giving proper selection criteria for the processing open item. May be the items are Special GL based transaction so you need to select special GL indicator to process open item. Please also refer to OSS Note 136754 - F-03, F-32, F-44, F-28 missing open items. Hope this will help you.
    Regards

  • Passing validation(ob28) for particular company code at the time of posting

    Hi Gurus,
    My business requirement is creation of new company code for recalculation of accrual amount. where in these recalculated amount will be posted to new company code, however we had defined some validation (ob28) for document posting. so my query related to is it possible to pass all the validations for this new company code  at the time of posting?
    your response will be highly appreciated
    Thanks & Regards,
    Jamuna

    Hi,
    My requirement is to create new company code, and whenever the document will be posted during the posting whatever validations has been defined with respective to document posting should be restrict for new company code.
    so wheneever business will try to post the document for new company code all the existing validations will be by pass for document posting.
    Thanks,
    Jamuna

Maybe you are looking for

  • Package install date [SOLVED]

    In Ubuntu, I could find in /var/log/dpkg a list of all package related operations on the system, most importantly installations and removals of packages. How can I find the date when a package was installed on my arch system, or, even better, all dat

  • Slideshow in javascrip using coldfusion

    here is my slideshow code: <cfquery name="slideshow" datasource="#dsn#"> SELECT imagegall.img_thumb, imagegall.description FROM imagegall ORDER BY category ASC </cfquery> <script language="javascript1.2" type="text/javascript" runat="server"> <!--- S

  • Sticky anchors

    Not that I can understand a single word of it, but a recent Muse Site of the Day is INFO The page seems to have sticky anchors – as you scroll it snaps to the next anchor. As this is allegedly built in Muse I would like to be enlightened ...

  • IPhoto won't let me get to my Events. It is stuck in a slideshow.

    I opened a slideshow and now I cannot figure out how to get to a view of my events. I have tried quitting the application and reopening it, but it always opens the slideshow. I will also note that I am using iPhoto '08.

  • Is this a firmware problem or a physical problem with my ipod.

    Sometimes i get the famous error -48. Sometimes it syncs fine. Sometimes im playing a song and the next song wont play at all..i skip to the next (shuffle mode) and it doesn't play either. THEN the next one plays fine and i can go back one song and i