Table updation through Visual Basic

We are not able to update employee master table which has 73 columns. The problem is it is not allowing to update after certain number of columns say 50 columns. This is occuring only thru VB and not in SQL (i.e thru instert syntax).
Can anyone tell what is the solution?

Hi Saket,
Yes it is possible!
To trigger workflow from table updates you can use table level events. Refer to
Re: WorkFlow when Data is changed in Table or program
Also you can update a table from a workflow. To do this, create an Activity step in workflow. In this, you can call a BO method. This BO method would store the code to update the database table required.
Just take care of the bindings between the method -> task -> workflow container.
Hope this helps!
Regards,
Saumya

Similar Messages

  • Canopen through visual basic

    Hi i am new i in working with canopen,i am in compulsion to acquire canopen based encoder through visual basic 6 than labview,can anyone suggest the configuration which i need to make in visual basic for the same....
        the hardware wich i have to acquire is pci can series 2
    if someone can sendsome example to acquire the canopen datas through visual basic it will be very helpful &....
    i am eagerly waiting for  all ur reply

    Hi,
    I could not find any examples for VB and CANopen. You could try to program it by using the Frame api;  a fairly good knowledge of NI CAN and CANopen would be needed to do this.  I know you said you wanted to use VB, however NI does have a CANOpen LabVIEW Library which will work with all High Speed Series 2 cards.  The library does not have support for other languages however, so it will not work with VB 6. 
    Regards,
    Adam W
    Applications Engineering
    National Instruments

  • Creting PO through Visual Basic

    Hello Guys,
    I have to create a Purchase order with Visual Basic. I have created following code but at the end error is showing that <b>NO MASTER RECORD EXIST FOR VENDOR (VENDOR NO).</b>
    but with the help of same data i am able to create PO in SAP. I have attach source code. Please take a look and provide me the valuiable information.
    Option Explicit
    Dim functionCtrl As Object
    Dim sapConnection As Object
    Dim theFunc As Object
    Dim PoNumber
    Private Sub Command1_Click()
    Set functionCtrl = CreateObject("SAP.Functions")
    Set sapConnection = functionCtrl.Connection
    sapConnection.Client = "220"
    sapConnection.User = "PTBITUSR"
    sapConnection.Password = "HELLO2"
    sapConnection.Language = "EN"
    If sapConnection.Logon(0, False) <> True Then
        MsgBox "No connection to R/3 System"
        Exit Sub                                           'End program
    End If
    Set theFunc = functionCtrl.Add("BAPI_PO_CREATE")
    Dim pocur As Object
    Dim poheader As Object
    Dim poitems As Object
    Dim poitemschedule As Object
    Dim retMess As Object
    Dim returnFunc As Boolean
    Dim startzeil As Integer
    Dim endcol As Integer
    Dim the_name As String
    Set poheader = theFunc.exports.Item("PO_HEADER")
    Set poitems = theFunc.Tables.Item("PO_ITEMS")
    Set poitemschedule = theFunc.Tables.Item("PO_ITEM_SCHEDULES")
    Set pocur = theFunc.exports.Item("PO_HEADER_ADD_DATA")
    poheader.Value("VENDOR") = "24001291"  'Text1.Text
    poheader.Value("PUR_GROUP") = "PE6"  '''Text3.Text
    poheader.Value("DOC_TYPE") = "NB" ''Text4.Text
    poitems.Rows.Add
    poitems.Value(1, "PUR_MAT") = "SC101" ''Text5.Text
    poitems.Value(1, "PLANT") = "1500" ''Text6.Text
    poitems.Value(1, "NET_PRICE") = "2000" ''Text7.Text
    poitemschedule.Rows.Add
    poitemschedule.Value(1, "DELIV_DATE") = DTPicker1.Value
    poitemschedule.Value(1, "QUANTITY") = 3 'Text9.Text
    pocur.Value("CURRENCY") = "INR"
    poheader.Value("PURCH_ORG") = "1500" '''Text2.Text
    returnFunc = theFunc.call
    PoNumber = theFunc.imports.Item("PURCHASEORDER")
    Set retMess = theFunc.Tables.Item("RETURN")
    If retMess Is Nothing Then
    MsgBox retMess.Value(1, "MESSAGE")
    Else
    MsgBox retMess.Value(1, "MESSAGE")
    MsgBox "Purchase Order No : " & PoNumber & "Created"
    End If
    End Sub
    Regards
    Swati Namdeo

    in this case u have to pass complete data in full length.
    <b>poheader.Value("VENDOR") = "0024001291"  = 10 char length.</b>
    Regards
    Peram

  • Table Updation through Workflow

    Hi All,
              I have a scenario in my project in which a workflow is to be triggered when an entry is made in a table.
    Now this workflow has to read some data from some tables and then update some other tables.
    My doubt is it possible through workflows to update the tables? If yes is it advisable.Also how will the
    updation happen? Should methods for updation will be written in BO methods? Or should a task be called
    which does the same.
    Please suggest,
    Saket.

    Hi Saket,
    Yes it is possible!
    To trigger workflow from table updates you can use table level events. Refer to
    Re: WorkFlow when Data is changed in Table or program
    Also you can update a table from a workflow. To do this, create an Activity step in workflow. In this, you can call a BO method. This BO method would store the code to update the database table required.
    Just take care of the bindings between the method -> task -> workflow container.
    Hope this helps!
    Regards,
    Saumya

  • I want to access LabView and Field Point Library through Visual Basic. Where can I find adequate information considering that I am just an starter.

    My aim is to have a ActiveX Control on a web page that can control the field point hardware as a small step towards home automation through the internet.

    The place to start is here :
    http://sine.ni.com/apps/we/nioc.vp?cid=3769〈=US
    This is labview's measurement studio homepage. This contains component works which is a toolkit for visual basic. This should give you all the info you need to get started.
    Jared

  • MVKE table updation through MM17 mass maintainence.

    Hi Experts,
    I need some input regarding mass maintenance of material.
    The input field 'Product Hierarchy' is present in 'Basic data' (MARA-PRADHA) and in 'Sales View' (MVKE-PRODH).
    As per standard SAP if I do changes through MM02 in Basic data, the field automatically updates in Sales View.
    But if I propose changes in the field MARA-PRAHDA (i.e.product hierarchy) through MM17, it is only updating MARA-PRADHA and not in MVKE-PRODH.
    Every user does not have the authorisation to use MM02, hence we are using MM17.
    Is there any another method to update both the fields other than MM02.
    Kindly suggest.
    Warm Regards
    Tushar

    Friend
    MARA and MVKE are two differnt feilds.
    When you are using MM17 and maintaining values for feild in table  MARA - PRADHA means you are limiting (Mass maintianing )to that table and feild only. Hence you will have to select MVKE - PRADHA as well while maintaing through MM17
    Where as MM02 or MM01 with SAP Standard setting has a warning message to check Prod.hieracrchy in Sales view while maintining first in Basic view.
    Reward if useful
    Regards
    SE

  • CLOB data through Visual Basic 2005

    Does anyone have any sample code for writing a CLOB field through VB .NET? From what I've read, if you simply place the data into the field, then this will work but you are still limited to 4000 characters. To write a true CLOB value, you need to stream the data to the field, but I can't figure out how to do this.

    OK. After many hours of searching I've finally put together something that works. Not sure if this is technically correct, but here it is for anyone else who gets stuck trying to do this:
    Dim myBigString as String = "The BIG chunk of text that you need to store"
    Dim conn As New OracleConnection
    conn.ConnectionString = "Your connection string"
    Dim cmd As New OracleCommand
    conn.Open()
    Dim CLOBobject As New OracleClob(conn)
    CLOBobject.Write(myBigString.ToCharArray(), 0, myBigString.ToCharArray().Length)
    cmd.Connection = conn
    cmd.CommandText = "INSERT INTO SOMETABLE VALUES (<otherfield>,<otherfield>,<etc>,:1)"
    Dim paramMyBigString As OracleParameter = cmd.Parameters.Add("1", OracleDbType.Clob)
    paramMyBigString.Direction = ParameterDirection.Input
    paramMyBigString.Value = CLOBobject.Value
    cmd.ExecuteNonQuery()
    conn.Close()

  • Barcode through Visual Basic 6.0

    How to make a barcode generator using barcode?

    Hello,
    This forum is for VB.NET, I would suggest
    asking your question here which is dedicated to VB6.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.

  • Visual Basic RFC SAP no-unicode. Latin2 Caracteres are converted in '#'

    Hi,
    I are inserting data in Z SAP tables  from a Visual Basic Script.
    I are doing a RFC call.
    The problem is that the data type text aren´t iserting correct when its are Latin2 caracteres.
    Example:
    Text in Visual Basic: "Prevozni strou0161ki-železniu0161ki"
    But when theRFC function inserts the data in SAP, SAP  shows "Prevozni stro#ki-#elezni#ki".
    Could somebody help me??
    thanks in adavanced,
    Javi

    Thanks for your answer.
    But i din´t solve the problem.
    I changed the encoding to UTF-16 and ISO-8859-5 but the caracteres are inserting bad yet :(.
    I'm debugging the visual basic code and I can see that the text is correct in Visual Basic, but after it is incorrect in SAP.
    Too, I'm inserting  the value directly in visual basic sourcecode:
    T_BAPI_P.Value(index, "TXZ01") = "Prevozni strou0161ki-železniu0161ki NOVO"
    But the result is the same.
    SAP shows "Prevozni stro#ki-#elezni#ki NOVO".
    I have seen that in the transaction SM59 you can specify if the RFC conexion will be UNICODE.
    The SAP system that i am working isn´t unicode, then it can not the tag to especificate this in SM59.
    Could it be the problem that the SAP system isn´t unicode??
    sorry, for my English's low level.
    Thanks in advanaced for all yousr answer!
    Javi

  • How to edit a WFP application through a Visual Basic command console?

    Hi, I'm currently working on a little project of mine, based mostly on a Visual Basic command console, and I've had the idea to add a console-controlled Windows Form.
    What the console will eventually do is run, say, 1000 x 1000 [(1,1), (1,2), (1,3)... (574, 349), (574, 350)...] items through into a list, and then these million-or-so entries will use their assigned values as the x and y co-ordinates for
    the form, as well as little bits and bobs that will be added as I go along.
    Right now, the thing on my mind is this; How do I make, or access, or run, etc. a form, then load this code into it? I've been heading down some reference path with dependents and other stuff and I don't think it's going to carry me anywhere unless I ask
    the question directly.
    The main plan I have in mind is being to access the controls that a Windows Form has, using the VB console, e.g. Form1.Shape.AddRectangle (x,y) or something.
    If this is even possible, which I'm starting to doubt to my dismay, could you give me an absolute, and I mean that from top to bottom, every aspect fleshed out, preferably on the assumption that I don't even know what a file is, detailed walkthrough?
    Because I don't want to ask questions to the answers to my question.
    Thanks :)

    Items and bits and bobs doesn't have much meaning to me.
    If you want to create a Form from a Console app that is simple. Prior to launching the Form provide whatever you want to it I suppose.
    Whatever you attempt to provide to the form may need references added. Therefore you can research that on your own using the
    MSDN Library search engine which should keep anybody else from having to perform "top to bottom, every aspect fleshed out, preferably on the assumption that I don't even know what a file is, detailed walkthrough" since if you don't know
    anything you should be attempting to learn. And if anything is outside your scope of knowledge that you need to know to do whatever you want to do you should research and learn that. Not ask anybody else to do it for you or provide you baby step instructions
    for doing so.
    It's possible trying to provide 1000000 items and bits and bobs to a form will fail or your app may not have the memory allocated for doing that. And it's probably a poor idea too.
    Option Strict On
    Imports System.Windows.Forms
    Imports System.Drawing
    Module Module1
    Sub Main()
    Dim f2 As New Form
    f2.Left = 10
    f2.Top = 10
    f2.Text = "Test Form"
    f2.Width = 241
    f2.Height = 271
    Dim PB As New PictureBox
    PB.Width = 225
    PB.Height = 225
    PB.Left = 0
    PB.Top = 0
    PB.Image = Image.FromFile("C:\Users\John\Desktop\Picture Files\CrossBones PNG.Png")
    f2.Controls.Add(PB)
    f2.ShowDialog()
    Console.ReadLine()
    End Sub
    End Module
    La vida loca

  • How to read an APO table from excel in place using Visual Basic ?

    We have enhanced some APO reports using layouts that use excel in place with custom visual basic (VB) code. For example, the VB code can append the data with additional columns that perform specific calculations and then proceed to create pivot table reports in excel..That is working fine.
    The challenge is to see if that VB code could read specific APO tables (e.g. product master tables) to bring additional elements into excel and thus expand the report content. We know that additional fields can be added to the reports, but having the flexibility to read tables from VB could be more flexible.
    Can that be done?. If so, would it be possible using exclusively the VB code attached to the layout, i.e. no ABAP?

    Hello Anselmo,
    I am assuming you are doing this either using BeX analyzer or by reading the planning book using the RFC ActiveX component and a BAPI.
    I think it's possible to retrieve the data from the product master table. Here are my thoughts on how can this be done:
    1) You can create a generic datasource (transaction RSO2) for the product master table, connect that to a BW remotecube and use a BeX query to retrieve that values. You can then join the queries using VBA. Alternatively, you can build a muti-provider that connects your current InfoCube to the new RemoteCube and build a query from there. The multi-provider, in this case, joins the data (no more VBA).
    2) If you have already loaded your product master data into master data carrying InfoObjects then you can try the same technique as #1 but this time there is no need to create the generic datasource. You can use the InfoObjects for your master data as the InfoProviders for your query.
    3) You can try the ActiveX component from SAP which can  connect to any emote enabled function in SAP system. SAP already provided some BAPIs (check transaction BAPI for a list) which might be able to provide the data. You can also create your own function modules (be sure to make it remote enabled) using ABAP. (transaction SE37).
    Hope this helps

  • Table entries update through tcode me21n

    Hi ,i want to update the database table ekpo through the screen fields execution.
    please help me with the code lines.
    thanks

    i am doing like this for updating the entries through tcode me21n.
    IN PBO;
    data: v_date type ekpo-zzpldte,
          v_code type ekpo-zzreason.
    if sy-tcode = 'ME21N'
    or sy-tcode = 'ME21'.
      loop at screen.
        if screen-name = 'EKPO-ZZREASON'
         or screen-name = 'EKPO-ZZPLDTE'.
          screen-input = '0'.
          modify screen.
        endif.
      endloop.
    endif.
    IN PAI:
    types:ekpo.
    data:it_ekpo like standard table of ekpo with header line,
         wa_ekpo like ekpo.
    select * from ekpo
    into corresponding fields of table it_ekpo.
    loop at it_ekpo into wa_ekpo.
    wa_ekpo-zzpldte = v_date.
    wa_ekpo-zzreason = v_code.
    modify ekpo from wa_ekpo.
    endloop.
    i dont know whther i am doing it correctly,
    will this will give me the database updates.
    please note v_date and v_code is my feilds on th screen for the user entry.
    please suggest.
    thanks.

  • How to check the way table S066 is updated through VKM3

    Hello Experts!
    I'm debbuging transaction VKM3. This is used to release open orders. Within this functionality infostructure S066 (credit managment for open orders) will be updated.
    My problem is that I can't see the values it's using to update the table because it is being updated through a "commit work and wait" statement.
    this is where the update takes place:
    include MV45AF0B_BELEG_SICHERN
        if call_function = space or us_syncron = charx.
        if us_syncron = space.
            commit work.
        else.
           commit work and wait. " This is getting executed
        endif.  
    I've already activated the update mode debugging (so it's calling all the update functions registered through "call fucntion in update task"), but I think it's calling some system functions (not sure about it).
    Is there a way to check how the update takes place?
    thanks in advance for your help!

    Hi,
    Yes there is another way where you view the values used to update S066.
    As Rob said you can get the details through ST05.
    Else after we do the UPDATE DEBUGGING ON and once a COMMIT WORK  statement is encounted then the debugging session will open in another screen there goto menu path Breakpoints->Breakpoints at->Statement----"UPDATE"....
    Similary for "INSERT" & for "MODIFY". This will stop at all the DB tables update where in if S066 is updated then definetly it will stop at S066 UPDATE.
    Please try this once and let me know if any.
    Regards,
    Srinivas

  • Urgent : update of table QALS  through transaction QA12 after save

    Hello Experts ,
      I need to update the table field SELHERST of standard table QALS through transaction QA12 after the save button is clicked  .
    I have implemented the exit QEVA0010 which is triggered after clicking the save button , and have put the update command there , followed by commit work statement .
    But it is not updating the table QALS .
    Thanks in advance ....

    When the SAVE button is pressed, SAP execute some checks and launch the update task, if you want that your changes are not overwritten by SAP you need to submit those for execution during update task.
    So you need to use instructions like
    - PERFORM ON COMMIT
    - CALL FUNCTION IN UPDATE TASK
    and execute the update in one of these. (Reference [Updates in the R/3 System (BC-CST-UP)|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCSTUP/BCCSTUP_PT.pdf])
    You may also try to force the update in the main program, declaring a pointer (field symbol) in the calling program data '(SAPMQEVA)QALS'  (But that's not very correct)
    Regards

  • Visual Basic Screen Updating in BPC

    We are developing a highly customized BPC input template in Excel and have made extensive use of Visual Basic; however it appears that the "application.screenupdating=false" VB function does not work when logged into BPC.  I assume somehow the BPC application disables this functionality?
    Has anyone else run into this situation?  Found a workaround?
    Any suggestions would be greatly appreciated!

    You can greatly improve your chance of receiving a helpful answer to your question if you state the version (MS or NW) and the release (5.1, 7.0) of BPC which you are using.
    Also notice the sticky [note|Please do not post BPC, SSM or FI/CO questions here!; at the top of this forum whereby we announced new dedicated forums for BPC which are the proper place to post your questions regarding BPC in the future.
    Thanks and best regards,
    [Jeffrey Holdeman|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/jeffrey+holdeman]
    SAP BusinessObjects
    Enterprise Performance Management
    Regional Implementation Group

Maybe you are looking for

  • ABAP mapping XML inside another XML

    <b>Cross posted to ABAP Objects</b> From XI we want to make an abap mapping. The input xml looks like this: <?xml version="1.0" encoding="UTF-8"?> <ns0:mt_dummy xmlns:ns0="http://kmd.dk/phh/externalEventEngine/pfhaen"> <details> <Navn>Nielsen</Navn>

  • Problem with spreads - urgent!

    My problem here is that when I want to print my 18-page document, InDesign have decided to make these 18 pages in to 10 spreads. The result of that is the printer printing 2 pages in one page, in stead of what I want; 1 page on 1 page, thank you! I h

  • Open Item in a new window

    Hi All, I have added a file item in a folder in a content area. I wolud like to know how to open that file item in a new window. thanks

  • JVM_CreateJavaVM Returns -3

    Trying to create a JVM using JVM_CreateJavaVM. The function returns -3 (JNI version error ). Tried specifying versions 1.1, 1.2, 1.4 (JNI version). I have JDK/JRE v5, Windows XP. Same code works on Mac just fine. Pointers passed to the method are ini

  • I cant open my itunes iphone 5s

    On my ipone 5s my itunes isn't opening. I've tried shutting it down but it dosent work.when I I press the app down it opens for 5 sec then crashes!