Block Manual JE  for particular accounts

Hi all,
I need an SP where i can block any manual JE if the inventry accounts are selected. This is the query that i have but it returns errors;
IF @transaction_type = 'A' AND @object_type = '30' 
BEGIN
if exists(Select '141010','141020' from [dbo].[JDT1] T0
Where T0.BaseEntry IS NULL
   AND T0.DocEntry=@list_of_cols_val_tab_del)
begin
     SELECT @error = 1, @error_message = 'Manual JE for these accounts not permitted  !'
end
END
Please assist.
Thanks,
Joseph

Dear,
Try this:
IF @transaction_type = 'A','U' AND @object_type = '30'
BEGIN
if exists(Select T0.Transid from dbo.JDT1 T0
Where (T0.Account = '141010' or T0.Account=' 141020' )
AND T0.Transid=@list_of_cols_val_tab_del)
BEGIN
SELECT @error = 1, @error_message = 'Manual JE for not permitted '
END
END
Hope this will solve your problem.
regards,
Neetu

Similar Messages

  • Can we block a material for particular storage location ?

    We can allow material to storage locations by MMSC. Can we block a material for particular storage location ?
    Please share ur view.

    Hi,
    If you want a material to be blocked, go to the Basic data 1 view of the material,there in the genral data you have " X-plant material status ". Also in Cost estimate 1 view of the material you have Plant Specific Material status. Use the options available to block the material in these two views.
    Also u can goto MM06 where put material,plant,storage location.When u select enter just tick the check box of material,plant and storage location and save it.
    Pls reward if found useful.
    Regards,
    Indranil
    Message was edited by:
            INDRANIL BHATTACHARYYA

  • Is it possible to tell the system asking the CI entry for particular account only?

    hi experts,
    through OBD4 (G/L Account Group - change field status) i have suppressed the Commitment item field status as well as in OBC4 (Field status variants) suppressed the commitment item field status.
    but when i tried to post accounting doc to other expense account which has the suppressed commitment item settings, system still asking for commitment item.
    the error message is "No commitment item entered in item 00001 xxxx xxxxxxxx"
    using FMDERIVE and maintain the account accordingly, no more error comes.
    question:
    - does it mean the commitment item (CI) check control designed at Company / Controlling area level?
    - is it possible to tell the system asking the CI entry for particular account only?
    kindly advise
    regards,
    robiton

    hi Eli,
    thanks for the input.
    with PSM-FM is activated along with its relevant settings, the posting to accounting transaction requires commitment item.
    hence, for non-budget relevant account i created separate commitment item (non budget purpose) with suitable Comm. Item Category & Finance Trans. and maintain the derivation.
    it gave me the expected result for checking budget in particular account.
    regards,
    robiton

  • Blocking a materila for particular valuation type

    We have a requiremenet where the user need to block the materila for  a particular valuation type ,like if a mterila is maintained for different valuation types and he want to block the materila for one valuation type and system shouldnt allow to create a purchase order for that valuation type.please suggest.

    Hi
    Any pointers on this would be helpful.
    Regards,
    Santosh

  • Block cost center for overhead account

    Dear Experts,
    My user would like to block the cost center for overhead account, gl account number 3xxxx.
    My question is, should the cost center blocked to be changed to other account? If yes, where to change the setting/configuration for overhead account to cost center? And what is the effect for this changes.
    Kindly advice.
    Thank you in advance.

    Hi,
    In KS02 you can block the cost centre for secondary postings only, if this is what you mean by 'overhead' accounting. In OKB9, you set a default of a cost object for G/L account. If you want to block the postings to cost centre completely, obviously, you will have to change the default to other cost centre. Otherwise, you will be receiving errors when trying to post to the account in question. The impact of the change will be, that every new posting to this account will be done with a new cost centre.
    Regards,
    Eli

  • Blocking storage location for particular material

    All SAP Gurus,
    Can we block the storege location for particular material.
    Regards,

    Block Storage Location from further posting
       You can block the storage location of a material without affecting the rest of the location using the same material.
        Create a Physical Inventory document for the storage location with transaction MI01
        Select the Posting Block checkbox.
        This would prevent transactions from occuring until you either post or delete the physical inventory document.
        (There are no impact, unless you do a post difference for the physical inventory document.)

  • LinkTax Code for particular Account Assignment

    Hi Gurus,
    Does anybody knows if is possible assign a particular Tax Code, depending on which account assignment I selected?
    For Example, if I select Account Assignment A, the system assign Tax Code I1.
                        if I select Account Assignment K, the system assign Tax Code E1.
    I really apprecciate your help.
    Regards,
    Hector.

    HI
    have you assigned the tax codes for your country, i mean go to SPRO - fianancial accountingnew- financial accounting global settings-taxes on sales and purchases and check tax codes for sales and purchases it will be specific for your country and assign tax codes.
    then go to the tab posting and there you can assign the tax codes for your account assignment category. this is done with respect to the chart of accounts.
    hope this helps.
    Regards
    Vignesh

  • Block manual GR for STO

    Hi,
    There is a customized document type defined for Transport Sch Agreement.
    Against TSA on such document type, though outbound delivery is not done, system is letting do GR manually with referece to Purchase Order (MIGO etc) even though the stock in transit is "0" and also it will accept any dummy value entered for "delivery number".
    How to customise this document type so that it will only GR with reference Outbound Delivery number?
    Regards,
    Prathap

    hi
    try coping t code MIGO to ZINN
    now go to spro>mm>inventory mgmt>setting for enjoy transaction >setting for goods movement>setting for transaction and ref doc >
    here copy the entry of MIGO to ZINN and then click transaction
    events here select only gr  untick all other options
    then select gr and click on ref doc >here only activate outbound delivery
    then use this code for GR for STO restrict ur user to use it
    i havent tryed it so try and revert back
    regards
    kunal

  • Block Storage location for particular material

    Hi,
    We gave defined storage location for finished product as follows>
    1050 - 2-8°
    1040 - RT
    When I have created one material, wrongly i have created it in 1050 instead of 1040.
    Then i have extend that material to 1040. Now that material is showing both storage locations.
    Is it possible to block storage location 1050 for this material only?
    Because of both SLOC thre are chaces of wrong receipt in 1050.
    Pl. help me to solve this problem.
    Gkude

    Dear Mr. Kunal,
    I have flagged storage location for deletion but till for this storage location system allows receipt also system allows stk. transfer in this location.
    Pl. help me so that storage location is permanently deleted from the material or system not allow for GR.
    Hope for your reply.
    Gkude

  • Block Customer for Particular Storage Location

    Hi.
    I want to Block a Customer for Particular Storage location.
    ie plant 1000(St Loc 01,02)
       plant 2000(St Loc 03,04)
    Block Customer XYZ for Plant 2000 & Sto Loc 03
    is this possible?
    Reg.
    Amol

    Through standard settings, this is not possible.  Try with USEREXIT_SOURCE_DETERMINATION (MV45AFZB) where you have to define the storage location and the customer code.
    thanks
    G. Lakshmipathi

  • FM Period Closing for Particular Fund and Fund Centre

    Dear Expert,
    Can we block the FM period for the particular Fund/Fund Centre instead of opening it for particular account assignment and values ?
    Regards,
    Prad Pat

    Hi,
    Not by standard means. FM standard functionality allows to open periods not to block them. So, indirect blocking will be realised when you open periods for all combinations except for the one you want to block.
    If it is front end FI documents which will be posted for this FM assignment, the easiest way to block them would be writing validation in FI.
    Regards,
    Eli

  • Want to block purchase accounting for particular ITEM GROUP? is it possible

    want to block purchase accounting for particular ITEM GROUP? is it possible

    Hi Sahil......
    That is not possible. You can not block purchase account for any case.
    It is standard and set at Company Level........
    Regards,
    Rahul

  • Living in Dubai where many apps are blocked. How can I get around ? Tried to create a new Id but my billing address in Dubai will not match the criteria for an account in the US. Help please to get around the censorship...thnaks

    Living in Dubai where many apps are blocked. How can I get around ? Tried to create a new Id but my billing address in Dubai will not match the criteria for an account in the US. Help please to get around the censorship...thanks

    The censorship in regards to certain apps not being available in your country is by your country, not by Apple.
    Due to various laws and licensing in each country, in order to have an iTunes store account in a particular country you must have a credit card with a billing address in that country. If this were up to Apple, there would be no such requirement and there would be only one iTunes store for the entire world, but various laws, regulations, and licensing issues in each country, this is required by Apple.

  • Block manual stock removal  for a storage type

    Hi,
    Is there any configurational setting where in we can block manual stock removal (i.e creation of TO with mvt type 999) for a particular storage type.
    Thanks
    Prakash

    Hi,
    Try using the transaction LS05, give the storage type and the bin range to block all the existing bins.
    But i am not sure if there is any setting at the movement type level.
    Aktar

  • How can I undo manual syncing for all three of my apple devices on one Itunes account?

    Recently I attempted to create manual syncing for my 3 devices on an itunes account. I didnt really know what I was doing, and now have nothing on one device. How can i restore itunes to normal again?

    Open itunes, connect device, select what you want, sync.

