How to add Documents object faster(DI-API)

Hello,
I investigated the time concerning adding to Order Document using DI-API.
Result,339sec per 300 document(for each document has
4 items ,program was not use Start/End transaction).
This result is not so bad, but i wish faster time.
Please suggest faster way to add Documents object using
DI-API.
My source code is below.
vINV = vCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOders)
For I = 1 To 300
vINV.CardCode = "test"
vINV.Docdate = "2005/12/31"
vINV.DocDueDate = "2005/12/31"
vINV.NumAtCard = "test"
   For J = 0 To 3
     vINV.Lines.ItemCode = "test"
     vINV.Lines.Quantity = 1
     vINV.Lines.Price = 400
     if J <> 3 Then
       vINV.Lines.add()
     End If 
    Next J
   RetVal = vINV.Add
Next I

Hi Jiro,
I have never worked with this before, but maybe you can investigate using the DI Server. Search the forum for the DI Server. Herewith an extract from the DI Server help file:
<i>SAP Business One - Data Interface Server (DI Server) is a Component Object Model (COM) service running on a server that enables multiple clients to access and manipulate SAP Business One company database, using SOAP version 1.1 messages.
The DI Server uses the DI core to enable the same functionality provided by the DI API with the following advantages:
- Server architecture.
- <b>Improved performance.</b>
- Connection pooling mechanism.
- Generic interface.
The DI Server operates with SAP Business One application version 2004.</i>
Hope it helps,
Adele

