Attaching a viewpoint to a mobile object (ctnd)

I am trying to attach the user's viewpoint to a moving object in Java 3D. I failed until now to have my code working.
Here is a piece of code that exhibits the problem. I used the HelloWorld3D that is in the Java 3D examples from Sun. I inserted an attachViewpoint() method where the vpTransform.addChild(path) line throws an exception: only a BranchGroup may be added. If this line is commented out, the program compiles and runs but I doesn't track the object.
Do you have an idea to have this code working?
Many thanks
Pierre
* @(#)HelloJava3Db.java 1.1 00/09/22 13:48
* Copyright (c) 1996-2000 Sun Microsystems, Inc. All Rights Reserved.
* Sun grants you ("Licensee") a non-exclusive, royalty free, license to use,
* modify and redistribute this software in source and binary code form,
* provided that i) this copyright notice and license appear on all copies of
* the software; and ii) Licensee does not utilize the software in a manner
* which is disparaging to Sun.
* This software is provided "AS IS," without a warranty of any kind. ALL
* EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY
* IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR
* NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE
* LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
* OR DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS
* LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT,
* INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
* CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF
* OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGES.
* This software is not designed or intended for use in on-line control of
* aircraft, air traffic, aircraft navigation or aircraft communications; or in
* the design, construction, operation or maintenance of any nuclear
* facility. Licensee represents and warrants that it will not use or
* redistribute the Software for such purposes.
import java.applet.Applet;
import java.awt.BorderLayout;
import java.awt.Frame;
import java.awt.event.*;
import java.awt.GraphicsConfiguration;
import com.sun.j3d.utils.applet.MainFrame;
import com.sun.j3d.utils.geometry.ColorCube;
import com.sun.j3d.utils.universe.*;
import javax.media.j3d.*;
import javax.vecmath.*;
// HelloJava3De attempts to track a translating cube
public class HelloJava3De extends Applet {
public SimpleUniverse simpleU;
public BranchGroup createSceneGraph() {
// Create the root of the branch graph
BranchGroup objRoot = new BranchGroup();
Transform3D translate = new Transform3D();
TransformGroup objTranslate = new TransformGroup();
objTranslate.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
objRoot.addChild(objTranslate);
objTranslate.addChild(new ColorCube(0.4));
Alpha translationAlpha = new Alpha(-1, 4000);
Transform3D translationAxis = new Transform3D();
translationAxis.rotY(-Math.PI/2.0d);
PositionInterpolator path = new PositionInterpolator(translationAlpha, objTranslate, translationAxis, 0.0f, -10.0f);
BoundingSphere bounds = new BoundingSphere(new Point3d(0.0, 0.0, 0.0), 100.0);
path.setSchedulingBounds(bounds);
objTranslate.addChild(path);
// Let Java 3D perform optimizations on this scene graph.
objRoot.compile();
return objRoot;
} // end of CreateSceneGraph method of HelloJava3De
public boolean attachViewpoint() {
Vector3f initialViewpoint = new Vector3f(0.0f, 0.0f, 6.0f);
Transform3D translate = new Transform3D();
translate.setTranslation(initialViewpoint);
TransformGroup vpTransform = null;
vpTransform = simpleU.getViewingPlatform().getViewPlatformTransform();
vpTransform.setTransform(translate);
Alpha translationAlpha = new Alpha(-1, 4000);
Transform3D translationAxis = new Transform3D();
translationAxis.rotY(-Math.PI/2.0d);
PositionInterpolator path = new PositionInterpolator(translationAlpha, vpTransform, translationAxis, 0.0f, -10.0f);
BoundingSphere bounds = new BoundingSphere(new Point3d(0.0, 0.0, 0.0), 100.0);
path.setSchedulingBounds(bounds);
vpTransform.addChild(path);
return true;
// Create a simple scene and attach it to the virtual universe
public HelloJava3De() {
setLayout(new BorderLayout());
GraphicsConfiguration config =
SimpleUniverse.getPreferredConfiguration();
Canvas3D canvas3D = new Canvas3D(config);
add("Center", canvas3D);
BranchGroup scene = createSceneGraph();
// SimpleUniverse is a Convenience Utility class
simpleU = new SimpleUniverse(canvas3D);
simpleU.addBranchGraph(scene);
attachViewpoint();
} // end of HelloJava3De (constructor)
// The following allows this to be run as an application
// as well as an applet
public static void main(String[] args) {
Frame frame = new MainFrame(new HelloJava3De(), 256, 256);
} // end of main (method of HelloJava3De)
} // end of class HelloJava3De

I finally found a way to attach a viewpoint to a moving object. I could not do it with the SimpleUniverse pre-defined class and I had to create a VirtualUniverse. May be, there is a workaround that I am not aware of...
There are some other posts asking for this type of program and here is my code. I hope this will help.
Pierre
* @(#)HelloJava3Db.java 1.1 00/09/22 13:48
* Copyright (c) 1996-2000 Sun Microsystems, Inc. All Rights Reserved.
* Sun grants you ("Licensee") a non-exclusive, royalty free, license to use,
* modify and redistribute this software in source and binary code form,
* provided that i) this copyright notice and license appear on all copies of
* the software; and ii) Licensee does not utilize the software in a manner
* which is disparaging to Sun.
* This software is provided "AS IS," without a warranty of any kind. ALL
* EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY
* IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR
* NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE
* LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
* OR DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS
* LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT,
* INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
* CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF
* OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGES.
* This software is not designed or intended for use in on-line control of
* aircraft, air traffic, aircraft navigation or aircraft communications; or in
* the design, construction, operation or maintenance of any nuclear
* facility. Licensee represents and warrants that it will not use or
* redistribute the Software for such purposes.
import java.applet.Applet;
import java.awt.BorderLayout;
import java.awt.Frame;
import java.awt.event.*;
import java.awt.GraphicsConfiguration;
import com.sun.j3d.utils.applet.MainFrame;
import com.sun.j3d.utils.geometry.ColorCube;
import com.sun.j3d.utils.universe.*;
import javax.media.j3d.*;
import javax.vecmath.*;
// HelloJava3De tracks a translating cube
public class HelloJava3De extends Applet {
public VirtualUniverse virtualU;
public Alpha translationAlpha;
public BranchGroup createSceneGraph() {
     // Create the root of the branch graph
     BranchGroup objRoot = new BranchGroup();
     Transform3D translate = new Transform3D();
     TransformGroup objTranslate = new TransformGroup();
     objTranslate.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
     objRoot.addChild(objTranslate);
     objTranslate.addChild(new ColorCube(0.4));
     Transform3D translationAxis = new Transform3D();
     translationAxis.rotY(-Math.PI/2.0d);
     PositionInterpolator path = new PositionInterpolator(translationAlpha, objTranslate, translationAxis, 0.0f, -10.0f);
     BoundingSphere bounds = new BoundingSphere(new Point3d(0.0, 0.0, 0.0), 100.0);
     path.setSchedulingBounds(bounds);
     objTranslate.addChild(path);
     // Let Java 3D perform optimizations on this scene graph.
     objRoot.compile();
     return objRoot;
} // end of CreateSceneGraph method of HelloJava3De
public BranchGroup createViewpoint(Canvas3D canvas3D) {
     // Create the view, platform, and environment.
     //Should roughly correspond to a SimpleUniverse
     View myView = new View();
     ViewPlatform myViewPlatform = new ViewPlatform();
     TransformGroup viewGroup = new TransformGroup();
     myView.addCanvas3D(canvas3D);
     myView.setPhysicalBody(new PhysicalBody());
     myView.setPhysicalEnvironment(new PhysicalEnvironment());
     viewGroup.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
     //viewGroup.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
     //viewGroup.setCapability(TransformGroup.ALLOW_CHILDREN_EXTEND);
     viewGroup.addChild(myViewPlatform);
     myView.attachViewPlatform(myViewPlatform);
     BranchGroup bgView = new BranchGroup();
     bgView.addChild(viewGroup);
     // Create the interpolator
     Transform3D translationAxis = new Transform3D();
     translationAxis.rotY(-Math.PI/2.0d);
     PositionInterpolator path = new PositionInterpolator(translationAlpha, viewGroup, translationAxis, 2.0f, -8.0f);
     BoundingSphere bounds = new BoundingSphere(new Point3d(0.0, 0.0, 0.0), 100.0);
     path.setSchedulingBounds(bounds);
     viewGroup.addChild(path);
     return bgView;
// Create a simple scene and attach it to the virtual universe
public HelloJava3De() {
setLayout(new BorderLayout());
GraphicsConfiguration config =
SimpleUniverse.getPreferredConfiguration();
Canvas3D canvas3D = new Canvas3D(config);
add("Center", canvas3D);
     // Create the virtual universe
virtualU = new VirtualUniverse();
     Locale myLocale = new Locale(virtualU);
     // Create the Alpha object
     translationAlpha = new Alpha(-1, 4000);
BranchGroup scene = createSceneGraph();
     BranchGroup view = createViewpoint(canvas3D);
myLocale.addBranchGraph(scene);     
     myLocale.addBranchGraph(view);
} // end of HelloJava3De (constructor)
// The following allows this to be run as an application
// as well as an applet
public static void main(String[] args) {
     Frame frame = new MainFrame(new HelloJava3De(), 256, 256);
} // end of main (method of HelloJava3De)
} // end of class HelloJava3De

Similar Messages

