Send value to BAPI and and get value from BAPI on VB 6.0

Hi All,
I want to connect SAP and send some values and get some results from BAPI with Visual Basic 6.0
I connected SAP successfull But I didn't send value to BAPI.
I want to connect SAP with BAPI_MATERIAL_GET_ALL BAPI and I want to send u2018000000000000980010u2019  parameter. So I want get the result from BAPI.
Could anyone help me about send and get value BAPI with VB 6.0?
Thanks in advanced
captivator
Edited by: captivator on Dec 10, 2010 4:24 PM

Hi Dinesh,
My full code is below.
I'm getting error when "Set obj = ctlLogon.GetSAPObject("BAPI_MATERIAL_GET_ALL")" code line is working.
Error : Script error in module line 30:(10091) ActiveX Automation:no such property or method
Have you got any idea?
Thanks in advanced.
Esat
     Set ctlLogon = CreateObject("SAP.LogonControl.1")
     Set sapConnection = ctlLogon.NewConnection
     sapConnection.User = "user"
     sapConnection.Client = "120"
     sapConnection.Password = "1q2w3e4r"
     sapConnection.ApplicationServer = "xxxxxx"
     sapConnection.Language = "EN"
     sapConnection.SystemNumber = "00"
     booReturn = sapConnection.Logon(0, True)
     If booReturn <> True Then
          gSAPConnect = False
     Else
          gSAPConnect = True
     End If
     If booReturn Then
      'MsgBox "Logged On successfullyu2026"
      Debug.Print"Logged On successfullyu2026"
     End If
Dim obj As Object
Dim return As Object
Set obj = ctlLogon.GetSAPObject("BAPI_MATERIAL_GET_ALL")
Set return = ctlLogon.DimAs(obj, "000000000000980010", "RETURN")

