Entity not saving

I have the following entities:
public class SportsChoiceEntry : Entity<int>
public SportsChoiceEntry()
Histories = new List<SportsChoiceStatusHistory>();
public virtual Sport Sport { get; set; }
public int SportID { get; set; }
public virtual List<SportsChoiceStatusHistory> Histories { get; set; }
public class SportsChoiceStatusHistory : Entity<int>
public int SportsChoiceID { get; set; }
[ForeignKey("SportsChoiceID")]
public virtual SportsChoiceEntry SportsChoiceEntry { get; set; }
public class Sport : Entity<int>
public virtual IList<SportsChoiceEntry> SportChoices { get; set; }
And the following mappings:
protected override void OnModelCreating(DbModelBuilder modelBuilder)
modelBuilder.Entity<Sport>().ToTable("Sport", "Sports").Property(x => x.ID).HasColumnName("SportID");
modelBuilder.Entity<SportsChoiceEntry>().ToTable("SportsChoice", "Sports").Property(x => x.ID).HasColumnName("SportsChoiceID");
modelBuilder.Entity<SportsChoiceEntry>().HasRequired(t => t.Sport).WithMany(t => t.SportChoices).HasForeignKey(s => s.SportID);
modelBuilder.Entity<SportsChoiceStatusHistory>().ToTable("SportsChoiceStatusHistory", "Sports").Property(x => x.ID).HasColumnName("SportsChoiceStatusHistoryID");
modelBuilder.Entity<SportsChoiceStatusHistory>().HasRequired<SportsChoiceEntry>(s => s.SportsChoiceEntry).WithMany(sc => sc.Histories).HasForeignKey(s => s.SportsChoice2ID);
modelBuilder.Entity<SportsChoiceStatusHistory>().HasOptional(h => h.SportsDocument);
The problem is..... when I save and commit, it doesnt do anything in the database.

I do not see any calls to SaveChanges? What is your connection string? 
Please mark as answer, if this was it. Visit my SQL Server Compact blog http://erikej.blogspot.com

