How to control Doublicate Entry while creating GL Master

HI every one,
Can any one let me know, how to control Doublicate check while creating GL Master. And also for AR and AP if possible.
Thank you
Satish

Hello Satish,
You can implement the logic to control duplication of G/L Master records either in
a) Function Exit EXIT_SAPMF02H_001 available within the SMOD enhancement SAPMF02H
b) P/S BTE 00002310 (Master Record G/L Account: Save)
The logic would be to identify if G/L Accounts with same Short/Long Texts already exist in the Company Code.
Hope this resolves your problem. Please reward points.
With Regards
Vijay Gajavalli

Similar Messages

  • "How to pass classification characteristics while creating batch" ?

    Hi,
        I am using FM's BAPI_BATCH_CREATE/CHANGE while creating/changing batch I have to maintain classification data aswell.But in FM docu i saw as shown below
    1.Create the classification of a batch in the background (object characteristics only)
    2. If the batch is to be classified, you must specify a class in the BatchControlFields parameter. Only single classification is possible.
      According to above statments I have passed class name in Batch Control Fields but I am unable to find " How to pass classification characteristics while creating batch". Please tell me how to pass classification characteristics in background?
    Edited by: Vijay Babu Dudla on Dec 16, 2008 3:24 AM

    Hi, You can update classification for a batch using the following code.
    But first, you'll need to find out that the batch management is cross-plant or plant dependant.
    If it is cross plant then plant(WERKS) is not part of the key to BAPI_OBJCL_CONCATENATEKEY.
    CLEAR: objectkey, objectkeytable, objectkeytable[],
               allocvaluesnumnew, allocvaluesnumnew[],
               return.
        objectkeytable-key_field = 'MATNR'.
        objectkeytable-value_int = matnr.
        APPEND objectkeytable.
        objectkeytable-key_field = 'CHARG'.
        objectkeytable-value_int = charg.
        APPEND objectkeytable.
    * Only if Batch management is Plant dependant
        objectkeytable-key_field = 'WERKS'.
        objectkeytable-value_int = werks.
        APPEND objectkeytable.
        CALL FUNCTION 'BAPI_OBJCL_CONCATENATEKEY'
          EXPORTING
            objecttable    = objecttable
          IMPORTING
            objectkey_conc = objectkey
          TABLES
            objectkeytable = objectkeytable
            return         = return.
        allocvaluesnumnew-charact = "characteristic name goes here".
        allocvaluesnumnew-value_from ="characteristic value goes here".
        APPEND allocvaluesnumnew.
        allocvaluesnumnew-charact =  "characteristic name goes here".
        allocvaluesnumnew-value_from =  "characteristic value goes here".
        APPEND allocvaluesnumnew.
        CALL FUNCTION 'BAPI_OBJCL_CHANGE'
          EXPORTING
            objectkey                = objectkey
            objecttable              = 'MCHA' " MCH1 in case of cross-plant batch management
            classnum                 = classnum " Classification class number, as used in MSC2N
            classtype                = classtype " Classification class type, as used in MSC2N
    *   STATUS                   = '1'
    *   STANDARDCLASS            = STANDARDCLASS
    *   CHANGENUMBER             = CHANGENUMBER
    *   KEYDATE                  = SY-DATUM
    *   NO_DEFAULT_VALUES        = ' '
    * IMPORTING
    *   CLASSIF_STATUS           = CLASSIF_STATUS
          TABLES
            allocvaluesnumnew        = allocvaluesnumnew
            allocvaluescharnew       = allocvaluescharnew
            allocvaluescurrnew       = allocvaluescurrnew
            return                   = return
    * Do not forget to commit, otherwise changes would not take effect.
    commit work.
    Regards,
    Hashir Ahmed

  • How to give network path while creating oracle directory.

    I have created
    CREATE OR REPLACE DIRECTORY TESTDIR AS '\\168.176.33.117\TESTDIR';
    but through this path i m not able to create text file.
    create or replace procedure WriteTest is
    f utl_file.file_type;
    s varchar2(200) := 'this is some info';
    begin
    f := utl_file.fopen('TEST2DIR','sample2.txt','W');
    utl_file.put_line(f,s);
    utl_file.fclose(f);
    end WriteTest;
    Help how to give network path while creating oracle directory.
    --when i give local machine path then it will create at local machine where oracle is installed. but not able to create at other machine.
    Zakir

    Well for starters your directory object is called TESTDIR and in your fopen statement you are referring to TEST2DIR.
    On top of that I'm not sure oracle is happy to refer to network locations. I think you have to map it to a regular drive mapping (shared directory) type path. Can't say I've every tried to do it though.

  • How to add image file while creating addon...pathsetup?

    Hi friends,
    i have a problem while creating addon.
    while creating addon we can add all the files(.vb,xml).but if i add image files(.bmp,.jpg)they are not displayed in runtime.
    --how to add image file while creating addon..?
    we are useing SAP Business One 2005A(6.80.317)SP:01 PL:04

    Somebody knows like I can indicate to him to a button that I have in a form, that accedes to the image in the route where will settle addon? I have this, but it does not work to me
    oButton.Image = IO.Directory.GetParent(Application.StartupPath).ToString & "\CFL.BMP"

  • Error message AA119 while creating asset master through AS01

    Hi
    while creating asset master (AS01), i am getting following error:-
    Depreciation key M003 not allowed (Check your entry)
    Message no. AA119
    Diagnosis
    Depreciation key M003 is not defined.
    System Response
    Processing is terminated.
    Procedure
    You have the following choices:
    Use a defined depreciation key (use input help).
    Define a depreciation key in Customizing ("change" pushbutton) and activate the key.
    I have done following in configuration:-
    1) No change in base method
    2) copied multi level method from standard key "011" to "M03" and maintain vlaue as - Acquisiton year - 9999, Years - 999, Validity period in month - 12, Base value key as - 01and depreciation % as 10
    3) No change in Period Control Methods
    4) Copied standard depreciation key "GL20" as "M003" and maintain the multilevel method as "M03"
    5) save the configuration
    6) Activate the depreciation key by selecting depreciation key and clicking on Activate button on top of the screen
    7) Import the configuration
    now while creating asset, depreciation key M003 is appearing in drop down list but getting above error. but if I tried with depreciation key GL20 (which is standard depreciation key) system accepting the input
    In target client, depreciation key display in Active stage.
    please revert if anybody has any clue to come out from above problem.
    Regards
    DD

    Dear All Foram members
    Thanks for your response.
    I got the solution and now problem has been resolve.
    Initially i have maintain Scrap Value as Default Value from Company code and Depreciation Area in Depreciation Key  (AFAMA) and I was getting the error. But now I have change the Scrap Value as CutOff Value is ignore and problem gets resolve.
    But still do not understand the relation between the erro and Scrap Value assignment. Any Idia. It will be helpful for other members also.
    Thanks Pankaj, Madhu and Paul...........
    Regards
    DD

  • While creating customer master  i am getting the Communication error

    Hi experts,
    while creating customer master  i am getting the  Communication error with the external tax system (VERTEX_MS0018)    please tellme how to solve this issue
    Regards,
    Anil prasad
    Edited by: prasadanil on Sep 16, 2011 12:52 PM

    hI Prasad,
    It seems you are maintaining the address data for a country with jurisdiction code. Different external control systems can behave in different ways.
    1. You entered a jurisdiction code that matches the postal code but not the city (possibly due to a typo).
    a) Behavior when you use Taxware: There is no message and data can be saved.
    b) Behavior when you use Vertex: Due to the incorrect city, no comparison jurisdiction code can be determined and message TAX_TXJCD861 is issued with a text from the vertex system that may be unintelligible.
    2. You do not enter a jurisdiction code, but you do enter a postal code and a city that does not match the code (possibly due to a typo).
    a) For Taxware: If the jurisdiction code could not be explicitly determined, a selection dialog box containing the relevant tax jurisdiction codes for the postal code appears. You select one. This and the corresponding city are transferred.
    b) For Vertex: The TAX_TXJCD861 message is issued (behavior as in 1b). Other terms TAX_TXJCD861, TAX_TXJCD101, TAX_TXJCD107.
    For resolving this issue, you can check SAP Note 677850 - Address data: Check/new determination jurisdiction code.
    Hope you will resolve the above issue with these inputs.
    Let me know if you need any further details.
    Ravi.

  • Hiding Reference Fields While creating Customer Master

    Hi,
    I want to Hide Reference fields While creating customer master, Thanks in advance
    Thanks
    seshu

    Hello,
    No need of screen exits or ABAPer.
    You can easily do it with Transaction Variant using T-Code - SHD0 (SHD zero).
    If you dont know how to create a Transaction Variant, just search the forum with Date Range "All" & you will get lot of guidence.
    You will just need help of Basis person for removing end-user's authorization for XD01 & giving authorization for (e.g.) ZXD01
    Hope this helps.
    Thanks,
    Jignesh Mehta

  • I want validation while creating material master with profit center

    Dear Experts,
                           I want validation while creating material master with profit center.
    If 0001 plant having 100100 profit center
       0002 plant having  200200 profit center
    Material A cant be created for 0001 plant for with wrong profit center 200200.
    Kindly help & provide me solution clearly

    Hi,
    Profit centers are assigned to controlling areas. And controlling areas can have many plants under them. So as long as both the plants and profit centers are in the same controlling area users will be able to extend the materials.
    You should put in your validation control in the material master user exit. One of the exits you can use is
    MGA00001  Material Master (Industry): Checks and Enhancements
    Thanks & regards
    Hameed Parvez

  • Error Message no. MM214 while creating material master

    Hi folks!!
    While creating material master, when i fill the MRP controller field and press enter, I get the message...
    The MRP controller 391 does not exist for plant
    Message no. MM214
    I have checked, the MRP controller is availble in Master Data for MRP Controller. And we have already created many material master with this MRP Controller.
    What could be the possible cause for this error. Please help.
    Best regards

    Hi Qamar,
    Please go thru the bellow threads,
    Assignement of MRP controller to Plant
    MRP CONTROLLER
    MRP Controller
    Re: MRP controller extension from plant 1 to plant 2
    Thanks,
    Swamy H P

  • Runtime error while creating material master data

    hello sir,
    i am facing one prolem while creating MATERIAL MASTER DATA.
    AFTER GIVING ALL REQUIRED INFORMATION WHEN I AM GOING TO SAVE THE DOCUMENT ITS SHOWING ABAP RUNTIME ERROR.
    MESSAGE TYPE: - MDS_KEYMAP.
    MESSAGE CLASS: 001.
    PLEASE TELL ME WHAT TO DO?
    REGARDS..

    SIR THANK YOU FOR YOUR REPLY.
    I ALREADY DONE THAT DUMP ANALYSIS.
    SO PLEASE KINDLY GIVE ME IN DETAILS ABOUT THAT SOLUTION...

  • "SYNTAX_ERROR" while creating customer Master T-code-"FD01

    Dear All,
    Getting an error "SYNTAX_ERROR" while creating customer Master T-code-"FD01". The error as follwoes
    Short text :Syntax error in program "CMD_EI_API_CHECK==============CP ".
    What happened? : Error in the ABAP Application Program                                                                               
    The current ABAP program "SAPLCMD_BTE_OUTBOUND" had to be terminated because it               
         has                                                                               
    come across a statement that unfortunately cannot be executed.                                                                               
    The following syntax error occurred in program                                                
         "CMD_EI_API_CHECK==============CP " in include                                               
         "CMD_EI_API_CHECK==============CM04T " in                                                    
        line 82:                                                                               
    ""LS_KNVP_NEW_PARTIAL-PERNR" and "<LS_KNVP_NEW>-PERNR" are not mutually"                      
        " convertible in a Unicode program. ."                                                        
    The include has been created and last changed by:                                             
        Created by: "SAP "                                                                               
    Last changed by: "SAP "                                                                       
        Error in the ABAP Application Program                                                                               
    The current ABAP program "SAPLCMD_BTE_OUTBOUND" had to be terminated because it               
         has                                                                               
    come across a statement that unfortunately cannot be executed. 
    Error analysis :The following syntax error was found in the program                                           
         CMD_EI_API_CHECK==============CP :                                                           
        ""LS_KNVP_NEW_PARTIAL-PERNR" and "<LS_KNVP_NEW>-PERNR" are not mutually"                      
        " convertible in a Unicode program. ."                                                        
    Information on where terminated :Termination occurred in the ABAP program "SAPLCMD_BTE_OUTBOUND" - in                          
         "CMD_CUSTOMER_BTE_1321_IMPL".                                                                
        The main program was "SAPMF02D ".                                                                               
    In the source code you have the termination point in line 330                                 
        of the (Include) program "LCMD_BTE_OUTBOUNDU01".                        
    Please help us on this,
    Thanks in Advance,
    Kumar.K

    Dear Kumar,
    please kindly apply the SAP note 1511101.
    I hope this helps.
    Mauri

  • Error While Creating Asset Master in AS01

    Hi,
    While creating Asset Master in AS01,I am getting the below error.
    E003 SYST: Period 000 is not valid in financial year variant
    I am using the standard Fiscal year variant V3
    Kindly help me to fix this issue
    Thanks
    Kishore

    Hi
    GO to the transaction code  OBY6 , double clcik on company code  and see have you asigned the fiscal year variant to company code
    Kindly revert in case of any query
    regards
    roobal

  • Ship to party is not available in account group while creating Customer Master

    Hello All.
    While creating customer master in account group there is no SH(ship to party) what is the purpose of it . I can see PY BP but not SH (XD01). We always use Sold to Party but i have seen Payer and Bill to party as well while creating customer master . Just got confused why we select such options when everything comes under sold to party.
    I cannot see SH while creating customer for the first time is it necessary that SH should there while creating customer master.
    Regards

    Hi ,,
    please do assign ship to party to account group .
    SPRO --> S&D --> BASIC FUNCTION --> PARTNER DETERMINATION--> SET UP PARTNER DETERMINATION --> FOR CUSTOMER MASTER -- > A/C GROUP - FUNCTION ASSIGNMENT
    Here assign ship to party(sh) to your account group.
    Now you will find sh in customer master.
    If you want further clarification , please let me know.
    Regards
    Patchala.

  • Internal number not showing while creating customer master record

    Dear All.
    After creation of account group and doing patner determination procedure, while creating customer master record it is showing all the 4 functions of partner in partner function tab page but the internal number is  not displaying. I have set number range internally.
    Thanks..
    CG Balaji

    > Dear All.
    >
    > After creation of account group and doing patner
    > determination procedure, while creating customer
    > master record it is showing all the 4 functions of
    > partner in partner function tab page but the internal
    > number is  not displaying. I have set number range
    > internally.
    >
    > Thanks..
    >
    > CG Balaji
    Hi,
    In your partner determination procedure for Customer master, apart from assigning a Pratner proc to your A/c grp, you also need to maintain the combination of your a/c group with the partner functions that you have in your procedure.
    On the left side panel, you have a link (i think 5th) saying Account group - Function assignment. In this, maintian the partner functions that you want to your a/c grp.
    This will allow taking INTERNAL numbers during customer creation.
    Thanks and reward points if useful

  • While creating vendor master , it should not accept duplicate VAT number

    while creating vendor master , it should not accept duplicate VAT number
    implement this with function exit.

    there is no link in vendor master creation that could check that company code and purchasing org are belonging together.
    the vendor master is in general just 3 more or less independend levels: general data, company code data, purchasing org data.
    Why should it not be possible to maintain a company code data view for any company code available in customizing?
    Why should it not be possible to maintainpurchasing org data view for any purchasing org available in customizing?
    Assume you have a system with 3 companies and 3 purchasing orgs maintained for one vendor, then you have 9 potential combinations. then 3 combinations would make sense, while 6 possible other combination would not give any sense.
    1 - 1 makes sense
    2 - 2 makes sense
    3 - 3 makes sense
    1 - 2 no sense
    1 - 3 no sense
    2 - 1 no sense
    2 - 3 no sense
    3 - 1 no sense
    3 - 2 no sense
    As there is no restriction (except auhtority) the user can create any meaningful and nonsense combination in vendor master creation in one go.
    But fact is that you  have to have 3 companies and 3 purchasing orgs maintained for one vendor. While creating purchase orders SAP checks if the combination entered in the PO does make sense.
    the users who are able to create vendors should have skills to do so.

Maybe you are looking for