Automatically create hibernate mapping

I know there is a way to create a hibernate .hbm.xml file and the corresponding .java class automatically from a previously created DB table. Do you know how? Any Eclipse plug-in?

Specifically:
http://www.hibernate.org/255.html
The Eclipse stuff's easiest to use, but the Ant stuff allows for better build-automation.
Personally I prefer to use annotations and retrofit to the existing schema where that's an option - but the generate-from-schema stuff can be useful as a first pass to save typing!
Edit: Note, this is because the generated classes can sometimes be nasty to work with. You may want to simplify some of the relationships (e.g. converting join tables from entities in their own right into associations), which is stuff the tool can't always deduce for you.

Similar Messages

  • Hibernate creating Dynamic Mapping File

    Hi All,
    I am supposed to create the Mapping Hbm file dynamically at run time. I learnt that this can be acheived from a Java class file using Xdoclets. But in my case i have to do it from a Xml File. Can this done by xdoclets or anything else?
    Parsing the xml file and creating the Mapping file would be a good Idea. Is there is any way?
    Thanks
    Aski

    See the First Xml File will have the Requirement Data, It will be on a bunch and it may reside on some other schema. And the Second Xml will be our Mapping Xml File which should be reside on Hibernate standards.
    So which will be the best way to transform from one file(xml) to other Xml File(Mapping.xml).
    Thanks

  • Based On E-Mail Sales order automatically Created

    Hi,
    Customer will send the Email to Client for his / Her Sales Order (PO Order from Customer Side ) once client will get the Email from customer side, system will generate the popup Menu in that system has to show Details what customer wants with Accept for Sale order, check before Sales order confirmation ( Details ) & Reject
    Once Accept the sales order system will automatically create a sales order and in that same customer mail system will send the Sales order confirmation O/P
    Is it possible to Map  into SAP?
    If yes Please Guide me How to Map into SAP
    Regards,
    Prasanna

    Hi,
    You may configure an Inbound Idoc with sales order details like customer, material, quantity and expected delivery date, etc.
    Since it is a third party system, you will have to map the fields and determine how it will be populated.
    After that you may create sales order using BAPI_SALESORDER_CREATEFROMDATA or BAPI_SALESORDER_CREATEFROMDAT1.
    Regards,
    Amit

  • Automatic merging of map files in RoboHelp?

    [Hope this isn't a double post; my first attempt ended in
    network error and forum doesn't seem to have that post]
    My group is charged with developing a help system using
    RoboHelp 7. Output type will be WebHelp. The interface between
    context-sensitive Help system and the target application will be a
    single project's output and a single map file. The plan for help
    development is to divide the work up into multiple layers of
    projects. The final output will be the result of multiple project
    merges from the bottom layer up.
    RH7 enables this methodology with the WebHelp merge
    module...except that it doesn't automatically merge sub projects'
    map ID files (individual BSSCDefaults.h) into the master project's
    map ID file BSSCDefaults.h. I can use a different name for the sub
    projects' map files and import them into the master project, but
    this still does not result in the master's map file being modified.
    The map IDs remain dispersed across the multiple map files within
    the master project.
    Is there a way to get an automatic concatenation of map ID
    files?

    Thanks for the suggestion. I was hoping that the answer would
    be other than that it's a manual procedure outside of RH7, but
    that's the conclusion given my previous [admittedly brief]
    searching within this site and thinking more about the RH paradigm
    (as explained in the Grainge article as well as the other Adobe
    articles).
    For now, I'm going to have the team use the following process
    while we're shaking out our development methodology:
    - each author follows the established naming convention for
    Topic IDs and use his/her assigned map number range when creating
    map IDs which should guarantee that the IDs are unique across all
    projects
    - each author will export his/her projects' map file (for
    java applications) to a subfolder within their project
    - rename the resultant BSSCDefaults.properties file to a
    globally unique filename
    - copy that project-unique properties file to the specified
    folder
    - one person/admin will concatenate the individual properties
    files into a single file to be used by the application developers
    Comments?
    ayf

  • Managed Property in Refinement - why not use the automatically-created site column managed property

    Hi,
    I read that although SharePoint 2013 automatically creates managed property for site column (OWS_Q_TEXT_COLUMNNAME) - in the refinement i should use a managed property and map to the ows_columnname. why?
    what's the difefrence?
    what is best - to create a new managed property (and set it as refinable) or use the OOB Refinementstring0, Refinementstring1 etc.)?
    keren tsur

    You are probably talking about this blog post.
    http://blogs.technet.com/b/tothesharepoint/archive/2013/11/11/how-to-add-refiners-to-your-search-results-page-for-sharepoint-2013.aspx
    The reason you want to use the ows_columnname crawled property is because it is of the correct data type. The other is always text. If the site column is a date or a decimal then using the OWS_Q_TEXT... crawled property,will cause the refiner not to display
    the appropriate control, for example a slider control for a date type refiner.
    http://sharepointfieldnotes.blogspot.com/2013/05/understanding-and-getting-sharepoint.html
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • "Blank page" text on automatically created empty pages

    I want "blank page" text to appear automatically on any page that FrameMaker_8 adds to create an even pagecount. Is this possible?

    > Is there no way to tell FM8 which master page to use for an automatically created left last page?
    Nope, unless you want to have the default MP "Left" laid out as a TPILB (This Page Intentionally Left Blank). That also requires creating a new "Left.Content" MP, and making sure that a critical mass of commonly used Paragraph Formats are mapped to it or "Right".
    What FM needs, and doesn't have, is a notation for the MasterPageMappingTable that controls what happens when there is no Flow A or other user generated content for a page.
    Back in the real world, always first work Plan 0, which is to talk management or the customer out of requiring TPILBs in the first place.
    TPILBs: I know how to do 'em. Glad we don't need 'em here.

  • How to automatically create the custom migration scripts after recreating SSMA project?

    How to automatically create the custom data migration scripts after recreating SSMA project?
    There is number of tables ( big tables with BLOBS)  which I want to set up automatically to be migrated with custom migration scripts (replacing e.g. attribute named "FILE" with "TO_BLOB('') AS FILE" ).
    So the question is how to open MB file (I think that it should be standard db of some destktop RDBMS) ? 

    Hi Roman.Pokrovskij,
    According
    to your description, we can use SSMA tool to migrate data from one database (including Access, Oracle and so on) to SQL Server via GUI or the scripts. There is an example about migrating Access database to SQL Server via the
    custom migration scripts, you can review refer to them.
    <?xml version="1.0" encoding="utf-8"?>
    <ssma-script-file xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="C:\Microsoft SQL Server Migration Assistant for Access\Schemas\A2SSConsoleScriptSchema.xsd">
    <config>
    <output-providers>
    <output-window suppress-messages="false"
    destination="stdout"/>
    <upgrade-project action="yes"/>
    <data-migration-connection source-use-last-used="true"
    target-server="target_1"/>
    <progress-reporting enable="false"
    report-messages="false"
    report-progress="off"/>
    <object-overwrite action="skip" />
    </output-providers>
    </config>
    <servers>
    <!-- Server definition for Sql server target server-->
    <sql-server name="target_1">
    <sql-server-authentication>
    <server value="$SQLServerName$"/>
    <database value="$SQLServerDb$"/>
    <user-id value="$SQLServerUsrID$"/>
    <password value="$SQLServerPassword$"/>
    <encrypt value="true"/>
    <trust-server-certificate value="true"/>
    </sql-server-authentication>
    </sql-server>
    </servers>
    <script-commands>
    <create-new-project project-folder="$project_folder$ "
    project-name="$project_name$"
    overwrite-if-exists="true"/>
    <connect-target-database server="target_1"/>
    <load-access-database database-file="$AccessDbFolder$\$AccessDatabaseFile$"/>---
    <!--Schema Mapping-->
    <map-schema source-schema="$AccessDatabase$" sql-server-schema="$SQLServerDb$.dbo" />
    <!-- Convert schema -->
    <!-- Example: Convert entire Schema (with all attributes)-->
    <convert-schema object-name="$AccessDatabase$"
    object-type="Databases"
    conversion-report-overwrite="true"
    verbose="true"
    report-errors="true" />
    <!-- Synchronize target -->
    <!-- Example: Synchronize target entire Database with all attributes-->
    <synchronize-target object-name="$SQLServerDb$.dbo"
    on-error="fail-script" />
    <!-- Data Migration-->
    <!--Example: Data Migration of all tables in the schema (with all attributes)-->
    <migrate-data object-name="$AccessDatabase$.Tables"
    object-type="category"
    report-errors="true"
    verbose="true"/>
    </script-commands>
    </ssma-script-file>
    There is a similar scripts about migrating Oracle database to SQL Server, you can use powershell script to automatically run the console for scripts/variable files, saved in the specified folder. For more information, review the following
    article.
    http://blogs.msdn.com/b/ssma/archive/2010/09/09/performing-database-migration-assessment-using-ssma-console-application.aspx
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Hibernate mapping between JGeometry & SDO_Geometry

    Has anyone figured out how to create a hibernate mapping file for mapping between oracle.spatial.geometry.JGeometry and SDO_Geometry type? Haven't been able to figure out how to do it with UserTypes
    for instance I'd like to create a simple class like the following:
    import oracle.spatial.geometry.JGeometry;
    public class Building {
    private Long id;
    private String label;
    private JGeometry shape;
    public Building() {}
    with a corresponding hibernate mapping file that would contain something like:
    <hibernate-mapping>
    <class name="Building" table="BUILDING">
    <id name="id" column="ID" type="long">
    <generator class="native"/>
    </id>
         <property name="label" type="string" length="100"/>
         <property name="shape" type="JGeometry"/>
    </class>
    </hibernate-mapping>
    that would create a create SQL like:
    CREATE TABLE Buildings (
         id NUMBER PRIMARY Key,
         label VARCHAR(100),
         shape SDO_GEOMETRY)
         storage (initial 1m);

    Hi,
    We're specifying the custom type mapping using the OracleCustomTypeMappingAttribute and not in any configuration.
    The problem is occurring only on our test server and it has worked fine in the past.
    Strangely, our application works fine for a few hours and then the problem starts to occur.
    Once it happens, the problem stays until we re-start the web site or IIS.
    It's since we've done a completely fresh install of Oracle and .NET on the server so it's something to do with that I suspect.
    I can't seem to find any differences between the test server and our development machines however.
    I've tried to enable tracing but the trace file grew to over 1.5 gig within 30 mins so it would be impossible to let it run for hours.
    Even if we did have enough space, the file would be too big to analyse using any tools I know of.
    Any other suggestions would be welcomed.

  • How to do hibernate mapping for table or view without a primary key

    Hi,
    Anyone knows how to do hibernate mapping for table or view without a primary key?
    thanks.
    cc

    or you can make all column primary key .Anybody seriously considering that as a good idea should understand the implications:
    1. this requires that each row be unique - that's a minor issue normally, but can be a significant problem in some cases
    2. in practically all databases, a primary key constraint creates a unique index - this has many implications:
    a) in most databases, the index stores a copy of the column data that is indexed - this suggestion therefore more than doubles the data storage required for the data
    b) whenever an indexed column is changed, the index has to be maintained - this suggestion then more than doubles the work that each UPDATE statement has to do, since both the table and the index have to be maintained for any UPDATE at all
    This might work OK for toy projects, but it doesn't scale well at all...

  • Hibernate mapping XML files for the two SQL Server tables below.

    Hello all..,
    Question 1:
    I am working on a project that needs to support a database with an inherited legacy schema that you cannot change. The schema is provided below.Hibernate mapping XML files for the two SQL Server tables below. Please provide those two XML files. Assume some hypothetical package and class names. Assume that no "fancy" stuff such as lazy initialization, optimistic locking etc is needed at this time.
    CREATE TABLE [SURVEY_ANSWERS] (
    [ANSWER_ID] [int] IDENTITY (1,1) NOT NULL,
    [QUESTION_ID] [int] NOT NULL,
    [POSITION] [int] NULL,
    [TEXT] [varchar](350) NULL
    CREATE TABLE [dbo].[SURVEY_QUESTIONS] (
          [QUESTION_ID] [int] IDENTITY (1, 1) NOT NULL ,
          [TEXT] [varchar] (350) NULL
    GO
    ALTER TABLE SURVEY_ANSWERS
    ADD CONSTRAINT pk_SURVEY_ANSWERS PRIMARY KEY(ANSWER_ID,QUESTION_ID);
    ALTER TABLE [dbo].[SURVEY_QUESTIONS] ADD
           PRIMARY KEY  CLUSTERED
                [QUESTION_ID]
    GO
    ALTER TABLE [dbo].[SURVEY_ANSWERS] ADD
           FOREIGN KEY
                [QUESTION_ID]
          ) REFERENCES [dbo].[SURVEY_QUESTIONS] (
                [QUESTION_ID]
          )Question 2:
    Assume that you are working on a project developing, say, a banking application. You are the Architect and thinking that Hibernate ORM should be used for the entire access to the relational database. As usual, you have created (or auto-generated) a set of HBM XML files as well as POJOs for which you define the mappings. Assume now that a new requirement has just popped up. The system needs to be able to import new bank accounts and user information in bulk from a very large XML file at once and store it in the database. Assume the XML file contains all necessary information to populate fields in database tables. As performance is very important for this operation. Given this description, how would you approach the problem?
    Please describe briefly.
    -Thanks and regards
    Praveen Soni

    You're not fooling anyone Dennis_Mox. But nice try.Jeez, man. Mail me at denismox[at]yandex.ru, I will show you that exact test, dammit.

  • Firefox 29 is no longer automatically creating bookmarks backups.

    I hate to be posting another question having finally (I believe) finding a work around for the "Firefox 29 fails to exit properly and remains running in task manager" problem.
    https://support.mozilla.org/en-US/questions/997670
    However, in Firefox 28 FF would automatically create a new bookmarks backup upon first opening of each day and the number of bookmark backups could be set in about:config setting:
    browser.bookmarks.max_backups
    Since installing Firefox 29 this functionality does not appear to be working. Is this by design or another "issue"? Has anyone else noticed this issue?
    Please don't ask me to "reset to default state", "run in safe mode", etc. I just went through all that with the above "Failing to exit properly" thread. I know I can manually backup bookmarks. I would like to know whether this is by design, if other people have noticed this, or I am the only one experiencing this.
    Here is my troubleshooting information (excluding the thousand references to my printer):
    <pre><nowiki>Application Basics
    Name: Firefox
    Version: 29.0
    User Agent: Mozilla/5.0 (Windows NT 6.1; rv:29.0) Gecko/20100101 Firefox/29.0
    Crash Reports for the Last 3 Days
    All Crash Reports
    Extensions
    Name: Firebug
    Version: 1.12.8
    Enabled: true
    ID: [email protected]
    Important Modified Preferences
    accessibility.typeaheadfind.flashBar: 0
    browser.cache.disk.capacity: 51200
    browser.cache.disk.smart_size_cached_value: 358400
    browser.cache.disk.smart_size.enabled: false
    browser.cache.disk.smart_size.first_run: false
    browser.cache.disk.smart_size.use_old_max: false
    browser.places.smartBookmarksVersion: 6
    browser.search.suggest.enabled: false
    browser.search.useDBForOrder: true
    browser.sessionstore.upgradeBackup.latestBuildID: 20140421221237
    browser.startup.homepage: http://www.wcwcw.com/
    browser.startup.homepage_override.buildID: 20140421221237
    browser.startup.homepage_override.mstone: 29.0
    browser.tabs.loadInBackground: false
    browser.urlbar.autocomplete.enabled: false
    dom.mozApps.used: true
    dom.w3c_touch_events.expose: false
    extensions.lastAppVersion: 29.0
    font.internaluseonly.changed: true
    general.autoScroll: false
    gfx.direct3d.last_used_feature_level_idx: 1
    keyword.URL: https://www.google.com/search?q=
    network.cookie.cookieBehavior: 2
    network.cookie.lifetimePolicy: 1
    network.cookie.prefsMigrated: true
    places.database.lastMaintenance: 1399218213
    places.history.expiration.transient_current_max_pages: 80511
    plugin.disable_full_page_plugin_for_types: application/vnd.fdf,application/vnd.adobe.xdp+xml,application/vnd.adobe.xfdf
    plugin.importedState: true
    plugin.state.npdeployjava: 0
    plugin.state.npgoogleupdate: 0
    print.printer_HP_DeskJet_710C_(Copy_1).print_bgcolor: false
    privacy.clearOnShutdown.cache: false
    privacy.clearOnShutdown.cookies: false
    privacy.clearOnShutdown.formdata: false
    privacy.clearOnShutdown.offlineApps: true
    privacy.clearOnShutdown.sessions: false
    privacy.cpd.cache: false
    privacy.cpd.cookies: false
    privacy.cpd.offlineApps: true
    privacy.cpd.sessions: false
    privacy.popups.showBrowserMessage: false
    privacy.sanitize.migrateFx3Prefs: true
    privacy.sanitize.timeSpan: 0
    security.disable_button.openCertManager: false
    security.disable_button.openDeviceManager: false
    security.warn_viewing_mixed: false
    storage.vacuum.last.index: 1
    storage.vacuum.last.places.sqlite: 1396579220
    Graphics
    Adapter Description: NVIDIA GeForce 9400 GT
    Adapter Drivers: nvd3dum nvwgf2um,nvwgf2um
    Adapter RAM: 1024
    ClearType Parameters: Gamma: 2200 Pixel Structure: B ClearType Level: 50 Enhanced Contrast: 300
    Device ID: 0x0641
    Direct2D Enabled: true
    DirectWrite Enabled: true (6.2.9200.16571)
    Driver Date: 12-19-2013
    Driver Version: 9.18.13.3221
    GPU #2 Active: false
    GPU Accelerated Windows: 1/1 Direct3D 10
    Vendor ID: 0x10de
    WebGL Renderer: Google Inc. -- ANGLE (NVIDIA GeForce 9400 GT Direct3D9Ex vs_3_0 ps_3_0)
    windowLayerManagerRemote: false
    AzureCanvasBackend: direct2d
    AzureContentBackend: direct2d
    AzureFallbackCanvasBackend: cairo
    AzureSkiaAccelerated: 0
    JavaScript
    Incremental GC: true
    Accessibility
    Activated: false
    Prevent Accessibility: 0
    Library Versions
    NSPR
    Expected minimum version: 4.10.3
    Version in use: 4.10.3
    NSS
    Expected minimum version: 3.16 Basic ECC
    Version in use: 3.16 Basic ECC
    NSSSMIME
    Expected minimum version: 3.16 Basic ECC
    Version in use: 3.16 Basic ECC
    NSSSSL
    Expected minimum version: 3.16 Basic ECC
    Version in use: 3.16 Basic ECC
    NSSUTIL
    Expected minimum version: 3.16
    Version in use: 3.16</nowiki></pre>
    Kind Regards,
    Axis

    This is a bit of a "bump" with some new things I have tried. I have run the Places Maintenance add-on (again) and places.sqlite integrity seems absolutely fine.
    Places Maintenance: https://addons.mozilla.org/firefox/addon/places-maintenance/
    I have re-installed FF 29.
    I am able to create manually, and restore, bookmark backups without a hitch.
    I did delete places.sqlite and restarted FF 29. The only thing I lost was all my bookmark Icons. So I re-added the former places.sqlite. Of course, I would have to wait until tomorrow morning to know for sure, but since the Places Maintenance add-on indicated no problems, and since I can manually create them, I am quite sure it is not a corrupted places.sqlite file.
    I tried what may be a dubious add-on, BackupFox, and it failed to create a new backup but left a temp file in the main profile folder.
    Logic tells me that if I can manually create and restore bookmark backups, then something in the engine(?) may be responsible but I do not know enough to go further with that. Permissions must be O.K. or I wouldn't be able to make (manually) a backup.
    I did not have this problem at all with FF 28. Rather, I was asking cor-el how to limit the number of backups, which he showed me. What makes this difficult to test is that I would have to wait until the first opening of FF each day to tell.
    I can't tell if this problem is "only me" or affecting others, however, (no insult intended) I can paste into the support.mozilla.org page search box the exact title of this thread and not find it. I shows up number 1 on Google doing similar search. People who aren't checking their profile folder each day might not even be noticing this.
    cor-el, or anybody, have you found auto backups have stopped in FF 29 for you? Anyone who reads this please let me know if your bookmark auto-backup is working. Just peak in your profile and see if you have a new one each day.
    Does anyone know just what .dll or .exe or what actually is triggered how that causes the auto-backup to occur? Is it the maintenance service?
    What I have not tried is creating another profile because this one seems just fine and I has always worked before 29, and still does work, as far as profiles go. I need to know what "triggers" auto bookmark backup and I doubt it is my profile.
    Regards again,
    Axis

  • Goods receipt is automatically created at the time of confirming the transf

    Hi,
    we are following the confirmation control key inbound delivery process.
    I am making an inbound delivery with refernce to the purchase order.
    then i am making a putaway against the inbound delivery through LT0F and creating a transfer order against the inbound delivery.
    Then i am confirming the transfer order through LT12, when i am confirming the transfer order the goods receipt is automatically created without manuallyy doing a PGR in inbound delivery.
    Can any one let meknow how to avoid the creation of the auto GR at the time of confirming the putaway TO
    Sunil

    Hi,
    In LT0F check in  the initial screen -->control data -->weather the adopt put away quantity field value is 4. If it is 4 then the GR will be posted automatically.
    Regards,
    Bharat.

  • How to create a map that is larger than the game in width and height?

    hi,
    i wounder how i can create a map(not the design) that is larger than the game in width and height, part of it will appear in the main page and anther part you can move to it after you press the arrow symbol, but the map is just one image so i want put it in line and out line the game page, and the out line part includes buttons and symbols the player can use, but it will be in line and the other part will be out line when you press the left arrow or the down arrow, how i can do that?
    and is that possible to animate it so when the player press the arrow, will give it action to start the animation in one sec, i know how to animate it if that possible but i don't know which code i will use for the mouse click with the arrow symbol, and how to use the same code in the same symbol to start anther animation depending on which part of the map is on?

    I don't know a lot about mask and masked layers and how to work with the normal layers beside i will use some 3D graphics but not in the background, i will explain all this to you to be more clearly.
    first i am using action script 3.0
    close ex,
    you have 2d map"image"  900*300 pixel.
    this image contains some 2d symbols when you click will go to anther normal map (anther normal layer) so they must appear.
    your game 320*320 px, and the place the map will show on 300*300, and there's basics objects will be in most pages including the page that show the map so i don't know a lot about how this will work with mask layers.
    so you can only see the left side of the map image and what it contains, while there's two arrows one to the left and one to the right there's three cases here,
    first when it show the left side(start from x:0 to x:300), the left arrow will not active when you press and the right arrow will start an animation that make the map image move to the mid side in one sec when you press.
    in mid side (start from x:301 to x:600) the same left arrow will active when you press to send you back to the left side while the same right arrow will be active to send you not to the mid side but to the right side,
    when moved to the right side the same left arrow will be active to send you to the mid and the right will not active when you press and depending on that,
    first how to make the large image appear with the three sides in the same place without effecting the other objects "like disappearing them" ?
    and the codes i need in the same left or right arrow symbol to make different actions with the same symbol when clicked depending on which part of the map is on.

  • How to get rid of automatically created server accounts in iCal and Mail?

    I have recently setup an OS X 10.6.2 Server for our small office. I got the domain name wrong in the initial install and fixed this by doing a complete clean reinstall of OS X 10.6 server (then upgrade to 10.6.2).
    The problem is that one of the OS X 10.6.2 clients had been setup to talk to the server prior to the rebuild. Now on this client, I cannot work out how to get rid of or change the automatically created server accounts in iCal and Mail - everytime you login, these are recreated using the old domain name (and of course don't work).
    In Mail if you remove the server account (from Accounts in Preferences), it just pops back again. I even removed every trace of the old domain name from the apple.com.mail.plist file but when I re-open Mail that darned server account (with the old domain name) just pops up again.
    In iCal its slightly different in that you can remove the account and it stays away while you have iCal open. But as soon as you close and re-open it, that server account just pops up again!
    I thought it might be something to do with Kerberos and found a Kerberos file on the client which had the old domain name throughout it - I changed all these references to the new domain name, but still the same behaviour in Mail and iCal.
    This is doing my head in. Any ideas?
    Message was edited by: davidav

    I suggest you ask in the snow leopard server forum
    http://discussions.apple.com/category.jspa?categoryID=264

  • How to delete the automatically created receipt in the expense report

    Hi experts,
    I am getting an error "no expense type for estimated costs has been defined. cannot save" while creating a travel request for an employee.
    Base on the reply from Raynard which posted on Re: FM for  trip exp
    It's because "The estimated cost in plan and request are now included into fund management. So if you have active funds management, the entered estimated cost are used to make availability check and commitment. Therefore you must create an expense type in view V_T706B1. Under 'amounts are' you have to choose 'estimated cost, no reimbursement to employee'."
    How ever, because the linkage with funds management, I faced the problem and also ckecked out the reason from SAP Help that "After the trip takes place, the user needs to manually delete the automatically created receipt in the expense report."
    Anybody can provide the solution how to automatically delete this receipt before user create the expense report??
    Thanks
    Daniel

    Hi Francis,
    Check the BADI "TRIP_WEB_CHECK" method "USER_CHECK_GENERAL_DATA".
    Here based on the schema you can modify the "estimated cost" field.
    Hope it helps.
    Regards,
    Jyothi

Maybe you are looking for