How to put validations for Bank Gl accounts

Dear Gurus,
I have a requirement, where i want to make Profit center mandatory for the Bank Debits only.
Can you please suggest if my below written Validation would be useful  in this respect.
Please correct my coding also. As i am doing validation for first time.
My working in Validation at line item level is :
Prerequisite: BKPF-BURKS = "ABCD"
Check : BSEG-BSCHL = 40 and BSEG-HKONT = "xxxxxx" to "yyyyyy"
Message: Please enter profit center.
regards
NJP

Hi,
You can acheive it in  2 ways.
1. (GL account >= xxxxx AND <= yyyyy)
or
2.  Create a set for GL account using t-code GS03 and use as -
GL Account in <set name>
Regards,
Sridevi

Similar Messages

  • How can I put validation for JTextField when gotfocus and lostfocus

    Hi,
    How can I put validation for JTextField when gotfocus and lostfocus ?
    Thanks
    Wilson

    You add a focusListener to the control you wish to monitor. In the focusLost() handler you do whatever, in the focusGained() handler you do whatever.

  • G/L Account for Bank Clearing Account

    Hi:
    Quick question: when we post TBB1, Treasury creates payment requests (table PAYRQ) with entries in field BKHBK, data element PRQ_BKHBK. This field is normally empty and F111 should pickup corresponding GL account from T042Y (FBZP: Bank Determination). But in our case, because Treasury passes this account during TBB1, it's being picked up and conflicting with T042Y.
    So my question is: how do I deactivate Treasury to not pass this account to payment request? Or how do I change it's value within treasury so it would match with Bank Determination value?
    This field in PAYRQ is called G/L Account for Bank Clearing Account.
    Thanks,
    JS

    Yes, it does not post to GL but it does identify Bank Clearing GL account when it's posted which is recorded at BKHBK field of PAYRQ. F111 gets 'confused' and throws error message when this value does not match with corresponding entry in T042Y. How to deactivate it?
    Other way of solving this problem would be if I can identify separate Gl account for incoming and outgoing payments bank clearing account. I know it's defined in Account Determination (table TRACV_ACCSYMBREP). It's Account Symbol 3 (Bank Clearing). There we have masked GL account as "++++3". This account is used for clearing of incoming payments. And for outgoing payments we use "++++5"
    Thanks,
    JS
    Edited by: JSmithYahiya on Jan 19, 2012 5:46 PM

  • How to write Validations for Sample Data??

    Hi Frnds,
    I want to know how to write validations  for sample oracle data?? Can anyone explain anyone clearly??
    Regards,
    Raj

    Hi shushma,
    Simply put a check that:
    If(wdContext.current<YOUR_NODE>Element().get<YOUR_ATTRIBUTE_NAME> !=null){
    else{
    // Show the error messages
    //Displaying the error message is very easy.
    //You can report exception using the message manager API's. You will get this easily on SDN.
    I hope this helps! if you need ay further help please let me know.
    Thanks and Regards,
    Pravesh

  • How to write Validations for RadioButton

    Hi All,
    in my Application , two RadioButtons and one submitbutton is there, in that
    1. yes
    2. no
    both are radio buttons
    when i click on submit button, without selecting any one of those radiobuttons ,
    it shud display error message, this errormessage i have written in iwdmessage.
    it shud show this error message, instead of displaying nullpointer exception.
    how to write validation for this.
    please help me.
    regards
    sush

    Hi shushma,
    Simply put a check that:
    If(wdContext.current<YOUR_NODE>Element().get<YOUR_ATTRIBUTE_NAME> !=null){
    else{
    // Show the error messages
    //Displaying the error message is very easy.
    //You can report exception using the message manager API's. You will get this easily on SDN.
    I hope this helps! if you need ay further help please let me know.
    Thanks and Regards,
    Pravesh

  • How to do validations for select-options

    Hi gurus,
    can you suggest me
    how to do validations for select-options
    Thanks&ragards,
    Kals.

    HI,
    TABLES: BKPF.
    TYPES: BEGIN OF TY_BKPF,
           BUKRS TYPE BUKRS,   "COMPANY CODE
           GJAHR TYPE GJAHR,   "FISCAL YEAR
           MONAT TYPE MONAT,   "FISCAL PERIOD
    DATA: T_BKPF TYPE TABLE OF TY_BKPF,
          W_BKPF TYPE TY_BKPF.
    SELECTION-SCREEN : BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS: S_CODE   FOR BKPF-BUKRS,
                    S_YEAR   FOR BKPF-GJAHR,
                    S_PERIOD FOR BKPF-MONAT.
    SELECTION-SCREEN: END OF BLOCK B1.
                        AT SELECTION-SCREEN                           *
    IF S_CODE IS INITIAL OR S_YEAR IS INITIAL OR S_PERIOD IS INITIAL.
      MESSAGE E000(0) WITH 'ENTER VLAUES'.
    ENDIF.
    SELECT SINGLE * FROM BKPF WHERE BUKRS IN S_CODE.
      IF SY-SUBRC <> 0.
      MESSAGE E000(0) WITH 'ENTER VALID VALUES'.
      ENDIF.
    reward if useful
    thanks and regards

  • How to Put Legend for Multi Series Stacked Graph...?

    Hi Experts,
    Please guide me how to put Legend for Multi Series Stacked Graph...?
    Its very URGENT...!!!!
    Thanks in advance...
    Regards,
    Manoj

    I searched the forum using "jcombobox multiple columns". The first posting I read had a link to a posting with 4 different solutions.
    Why is it so hard to search the forum before posting a question????

  • How to put condition for one date range should not interfear with another ?

    hi friends,
    how to put condition for one date range should not interfear with another  date range.
    my data base table has two fields
    from date
    to date.
    when we enter the date range in the data base , new date range means from date and to date should not interfear.
    can  anybody help me.
    thanks &Regards,
    Revanth
    Edited by: rk.kolisetty on Jul 1, 2010 7:18 PM

    Do it the SAP way....
    First entry...from is today, to is 99991231.
    New dates entered, now we have two rows...:
        from is original date  to becomes yesterday.
        From is today          to is 99991231

  • DTW FORMAT FOR BANKING ( On account Transaction)

    Dear Experts
                             Can any one send DTW format for Banking On account Transaction . i want to upload bank charges
    Regards
    Shihabuddin CC

    Hi Shihabuddin,
    I hope you are on the latest patches having the new DTW templates. DTW Templates
    For Outgoing Payments
    OVPM - Outgoing Payments (DocType is A for Accounts)
    VPM1- Payment by Checks, VPM3 - Payment by Credit card
    VPM4 - Payment_Accounts
    Incoming Payments
    ORCT - Outgoing Payments (DocType is A for Accounts)
    RCT1 - Payment by Checks, RCT3 - Payment by Credit card
    RCT4 - Payment_Accounts
    all the above three templates will need to be imported in one go.
    If you open the templates the comments will help you know the required fields
    Regards,
    Rakesh N

  • Validations for G/L accounts and Cost Centers!

    Help!!!
    I need to create bunch of validations:
    Ex. If account is 12345  - then is can be posted to only cost center XXX, YYY, ZZZ, BBB...
    If G/L account is 33333 - then it can be posted to cost centers AAA and BBB...
    There are different rules for 137 accounts.
    Here are the questions:
    1. Is it all one validation and 137 steps or are these all different validations?
    2. How can i limit one G/L to many cost centers? What is the formula? It doests let me post If account is 12345 then check cost Center XXX OR YYY OR ZZZ OR....
    It lets me post "OR" only one time.
    Do i need to create a Set for each validation from GS01? or is there any easier formula?  - It is not the range of cost centers, they are just random!
    Please help!!!!!!!!!!!!!!!!!!!!

    I did exacly that!
    I created a SET.
    Then i went to validation and said preriqisites  - account "XXX"
    Check Cost center IN SET
    Message - Error
    I attached my validation to my company code and put it as Active in OB28
    I even ran the program RGUGBR00 to activate all the sets and validations...
    Now i test it and it is still posting to any cost center.
    What did i miss?

  • How to minimize GL for bank?

    Hi,
    I need your advice. My company have many bank account and also my subsidiaries.
    At present, we put the bank account number in the GL account text such as
    GL 100100  Bank Standard Chater # 43212 
    This means that it's the standard charter bank and bank account number is 43212.
    As you can see that the name is too specific and if my subsidiaries have Standard Charter as well.
    We have to create new GL account such as
    GL 100200  Bank Standard Charter # 78621
    Our subsidaries can not use the same GL account as their parent because the GL name is too specific.
    From this problem, we have lots of GL account for bank.
    My question is how can I decrease the number of GL account for bank for my subsidiaries?
    And if I'm naming the GL account generally such as
    GL 100100 Bank Standard Charter # 1
    Users can't search that bank 43212 is belong to which GL. How they can search the bank account number and
    the system can automatically choose the correct GL account for them.
    Thanks a lot,
    Puengko

    Hi,
    I need your advice. My company have many bank account and also my subsidiaries.
    At present, we put the bank account number in the GL account text such as
    GL 100100  Bank Standard Chater # 43212 
    This means that it's the standard charter bank and bank account number is 43212.
    As you can see that the name is too specific and if my subsidiaries have Standard Charter as well.
    We have to create new GL account such as
    GL 100200  Bank Standard Charter # 78621
    Our subsidaries can not use the same GL account as their parent because the GL name is too specific.
    From this problem, we have lots of GL account for bank.
    My question is how can I decrease the number of GL account for bank for my subsidiaries?
    And if I'm naming the GL account generally such as
    GL 100100 Bank Standard Charter # 1
    Users can't search that bank 43212 is belong to which GL. How they can search the bank account number and
    the system can automatically choose the correct GL account for them.
    Thanks a lot,
    Puengko

  • HT5624 How can I change my bank card account

    Please how can I change my bank card on iTunes

    Hello R9pato,
    There are two options to take care of changing the credit card information. One through iTunes and the other is on your iOS device.
    iTunes Store: Changing your payment information
    http://support.apple.com/kb/ht1918
    Changing your payment information using a computer
    Open iTunes.
    Choose Store > Sign In.
    Enter your Apple ID and password and click Sign In.
    Choose Store > View Account.
    Enter your account password and click View Account.
    From the Apple Account Information page, click Edit to the right of Payment Type.
    Note: You can find the payment methods that the iTunes Store accepts in the Payment Type section. If you don't want a payment method on your account, select None in the Payment Type section.
    Click the Done button after you've updated all of your information.
    Changing your payment information using an iOS device 
    Tap Settings on the Home screen.
    Tap iTunes & App Stores.
    Tap your Apple ID. (If you aren't signed in, enter your Apple ID and password and tap Sign In.)
    Tap View Apple ID.
    Enter your Apple ID password.
    In the Edit section, tap Payment Information.
    Update the information that you want to change.
    Tap the Done button when you're finished.
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • "Open Item Managed" for Bank GL accounts

    I am trying to tell my users that they should set the bank GL accounts (not the bank clearing account) as "open item managed".  Our users have been clearing the bank accounts down to make it exactly the same as the bank statement.  All the SAP Helps and manuals suggest that bank accounts shouldn't be open item managed.  But what is the implication?  Is there any auidt issue?
    Thanks

    Hi
    The main Bank Account is the GL Account that is used for all the accounting transaction by default including the payment transactions. Bank Sub Account is used as a clearing account for payment transaction to track the payments that are not yet cleared by the bank. It would not make sense to make the main Bank account Open Item managed from accounting perspective. This account will come into picture when actual clearing happens and gets confirmed from the Bank.
    It may not be an Audit related perspective.
    Anuradha Ambekar

  • How to put validation between attributes at View Object level in BC4J

    Hi,
    Is it possible in BC4J to put validation between attributes at View Object level?
    I know that I can do it at Entity Object level in validateEntity method, but I have several View Objects connected with one Entity Object and don't want to have the same validation logic for all View Objects.
    Thanks for any help!

    It returns errorWhat error does it return?
    John

  • Validation for profit center accounting

    Hi
    while posting FI document without profit center end user should not post the document , for that i need create one validation in PCA pls help me how to create validation. and also i need to get pca balance sheet and profit and loss where business area is not activated .
    thanks and regards
    sekar

    Hi,
    You do not have to create a validation for that. Just define the field status for your G/Ls (OBC4) that profit centre is a mandatory field.
    Regards,
    Eli

Maybe you are looking for