Similar Messages

  • Entity not saved inside custom component embedded in standard view

    Hi ,
    I have embedded a custom component inside a standard component. The custom component has two views. The first view is assigned to the item overview page and the second view is assigned to the main window of the standard component.
    I have enhanced the BOL model (using EEWB) and created a new entity with z structure.
    There is a button in the first view which is used to navigate to the second view. The custom fields are filled up in the second view.
    Even though I am able to fill up the custom fields in the second view, these fields are not getting saved when I save the main transaction.
    However, If I fill up the fields from the first view ( ie the overview page ) , these are getting saved.
    Please let me know if you have any solution. This would be very helpful.
    Regards,
    Jaydip

    Hi Anubhav,
       I have created the Custom Component(zso_disclaimer)  with the BOL Object BTAdminH. I have used few fields which is available in the BTAdminH(ZZDISC_WAR_ID,ZZACC_EX_CONT,ZZACCEPT_WAR and ZZFLD00004G). I have used this custom component(zso_disclaimer) in the standard conponent BT115H_SLSO as Assignment block. when i enter the values in the fields and press enter the values get disappears. So i am not able to proceed further. Can anyone help me to solve this problem.
    Thanks & Regards,
    Ashok.

  • Data is not saving in to DB from POPUP screen.

    Hi,
    I am opening a popup screen on button click and On the popup screen, I have added the VO as form with submit button.
    On the popup fetchlistener, I calling a bean method to invoke the createInsert action as follows.
    public String createSubs() {
    System.out.println("Inside Action Event*********************");
    try{
    AdfFacesContext adf = AdfFacesContext.getCurrentInstance();
    BindingContainer bc = getBindings();
    oracle.binding.OperationBinding opb = bc.getOperationBinding("Create");
    opb.execute();
    }catch(Exception e){
    e.printStackTrace();
    return "";
    public BindingContainer getBindings() {
    return BindingContext.getCurrent().getCurrentBindingsEntry();
    When I am clicking on submit button in popup screen, data is appearing on the mainpage table but the same is not saving in the database. One more I have observed that doDML is not calling means SOP's are not comming from doDML method in the entity class.
    Please do the needful, its an urgent issue to reslove.
    Thanks in Advance,
    user5802014

    HI,
    Can you please specify that for your attributes CreatedBy and CreationDate , are you using automatic insert value from your entity or not? Or you are passing default values programatically in doDML() method.
    I guess for every new row your are using User name for CreatedBy field and current date for CreationDate field,
    Why don't you set these field at the time of creation of new row, Override Create() method in your entity bean and then you can set these fields to there default values. and now you should remove Mandatory property to unchecked for these fields in entity also.
    like i'm doing here - I'm setting sequence number as default to field insertedLineNo
        protected void create(AttributeList attributeList) {
            SequenceImpl seq = new SequenceImpl("NUMBER_SEQ", getDBTransaction());
            Number seqNum = seq.getSequenceNumber();
            setInsertedLineNo(seqNum);
            super.create(attributeList);
        }Hope this will help you, and let me know if this helps you.
    Fizzz...

  • AET Generated field values are not saved.

    Hi Gurus,
    I have created two AET fields on the screen (marked below) and that should store values in table CRMD_CUSTOMER_H. When I create a new service request and enter the values and save, AET field values are not saved. Again, when I edit the same service request and enter the values and save , AET field values are saved on the database.
    While  debugging  I found that, relationship BTHeaderCustExt does not exist for the first time and second time onward its appearing. Due to this, data is not being saved at first time (Line no 27 : current is empty).
    When tried to create realtionship using create_related_entity , it throwing exception cx_crm_genil_model_error.
    Please advice me the soution for the same.
    Regards,
    Anand

    there should be a context node at your view level. Please check ON NEW FOCUS method is implemented or not.
    If not, you can implement that method with below code.
        DATA: lv_collection TYPE REF TO if_bol_bo_col,
              entity        TYPE REF TO cl_crm_bol_entity.
    *   get collection of dependent nodes
        entity ?= focus_bo.
        TRY.
            lv_collection = entity->get_related_entities(
                   iv_relation_name = 'BTHeaderCustExt' ).
            IF lv_collection IS NOT BOUND or lv_collection->size( ) = 0.
              IF entity->is_changeable( ) = ABAP_TRUE.
                TRY.
                    entity = entity->create_related_entity(
                     iv_relation_name = 'BTHeaderCustExt' ).
                  CATCH cx_crm_genil_model_error cx_crm_genil_duplicate_rel.
    *               should never happen
                ENDTRY.
                IF entity IS BOUND.
                  CREATE OBJECT lv_collection TYPE cl_crm_bol_bo_col.
                  lv_collection->add( entity ).
                ENDIF.
              ENDIF.
            ENDIF.
          CATCH cx_crm_genil_model_error.
    *       should never happen
            EXIT.
          CATCH cx_sy_ref_is_initial.
        ENDTRY.
        me->set_collection( lv_collection ).

  • BMP question : got javax.ejb.EJBException error Object state not saved

    Could anybody please help me? I could not figure out what i did wrong.
    I got the javax.ejb.EJBException error: Object state not saved
    when i test the getname() method for findByPrimaryKey() and findAll() methods.
    Here is my code:
    package org.school.idxc;
    import javax.sql.*;
    import javax.naming.*;
    import javax.ejb.*;
    import javax.sql.*;
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    import java.util.ArrayList;
    import java.util.Collection;
    import java.util.Enumeration;
    import java.util.Vector;
    * Bean implementation class for Enterprise Bean: status
    public class statusBean implements javax.ejb.EntityBean {
         private javax.ejb.EntityContext myEntityCtx;
         private int id;
         private String name;
         private DataSource ds;
         private String dbname = "jdbc/idxc";
         private Connection con;
         * ejbActivate
    public void ejbActivate() {
         * ejbLoad
         public void ejbLoad() {
         System.out.println("Entering EJBLoad");
         try
         Integer primaryKey = (Integer) myEntityCtx.getPrimaryKey();
         String sqlstmt = "select id, name from from status where id =?";
         con = ds.getConnection();
         PreparedStatement stmt = con.prepareStatement(sqlstmt);
         stmt.setInt (1,primaryKey.intValue());
         ResultSet rs = stmt.executeQuery();
         if (rs.next())
              this.id = rs.getInt(1);
              this.name = rs.getString (2).trim();
              stmt.close();
         } // if
         else
              stmt.close();
              throw new NoSuchEntityException ("Invalid id " + id);
         }// else
              } // try
         catch (SQLException e)
         System.out.println("EJBLOad : " + e.getMessage());
              } // catch
         finally
         try
              if (con != null)
              con.close();
              }// try
         catch (SQLException e)
              System.out.println("EJBLOad finally" + e.getMessage());
              } // catch
              }// finally
         * ejbPassivate
         public void ejbPassivate() {
         * ejbRemove
         public void ejbRemove() throws javax.ejb.RemoveException {
         System.out.println ("Entering ejb Removed");
         try
         String sqlstmt = "delete from status where id=" + id;
         con = ds.getConnection();
         Statement stmt = con.createStatement();
         stmt.executeUpdate(sqlstmt);
         stmt.close();
         }// try
         catch (SQLException e)
         System.out.println("Ejb Remove" + e.getMessage());     
         } // catch
         finally
         try
              if (con!=null)
                   con.close();
         }// try
         catch (SQLException e)
              System.out.println ("EJBRemoved " + e.getMessage());
         } // catch
         } // finally
         * ejbStore
         public void ejbStore() {
         System.out.println("Entering the ejbStore");
         try
    String sqlstmt = "update status set id=" + id + ",name='" + name + "' where id=" + id;
         con = ds.getConnection();
         Statement stmt = con.createStatement();
         if (stmt.executeUpdate(sqlstmt) != 1)
              throw new EJBException ("Object state not saved");
    stmt.close();     
         } // try
         catch (SQLException e)
              System.out.println ("EJBStore : " + e.getMessage());
         }// catch
         finally
         try
              if (con != null)
              con.close();
         } // try
         catch(SQLException e)
              System.out.println ("EJBStore finally " + e.getMessage());
         } // catch
         } // finally
         * getEntityContext
         public javax.ejb.EntityContext getEntityContext() {
              return myEntityCtx;
         * setEntityContext
         public void setEntityContext(javax.ejb.EntityContext ctx) {
              myEntityCtx = ctx;
              try
              InitialContext initial = new InitialContext();
              ds = (DataSource)initial.lookup(dbname);
    } // try
              catch (NamingException e)
              throw new EJBException ("set Entity context : Invalid database");     
              }// catch
         * unsetEntityContext
         public void unsetEntityContext() {
              myEntityCtx = null;
         * ejbCreate
         public Integer ejbCreate(Integer key, String name) throws javax.ejb.CreateException {
    this.id = key.intValue();
    this.name = name;
              System.out.println ("Entering ejbCreated!!!");
              try
              String sqlstmt = "insert into status(id,name) values (" + id + ",'" + (name == null ? "" : name) + "')";
              con = ds.getConnection();
              Statement stmt = con.createStatement();
              stmt.executeUpdate(sqlstmt);
              stmt.close();
              }// try
              catch (SQLException e)
              System.out.println("EJBCreate : SQLEXception ");     
              }// catch
              finally
              try
              if (con!=null)
                   con.close();
              }// try
              catch (SQLException e)
              System.out.println ("EJB Created Finally : SQLException");
              e.getMessage();
              } // catch
              }// finally
              this.id = key.intValue();
              this.name = name;
              return key ;
         * ejbPostCreate
         public void ejbPostCreate(Integer id, String name) throws javax.ejb.CreateException {
         * ejbFindByPrimaryKey
         public Integer ejbFindByPrimaryKey(
              Integer key) throws javax.ejb.FinderException {
              try
              String sqlstmt = "select id from status where id=" + key.intValue();
              con = ds.getConnection();
              Statement stmt = con.createStatement();
    ResultSet rs = stmt.executeQuery(sqlstmt);
              if (!rs.next())
              throw new ObjectNotFoundException();     
              } // if
              rs.close();
              stmt.close();
              } // try
              catch (SQLException e)
              System.out.println ("EJBFindBYPrimaryKey " + e.getMessage());     
              } // catch
              finally
              try
              if (con!=null)
                   con.close();
              }// try
              catch (SQLException e)
              System.out.println ("EJB Find by primary key" + e.getMessage());
              }// catch
              }// finally
              return key;
         * @return Returns the name.
         public String getName() {
              return this.name;
         * @return Returns id
         public int getId() {
              return this.id;
         * @param name The name to set.
         public void setName(String xname) {
              this.name = xname;
         * ejbFindByLastnameContaining
         public Enumeration ejbFindAllNamne () throws javax.ejb.FinderException
         try
         String sqlstmt = "select id from status order by id";
         con = ds.getConnection();
         Statement s = con.createStatement();
         ResultSet rs = s.executeQuery(sqlstmt);
         Vector keys = new Vector();
         while (rs.next())
              keys.add(new Integer(rs.getInt(1)));
         }// while
         rs.close();
         s.close();
         con.close();
         return keys.elements();
         } // try
         catch (SQLException e)
              throw new FinderException (e.toString());
         } // catch
    }

    Hi,
    if you look at your error message you will see the problem. In your code you've missed to implement
    public void ejbPassivate {}
    so your code looks like this
    import java.lang.Object;
    import javax.ejb.SessionBean;
    import javax.ejb.SessionContext;
    import java.rmi.RemoteException;
    import java.lang.Math;
    import java.util.Random;
    import java.io.*;
    /** * Title: * Description: * Copyright: Copyright (c) 2001 * Company: * @author * @version 1.0 */
    public class DiceEJB implements SessionBean, Serializable
         public int[] Roll()
              Random rng = new Random();
              int[] diceArray = new int[5];
              for(int i =0; i < diceArray.length;i++)
                   diceArray[i] = (Math.abs (rng.nextInt()) % 6) +1;
              return diceArray;
         public DiceEJB(){}
         public void ejbCreate() {}
         public void ejbRemove() {}
         public void ejbActivate() {}
         public void ejbPassivate() {}
         public void setSessionContext (SessionContext sc)
         private void writeObject(ObjectOutputStream oos) throws IOException
              oos.defaultWriteObject();
         private void readObject(ObjectInputStream ois) throws ClassNotFoundException, IOException
              ois.defaultReadObject();
    bye

  • Save point with POJO DataControl not saving model state

    Hi Guys,
    JDEV 11.1.1.6 64bit
    I was able to get save points working with ADF BC (AppMod, View & Entity objects)
    but when I tried to do the exact same with Pojo DataControls, I won't save
    the current state of the model - meaning things are not "selected" to the
    proper record when the SP is restored. I don't get any errors, it just
    shows the wrong data.
    Example:
    The BTF is marked as must have transaction(tried either way), but this is Pojo, and doesn't support Trx.
    edit-emp-dept.jspx (with BTF Region)
    BTF START
        STEP 1: RichTable with bindings to Pojo DataControl (value="#{bindings.allDepts.collectionModel}")
                     (user selects the 3 record => sales department)
        STEP 2: Edit Sales Dept & on click to next step create SP
        STEP 3: View Emps (Rich Table of ALL emps in that DEPT)
        STEP 4: Edit Emp
        FINAL: COMMIT (save to pojo list) or CANCEL (don't save to pojo list)
    /BTF END
    At STEP 1 -> STEP 2, the SP is created, and when I close the browser at STEP2, 3  or 4, and
    restart, and choose SP to restore, it takes me to proper page (STEP 2)  but the wrong Department is
    selected to edit (it shows "Finance" instead of "Sales") & if I hit my ADF back button, it shows
    the table with "finance" selected.  In the ADF BC world it works perfectly.
    I know the docs say: the ADF Model is saved, so the question is why bindings.allDepts.collectionModel
    not "saved" here for Pojo DC and the ADF BC af:table value="#{bindings.DepartmentsView1.collectionModel}"
    it is "saved".
    Thanks for any insight or work-around.
    Sincerely,
    Joel
    edit-emp-dept.jspx:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view>
        <af:document id="d1">
          <af:form id="f1">
            <af:region value="#{bindings.btfpojodc1.regionModel}" id="r1"/>
          </af:form>
        </af:document>
      </f:view>
    </jsp:root>

    Hi,
    the problem with POJO DC and other non-ADF BC models is that they don't passivate their state. In JDeveloper 12c we allow developers to extend their POJO classes with ADF lifecycle methods that allows them to save the model state themselves. Its a known issue that the transaction state cannot be saved for non-ADF BC models. I checked the bug database for bugs filed against this behavior but could not find one- I can imagine that with 12c we would have a chance to allow developers to handle passivation / activation for non-ADF BC model states. So if this is a feature you need then filing an enhancement request would make sense
    Frank

  • BPC 5.1 ownership % not saving.

    HI Team,
    I am trying to fill ownership% and method for consolidation in Dynamic hierarchy under each legal entity.
    By adding sibling but system is not saving the ownership data including childs to group.
    Please help us to resolve this.
    Regards
    Naveen.KV

    I gave up on the dynamic hierarchy.  It is buggy to say the least.
    I would suggest that you just create an input template against the Ownership application and just load your numbers there,

  • Image is not saved in jpeg/bmp file but ok with png

    Hi i am unable to save the image in disk in jpeg format.
    Here is the code.
    public void saveImage(){
    //if no filechooser is there means no image file opened.
            if(fileChooser==null){
                if(errorWindow==null)
                    errorWindow=new ErrorWindow(XXX.getPrimaryStage());
                errorWindow.showErrorWindow("There is no image to save !!\n");
            else{
                fileChooser.setTitle("Save The Image");
                File saveFile=fileChooser.showSaveDialog(XXX.getPrimaryStage());
                if(saveFile!=null){
                    System.out.println("saveFile path= "+saveFile);
                    //get the extension of output image to be saved.
                    //XXX: is the main class name(say)
                    outExtension=*XXX*.getImageExtension(saveFile);
                    //if user does not give extension: set default extension as jpg
                    if(outExtension.equalsIgnoreCase(saveFile.getName())){
                        outExtension="jpg";                   
                        String newPath=(saveFile.toString())+".jpg";
                        saveFile=new File(newPath);                   
                    Task task = new Task<Void>() {
                        @Override
                        public Void call() {
                            Platform.runLater(
                                    new Runnable() {
                                        public void run() {
                                            try {
                                                //The image is inside ImageView->inside ScrollPane-> inside TabPane.
                                                Image curImage=XXX.getCurrentImage();
                                                int width=(int)curImage.getWidth();
                                                int height=(int)curImage.getHeight();                              
                                                System.out.println("cur image width= "+width+" ht= "+height);
                                                bufferedImage=new BufferedImage(width, height,BufferedImage.TYPE_INT_ARGB );
                                                //set the current image to awt Buffered Image
                                                SwingFXUtils.fromFXImage(curImage, bufferedImage);
                                                    imageTabPane=xxx.getImageTabPane();
                                                    Tab tab=imageTabPane.getSelectionModel().getSelectedItem();                                    
                                                    TabPane childTabPane=(TabPane)tab.getContent();
                                                    ScrollPane sp=(ScrollPane)childTabPane.getSelectionModel().getSelectedItem().getContent();
                                                    final ImageView imageView=(ImageView)sp.getContent();
                                                    WritableImage wim = new WritableImage(width,height);
                                                    imageView.snapshot(null, wim);
                                                    System.out.println(" snapShot width= "+wim.getWidth()+" ht="+wim.getHeight());                             
                                                    *ImageIO.write(SwingFXUtils.fromFXImage(wim,null), outExtension, saveFile);*
                                                       //<------ its not working  for png,jpeg,bmp,gif                                          
                                                    // the below lines are working only for png and gif
                                                    OutputStream out = new FileOutputStream(saveFile);                                                
                                                    ImageIO.write((RenderedImage) bufferedImage, outExtension, out);
                                                    out.flush();
                                            } catch (Exception ex) {
                                                Logger.getLogger(FileMenuController.class.getName()).log(Level.SEVERE, null, ex);
                                                //ex.printStackTrace();
                                            System.out.println("finished");
                            return null;
                    Thread th = new Thread(task);
                    th.start();
                }else{
                    System.out.println("File is not saved");
        }//saveImageNote: The above code is executed in ubuntu(10.04) using Netbeans 7.2(Javafx(2.2), java(1.7.0_11).
    When i run(from terminal) separately in a new class with an image in an Imageview( inside a Vbox) and take the snapshot
    of the imageview and write into the file using ImageIO.write(SwingFXUtils.fromFXImage(wim,null), outExtension, saveFile);
    with any extension (jpeg,png etc) it is working fine.
    Please help me.
    Any small hint is also helpful.Please feel free to comment or give suggestion.
    Edited by: 963038 on Feb 17, 2013 7:14 PM

    When i omit the line OutputStream out = new FileOutputStream(saveFile);
    and write only
    ImageIO.write((RenderedImage) bufferedImage, outExtension,saveFile);
    //out.flush();
    then saving the image even in "png" also fails.
    The following is the error code:
    Note : FileMenuController is my file where the saveImage() is wrtten.
    javax.imageio.IIOException: I/O error writing PNG file!
    finished
         at com.sun.imageio.plugins.png.PNGImageWriter.write(PNGImageWriter.java:1168)
         at javax.imageio.ImageWriter.write(ImageWriter.java:615)
         at javax.imageio.ImageIO.doWrite(ImageIO.java:1612)
         at javax.imageio.ImageIO.write(ImageIO.java:1536)
         at *newciptk.controls.menu.file.FileMenuController$1$1.run(FileMenuController.java:205)*
         at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:173)
         at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:76)
         at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
         at com.sun.glass.ui.gtk.GtkApplication$3$1.run(GtkApplication.java:82)
         at java.lang.Thread.run(Thread.java:722)
    Caused by: java.io.IOException: Operation not supported
         at java.io.RandomAccessFile.writeBytes(Native Method)
         at java.io.RandomAccessFile.write(RandomAccessFile.java:499)
         at javax.imageio.stream.FileImageOutputStream.write(FileImageOutputStream.java:124)
         at javax.imageio.stream.ImageOutputStreamImpl.writeInt(ImageOutputStreamImpl.java:91)
         at com.sun.imageio.plugins.png.ChunkStream.finish(PNGImageWriter.java:136)
         at com.sun.imageio.plugins.png.PNGImageWriter.write_IHDR(PNGImageWriter.java:401)
         at com.sun.imageio.plugins.png.PNGImageWriter.write(PNGImageWriter.java:1135)
         ... 9 more
    javax.imageio.IIOException: I/O error writing PNG file!
         at com.sun.imageio.plugins.png.PNGImageWriter.write(PNGImageWriter.java:1168)
         at javax.imageio.ImageWriter.write(ImageWriter.java:615)
         at javax.imageio.ImageIO.doWrite(ImageIO.java:1612)
         at javax.imageio.ImageIO.write(ImageIO.java:1536)
         at newciptk.controls.menu.file.FileMenuController$1$1.run(FileMenuController.java:205)
         at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:173)
         at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:76)
         at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
         at com.sun.glass.ui.gtk.GtkApplication$3$1.run(GtkApplication.java:82)
         at java.lang.Thread.run(Thread.java:722)
    Caused by: java.io.IOException: Operation not supported
         at java.io.RandomAccessFile.writeBytes(Native Method)
         at java.io.RandomAccessFile.write(RandomAccessFile.java:499)
         at javax.imageio.stream.FileImageOutputStream.write(FileImageOutputStream.java:124)
         at javax.imageio.stream.ImageOutputStreamImpl.writeInt(ImageOutputStreamImpl.java:91)
         at com.sun.imageio.plugins.png.ChunkStream.finish(PNGImageWriter.java:136)
         at com.sun.imageio.plugins.png.PNGImageWriter.write_IHDR(PNGImageWriter.java:401)
         at com.sun.imageio.plugins.png.PNGImageWriter.write(PNGImageWriter.java:1135)
         ... 9 more

  • Excise invoice is not saving and not showing datas

    in erxcise invoice i ve made settings as per the sap best practices then also the excise invoice is not saved and not generated also
    please help me to solve the problem
    the error is coming like this
    Error in allocating Excise invoice number Interval not found Number object J_1IEXCLOC
    Message no. 8I336
    i ve already maintainthe number range for this object in tool in tax in goods moment
    please give some better advice for the excise invoice setting.

    Sub Transaction type determines the subcontracting attributes and determines the accounts for the posting while doing a sub contracting transaction.
    Sub transaction type is also used for determining the accounts while
    doing excise removals.
    Within CIN the account determination is based on the transaction type.
    So normally you can have a single set of accounts for Excise
    utilization. In case you need alternate account determination for
    handling various scenarios you can define sub transaction types. The
    sub transaction types and corresponding account assignments needs to be
    maintained in CIN customization
    To make customization of Sub Transaction type, goto
    <b>SPRO --> Logistics General --> Tax on Goods Movements --> India --> Account Determination and check whether you have assigned second and third one, viz. "Specify Excise Accounts per Excise Transaction and Specify GL Accounts per Excise Transaction".</b>
    Check
    <b>Taxes on goods mvnt--indiaaccnt determination---specify excise accnts for excise transaction...maintain the sub transction type , ip or 01,
    against the appropriate ETT</b>
    Message was edited by:
            sam masker

  • In an eMail message, when I attempt to save two photos by clicking the 'Save 2 Images' link, not the 'Save Image' link, the images are not saved. (I use I I apologize for the late notice, butOS7 on IPhone5). Is this feature broken?

    In an eMail message, when I attempt to save two photos by clicking the 'Save 2 Images' link, not the 'Save Image' link, the images are not saved. (I use I I apologize for the late notice, butOS7 on IPhone5). Is this feature broken?

    Please don't post the same question multiple times!

  • Non admin user - changes not saved (Safari settings, system prefs, etc.)

    iMac, 2 users, one is administrator and other is standard user. Recently, in the non-admin user account, it has become impossible to make any changes. For example, adding an application to the the Dock, after logging out and back in next time, the application is not in the Dock any more. Also, making changes to the prefs in Safari, changes are not saved.
    I noticed this after installing FireFox v4. I installed it as admin whilst in the non-admin users account. However, I don't believe that the installation of FF has anything to do with the problem, it just highlighted it. I've checked the permissions for the various directories that hold prefs info such as user/libraries/application prefs/etc. etc. and also Safari prefs. Nothing I can see that has changed in system prefs.
    Any ideas on what has caused the problem (kids are known to fiddle from within the non-admin account) and any ideas on how to fix it?
    Thanks

    Hi PPRuNe,
    You could try making the standard user an Admin too. To do this, make sure you are logged in to the standard user, go to System Preferences > Accounts > Standard user (you may have to unlock the padlock) > Allow user to administer this computer
    This will allow changes to be made without being prompted for a password all the time.
    However, if you had Parental Controls on, they probably won't work on an admin account because as an admin you have complete control over a computer, so the computer thinks there is no point in having the controls turned on. And if the kids are known to "fiddle," just think carefully!
    Hope this helps you.
    Chris.

  • Microsoft Outlook 2010 The delegates settings were not saved correctly. Cannot activate Send-on-behalf-of list. You do not have sufficient permission to perform this operation on this object.

    I am trying to assign delegation to a user and I receive the following message.
    The delegates settings were not saved correctly.  Cannot activate Send-on-behalf-of list.  You do not have sufficient permission to perform this operation on this object.
    We are using 2010 for the server and client.  There are only specific mailboxes that this is happening for after being migrated from Lotus Notes.  The user can use their mailfile fine however it is just the delegation that appears corrupted somehow. 
    I'm not sure how to fix this.  I have checked the access through the security tab in ad and that looks fine.
    Any help would be appreciated.

    I did some more digging and I solved it.
    This would be the solution:
    In Active Directory Users and Computers
    -Click on VIEW
    -Click on ADVANCE FEATURES  (this is important otherwise you won't see
    the complete list in the next steps)
    -Click on the USERS container
    -Find the problem user's account
    -Right mouse the account and click on PROPERTIES
    -Click on the SECURITY tab
    -In the top box, click on the SELF account
    -In the bottom portion of the screen make sure the READ PERSONAL
    INFORMATION  & WRITE PERSONAL INFORMATION  should both be checked for
    ALLOW
    If you can compare the permissions for 'SELF' with another user you probably should set them accordingly to be safe. I noticed that for the user where setting delegates (SOB) did
    not work, more than those 2 permissions were missing.
    Good luck!
    David

  • My blends in Illustrator CS4 are not saving or printing correctly.  Why?

    Why are my blends in Illustrator CS4 not saving or printing correctly???
    SPECS:
    Adobe CS4
    MAC 10.5.8
    I got a outlined Text blend with a drop shadow.  And another text with a drop shadow on top.  Not too complex at all.
    Heres some screenshots of the problem.
    (1) Adobe Illustrator Screenshot
    (1) Screenshot of my saved TIff file.  I saved as a PDF as well and still no luck.
    Any suggestions?

    Mylenium,
    Thanks for you time and suggestions!  You helped alot!  My layers panel was crazy.  I re-arranged, re-organized and stacked according to the graphic.  Solved my problem first try.  Not used to making sure the order is right in illustrator, only in photoshop.
    Thanks again man!
    -NightRed

  • Sent Messages are not saved in Sent Mailbox

    It was working correctly but suddenly all my sent messages are not saved in the Sent Mailbox. I follow all the Mail Help instructions but nothing seems to work. Hope that someone can help me. I asked for help on december 14 but it was not helpful

    The mailboxes drawer contains all mailboxes under In, Drafts, Sent, Trash and Junk (if you have Junk Mail set to automatic).
    If you have a .Mac or IMAP type account, you also have an account named icon for the .Mac or IMAP type account at the bottom of the mailboxes drawer. It is named by the Account Description you provided/entered for the account under the Account Information tab for the account preferences.
    If you select save Sent messages on the server for a .Mac or IMAP type account, the account's Sent mailbox will be available under the account named icon in the mailboxes drawer along with all other server stored mailboxes.
    To open the account named icon for your .Mac account to reveal the server stored mailboxes including the account's Sent mailbox, select the black triangle beside your .Mac account icon in the mailboxes drawer pointing it down.
    Select the account's Sent mailbox and at the menu bar, go to Mailbox > Use This Mailbox For and select Sent.
    If you deselect store Sent messages on the server for the account preferences, the account's Sent mailbox will be available under Sent in the mailboxes drawer and you can't use "Use This Mailbox For" for mailboxes stored locally on the hard drive. It can only be used for .Mac or IMAP type account mailboxes that are stored on the server.

  • Hyperlinks not saved correctly in PDF and Excel

    Hi,
    I have a few reports with hyperlinks to other reports that contain multiple input parameters, which makes the links very long. ( greater than 400 characters )
    When the reports are saved as excel, I am unable to invoke the child report on clicking the link as the link is not saved entirely ( can see that when i try to edit the hyperlink in excel ).  Therefore the child report opens but prompts for inputs as not all the inputs are passed
    When saved as pdf, the link is not saved correctly and i cannot invoke the child report at all
    Please can you suggest a solution/workaround? Alternately is it possible to disable the hyperlinks when saved as excel/pdf?
    Regards
    Sameer

    Hello,
    I think this is a limitation in Excel where URL syntax has to be 255 characters or less
    In order to prove that it's coming from excel and not BO, try in excel to create a false hyperlink which contains more than 255 characters.
    A workaround might be to modify the cell as text and will not be recognized as a URL. So you should get it entirely.
    Please let me know if it helps you
    Regards,
    Philippe

Maybe you are looking for

  • Report for material cost estimation

    Dear All,            my report spec is when I give the material no (finished goods) and plant it should show the sub-material that qty and price also...Could u tell me the table name for getting these sub-item and main-item ..<b></b><b></b><b></b><b>

  • MAIL APP ISSUE

    I have a issue with the mail app in mountain lion.  In my gmail account on the mail app when i try to delete a email it goes to trash then when i delete it from there it will reapear in my inbox after 10 seconds or so. so my ? is how do i get it to n

  • Getting Error in setting configuration of iPod using OS X Server Profile Manager

    We are getting error when we are trying to configure the iPods using Profile Manager. Please let me know what is causing for this kind of error. Please see in attachment.

  • Hi! My Iphone 4 is showing no service

    Dear Officer Since last 3-4 days, I am facing problem with Signal. Suddenly i am receiving NO SERVICE. I have check with service provider change the sim card too. But still the problem remain same. Requesting you to kindly guide us. with regards, Pav

  • New ram crashes fcp

    I just purchased new ram for the second day in a row. I bought four 1 gig ram sticks for my g5 power pc mac. I have a total of 6 gigs. I had previously had two gigs, 4 512 ram sticks. Under about this mac, my new ram is reongized and other programs r