Similar Messages

  • How to Add New Object?

    HI,
    Any body can say how to add new object. For Example: The Document need to link with Invoice Transaction (T.Code: VF01, Table: VBRK/VBRP).
    Points will be rewarded, if information is useful.
    Tks
    Mani.

    Hi
    You can create New objects using the T.code: SE80.
    You can make an object link to SAP objects that are not shown in the possible entries list. To do this, proceed as follows:
    1. In the standard system, there are already two special screens for the module pools SAPLCV130 and SAPLCV140 for the linked SAP object.
    You must create two new screens with the same number for the module pools SAPLCV130 and SAPLCV140. The processing logic must follow that of screen 1204 in program SAPLVC130.
    2. Create function module OBJECT_CHECK_XXXX (XXXX = object name) If the object can be classified, this function module already exists .
    Otherwise copy the function module for linking equipment DOCUMENT_CHECK_EQUI and change it as required for the new object.
    Regards
    S.Sivakumar
    Reward points if useful----

  • How to add document header text area on fb03's selection screen

    hi,
    i want to add an additional area on fb03's selection screen. i need document header text area for my document searchs. is it possible?

    Refer to this thread
    How to Add field to Selection screen of Tx. FBL5N

  • How to add an object on mouse click?

    i am trying to add an object on user's mouse click...but not getting how?
    can anyone help me?

    You could create the movieclip object and put it in the library with a linkage name, e.g. mcExample and then on the main _root. timeline add something like:
    this.onMouseDown = function(){
    mcExample = this.attachMovie("mcExample", "mcExample", 1);
    This attaches the movieclip from the library onto the stage when the left mouse button is pressed. You can then manipulate the movieclip like any other using its identifier: mcExample. If you want to change the name of the attached movieclip then change the second parameter of attachMovie

  • How to add Document group  in t code S_ALR_87012082 for dynamic selection.

    Hi Gurus,
    I Need to add  Document group  in t code S_ALR_87012082  for dynamic selection.
    Currently here two groups are showing , Vender and Comp Code. i need to add Document group  there. Kindly guide me in this.
    Thanks in advance.

    Hi
    Pls follow below report
    *S_ALR_87012103 - List of Vendor Line Items *
    In dynamic selections you can find Document number, there you can give the range
    Reg
    Vishnu

  • How to add document navigator control into a plug-in window?

    I develop a filter plug-in for Photohsop CS2, but I wonder how to add navigator controll in the plug-in window. The navigator works int the same way like Photoshop navigator - moving cursor on the navigator makes the image scroll in the main previes. I want to have both, the navigator and a main preview window in the filter plug-in window. I saw it many times, however, I did not find example in Photoshop CS2 filter SDK.
    If somebody could point me to a resource, that could get me to the right track, i would be glad.
    Thanks
    Rene.

    Chris hello,
    It is good to know that plugins can not control the docunment view in Photoshop. However, my idea was to have preview in Photoshop plug-in window, and then to have small navigator that would scroll the preview. Exactly like on this Photoshop plug-in:
    http://data.unipixels.com/screenshot.jpg
    Please notice tha navigator on the right side of the window. Moving the red rectangle in it will scroll the middle preview window.
    With regards,
    Rene.

  • How to add document library which is common for All Project Site Under All Project in pwa.

    Hi,
    I want  to add Document Library under project site which should be common for all project site in all project.
    is there any out of box solution for this ?

    Hello. Yes this possible. See a post I created below that covers creating custom project site templates. The first part of the post is for project plan templates but then the bulk of this post is for project site templates. http://pwmather.wordpress.com/2014/02/02/getting-started-with-projectonline-part-6-ps2013-office365-project-ppm-sharepointonline-pm-sp2013/.
    Paul
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS

  • How to add  z object to root object in BOL

    hi,
    I have to add my z object to BuilStandardAddress (standard object for BP Address ).I hav created a external object by using ztable.I can see that object in transaction GENIL_MODEL_BROWSER as a Root Object but I hav to add this object as dependent object under BuilStandardAddress .
    Please suggest any possible solution for this.
    Thanks in Advance.
    Hem

    hi carsten,
    Thanks a lot for reply.
    Acc to my opinion there is 2 method first one is enhance standard implementaion class.
    second one is to use this class.CL_CRM_GENIL_GEN_TABLE_OBJ
    I opt. second mehtod:
    Actually ,Our requirement is that we hav to add some custom  fields in addresss view.If weadd custom fields through EEWB then it adds fields to builheader rather then standard address.To achieve this I have created a external object and assign a impleimentation class (CL_CRM_GENIL_GEN_TABLE_OBJ). after this I hav define Object defination in which I define this object as dependent object of builstandardaddress.and give my z table name.After that I hav define Model defination in which i hav define relationship.By doing this I am able to use my object in view.Now I added this z attribute to the standardaddress node of standaddress view of component BP_ADDR.
    Now, I can see this field on UI screen but My Implementation Class has some methods(like modify, Save )that will save the data in z table.these methods are not calling at runtime.
    Plz suggest any solution
    Hem
    Edited by: janawa hemlata on Dec 4, 2008 7:31 AM

  • How to add new object class to a material ?

    Hi experts,
    I have to add new object class to a material ( classification class ) and then add new characteristics values for the material ....But i do not know which FM to do this , If you please to give me the solution for this problem
    PS: rewards immediately
    Thanks,

    Hi,
    Check this  CALL FUNCTION 'CLVM_CLASS_BOOK' Run it for IN UPDATE TASK
    Reward if useful,

  • How to get document object on kBeforeOpenDocSignalResponderService

    Hi ,
    I want to change the document on kBeforeOpenDocSignalResponderService.
    I have tried following code on kBeforeCloseDocSignalResponderService
    case kBeforeCloseDocSignalResponderService:
    InterfacePtr<IDocumentSignalData> documentSignalData(signalMgr, UseDefaultIID());
    if (!documentSignalData)
          CAlert::ErrorAlert("documentSignalData is Nil");
         break;
    UIDRef documentUIDRef = documentSignalData->GetDocument();
    if (documentUIDRef.GetDataBase() == nil)
          break;
    InterfacePtr<IDocument> document(documentUIDRef, UseDefaultIID());
    if(document == nil)
         break;
    but here i am not able to get document object.
    Is there any way to achieve it.
    Please suggest some way
    Thanks,

    Hi Pooja_IDDev,
    void MyImpl::Respond(ISignalMgr* signalMgr)
         do{
              ServiceID serviceTrigger = signalMgr->GetServiceID();
              InterfacePtr<IDocumentSignalData> docData(signalMgr, IDocumentSignalData::kDefaultIID); //kDocumentSignalMgrBoss
              if(docData == nil)
                   break;
              UIDRef doc = docData->GetDocument();
         }while(kFalse);
    Best regards,
    Oleg

  • How to add an object removed from an ArrayList to another ArrayList

    i m having a class Node, which has two ArrayLists:
    1. my_queue
    2. cq
    Both the arraylists have objects of the same class Packet.
    i need to search in 'cq' and remove a 'packet' and add it to my_queue
    Note: the Node class's objects r implemented as array of objects
    i have used Iterator for search.
    how do i execute what i want?
    PLEASE HELP. I M STUCK WITH MY PROJECT.

    First, you want to use ListIterator, not the regular iterator (get it with the listIterator() method).The ListIterator has a method remove() you can use to remove the currently selected index from the list. Then you can use the add() method of your other list to add the removed object. Simple.
    http://java.sun.com/j2se/1.5.0/docs/api/java/util/ListIterator.html

  • How to add document name and document namespace to xml mail sender msg

    Hi,
    I have set up a sender mail CC that accepts messages already in XML format. However, the messages are missing the document name and document namespace. I am trying to use MessageTransformBean to add these to the message payload. However the examples I've found so far all talk about converting plain text coming in. When I used convertionTpe -> SimplePlain2XML it messed up the original content with unnecessary xml tags.
    Can someone please tell me how to insert the document name and namespace into the payload without converting the original xml content? Thanks in advance.

    Dont think there is a way.
    As the source is a XML, why dont you create the MessageType with the same name and namespace as the XML file in the email.
    Regards,
    Bhavesh

  • How to add two objects on scene and how to rotate them?

    I am beginer on 3d. I am trying do write applet where are 3x3x3 rubic.
    My plans are to have 27 litle cubes. There are 6 flats (9 cubes in a flat) so i have six objects groups. My problem at this moment is that i cant find out how to make two objets. Each of this two objects consists from couple more litle objects. Some of litle objects can be in first and second big object. For example it can be two flats of rubic (corner).
    Is anybody have some examples or somehow to hepl me to find out.
    Thanks a lot

    I have code :
    import java.applet.Applet;
    import java.awt.*;
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseListener;
    import com.sun.j3d.utils.applet.MainFrame;
    import com.sun.j3d.utils.behaviors.mouse.*;
    import com.sun.j3d.utils.universe.SimpleUniverse;
    import javax.media.j3d.*;
    import javax.vecmath.AxisAngle4f;
    import javax.vecmath.Color3f;
    import javax.vecmath.Vector3f;
    public class RubicApplet extends Applet implements MouseListener
         TransformGroup objRotate = null;
    public BranchGroup createSceneGraph(SimpleUniverse su,Canvas3D canvas)
         // Create the root of the branch graph
         BranchGroup objRoot = new BranchGroup();
         objRoot.setCapability(BranchGroup.ALLOW_DETACH);
    Transform3D transform = new Transform3D();
         transform.setRotation(new AxisAngle4f(.5f,1f,1f,.5f));
    BoundingSphere behaveBounds = new BoundingSphere();
    // create Cube and RotateBehavior objects
    objRotate = new TransformGroup(transform);
    objRotate.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
    objRotate.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
    objRotate.setCapability(TransformGroup.ENABLE_PICK_REPORTING);
    // Colors
    Color3f gray = new Color3f(0.2f,0.2f,0.2f);
    Color3f red = new Color3f(1.0f,0.0f,0.0f);
    Color3f white = new Color3f(1.0f,1.0f,1.0f);
    Color3f yellow = new Color3f(1.0f,1.0f,0.0f);
    Color3f green = new Color3f(0.0f,1.0f,0.0f);
    Color3f blue = new Color3f(0.0f,0.0f,1.0f);
    Color3f purple = new Color3f(1.0f,0.0f,1.0f);
         // Object possition
    float x=-0.5f;
    float y=-0.5f;
    float z=-0.5f;
    objRoot.addChild(objRotate);
         // colors for: back, front, right, left, bottom, top
    Color3f[] myColors0 = {white,gray,gray,red,blue,gray};
    RCube cube1 = new RCube(myColors0,new Vector3f(x-1,y-1,z-1));
         // colors for: back, front, right, left, bottom, top
    Color3f[] myColors1 = {gray,gray,gray,red,blue,gray};
         RCube cube2 = new RCube(myColors1,new Vector3f(x-1,y-1,z+1));
         // colors for: back, front, right, left, bottom, top
    Color3f[] myColors2 = {gray,yellow,gray,red,blue,gray};
         RCube cube3 = new RCube(myColors2,new Vector3f(x-1,y-1,z+3));
    // colors for: back, front, right, left, bottom, top
    Color3f[] myColors3 = {white,gray,gray,red,gray,gray};
         RCube cube4 = new RCube(myColors3,new Vector3f(x-1,y+1,z-1));
    objRotate.addChild(cube1);
    objRotate.addChild(cube2);
    objRotate.addChild(cube3);
    objRotate.addChild(cube4);
    MouseRotate myMouseRotate = new MouseRotate();
    myMouseRotate.setTransformGroup(objRotate);
    myMouseRotate.setSchedulingBounds(new BoundingSphere());
    objRoot.addChild(myMouseRotate);
    MouseTranslate myMouseTranslate = new MouseTranslate();
    myMouseTranslate.setTransformGroup(objRotate);
    myMouseTranslate.setSchedulingBounds(new BoundingSphere());
    objRoot.addChild(myMouseTranslate);
    MouseZoom myMouseZoom = new MouseZoom();
    myMouseZoom.setTransformGroup(objRotate);
    myMouseZoom.setSchedulingBounds(new BoundingSphere());
    objRoot.addChild(myMouseZoom);
    // Let Java 3D perform optimizations on this scene graph.
    objRoot.compile();
         return objRoot;
    public RubicApplet()
    setLayout(new BorderLayout());
    GraphicsConfiguration config =SimpleUniverse.getPreferredConfiguration();
    Canvas3D canvas3D = new Canvas3D(config);
    canvas3D.addMouseListener(this);
    add("Center", canvas3D);
    SimpleUniverse simpleU = new SimpleUniverse(canvas3D);
    BranchGroup scene = createSceneGraph(simpleU,canvas3D);
         simpleU.getViewingPlatform().setNominalViewingTransform();
    simpleU.addBranchGraph(scene);
    public static void main(String[] args)
    Frame frame = new MainFrame(new RubicApplet(), 600, 600);
         public void mouseClicked(MouseEvent e)
         public void mouseEntered(MouseEvent e)
         public void mouseExited(MouseEvent e)
         public void mousePressed(MouseEvent e)
         public void mouseReleased(MouseEvent e)
    I need to rotate with some event two cubes and with some other event rotate three cubes

  • How to add new Object Type In Mass

    Hi Expert,
    We have to required change Payment term of Customer (ZTERM) in scheduled Agreement,
    we have gone through Mass, but presently no object type available to change in scheduled Agreement, So can we add the new object in Mass? & How? Please help.
    Regards
    BK GAIKWAD

    Hi,
    Presently no standard object type avaialble for Sch. agr.(Sales)
    Go for BDC for updation of your field (try with LSMW also)
    Thanks
    Chidambaram

  • How  to add documents to alerts section

    I need to the documents to alert section of my home page
    how to do?

    Go to Admin and Company Administration and Company Alerts and after creating an alert you can then click on it to add an attachment or URL.

Maybe you are looking for