Similar Messages

  • Updated to firefox 4.0. since then my computer is very slow accessing the internet, websites and getting information from within a website.

    Over a week ago I updated my computer to Firefox 4.0. Since then my computer is very slow accessing the internet, websites and getting information from within a website. Also, a tool bar has shown up for YAHOO which I did not request. The old detailed tool bar for Firefox has disappeared. All that now shows for Firefox is the area to enter website urls and an area to enter topic for a Google Search.
    Many times I have to exit Firefox and re-enter it later to access the internet.
    Please advice what I need to do to get back to the speed I had with the older version of Firefox.
    Thank You,
    Dennis

    Over a week ago I updated my computer to Firefox 4.0. Since then my computer is very slow accessing the internet, websites and getting information from within a website. Also, a tool bar has shown up for YAHOO which I did not request. The old detailed tool bar for Firefox has disappeared. All that now shows for Firefox is the area to enter website urls and an area to enter topic for a Google Search.
    Many times I have to exit Firefox and re-enter it later to access the internet.
    Please advice what I need to do to get back to the speed I had with the older version of Firefox.
    Thank You,
    Dennis

  • How can i set action on UITaBar and get event from that

    Hi All,
    I m doing one apps in which i have to add three UITabBarItem and this is UITabBarSystemItem.
    Now i cannot understand that how can i set action and get event from the?
    And how can i set various views on three tab bar item.
    I have to use UITabBar means i have to use UINavigationController+UITabBar
    My code id
    tabBar =[[UITabBar alloc] initWithFrame:CGRectMake(0,370,320,50)];
    tabBar.backgroundColor =[UIColor blackColor];
    UITabBarItem *search =[[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemSearch tag:0];
    UITabBarItem *recents =[[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemRecents tag:1];
    UITabBarItem *favorites =[[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemFavorit es tag:2];
    tabBar.items =[[NSArray arrayWithObjects:search,recents,favorites, nil] retain];
    tabBar.selectedItem = search;
    [myView addSubview:tabBar];
    [tabBar release];
    I add a action:
    UITabBarItem *search =[[UITabBarItem alloc] InitWithTabBarSystemItem:UITabBarSystemItemSearch tag:0 action:@selector(select:)];
    So it error: Warning -no'InitWithTabBarSystemItem:tag:action:' method fount
    So any can help me regarding it?

    Thanks RickMaddy very much.
    I read and do with sample at the View Controller Programming Guide . But when run it only view TabBar with title but haven't got any TabBarItem on it. I searched a few example about TabBar and i did, but i want do a form with a button then press on button it view a form with 2 TabBarItem on TabBar and press each TabBarItem will show correlative form page 1, page 2.
    UITabBarController *tabBarControl = [[[UITabBarController alloc] initWithNibName:nil bundle:nil] autorelease];
    tabBarControl.title = @"Tab bar";
    ViewControl1 *view1 = [[[ViewControl1 alloc] initWithNibName:@"ViewControl1" bundle:nil] autorelease];
    ViewControl1 *view2 = [[[ViewControl1 alloc] initWithNibName:@"ViewControl2" bundle:nil] autorelease];
    tabBarControl.viewControllers = [NSArray arrayWithObjects:view1,view2,nil];
    [self.navigationController pushViewController:tabBarControl animated:YES];

  • How do I create a new account and get stuff from the old account to the new account

    How do I create a new account and get stuff from the old account to the new account

    There are instructions on this page for creating a new account : Set up an Apple ID in iTunes
    Or if you don't want to give credit card details : Create an iTunes Store, App Store, or iBooks Store account without a credit card or other payment method
    But you won't be able to transfer purchases from your old account to it, all content that you download from the store will remain tied to the account that downloaded it.

  • Read and Get Data from PDF

    Hi All,
    I am fairly new to programming macros in Excel VBA, and right now I need to write a macro that can open a PDF file and read it and get data from there and paste it into an excel spread sheet. Is this possible?  If so can you give me some sample code
    that would do that?

    I did this once many years ago.  I had to have Acrobat Professional installed ($$$).  There are free pdf parsers that you access from VBA using Win32 commands like:
    https://code.google.com/p/peepdf/
    Maybe something has changed since I did it

  • LIKP - KUNNR and getting KUNNR from VBPA

    whats the difference between getting KUNNR and KUNAG from likp ( and getting adrnr from kna1) instead of getting KUNNR ( AG,WE) and ADRNR from VBPA ? . I found that both entries are same.

    Hello Sujitha,
    Whenever you need to fetch Address details for any partners. It is advisable to fetch ADRNR from VBPA. and then go to KNA1 to get the Address details.
    Please refer below example which will indicate why you need to fetch data from Customer Master(KNA1).
    If i have created a sales order or delivery for a particular customer.
    And change the address details for that customer in partners tab for VA02(sales order) or delivery(VL02). that will not be reflected in the customer master tables.
    So you should always get the entries for customer address from master tables to avoid data inconsistencies..
    Also in some case you might notice the for particular partners you dont have adrnr maintained in VBPA. So the approach should be as follows.
    For a partner take the kunnr and go to KNA1 to get the Address number adrnr. And then fetch address details from ADRC.
    Hope this answers your query.
    Thanks

  • Do I need to enable MySite or have a MySite created in order to follow content and get updates from Team Site library/Newsfeed?

    Hello, we are migrating to SharePoint 2013. In the current SharePoint 2007 implementation we have disabled MySite for several reasons. Question: Do we need to enable MySite or have a MySite created in order to follow content and get updates from Team
    Site library/Newsfeed?

    Hi,
    According to your description, my understanding is that you want to know if the MySite is needed for following content and getting updates of the followed content.
    When users follow documents, sites, or tags, status updates from documents, conversations on sites, and notifications of tag use show up in users’ newsfeed, so users need to their MySite to view the updates in Newsfeed by OOB and you need
    to migrate the MySite to SharePoint 2013.
    However, we can also use APIs to programmatically follow content, please refer to the link below:
    http://msdn.microsoft.com/en-us/library/office/jj163217(v=office.15).aspx
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • SSRS Expression to compare two values and get data from another dataset

    Hi,
    I have a requirement where in i need to compare a value of a dataset (not the one which table is poiting to)
    with the value of a text box, and return the count if it matches else 0, the expression is as below. Here 
    industryName and recCount are from the dataset ds_MedimOrLowImpactEntities.  whats wrong in this expression
    =Sum(IIF(Fields!industryName.Value = reportItems!hpapra_name.Value, Fields!RecCount.Value, 0), "ds_MediumOrLowImpactEntities")
    This is the error that i am getting:
    Any help on this is appreciated
    Kruthi Hegde

    Hi Kruthi,
    After testing the issue in my local environment, I can reproduce it. Just the error message said, “Aggregate function can be used only on report items contained in page headers and footers”. So the sum function that contains report items should be stayed
    at page headers or footers. Besides, you said the hpapra_name textbox contain a field from another dataset, not the ds_MedimOrLowImpactEntities dataset. While in Reporting Services, Report item expressions can only refer to other report items within the same
    grouping scope or a containing grouping scope. So consider the two issues, we should use some other expression to instead the “reportItems!hpapra_name.Value” expression.
    Take a look at the "Looking up values from another dataset" topic here:
    http://msdn.microsoft.com/en-us/library/ms159673.aspx#LookupFunctions
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Sending and getting data from external file.

    I'm running it in actionscript 1  and 2 since 3 wouldn't work when getting data from external media. I'm  trying to find out how to post data to a PHP file and getting from that  file I'm trying to make the flash for something that works like a game  but differently. Since I just found out how to make the HTML stuff show  up but a lot of times, some of my text will not appear so I don't know  what's going on.
    Does anyone know how to send and get data both at the same time from a sample file?
    The sample file is example.php
    It has to sent information like ID and NAME
    and it has to get information like Description and userID

    Ned Murphy wrote:
    The tutorial I pointed you to does provide the visuals you requested, both the AS code and sample PHP code, so I can't see where your learning by visuals aspect holds up.... your approach sounds more like you want someone to hand you a tailored solution that you won't need to learn from.  Visuals require reading and doing.  If that fails to get absorbed or you couldn't understand/revise it, what could anyone else prepare for you that would work better?
    I did the tutorial and everything but every time I press the button or even load it, it keeps on saying undefined. I like the have a sample FLA file so I can figure things out. I did everything from the site but it won't work out for me.
    I did step 5 too because it was almost all that I was looking for but it won't even work. keeps on saying undefined. I would show you but webcam max won't work and I can't show you an example.
    EDIT:
    You know it's frustrating when I don't know how the heck I'm supposed to do this stuff. I read the whole dang thing and I still can't get this dang thing working.
    I did everything. EVERYTHING. I just don't get this crap.

  • How to Send  Values from  READ_TEXT   to   User exit

    Hi Friends.,
                       I need to Read Values from  READ_TEXT  FM  and send those values  to  User exit  ( Exit_SAPLRSAP_001  for   ZSALES_2LIS_11_VAITM )  Datasource,
    I'm Getting one Indicator value ( values are like   Y N  0 )  from  READ_TEXT  FM
    and i have to make use of this in Extraction Part
    can anyone help me out in ABAP coding to get these values from  READ_TEXT  FM  to  User exit
    Regards
    Sridhar.

    Hi,
    if you open the FM in se37,you will find the 'Function module documentation' button. click on it and try to see what this function module is about.
    i am attaching a sample code to read the text of a penalty inforamion field.
      DATA: T_LINE_T LIKE TLINE OCCURS 0 WITH HEADER LINE.
      DATA: S_THEAD LIKE THEAD.
      DATA: T_LINE_H LIKE T_LINE_T OCCURS 0 WITH HEADER LINE.
    CALL FUNCTION 'READ_TEXT'
              EXPORTING
                CLIENT                        = SY-MANDT
                ID                            = 'K01'     "Valid values for the text ID are defined in table TTXID.
                LANGUAGE                      = SY-LANGU
                NAME                          = LV_SO     "here i am passing Sales order no
                OBJECT                        = 'EKPO'    "The text object is part of the text key and assigns the text module to a specific application object. Valid text objects are defined in table TTXOB.
      ARCHIVE_HANDLE                = 0
      LOCAL_CAT                     = ' '
             IMPORTING
               HEADER                         = S_THEAD
              TABLES
                LINES                         = T_LINE_T
             EXCEPTIONS
               ID                            = 1
               LANGUAGE                      = 2
               NAME                          = 3
               NOT_FOUND                     = 4
               OBJECT                        = 5
               REFERENCE_CHECK               = 6
               WRONG_ACCESS_TO_ARCHIVE       = 7
               OTHERS                        = 8
            IF SY-SUBRC = 0.
              READ TABLE T_LINE_T INTO T_LINE_H INDEX 1.
    Storing the value in the structure.
              E_T_DATA-PENALTY = T_Line_H-TDLINE.
            ENDIF.
    Thanks.

  • Setting up Brand New iPad 2 - iTunes Sharing and Getting Files from old iTunes Account

    Greetings.  I recently purchased an iPad 2 (convert after 20 years of PC use) and have been waiting to set it up until I knew the proper way to proceed.  I have multiple questions and am hoping those of you with more Apple experience can help out a convert .
    I would like to set it up with a new iTunes account so when my wife gets her iPad 2 next year we can share apps and movies we buy on iTunes.  Do you always have to sync your iPad to your PC to get your latest purchases or can you do that via the wireless connection directly on the iPad after the initial set-up?
    That said, if one of us buys an app/movie, will we both have to carry it on our iPads or will they store remotely on iTunes or on our PCs?  I'm just concerned about maxing out the storage space on the iPad.  Do the purchases need to occur on your PC vs. the iPad itself for both to have the app/movie access?
    I've also read about iCloud issues and syncing all calendar/contact/etc. accounts if two iPads are set-up with the same Apple ID.  What's the best way to initially configure the iPads so that you avoid this headache in the future?
    Once I get all this settled and get a new iTunes shared account working, is there any way to get the movies I have in both of our old iTunes accounts into the new shared iTunes account?  Can I simply drop them on a jump drive from one PC and place them into an appropriate folder on the new PC that the iPad sync's to if it does in fact need to sync?
    Again, appreciate all the help and sorry for all of the confusion and multiple thoughts.  I would just like to set this thing up once and for all the right way.
    Thanks again

    1, you can (re-)download a lot of purchases directly on the iPad without having to connect to your computer - apps and ibooks can be re-downloaded (as long as they remain available), music can be re-downloaded in some countries; tv shows can currently only be re-downloaded in the US. Re-downloading
    2, films are a one-time only download, so you can either download it on your computer's iTunes and sync it to your device(s), or if you download it directly on the iPad you will need to then copy it to your computer's iTunes (connect the iPad and do File > Transfer Purchases) so that you can make a backup and copy it to your other iPods, iPads etc.
    3, I haven't had any problems with iCloud, but then I don't share my account so it's only my account and contacts on my iPad and iPhone.
    4, you can authorise your old accounts on your computer's iTunes (Store > Authorise This Computer) and copy the films onto it : File > Add File To Library - you can't copy or transfer content to a different account (nor can you combine accounts), they will remain tied to the original account
    The iPad's manual has some info about syncing and each of the built-in apps (the iBooks app is covered in the manual though it isn't pre-installed, but you can download it for free from the store) - the manual can be downloaded from here http://support.apple.com/manuals/#ipad

  • Xslt and getting data from a uri in xml file

    In my xml file, i have a node that conains a uri to another xml file
    Is it possible to use XSLT to open the hyperlink and get the content of that xml file?

    Possibly using the document() function.

  • Web Dynpro - How to set and get info from Component Controller

    Hi Gurus!!!
    Im having some problems getting and setting info in component controller of my Web Dynpro.
    I can't see the difference between View Context and Global Context.
    How can i create a Global Context Between two views?
    Thanks!
    Regards.
    Polakinho.-

    hii
    difference between view context and global context is we can use the same component controller for all the views in the same application.but when when we create node in view context then it will be available for that view only not for any other view...so if we want to use the same node for all the views we need to create that view in the component controller.so it will become global for that application.
    for using global node you need to map that context in view controller.for that you need to go to that view then click on context tab and drag and drop node from component controller.so it will be available for that view.i hope it helps you.
    regards
    twinkal

  • Not able to get values/send values from RT FIFO

    Hi All
    I ahve created a custom device (asynchronous) which tries to read values of channels and also write the values of channels.
    when I am running my custom device to communicate with PLC , I am not able to see any data transfer between the two.
    So for debugging , instead of sending the values coming from the RT FIFO i am sending constant array values to PLC. In this case I am able to get values on PLC side. Which means RT FIFO not giving me channel values to send to PLC.
    What could be the reason for such behaviour?
    I am running my custom device on windows system only. I dont have RT system.

    Hey LV_user1, 
    So it sounds like your output channels for your custom device, but not your input channels, correct? How many input channels did you configure in your host side custom device Initialization VI? 
    I could probably help you figure it out a bit faster if you posted up some of your code as well!
    On a last note, you may want to say PCL and not PLC 
    Tim A.
    National Instruments

  • I send texts to people and get a message from myself

    my boyfriend and i are using the same apple ID and a message popped up on my phone when he updated his phone and i pressed yes, now when i send texts to people i get a message to myself

    You can set up your Yahoo mail account in Settings.  Once you've filled out the information, you can access your mail via the Mail app on the iPad, instead of via Safari.

  • Trying to send pix in iPhoto and get message email server does not recognize username/password combination.

    apple message when trying to send an email " email does not recognize username/password.

    Go to iPhoto's Accounts preference pane, delete the email account and add it back. 
    The better solution, IMO, is to set Mail as iPhoto's email client in iiPhoto's General preference pane.  That gives you better access to your Contacts, a sent copy and templates similar to iPhoto's in the stationary section of Mail.

Maybe you are looking for

  • Access UCCX 8.0 database via php

    Could you provide details on how to access the uccx 8.0 informix database with the help of php. I want retreive data with the help of sql queries. Awaiting your reply. Thanks.

  • Activity Report  - customizations

    I want create Activity report for the Portal and to a sepcific iView/Page as well. How can the report be customized? Thanks. Regards, Shimon

  • Find feature not working properly in FCP 7?

    Logged a bunch of clips in FCP7 for an interview-based project with letter-grades based on quality/usability of response. For example, "talks about effectiveness of campaign and results. a" The "a" at the end to represent that the clip is good and wi

  • Wrong Time -- 3 mins faster than my iMac

    Both my iPad and my newest generation touch are several minutes faster than the iMac they sync with. My nano is is w/in seconds, so that works fine.

  • Carrying forward PROBLEM.

    Hello. Actually i'am using carrying foward to perform sub totals. My carrying foward calculations are inside of table with Sub Total title. The calculations works perfectly and are showed in all the pages except last. My problem is in last page the t