  • I am trying to generate purchase order and i create a BAPI also which is active. But when i call the BAPI from SYbase Mobile Object RFC then after calling it gives an Error "Conflict when calling a Function Module (Field Length)".

    i am trying to generate purchase order and i create a BAPI also which is active.
    But when i call the BAPI from SYbase Mobile Object RFC then after calling it gives an Error "Conflict when calling a Function Module (Field Length)".

    Hi,
    Yeah i tried my Z_BAPI in R3 and then giving some ERROR.
    This is my CODE-
    FUNCTION ZBAPIPOTV2.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(POHD) TYPE  ZPOHD OPTIONAL
    *"     VALUE(POITEM) TYPE  ZPOITEM OPTIONAL
    *"  TABLES
    *"      RETURN STRUCTURE  BAPIRET1 OPTIONAL
    data: ls_pohd type bapimepoheader,
             ls_pohdx TYPE bapimepoheaderx,
             lt_poit TYPE TABLE OF bapimepoitem,
             lt_poitx TYPE TABLE OF bapimepoitemx,
             ls_poit TYPE bapimepoitem,
             ls_poitx TYPE bapimepoitemx.
       MOVE-CORRESPONDING pohd to ls_pohd.
       MOVE-CORRESPONDING poitem to ls_poit.
       ls_pohdx-comp_code = 'x'.
       ls_pohdx-doc_type = 'x'.
       ls_pohdx-vendor = 'x'.
       ls_pohdx-purch_org = 'x'.
       ls_pohdx-pur_group = 'x'.
       ls_poit-po_item = '00010'.
       APPEND ls_poit to lt_poit.
       ls_poitx-po_item = '00010'.
       ls_poitx-po_itemx = 'x'.
       ls_poitx-material = 'x'.
       ls_poitx-plant = 'x'.
       ls_poitx-quantity = 'x'.
       APPEND ls_poitx to lt_poitx.
    CALL FUNCTION 'BAPI_PO_CREATE1'
       EXPORTING
         POHEADER                     = ls_pohd
        POHEADERX                    =  ls_pohdx
    *   POADDRVENDOR                 =
    *   TESTRUN                      =
    *   MEMORY_UNCOMPLETE            =
    *   MEMORY_COMPLETE              =
    *   POEXPIMPHEADER               =
    *   POEXPIMPHEADERX              =
    *   VERSIONS                     =
    *   NO_MESSAGING                 =
    *   NO_MESSAGE_REQ               =
    *   NO_AUTHORITY                 =
    *   NO_PRICE_FROM_PO             =
    *   PARK_COMPLETE                =
    *   PARK_UNCOMPLETE              =
    * IMPORTING
    *   EXPPURCHASEORDER             =
    *   EXPHEADER                    =
    *   EXPPOEXPIMPHEADER            =
      TABLES
        RETURN                       = return
        POITEM                       = lt_poit
        POITEMX                      = lt_poitx
    *   POADDRDELIVERY               =
    *   POSCHEDULE                   =
    *   POSCHEDULEX                  =
    *   POACCOUNT                    =
    *   POACCOUNTPROFITSEGMENT       =
    *   POACCOUNTX                   =
    *   POCONDHEADER                 =
    *   POCONDHEADERX                =
    *   POCOND                       =
    *   POCONDX                      =
    *   POLIMITS                     =
    *   POCONTRACTLIMITS             =
    *   POSERVICES                   =
    *   POSRVACCESSVALUES            =
    *   POSERVICESTEXT               =
    *   EXTENSIONIN                  =
    *   EXTENSIONOUT                 =
    *   POEXPIMPITEM                 =
    *   POEXPIMPITEMX                =
    *   POTEXTHEADER                 =
    *   POTEXTITEM                   =
    *   ALLVERSIONS                  =
    *   POPARTNER                    =
    *   POCOMPONENTS                 =
    *   POCOMPONENTSX                =
    *   POSHIPPING                   =
    *   POSHIPPINGX                  =
    *   POSHIPPINGEXP                =
    *   SERIALNUMBER                 =
    *   SERIALNUMBERX                =
    *   INVPLANHEADER                =
    *   INVPLANHEADERX               =
    *   INVPLANITEM                  =
    *   INVPLANITEMX                 =
    ENDFUNCTION.
    i am trying to generate purchase order and i create a BAPI also which is active. But when i call the BAPI from SYbase Mobile Object RFC then after calling it gives an Error "Conflict when calling a Function Module (Field Length)". 

