Question Objects

Hi all,
I am new to java programming...
I am using the object like below..
I am creating 2 objects or1, or2
after Excuting the below code
OResult or1 = upload.getSpaceResult();//return OResult
or1.wafer_status = "OK";
or1.parameter_name = "dicke";
vResult.addElement(or1);
OResult or2 = upload.getSpaceResult();//return OResult
or2.wafer_status = "normal";
or2.parameter_name = "dicke norm.";
vResult.addElement(or2);
the vResult vector has 2 Objects of OResult ..
Problem is the 2 objects has the same date
or1 = normal and dicke norm
and also or2 = normal and dicke norm
but I want like...
or1 = OK and dicke
or2 = normal and dicke norm
please tell me how to define the OResult object
thanks

post the code for OResult please
without seeing it, i think maybe you have declared wafer_status and parameter_name as static
static is refered to as a class variable, there is only one instance for ALL instances of the Object, so if you change it, it changes for all of them
it is sometimes call a constant too, but thats getting back to 'other' languages

Similar Messages

  • TopLink - Best Practice Question - Object Validation

    We are fairly new to TopLink and have a question about doing object validation. We would like perform some validation on our objects that are about to be persisted to the DB. Since TopLink will persist all objects that are reachable from the ojects that are registered (I think) we would like to send a message to each of these objects (validate) before they are persisted. If the object validation fails, we will throw an exception (and the objects will not be persisted), hopefully such that the exception can be received by the client. Has anybody done anything similar to this before, or is there a better way of approaching this?
    TIA for any help.

    Are you using EJBs?
    If so, there are a couple of options that may work better for you.
    1. You could use the ejbStore method for your validation and throw the exception in there. You should be able to get the exception on the client side, but it may be wrapped in several layers.
    2. For more complex validation, you may want to use a session bean to control the validation process. It can interact with your entity beans and provide feedback about why validation fails.

  • Newbie question, object stays underneath every other object on the layer?

    I'm trying to create a logo with a glass shine and shadfows. Now there something funny. On one layer an object stays beneath every layer. While doing so in the layers panel the object is placed on top. Tried ctrl_x and then ctrl-f but the object stays below every other object. But in the layer panel its placed on top???
    TIA

    The layer itself is normal 100% opacity. Now the black object stays behind all the other objects...

  • Testing Question - Objective Settings and Appraisals

    Hi Experts
    During testing, we need to delete  appraisal docs under Appraisal Template and  do "cancel release", each time need  to change configurations or for any changes in the template.
    Since in Perf Mgmt , it is recommeded to transport at the very end, how can we accomodate these changes as the tranport is already released and moved to QA?  
    Secondly, how can we transport  configurations done for the front end/ portal configurations as the project requirement is to access appraisal template via ESS/MSS?
    I have done this whole project in Sandbox ( as we have real data there) and tested and worked fine, now doing everything in DEV and moving to QA and then Prod, I need to be educated on accomodating and moving configurations through different landscapes.

    Hi,
    For the customizing, just make your changes, put them on a transport and push them thru your landscape. You can create as many transports as needed, just make sure you import them in the right order
    Regards and Groetjes,
    Maurice Hagen

  • Object management in Oracle 8i

    I was looking for an Oracle 8i newsgroup... This is the closest I found. Hope it's the right place!
    Question: object are managed through OIDs; is there any way to "move" a record from one table to another one of the same definition while keeping the same OID?
    Example: Type A in table T1 has a REF to Type B, which holds the OID to a record R1 in table T2. (Hum... lots of letters...) I want to take R1 and archive it into table T3, but I would like that my original record (way up there, in table T1) keeps the same OID refed (and not dangling). That way, I archive stuff and don't have to update any REFs. Doable?
    I know I can do it though triggers or methods or whathaveya, but it'd be much nicer (with less overhead) if I could "cary" the OID across multiple tables.
    Anyone has any idea?

    If OIDs are primary-key based, maybe you can keep it.

  • Delete only the child object and not the parent object

    Hi,
    I have the below code:-
    TAnswer
    @ManyToOne(fetch = FetchType.LAZY)
         @JoinColumn(name = "question_id", nullable = false)
    //     @Cascade(value=CascadeType.ALL)
         public TQuestion getTQuestion() {
              return this.TQuestion;
         }     TQuestion
    @OneToMany(fetch = FetchType.LAZY, mappedBy = "TQuestion", orphanRemoval = true)
         @Cascade(value=CascadeType.ALL)
         /*@Cascade({org.hibernate.annotations.CascadeType.SAVE_UPDATE,
                org.hibernate.annotations.CascadeType.DELETE,
                org.hibernate.annotations.CascadeType.MERGE,
                org.hibernate.annotations.CascadeType.PERSIST,
                org.hibernate.annotations.CascadeType.DELETE_ORPHAN})*/
         public List<TAnswer> getTAnswers() {
              return this.TAnswers;
                   In Java:-
         public void removeAnswers(TQuestion question)
                        throws ApplicationException {
                   List<TAnswer> answerList =  question.getTAnswers();
                   deleteall(answerList);
         public void deleteall(Collection objects) {
                   try {
                        getHibernateTemplate().deleteAll(objects);
                        getHibernateTemplate().flush();
                   } catch (Exception e) {
                        throw new ServerSystemException(ErrorConstants.DATA_LAYER_ERR, e);
         }               Here the "deleteall" will delete both the answer records and question records, I don't want the questions
         records to be deleted. I have tried making the question as null when we set the answer object to be passed for delete
         bit still it is     deleting the question records as well.How to achieve the above in deleting only the answer (child) records
         and not the question(parent) record? Is there any thing we need to do with @Cascade for Question object? Please clarify.
    Thanks.

    What does deleteAll do, it doesn't look like a JPA method. You might want to ask your question on your provider forum, or use straight JPA methods as a simple EntityManager.remove(answer) on each answer in the collection should work.
    Regards,
    Chris

  • The method clone() from the type Object is not visible

    Hi,
    This is my 1st post here for a few years, i have just returned to java.
    I am working through a java gaming book, and the "The method clone() from the type Object is not visible" appears, preventing the program from running. I understand "clone" as making a new copy of an object, allowing multiple different copies to be made.
    The error occurs here
    public Object clone() {
            // use reflection to create the correct subclass
            Constructor constructor = getClass().getConstructors()[0];
            try {
                return constructor.newInstance(new Object[] {
                    (Animation)left.clone(),
                    (Animation)right.clone(),
                    (Animation)deadLeft.clone(),
                    (Animation)deadRight.clone()
            catch (Exception ex) {
                // should never happen
                ex.printStackTrace();
                return null;
        }The whole code for this class is here
    package tilegame.sprites;
    import java.lang.reflect.Constructor;
    import graphics.*;
        A Creature is a Sprite that is affected by gravity and can
        die. It has four Animations: moving left, moving right,
        dying on the left, and dying on the right.
    public abstract class Creature extends Sprite {
            Amount of time to go from STATE_DYING to STATE_DEAD.
        private static final int DIE_TIME = 1000;
        public static final int STATE_NORMAL = 0;
        public static final int STATE_DYING = 1;
        public static final int STATE_DEAD = 2;
        private Animation left;
        private Animation right;
        private Animation deadLeft;
        private Animation deadRight;
        private int state;
        private long stateTime;
            Creates a new Creature with the specified Animations.
        public Creature(Animation left, Animation right,
            Animation deadLeft, Animation deadRight)
            super(right);
            this.left = left;
            this.right = right;
            this.deadLeft = deadLeft;
            this.deadRight = deadRight;
            state = STATE_NORMAL;
        public Object clone() {
            // use reflection to create the correct subclass
            Constructor constructor = getClass().getConstructors()[0];
            try {
                return constructor.newInstance(new Object[] {
                    (Animation)left.clone(),
                    (Animation)right.clone(),
                    (Animation)deadLeft.clone(),
                    (Animation)deadRight.clone()
            catch (Exception ex) {
                // should never happen
                ex.printStackTrace();
                return null;
            Gets the maximum speed of this Creature.
        public float getMaxSpeed() {
            return 0;
            Wakes up the creature when the Creature first appears
            on screen. Normally, the creature starts moving left.
        public void wakeUp() {
            if (getState() == STATE_NORMAL && getVelocityX() == 0) {
                setVelocityX(-getMaxSpeed());
            Gets the state of this Creature. The state is either
            STATE_NORMAL, STATE_DYING, or STATE_DEAD.
        public int getState() {
            return state;
            Sets the state of this Creature to STATE_NORMAL,
            STATE_DYING, or STATE_DEAD.
        public void setState(int state) {
            if (this.state != state) {
                this.state = state;
                stateTime = 0;
                if (state == STATE_DYING) {
                    setVelocityX(0);
                    setVelocityY(0);
            Checks if this creature is alive.
        public boolean isAlive() {
            return (state == STATE_NORMAL);
            Checks if this creature is flying.
        public boolean isFlying() {
            return false;
            Called before update() if the creature collided with a
            tile horizontally.
        public void collideHorizontal() {
            setVelocityX(-getVelocityX());
            Called before update() if the creature collided with a
            tile vertically.
        public void collideVertical() {
            setVelocityY(0);
            Updates the animaton for this creature.
        public void update(long elapsedTime) {
            // select the correct Animation
            Animation newAnim = anim;
            if (getVelocityX() < 0) {
                newAnim = left;
            else if (getVelocityX() > 0) {
                newAnim = right;
            if (state == STATE_DYING && newAnim == left) {
                newAnim = deadLeft;
            else if (state == STATE_DYING && newAnim == right) {
                newAnim = deadRight;
            // update the Animation
            if (anim != newAnim) {
                anim = newAnim;
                anim.start();
            else {
                anim.update(elapsedTime);
            // update to "dead" state
            stateTime += elapsedTime;
            if (state == STATE_DYING && stateTime >= DIE_TIME) {
                setState(STATE_DEAD);
    }Any advice? Is it "protected"? Is the code out-of-date?
    thankyou,
    Lance 28

    Lance28 wrote:
    Any advice? Is it "protected"? Is the code out-of-date?Welcome to the wonderful world of Cloneable. In answer to your first question: Object's clone() method is protected.
    A quote from Josh Bloch's "Effective Java" (Item 10):
    "A class that implements Cloneable is expected to provide a properly functioning public clone() method. It is not, in general, possible to do so unless +all+ of the class's superclasses provide a well-behaved clone implementation, whether public or protected."
    One way to check that would be to see if super.clone() works. Their method uses reflection to try and construct a valid Creature, but it relies on Animation's clone() method, which itself may be faulty. Bloch suggests the following pattern:public Object clone() throws CloneNotSupportedException {
       ThisClass copy = (ThisClass) super.clone();
       // do any additional initialization required...
       return copy
    if that doesn't work, you +may+ be out of luck.
    Another thing to note is that Object's clone() method returns a +shallow+ copy of the original object. If it contains any data structures (eg, Collections or arrays) that point to other objects, you may find that your cloned object is now sharing those with the original.
    Good luck.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Modifying locked object of a synchronization block

    Hi everyone,
    Does someone know what happens if an object used as lock in a synchronization block, is modified into the same block?
    Look to the belowe example to clarify my question:
    Object out is modified into the synchronization block: other threads that try to executed another synchonization block (with out as lock object) become able to execute it because now the reference is changed?
    Thank you very much in advance.
    Diego
    synchronized (out) {
              try {               
                   out = new PrintStream (new FileOutputStream (file));
                   out.println ();
              } catch (FileNotFoundException e) {
    .................

    DiegoCarzaniga wrote:
    Thank you very much Kajbj.
    This means that JAVA synchronization uses object references to implement locks... is it correct?No. A monitor lock is associated with an instance and not with the reference to an instance.
    E.g.
    Object lock = new Object();
    Object sameLock = lock;Here lock and sameLock are referencing the same object and that object only has one monitor so you can either synchronize on lock or sameLock (but I would advise against it since it might cause confusion)
    Kaj

  • How to lock object after merging transport list?

    Hello,
    I am facing following Problem:
    We have one big transport request with approx. 15 tasks where each developer wrote his developments on it.
    Now we want to structure this bis transport.
    Therefore I thought to create a new transport request and merge (via se03) the old tasks (from the big transport request) on this new transport request.
    Then I have in this new transport request only one entry e.g. for my InfoCube (in my old (big) transport I had in diffenrent tasks entries for this cube.
    Do you agree with my step-by-step solution?
    As a further question:
    Objects are locked in in my old transport request. How can I unlock this objects and lock the objects in my new transport request?
    If s.th. is unclear pls. give information...I will provide you information.

    Hi ,
       Goto TCode: SE03 and choose Unlock Objects (Expert Tool)  to unlock objects from any request/task.
       Then assign or move to new request. To lock: right click on request/task from context menu you will get option to lock or double click on request/task there you can see option for locking(lock button).
    Hope it Helps
    Srini

  • Java.lang.ClassCastException: org.model.Question

    I'm trying to typecast a list of question Objects to Object StudyQuestionPage. Im doing this becase i want to set the list of question to its boolean validate property to validate the return of validate. Im getting a typecast error:
    [ROOT] ERROR [http-8080-1] DispatcherUtils.serviceAction(237) | Could not execute action
    java.lang.ClassCastException: org.model.Question
    at org.webapp.action.DemogAction.saveQuesOrder(DemogAction.java:1147).
    Here is the code of what im doing:
    questionsList = demogManager.getQuestions(sqp);
    for(Object sqpTemp:questionsList){
         questionTemp = (StudyQuestionsPage)sqpTemp; <---- /* im getting the line error here*/
         questionTemp.setValidate(validate);
         studyPageManager.saveStudyPage(sqp);
    }

    shendel wrote:
    I'm trying to typecast a list of question Objects to Object StudyQuestionPage. Im doing this becase i want to set the list of question to its boolean validate property to validate the return of validate. Im getting a typecast error:
    [ROOT] ERROR [http-8080-1] DispatcherUtils.serviceAction(237) | Could not execute action
    java.lang.ClassCastException: org.model.Question
    at org.webapp.action.DemogAction.saveQuesOrder(DemogAction.java:1147).Okay so?
    You don't have a StudyQuestionPage you have an org.model.Question. If StudyQuestionPage extended org.model.Question then you could, but it doesn't so you can't.

  • How to iterate Cascading Object List?

    Hi All,
    I faced an issue when iterate a List like below,
    class Program
    private List<Question> questionList = new List<Question>();
    // Add serveral questions in questionList.
    static void Main(string[] args)
    // Currently, I got a Question instance. and I will loop in questionList. Since as you can see, the Question Object is a Cascading object.
    // How to Loop the question the Question List.
    public class Question
    public List<Question> Questions { get; set; }
    public string Title { get; set; }
    public string Score { get; set; }
    Thanks a lot.

    Hi All,
    Sorry for my bad English. I am not a native English Speaker. What I want to do is remove the item in the Question list.
    List<Question> QuestionList = new List<Question>();
    Question Q11 = new Question()
    Title = "1.1",
    Score = 5,
    Question Q12 = new Question()
    Title = "1.2",
    Score = 5,
    Question Q13 = new Question()
    Title = "1.3",
    Score = 5,
    List<Question> Q13List = new List<Question>();
    Question Q131 = new Question()
    Title = "1.3.1",
    Score = 5,
    Question Q132 = new Question()
    Title = "1.3.2",
    Score = 5,
    List<Question> Q132List = new List<Question>();
    Question Q1321 = new Question()
    Title = "1.3.2.1",
    Score = 5,
    Question Q1322 = new Question()
    Title = "1.3.2.2",
    Score = 5,
    Question Q1323 = new Question()
    Title = "1.3.2.3",
    Score = 5,
    Q132.Questions = Q132List;
    Q13List.Add(Q131);
    Q13List.Add(Q132);
    Q13.Questions = Q13List;
    List<Question> Q1List = new List<Question>();
    Q1List.Add(Q11);
    Q1List.Add(Q12);
    Q1List.Add(Q13);
    Question Q1 = new Question()
    Title = "First One",
    Score = 25,
    Questions = Q1List,
    Question Q2 = new Question()
    Title = "Second",
    Score = 25,
    Question Q3 = new Question()
    Title = "Third",
    Score = 25,
    QuestionList.Add(Q1);
    QuestionList.Add(Q2);
    QuestionList.Add(Q3);
    // The question need delete in Question List. How should I found the Question in the QuestionList.
    Question needDeleteQuestion = new Question()
    Title = "1.3.2",
    Score = 5,
    Thank you very much guys for your help.

  • Problems with Reflection API and intantiating an class from a string value

    I want to instantiate a class with the name from a String. I have used the reflection api so:
    static Object createObject(String className) {
    Object object = null;
    try {
    Class classDefinition = Class.forName(className);
    object = classDefinition.newInstance();
    } catch (InstantiationException e) {
    System.out.println(e);
    } catch (IllegalAccessException e) {
    System.out.println(e);
    } catch (ClassNotFoundException e) {
    System.out.println(e);
    return object;
    Let's say my class name is "Frame1".
    and then if i use:
    Frame1 frm = (Frame1) createObject("Frame1");
    everything is ok but i cannot do this because the name "Frame1" is a String variable called "name" and it doesn't work like:
    name frm = (name) createObject("Frame1");
    where i'm i mistaking?
    Thanks very much!

    i have understood what you have told me but here is a little problem
    here is how my test code looks like
    Class[] parameterTypes = new Class[] {String.class};
    Object frm = createObject("Frame1");
    Class cls = frm.getClass();
    cls.getMethod("pack",parameterTypes);
    cls.getMethod("validate",parameterTypes);
    everything works ok till now.
    usually if i would of had instantiated the "Frame1" class standardly the "cls" (or "frm" in the first question ) object would be an java.awt.Window object so now i can't use the function (proprietary):
    frame_pos_size.frame_pos_size(frm,true);
    this function requires as parameters: frame_pos_size(java.awt.Window, boolean)
    because my cls or frm objects are not java.awt.Window i really don't find any solution for my problem. I hope you have understood my problem. Please help. Thanks a lot in advance.

  • Getting a program Dump Error in Herarchial ALV

    Hello All,
    I am getting a dump error when I am executing the below program. Kindly help as I am not getting the output. However all the subroutines are getting properly populated with data. Getting a dump error while calling the function : REUSE_ALV_HIERSEQ_LIST_DISPLAY
    Pasted below are both the question and solution. Copy the solution in SE38 and execute it to check out the dump error.
    Kindly help.
    Thanks,
    Vinod.
    QUESTION :-
    Objective
         Hierarchical ALV for displaying Sales documents per customer
    Design
         Create a program that will allow the user to display all customers that have placed Sales Orders in the given date range. The user will have an ability to drill-down to see the sales order items per customer.
         Selection screen fields–
              Sales order creation date (range)
              Customer number (range)
         Output –
              Header –
                   Customer Number
                   Customer Name
                   Total Order value (sum of order values from items below)
              Details –
    Sales order number
    Material number
    Order quantity
    Order value
    Reference
         Tables:  KNA1, VBAK, VBAP
         Transaction – VA03 (Sales order)
    SOLUTION :-
    *& Report  Z_HALV_32722                                                *
    REPORT  Z_HALV_32722                            .
    TYPE-POOLS: slis.
    TABLES : kna1,
             vbak.
    SELECT-OPTIONS: s_cst_no FOR kna1-kunnr.
    SELECT-OPTIONS: s_cr_dt FOR vbak-erdat.
    DATA : BEGIN of ty_hdr,
            kunnr TYPE vbak-kunnr,
            name1 TYPE kna1-name1,
            netwr TYPE vbak-netwr,
            END of ty_hdr,
            gt_hdr LIKE TABLE OF ty_hdr,
            gs_hdr LIKE LINE OF gt_hdr.
    DATA : BEGIN of ty_ln,
            kunnr TYPE vbak-kunnr,
            vbeln TYPE vbap-vbeln,
            matnr TYPE vbap-matnr,
            kwmeng TYPE vbap-kwmeng,
            netwr TYPE vbap-netwr,
            END of ty_ln,
            gt_ln LIKE TABLE OF ty_ln,
            gs_ln LIKE LINE OF gt_ln.
    DATA : BEGIN of ty_hdr1,
            kunnr TYPE vbak-kunnr,
            END of ty_hdr1,
            gt_hdr1 LIKE TABLE OF ty_hdr1,
            gs_hdr1 LIKE LINE OF gt_hdr1.
    DATA : gt_fc TYPE slis_t_fieldcat_alv,
           gs_fc LIKE LINE OF gt_fc,
           gs_k_fld TYPE  slis_keyinfo_alv,
           gt_layout TYPE slis_layout_alv,
           gv_repid  TYPE sy-repid.
    START-OF-SELECTION.
    gv_repid = sy-repid.
    perform fetch_data.
    perform prepare_fc.
    perform prepare_layout.
    perform show_output.
    *&      Form  fetch_data
          text
    -->  p1        text
    <--  p2        text
    form fetch_data .
    SELECT kunnr
    INTO CORRESPONDING FIELDS OF TABLE gt_hdr1
    FROM vbak
    WHERE vbak~kunnr IN s_cst_no
    AND vbak~erdat IN s_cr_dt.
    DELETE ADJACENT DUPLICATES FROM gt_hdr1 COMPARING kunnr.
    LOOP AT gt_hdr1 INTO gs_hdr1.
      SELECT SINGLE vbakkunnr kna1name1 SUM( vbak~netwr )
      INTO (gs_hdr-kunnr, gs_hdr-name1, gs_hdr-netwr)
      FROM vbak INNER JOIN kna1
      ON vbakkunnr = kna1kunnr
      WHERE vbak~kunnr = gs_hdr1-kunnr
      GROUP BY vbakkunnr kna1name1.
      APPEND gs_hdr TO gt_hdr.
      SELECT vbakkunnr vbapvbeln vbapmatnr vbapkwmeng vbap~netwr
      INTO CORRESPONDING FIELDS OF TABLE gt_ln
      FROM vbap INNER JOIN vbak
      ON vbapvbeln = vbakvbeln
      WHERE vbak~kunnr = gs_hdr1-kunnr.
    ENDLOOP.
    endform.                    " fetch_data
    *&      Form  prepare_fc
          text
    -->  p1        text
    <--  p2        text
    form prepare_fc .
      CLEAR gs_k_fld.
      gs_k_fld-header01 = 'KUNNR'.
      gs_k_fld-item01   = 'KUNNR'.
      CLEAR gs_fc.
      gs_fc-fieldname = 'KUNNR'.
      gs_fc-tabname   = 'GT_HDR'.
      gs_fc-seltext_l = text-001.
      APPEND gs_fc TO gt_fc.
      CLEAR gs_fc.
      gs_fc-fieldname = 'NAME1'.
      gs_fc-tabname   = 'GT_HDR'.
      gs_fc-seltext_l = text-002.
      APPEND gs_fc TO gt_fc.
      CLEAR gs_fc.
      gs_fc-fieldname = 'NETWR'.
      gs_fc-tabname   = 'GT_HDR'.
      gs_fc-seltext_l = text-003.
      APPEND gs_fc TO gt_fc.
      CLEAR gs_fc.
      gs_fc-fieldname = 'VBELN'.
      gs_fc-tabname   = 'GT_LN'.
      gs_fc-seltext_l = text-004.
      APPEND gs_fc TO gt_fc.
      CLEAR gs_fc.
      gs_fc-fieldname = 'MATNR'.
      gs_fc-tabname   = 'GT_LN'.
      gs_fc-seltext_l = text-005.
      APPEND gs_fc TO gt_fc.
      CLEAR gs_fc.
      gs_fc-fieldname = 'KWMENG'.
      gs_fc-tabname   = 'GT_LN'.
      gs_fc-seltext_l = text-006.
      APPEND gs_fc TO gt_fc.
      CLEAR gs_fc.
      gs_fc-fieldname = 'NETWR'.
      gs_fc-tabname   = 'GT_LN'.
      gs_fc-seltext_l = text-007.
      APPEND gs_fc TO gt_fc.
    endform.                    " prepare_fc
    *&      Form  prepare_layout
          text
    -->  p1        text
    <--  p2        text
    form prepare_layout .
    gt_layout-colwidth_optimize = 'X'.
    gt_layout-expand_fieldname = 'TST'.
    endform.                    " prepare_layout
    *&      Form  show_output
          text
    -->  p1        text
    <--  p2        text
    form show_output .
    CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
      EXPORTING
      I_INTERFACE_CHECK              = ' '
        I_CALLBACK_PROGRAM             = gv_repid
      I_CALLBACK_PF_STATUS_SET       = ' '
      I_CALLBACK_USER_COMMAND        = ' '
        IS_LAYOUT                      = gt_layout
        IT_FIELDCAT                    = gt_fc
      IT_EXCLUDING                   =
      IT_SPECIAL_GROUPS              =
      IT_SORT                        =
      IT_FILTER                      =
      IS_SEL_HIDE                    =
      I_SCREEN_START_COLUMN          = 0
      I_SCREEN_START_LINE            = 0
      I_SCREEN_END_COLUMN            = 0
      I_SCREEN_END_LINE              = 0
      I_DEFAULT                      = 'X'
      I_SAVE                         = ' '
      IS_VARIANT                     =
      IT_EVENTS                      =
      IT_EVENT_EXIT                  =
        i_tabname_header               = 'GT_HDR'
        i_tabname_item                 = 'GT_LN'
      I_STRUCTURE_NAME_HEADER        =
      I_STRUCTURE_NAME_ITEM          =
        is_keyinfo                     = gs_k_fld
      IS_PRINT                       =
      IS_REPREP_ID                   =
      I_BYPASSING_BUFFER             =
      I_BUFFER_ACTIVE                =
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER        =
      ES_EXIT_CAUSED_BY_USER         =
      tables
        t_outtab_header                = GT_HDR[]
        t_outtab_item                  = GT_LN[]
    EXCEPTIONS
      PROGRAM_ERROR                  = 1
      OTHERS                         = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    endform.                    " show_output

    Everything looks fine with the gt_layout, it is not an internal table, so no need to append to it, it is simply a structure, but you do tell it that TST is the expand field, but there is no field of this name in your internal for the header, so add it like this.
    DATA : BEGIN of ty_hdr,
    kunnr TYPE vbak-kunnr,
    name1 TYPE kna1-name1,
    netwr TYPE vbak-netwr,
    <b>TST  type c,</b>
    END of ty_hdr,
    Doing so should make you program work correctly.
    Regards,
    Rich Heilman
    Message was edited by:
            Rich Heilman

  • Notification sounds not correct

    I thought I posted this earlier this week, but it's nowhere to be found, so here it goes again. I have an iPhone 5 with iOS 7, but this problem started with my iPhone 4S and has continued. All of my notifications play the correct sound, except for Facebook and Twitter. When I receive a Facebook notification, no sound at all plays (except for when I receive a Facebook message). This started after I did an iOS update (not a major one) on my 4S. I have the sound for Twitter notifications set to "Tweet," but it plays the "Tri-Tone" sound instead -- which was also the case on my old iPhone. I have gone in and changed the settings to a bunch of different tones, then back to the ones I want, but to no avail. Any help is appreciated, thanks!

    Hey, were you able to come up with ANY info on this problem?
    i have had this problem since i got my iphone5 in february/2013, and its continued onto my new iPhone5S.
    The best i could come up with, through research and first-hand experience is that the "Facebook" and "twitter" tone options DO work, but only when it is an OUTGOING action YOU PERFORMED (ie a tweet that YOU posted, or a facebook post that YOU posted)
    and since newer iphones have facebook and twitter integration, The facebook and Twitter tones also work for facebook Chat/messages that you receive, and twitter direct/instant messages that you receive.
    As for the other types of notifications that you get from facebook and twitter (ie. Wall posts,being tagged in photos, twitter mentions/@replies, or notifications from people you are following{if turned on})
    :::these notifications seem to fall into the same  category of MOST notifications from ANY App that you download from the app store.
    It seems thats MOST apps do not have a specific notification sound programmed, and ANY notifications that you have selected to receive are carried out with a "default" Apple Notification tone (which appears to be the classic Tri-Tone).
    I have arrived at this conclusion because in the Settings->Sounds menu, only Device Functions are listed and thus able to have their Tone Changed.
    ALSO; in Settings->Notification Center, You will notice that when you click on the various 'apps' listed:
    *****'Stock' Apps (Messages, Phone, Facetime, Reminders, Calender etc.) have sub-options to change the name of the 'Sound' 's Tone (which appears there)
    *****while ALL OTHER Downloaded apps only have a sub-option slider/knob to turn the 'Sound' either 'ON' or 'OFF'
    Since there is no option to select a 'Tone' then it is safe to assume that the activated 'Sound' is the Device's default tone. 
    THEREFORE...if there is no options -WITHIN THE APPLICATION ITSELF- to change the Sound or Tone of their Notifications...the question/objective Now seems to be: How can we change our Device's default Notification Sound? 
    <Edited by Host>

  • ORA-1779 when updating a view

    Hi and thanks in advance !
    i am facing a critical situation.
    i have two schema & both are same!
    the problem which i am facing is during updating a view of one i am facing above error while the same DML is issuing againt that view in other schema and that works fine.
    what's the reason..
    The major difference between two schema's is i hav different live and test database i migrate my access database to Oracle test database # 1.here i created a new user name deals . ok
    i hav done same migration in my another database but a little difference here user deals is already available here and tables and views are also available i drop all the object but forget to purge recyclebin. now whenever i try to issue DML at this schema i am facing above error while the same tables same data and same view is available in above databae where my update statement executed properly. one more thing i like to add here i hav some unwanted trigger 'BIN$##$$%##$# bla bla bla' on different table. i haven't created that .
    here is the view for your kind perusal
    CREATE OR REPLACE VIEW QRYREUTER AS
    SELECT FXdeals.deal_no,
    cparty.name,
    cparty.city,
    FXdeals.brokbill,
    FXdeals.deal_date,
    FXdeals.mode_id
    FROM FXDeals
    JOIN cparty
    ON FXdeals.cpcode = cparty.cpcode
    WHERE ( ( (FXdeals.mode_id) = 3 ) )
    Message was edited by:
    Fiz Dosani

    but i have sample scenario in other schema which replica of this schema so why i haven't got this error there
    one more interesting thing when i query select * from user_updateable_columns where table name ='ABC' in Schema # 1 it return i can modify some columns.
    but when issue the data dictionary view in schema # 2, where i was facing ORA-1779 , select * from user_updateable_columns where table name ='ABC' in Schema # 2 it return i can not modify any columns.
    Tables name are same in both schema.
    Data same in both schema.
    Constraint Same in both schema.
    Indexes same in both schema.
    why facing error in one schema not in other.
    one more interesting thing, i had faced questionable object error when importing DMP into schema # 2.

Maybe you are looking for

  • HT201365 I upgraded to ios 7, how do I open my phone when that code doesn't work?

    Just up-graded to iOS 7, entered a passcode. Now the phone will not unlock with that code. What do I do?

  • How to setup FS Items for debit and credit only Financial Statement Items

    Hi, In Financial Statement, there are line items that report for the same accounts that are debit only under Assets and credit only under Liabilities. How should I setup Consolidation Chart of Accounts/FS Items in EC-CS for such items? Regards, B Lim

  • Pie Chart not showing

    Hi I'm trying to display a pie chart in the WAD, I have a query associated to my Data provider, but it doesn't display properly. I'm running WAD 3.x and support package 7. I tried to use different charts and it seems to display my results fine. Any i

  • Can't change track order for a CD I'm trying to burn - Help! :-/

    I'm trying to put together a CD for my girlfriend (yes I know... sappy) but can't seem to change the order. I'm feeling a bit like an idiot because I was able to change them just hours ago but not anymore. I also noticed I can't drag items from other

  • 647 Movement type

    Hi gurus We use 641 mvmt type for PGI and a manually we process the Goods receipt by delivery using 901 mvmt type which is a copy of 101 but there no SLED check in the 901 mvmt type. But we are trying to make some changes to 647 mvmt type which is a