Maybe you are looking for

  • Please Help me Out APPLE TEAM :(

    Hi, I recevied an iPhone 5 as a gift in the month of january from my friend from US. Am in INDIA and am using it in INDIA only. It was perfectly working fine until i upgraded it to ios 7 beta version through a third party. i saw one of my fried doing

  • Do not show total price of po in pdf print out

    Dear expert, i am going to make a print out of po but in po it shows item wise value, but not show total price at the end of item,this problem is particularly for this po only. please help to solve this issue

  • BPM in SolMan

    Hello, We currently have completed implementation using SolMan and gone-live. From the operational side of things we have set up EWA and Maintenance Optimizer in our SolMan. We are planning to implement Business Process Monitoring (BPM) functionality

  • Where is the free realplayer?

    I've used RealPlayer for years running OS 9 & Panther. Recently I downloaded RealPlayer running Tiger and it worked for about 3 weeks. It suddenly stopped working. I searched for the free RealPlayer and downloaded same. In reading thru the agreement

  • ACR 4.4.1 does not open TIF file from bridge (CS3)

    Hi, I have the preferences in CS3-Bridge and ACR set to open JPG & TIF files in ACR and not CS3 but when I click on a TIF file in bridge it opens in PS CS3 instead. These TIF files were generated by a GUI interface for ENFUSE which is an algorythm th