  • How do you attach speech to text to an object?  I need step by step instructions.

    How do I attach speech to text to an object?  I need step by step instructions.

    Captivate does not have Speech to Text feature. It has text to speech, which is basically an audio file. You can generate the audio using this feature. The audio that is generated using this feature is in the library. You can drag and drop the audio on any object.
    Sreekanth

  • Change PM Notification - attach / display file as service of object

    Hi experts .
    My requirements are :
    1. open attached file of selected notification for display ( if exists one)
    as it done in transaction iw22->System->Services for Object
    2. attach a file as service of object (in the same transaction Iw22)
    If any  function exists for it ? - In batch input option attach file in non active
    Please your help. Helena

    I'm also not familiar with IW22.
    But I can help you in debugging screens. Open a new notepad and paste the ff:
    [FUNCTION]
    Command=/H
    Title=Debugger
    Type=SystemCommand
    save it and include it in your pc's shortcut icons for easier drag and drop.
    You can simply drag and drop this notepad on the sap screen to activate debugging on screen.

  • Attach file via RFC on an object in SAP R/3 4.6c

    Hi experts,
    I have to attach a file via a RFC into a Business Object of PM module; could be an Order (IW32) or a Note (IW22).
    I had tried the sample codes I saw in here, but none of them proved to be useful - some were not in use for me because of the lack of FM to convert from XSTRING to BINARY in 4.6c, some because of the code (not functional for RFC's)... I am searching (desperately) for directions, or a sample code (that works in 4.6c)!
    The requirements of the function I have to develop is:
    We will use R/3 4.6c integrated via RFCs with the PORTAL.
    For this FM (RFC) we have to:
    1- Receive file content directly into a XSTRING type IMPORT PARAMETER (using GOS resources).
    2- Get this content and save it on a table or ATTACH this content (file) to an PM Order or Note.
    Well, am I in the right way?! Can I develop a RFC like this in 4.6c, or is it impossible?!
    I haven't seen a solution yet for this kind of problem, and ask for your kind help, friends.
    Thanks!
    Marcos Paulo
    SAP/ABAP consultant
    Brazil

    Thanks for welcoming me, friend. Hope I can help you as much as I need your help now...!
    Unfortunately, the method you're counseling me to follow don't fit, as one of my big problems in this case is to convert the Hexadecimal value (XSTRING) brought to the RFC to a binary one BEFORE I can send it to a internal table, thus calling the FM you mentioned, as it expects a TABLE parameter filled with a binary value.
    I know that in earlier versions, there is a conversion routine that could be helpful... I think it is "SCMS_XSTRING_TO_BINARY"... but it isn't found here in 4.6c.
    Neither notes on trying this solution on a DIALOG landscape would help me, I guess. I've tryed every and each program or snippet found here in SDN, unsucessfully though...
    Guess here's the trick: the lack of built-in types and FM on this version of SAP that could help us, desperate developers, find a generic solution in time...
    Thank you, though.
    Is there any other solution? please answer in this topic.
    Marcos

  • Show attached material picture in ABAP screen object

    Hello,
    I'm attaching material pictures with the GOS create attachment option. Here I could attach all kind of documents including the files "*.gif, *.tif, etc." These pictures are stored on our document server. Another possibility I use is to create a url to the direct link of the picture on the vendors site.
    The materials are our own stock materials. These stock materials could be ordered by the reservation system. For that we have created our own reservation screen. In one of the fields they could enter a part of a material description to search for a particular material. If more material is valid these materials are shown in a selection list. To make is easier to pick the right material I want to show the material picture in a ABAP object on the selection screen.
    I'm already able to show, in the list, if there is a material picture available with the function "BAPI_REL_GETRELATIONS"
    If this function returns a table I know there is a (picture) document attached.
    If the clicks on the hotspot in the list I want to show the picture in the ABAP object on the screen.
    Here is a part to see if there is a material picture?
    CLEAR OBJECTID.
    OBJECTID-OBJKEY = makt-matnr. " Long number incl. zero's
    OBJECTID-OBJTYPE = 'BUS1001006'.
    N_lines = 0.
    clear LISTOFRELATIONS.
    CALL FUNCTION 'BAPI_REL_GETRELATIONS'
    EXPORTING
    OBJECTID = OBJECTID
    ROLE =
    RELATION =
    RECURSIONLEVEL = 1
    IMPORTING
    RETURN = B_RETURN2
    TABLES
    LISTOFRELATIONS = LISTOFRELATIONS
    describe table LISTOFRELATIONS lines N_lines.
    IF N_lines > 0.
    WRITE ICON_TIF AS ICON to artikelen-pic.
    ELSE.
    artikelen-pic = ' '.
    ENDIF.
    I'm able to show a picture in the ABAP object with the following code:
    IF P_CONTAINER IS INITIAL.
    CREATE OBJECT: P_CONTAINER EXPORTING container_name = 'MAT_PIC',
    MM_PIC1 EXPORTING parent = P_CONTAINER.
    l_alignment = cl_gui_control=>align_at_left +
    cl_gui_control=>align_at_right +
    cl_gui_control=>align_at_top +
    cl_gui_control=>align_at_bottom.
    CALL METHOD mm_pic1->set_alignment
    EXPORTING
    alignment = l_alignment.
    CALL METHOD mm_pic1->set_3d_border
    EXPORTING
    border = 1.
    CALL METHOD mm_pic1->set_display_mode
    EXPORTING
    display_mode = mm_pic1->display_mode_stretch
    EXCEPTIONS
    error = 1.
    ENDIF.
    IMPORT pict_tab = pict_tab FROM DATABASE abtree(pi) ID 'ENJOY'.
    CALL FUNCTION 'DP_CREATE_URL'
    EXPORTING
    TYPE = 'IMAGE'
    SUBTYPE = 'GIF'
    SIZE =
    DATE =
    TIME =
    DESCRIPTION =
    LIFETIME =
    CACHEABLE =
    SEND_DATA_AS_STRING =
    TABLES
    DATA = pict_tab
    FIELDS =
    PROPERTIES =
    CHANGING
    URL = url
    EXCEPTIONS
    DP_INVALID_PARAMETER = 1
    DP_ERROR_PUT_TABLE = 2
    DP_ERROR_GENERAL = 3
    OTHERS = 4
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL METHOD mm_pic1->load_picture_from_url
    EXPORTING
    url = url
    EXCEPTIONS
    others = 4.
    Could any one help me further to show the picture in the ABAP object 'MAT_PIC'?
    I'm using SAP release 4.7 on a Oracle database.
    The document server is the SAP DMS server on a SAP-DB database.
    Kind regards,
    Richard Meijn

    Refer the following:
    REPORT  ZTEST12.
    * Type declarations.....................
    TYPES pict_line(256) TYPE c.
    * data declarations......................
    DATA :init,
          container TYPE REF TO cl_gui_custom_container,
          editor    TYPE REF TO cl_gui_textedit,
          picture   TYPE REF TO cl_gui_picture,
          pict_tab TYPE TABLE OF pict_line,
          url(255) TYPE c.
    CALL SCREEN 100.
    * Dialog modules......................................
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'SCREEN100'.
      IF init is initial.
        init = 'X'.
        CREATE OBJECT:
               container  EXPORTING container_name = 'PICTURE_CONTAINER',
               picture    EXPORTING parent = container.
      ENDIF.
      IMPORT pict_tab = pict_tab FROM DATABASE abtree(pi) ID 'ENJOY'.
      CALL FUNCTION 'DP_CREATE_URL'
           EXPORTING
                type    = 'IMAGE'
                subtype = 'GIF'
           TABLES
                data    = pict_tab
           CHANGING
                url     = url.
      CALL METHOD picture->load_picture_from_url EXPORTING url = url.
      CALL METHOD picture->set_display_mode
           EXPORTING display_mode = picture->display_mode_fit_center.
    ENDMODULE.
    MODULE cancel INPUT.
      LEAVE TO SCREEN 0.
    ENDMODULE.

  • Issue in attaching dynamic Query to the View Object

    Hi,
    We are having a View Object attached to the JRAD page.
    The View object is build thru as Expert mode. There is no any CDATA
    SQLQUERY stored in the VO.xml file.
    We are building the query dynamically and attaching it to the VO in
    RUNTIME.
    The code is as below
    // getFcstQuery() is method used to return the dynamic query
    String query = getFcstQuery();
    // Setting the Query to View Object
    getViewDef().setQuery(query);
    setQuery(query);
    The JRAD page has sorting option on 5 columns. so when a sorting is
    done the data are interchanged between the clients.
    For example how the query will be build id
    Say for the first user the query will be as
    "select ename,eno,dno from emp where eno=1 "
    for the second user the query may be
    "select ename,eno,dno from emp where eno=2 "
    Now if both the user hit the sorting on any of the column the data is
    interchagned between this both users.
    Please provide solution if possible.
    Thanks in advance
    Balamohan

    Hi Steve,
    We are using 5 tables in building the query.
    Say,
    1) summary
    2) transactions
    3) transactions_history
    4) rules
    5) rules_temp
    but only 2 tables are used at a time
    for read only we are using
    summary table
    for edit only mode we are using
    1) transactions and
    2) rules
    tables
    for edit and recalculate mode we are using
    1) transactions and
    2) rules_temp
    tables
    for one more condition we are using
    1) transactions_history and
    2) rules
    tables
    From all the above combination we are getting 5 columns. All the columns are defined the above combination tables. So using the same region. based on the conditions the combination of tables will change.
    Becoz of this we are building the query dynamically.
    Thanks
    Balamohan

  • Attachment in the Services for the object  (Transaction PA30)

    Dear Friends
                  i have uploaded a file (from my desktop)using Services for the object in PA30 transaction for a particular personnel no. . The services for the object is just above the Create Icon in PA30 Transaction.
    Now i would like to know where this file is being saved which was upload from my desktop .   Later if i remove the file from my desktop even then i can see that file
    still being there in the attachment when i click the Services for the object.
    Please could any one let me know.
    Regards
    syamala

    Hi,
    Have a look at this thread.
    attachment in PA30
    Regards,
    Manoj.

  • How to track a mobile object, masking the others?

    Hi
    I work with spherical objects with a dimeter size equal to 100 micrometers. The objects are immersed in a fluid. They are movable, swimming in the fluid. I would like to track one of them, masking the others. Could somebody give me an advise how to do it?
    Regards

    Hello,
    sincu you did not attach any images it's hard to say, but check this out (a toolkit i've made, wrapping various OpenCV functions):
    https://decibel.ni.com/content/blogs/kl3m3n/2014/09/05/point-cloud-library-pcl-and-open-computer-vis...
    You could use camshift/meanshift tracking based on hue-saturation histogram backprojection, or perhaps you could just try masking your image with backprojection only.
    Spherical - since you are processing in 2D space, you can also try using Hough circle transformation to detect the circles and track them on subsequent frames using for example Euclidean distance from detected centers as your criteria.
    Can you post a sample image?
    Best regards,
    K
    https://decibel.ni.com/content/blogs/kl3m3n
    "Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."

  • Attach Custom Fax Cover  Page using Object class Cl_BCS

    Hello,
    Scenario: To attach a custom fax cover page to the faxing functionality. The standard fax cover page is not needed.
    Method Used: Fax is initiated in the ABAP code via the function module SO_NEW_DOCUMENT_ATT_SEND_API1
    had to change the code to use object class CL_BCS , because of the subject line length limitation.
    I want to get rid of the SAP standard cover page that gets generated and attach a custom cover page
    By applying SAP OSS Note 553113 - I am able to deactivate the standard fax cover page.
    But I haven't found a way of attaching a custom fax cover page(not sure what the original SApscript layout is)
    else would have modified the same.
    Any help in the matter would be appreciated.
    Thanks for your help.
    Almas.

    Hi Hasan,
    I have similar requirement. I see your post is pretty old and hope you would have found the solution at that time.
    Could you please share it with me?
    Thanks
    Puneet

  • Attach a xml file to Business object type BUS2081

    Hi All,
    How to attach a xml file stored on application server to business object 2081(transcation MIR4)?
    Thanks,
    Namrata.

    Hi,
    provided link is helpful.
    But I am looking for attaching a file from application server to BUS2081.
    Thanks,
    Namrata.

  • Attach to e-mail option mobile app (IOS)

    One of our users notified us op the missing option to e-mail a file from the Filr mobile app on iOS. Sure enough Filr let's you open files with just about any app on the device that can handle them but the option 'E-Mail' is missing. It would be a nice option to quickly send a file to someone outside our organisation. Dropbox has that option. Wil Filr 1.1 perhaps make this possible?

    mazzel wrote:
    >
    > One of our users notified us op the missing option to e-mail a file
    > from the Filr mobile app on iOS. Sure enough Filr let's you open
    > files with just about any app on the device that can handle them but
    > the option 'E-Mail' is missing. It would be a nice option to quickly
    > send a file to someone outside our organisation. Dropbox has that
    > option. Wil Filr 1.1 perhaps make this possible?
    I'll have to test the iOS app later, but with the Filr 1.1 Android app
    I have the option to "share with" the email app. There's also the new
    option to generate a file link, and from the dialog for that I can then
    send that via email as well.
    Your world is on the move. http://www.novell.com/mobility/
    BrainShare 2014 is coming. http://www.novell.com/brainshare/

  • DOBJ.UPDATE_FAILED error while attaching adapters to Users Data Object

    PROBLEM DESCRITPION:-
    The following error occured while trying to attach entity adapters to Users Data Object (com.thortech.xl.dataobj.tcUSR) in Post-Update section.
    Error Message: The security level for this data item indicates that it cannot be updated.
    Update failed.
    Update failed.
    Error Keyword: DOBJ.UPDATE_FAILED
    Description: Update failed.
    Action: E
    Severity: C
    Kindly suggest to fix this issue.

    Resolved the DOBJ.UPDATE_FAILED problem - I modified the dvt_data_level to 0 for dvt_post_update_sequence selective entries.
    Able to attach the custom event handlers to Users Data Object - No more DOBJ.INVALID_UPDATE error!

  • Attach PDF to PO object services list works for ME23N but not ME22N

    Manualy attach a PDF file from users PC to a PO. The attachment works for ME23N as described in SAP documentation for creating an attachment to the object services attachments list.
    When ME22N is used the "attachment created"  message displays but exiting the PO and reenter ME22N and the attachment is not saved in the services attachment list.
    Where is the configuration for this object service attachmentS?
    What is needed for ME22N that is different than ME23N?

    Hi,
    I don't think any difference b/w these 2 Transaction related to attachment of document through Services for Object.
    If you have the authorization for ME22N transaction definitely you can attachment any document both in ME22N & ME23N transaction throught this Services for Object.
    Check once again.If still you face the problem discuss with your Basis Consultant
    rgds
    Chidanand

  • Content server for Document attachment through "services for object" Icon.

    Guys,
    I have typical problem in installation of Content server for storing external documents.
    We all know that we can attach the document in SAP using the icon “SERVICES FOR OBJECT”. By this we can attach the document to the specific object we want.
    -Since my client wants only document attachment method not to completely implement SAP DMS, I proposed this method of attaching documents through services for object method.
    -If documents are stored though services for object ,The attached document will directly get stored in sap database(correct me if I am wrong) while  in  DMS it ask you to select the storage location while u check in for any document
    -By storing the doc thru "services for object " For long run when we store the documents in sap database our system will drastically get slow down.
    -In this regard I have a plan to incorporate external storage server.
    -Now I should know that how I should customize content server configuration so that the attachment through services for object will store into this content server I need to know how to define Client, Content Category, Content Repository, Document Area, Physical Machine, IP Address, Port. (OACT & OAC0)
    I appreciate for immediate solution and <u><b>Points will be rewarded for sure.</b></u>
    Regards,
    Murali.S

    Hi Murali,
    Don't Worry, its possible,
    All attachments can be stored in SAP Content Server also, but through archiving process.
    Set up a database storage system.
    Preparation
    Make sure that the HTTP plugin is active.
    Transaction <b>SMICM,</b> "Display Services" function key (shift F1)). The list of services must contain a port other than 0 for HTTP.If not, you must adjust the relevant profile parameter.
    <u>Typical entry:</u>
    icm/server_port_0         PROT=HTTP, PORT=1080, TIMEOUT=900
    <b>Make sure that the /sap/bc/contentserver service is active.</b>
    If no user is defined, then use transaction SU01 to create a new user. Use the "System" user type.Assign
    the SAP_ALL and SAP_NEW profiles to the user. (Eg: HRUSER/PLMUSER/PPUSER etc)
    Transaction <b>SICF,</b> select: default_host - sap - bc -contentserver. Select the function to display/change the service. Make sure that a user is defined.
    Using the relevant data from the newly created user, maintain the anonymous logon data for the
    /default_host/sap/bc/ service and save & activate the changes in transaction <b>SICF</b>.  Double click on content server and give the user name which has been created (HRUSER/PLMUSER/PPUSER/MMUSER etc)
    Check the system PSE.
    Start transaction <b>STRUST</b>. Expand the system PSE. The system PSE must be "green" for each application
    server.
    Determine a suitable exchange directory.
    The exchange directory must be accessible from each application server. If all application servers are running on the same platform (for example, Windows), one network directory that is accessible on all application server (for example,
    server\share) is sufficient. You can generally use the global directory
    (profile parameter DIR_GLOBAL).You can use the RSPARAM report to determine the profile parameters.
    Setting up the storage
    Create a table for storing the data. Using transaction <b>SE11</b>, create a copy of the SDOKCONT1
    table. If you want to create the repository database, you can name the table ZCONT_DB, for example. Save the
    table as a local object. Activate the table.
    Create a repository.
    Use transaction <b>OAC0</b> to create a new repository.
    Use the following parameters:
    Repository Max. two characters, for example,” Z1”
    DocArea: ARCHLINK
    Storage type: R/3 database
    Storage subtype: normal
    Version no. : 0046 
    Contents table <table name> for example: ZCONT_DB
    Exchange directory <directory name> for example:
    server\share\
    Make sure that the exchange list ends with a \ (or /on Unix).If you are using a variety of platforms, you must use transaction FILE to define a suitable logical file name and use this name. Save the settings.
    1. Maintain view table <b>TOAAR_C</b>, via SM31
       Cross client table displayed as information, forget it
    2. In field 'StSytm' you must entered 'Z1' as your system need, or anything that you need but you must configure HR Archive link too.
    3. In field 'Arch.path' (direct above Spoolpath), entered path in your system, this real path in your operating system. May be you should confirm to your Basis consultant where exactly you could store picture files. So if you enter '/', your file exists at root directory at your UNIX system.
    4. Choose 'File store' radio button
    5. Save.
    First
    <b>1. You have to create a number range for SAP ArchiveLink.
        IMG: Basis Components-> Basis Services -> SAP ArchiveLink -> Basic Settings-> Maintain number ranges   
        (Trxn <b>OANR).</b> Create number range 01 from 0000000001 to 9999999999 without the external number flag. 
    2. Document type <b>HRICOLFOTO</b> must exist with document class JPG.
        IMG: Basis Components->Basis Services->SAP ArchiveLink->System Settings->Maintain document types
        (Table<b> TOAVE, Trxn OAC2).</b>
    3. Document type <b>HRICOLFOTO</b> must be linked to object type PREL and Infotype PA0002.
        IMG: Personnel Management->Personnel Administration->Tools->Optical archiving->Set up Optical Archiving
        in HR.  (View V_T585O, no Trxn). In the first two columns there are minuses, the third (Date) has
       a plus - don't put a flag in the check box.
    4. Check which content repository (Archive) is linked to document type HRICOLFOTO and object type  
        PREL. IMG: <b>Basis Components->Basis Services->SAP ArchiveLink->Basic Settings->Maintain Links (Table 
       TOAOM_C, Trxn).</b></b>
    Test
    • Test the repository.
    Use transaction SE38 to start the RSCMSTH0 report. Specify your repository (i.e. Z1) and start the test.
    The report must run without errors. If no problems occurred, you can use the new repository with Archive Link after you carry out the Archive Link Customizing. If problems do occur, check whether one of the related
    notes helps.
    For More Details :
    http://service.sap.com/archivelink.
    <u><b>
    NOTE:- Screen Shots are missing, i was not able to paste here, One more thing is we did this for uploading a PHOTOS into Content Server, Similarly you have to create a REPOSITORY and Z-TABLE to bring all the Attachments from all the selected Objects and then route them to the CONTENT REPOSITORY.</b></u>
    Your Senior ABAP guy would help you in this, if not i may try to help you more by monday.
    Regards
    Rehman
    <b>Reward Your Points if Satisfied.</b>

Maybe you are looking for

  • Newbie hello g70-70

    hi everyone new owner of g70-70, I HATE 8.1 and want to downgrade to 7. I have created a backup of the system to an external hd. I have located my win 8 product key and saved it to a doc. my questions are; it has a hybrid 8gssd with tb mechanical dri

  • IPod Nano Help!  Stops song then resets by its self.

    I have a iPod nano 4G (1st Genaration) and when i go to shuffle my songs, a song starts to play. But then when I skip to the next song, It doesn't play it and then it resets by its self. Any help would be great. Gateway   Windows XP  

  • Wrong values from calculated field (Java API)

    Hi All, Help me please solve the problem. We have a table with calculated text field in MDM repositor. For some records the value of this field in MDM Data Manager differs from the value returned when we read record by MDM Java API. Parameters of sys

  • User exit for BADI for Tcode: IW31

    Hi   Can any one tell me User-exit or BADI for Tcode: IW31.      Whenever an Order is released (IW31) or saved then automatically Purchase Requisition will be created by standard program. My requirement is like at the  same time , we need to create P

  • Compare values in detail block

    Hi everyone, I have a detailed block which has many records. What's the best way to loop though the detail records and compare the values in the same field in the next, previous record or all detail records. Thanks for your help.