Connect to SAP using Excel VBA - Simple Excel VBA

Поделиться
HTML-код
  • Опубликовано: 3 дек 2024

Комментарии • 62

  • @SimpleExcelVBA
    @SimpleExcelVBA  3 года назад +3

    TIME STAMPS
    0:00 Intro
    0:19 Story of Connect to SAP code
    2:18 Code - writing
    8:05 Code - testing
    9:41 Summary

    • @vinit8981
      @vinit8981 3 года назад +1

      Is it possible to zoom in the code as font seems to be very small

    • @SimpleExcelVBA
      @SimpleExcelVBA  3 года назад

      @@vinit8981 All the code showed in the video You can find in the article on my site (link in the description). I'll keep your comment in mind for the next videos! Thanks for feedback!

    • @lukban1825
      @lukban1825 3 года назад +2

      Jasny motyw byłby dużo wgodniejszy do oglądania.

    • @SimpleExcelVBA
      @SimpleExcelVBA  3 года назад +2

      Dzięki za info, zmienię na wyraźniejszy w następnym filmie!

  • @pkumar18
    @pkumar18 3 года назад +5

    it was really awesome. i am wondering if we can bring any table data in excel as per parameter given in excel fields. it will be truly amazing to prepare dashboard.

    • @SimpleExcelVBA
      @SimpleExcelVBA  3 года назад +2

      Yes, it is possible to prepare data in Excel for SAP fields. Create variables, put those values inside and then use them in the SAP recording. Is that what You were asking?

    • @pkumar18
      @pkumar18 3 года назад

      @@SimpleExcelVBA Yes. You are right. But its my bad as sap macro is disabled in my organization.
      Actually i was trying to make a custom report in excel which will bring open invoice report. So that i can make some bar graph and Pie chart

  • @tbdfuu-ff2jt
    @tbdfuu-ff2jt Год назад

    Simply awesome videos 👍. I often revisit these videos in order to do something else sometimes as the steps explained are divided in a very simple manner so that one can easily customize them.

    • @SimpleExcelVBA
      @SimpleExcelVBA  Год назад

      Awesome! Glad to hear that :) thank You & enjoy!

  • @pranavkumar5634
    @pranavkumar5634 3 года назад +2

    This worked perfect for me :).. I was wondering if you can tell us VBA code to log out of SAP... this will really help me..

    • @SimpleExcelVBA
      @SimpleExcelVBA  3 года назад

      Check out my article, it will help You with that
      simpleexcelvba.com/sap-session-findbyid-10-code-lines-you-can-identify/

  • @dinesh17782
    @dinesh17782 9 месяцев назад

    Looking for vba macros to get the details of meta data from universe in sap BO. (class, objects, columns and tables that are mapped.) Appreciate your help

    • @SimpleExcelVBA
      @SimpleExcelVBA  9 месяцев назад

      I'm sorry, I'm not familair with SAP BO.

  • @xuanhoanguyen2905
    @xuanhoanguyen2905 3 года назад

    Thank you very much for your guidance. But when I run the code, there is a Msgbox "A script is attempting to access SAP GUI". Please help me how to reject this warning box?

    • @SimpleExcelVBA
      @SimpleExcelVBA  3 года назад

      Hello, please check my other video about sap scripting pop ups :) ruclips.net/video/iHND_o2H5Bw/видео.html

    • @xuanhoanguyen2905
      @xuanhoanguyen2905 3 года назад

      @@SimpleExcelVBA It's awsome. Thank you very much

  • @مريومالعشوان
    @مريومالعشوان 2 года назад

    Thank you for your amazing vedio, l have a question what is the name of module you used?

    • @SimpleExcelVBA
      @SimpleExcelVBA  2 года назад

      Hello, what do You mean? The connection string name?

    • @مريومالعشوان
      @مريومالعشوان 2 года назад

      Yes ,inside "openconnection" function what is the value you pass

    • @SimpleExcelVBA
      @SimpleExcelVBA  2 года назад +1

      @@مريومالعشوان It is the name of the environment I worked in. This is something spefic for the person/company. :)

    • @مريومالعشوان
      @مريومالعشوان 2 года назад

      @@SimpleExcelVBAthank you for your suppor.l have anothor issue , is there any way to close the excel file that exported from SAP ? I real need help with this .

    • @SimpleExcelVBA
      @SimpleExcelVBA  2 года назад

      @@مريومالعشوان answer can be found in my another video:)

  • @PrezesDomal
    @PrezesDomal 2 года назад

    Awsome, thanks

  • @guramtsirekidze2802
    @guramtsirekidze2802 3 года назад +3

    That was really helpful, thank you a lot.

  • @monu1tv
    @monu1tv 3 года назад

    Very nice and really helpful
    I have one question what code to change if i am already logon and dont want to logout

    • @SimpleExcelVBA
      @SimpleExcelVBA  3 года назад

      Try to use the first part of recorded script :)

  • @grzegorz2852
    @grzegorz2852 2 года назад

    Tomas, quick question. do we have to turn on sap gui scripting in reference or this is the late biding option?

  • @aiwashelo
    @aiwashelo 3 года назад

    Thanks for your help regarding this, getting the 438 error run time, is that because fo the worksheets reference using Range, Is there any other alternative. Code is working fine. appreciate your help regarding. All worked well except that annoying error

    • @SimpleExcelVBA
      @SimpleExcelVBA  3 года назад

      What do You mean? Alternative for Range? --> Cell, I need bigger perspective - the code - to help You :)

    • @aiwashelo
      @aiwashelo 3 года назад

      @@SimpleExcelVBA Thank you for responding, my excel is office 365 , 16 version, I am getting Runtime error '438' Object doest support this property or method. I checked every thing with debug did not find any error or warning on code, when I run it does come with 483. Any help will be great

    • @aiwashelo
      @aiwashelo 3 года назад

      looks to be this one, Enter key - is session.findById("wnd[0]").sendVKey 0 ., this is not supported is there alternative to this ?

    • @SimpleExcelVBA
      @SimpleExcelVBA  3 года назад

      @@aiwashelo but it comes from the recording or did You manually put that in the code?

    • @aiwashelo
      @aiwashelo 3 года назад

      @@SimpleExcelVBA coded by watching your video, at the last you had the .sendVKey 0

  • @mukesh4490
    @mukesh4490 Год назад

    Hi, I am trying to put my connection name in the script but it is showing error. Please help me with this. In the connection name I have to write the name or SID or the group/server

    • @SimpleExcelVBA
      @SimpleExcelVBA  Год назад

      The name of the environment, the name You manually double click where You want to work in SAP.

  • @mikaelfogelvik9844
    @mikaelfogelvik9844 2 года назад

    Does not work for me. Gets VBA error 1000: "SAP Logon connection entry not found". when it gets to Set Connection = Appl.Openconnection("ISP", _
    True)

    • @SimpleExcelVBA
      @SimpleExcelVBA  2 года назад

      If You get an error in such case, make sure that "ISP" is a full name of connection/ there is no typo.

  • @staifsaffar7249
    @staifsaffar7249 3 года назад

    can i know more about creating the connection?

  • @mahh1956
    @mahh1956 3 года назад

    can you upload the xcel file in your tutorial

    • @SimpleExcelVBA
      @SimpleExcelVBA  3 года назад

      All the code You can find in the article on SimpleExcelVBA.com, link is in the description :)

  • @TechMedia41
    @TechMedia41 Год назад

    Getting 614 error

    • @SimpleExcelVBA
      @SimpleExcelVBA  Год назад

      Without bigger picture I am not able to help You, could You share error description, code and the line when error popped up?

  • @VisioNOIR.
    @VisioNOIR. 2 года назад

    Thanx, for making the code nearly unreadable with this creative color scheme.

    • @SimpleExcelVBA
      @SimpleExcelVBA  2 года назад

      Noted that.
      Anyway, all the code is under the link in the description, so no worries of missing anything from video! :)

  • @szmusic4209
    @szmusic4209 Год назад

    Very nice .. may i know your instagram page ?? For contact ?

    • @SimpleExcelVBA
      @SimpleExcelVBA  Год назад

      simpleexcelvba.com/about-me/
      or directly:
      tomasz@simpleexcelvba.com
      no instagram yet :)

  • @Oscarxxxification
    @Oscarxxxification 3 года назад

    Thanks. I received an error message at the "Set session = Connection.Children(0)" the message was "The enumerator of the collection cannot find an element with the specified index." Is it possible to fix it? SAP opens but is not possible to log in.
    Thanks again!

    • @SimpleExcelVBA
      @SimpleExcelVBA  3 года назад

      Have You tried other indexes like 1 or 2? Have You checked the name of connection - any typo?

    • @Oscarxxxification
      @Oscarxxxification 3 года назад

      @@SimpleExcelVBA I already check Typo, I tried other Index, but there's no login yet.
      Unfortunatly the Rec and Play Script option is dissable, si I was trying to running from Excel VBA

    • @SimpleExcelVBA
      @SimpleExcelVBA  3 года назад

      @@Oscarxxxification Oh, so this is the reason of error. Are You able to turn it on or is it the corp settings?

    • @Oscarxxxification
      @Oscarxxxification 3 года назад

      @@SimpleExcelVBA That's the corp settings
      I tried to acces to RZ11 transaccion but I received a message, "there's no autorization"
      However, in options in Script is able.

    • @SimpleExcelVBA
      @SimpleExcelVBA  3 года назад

      @@Oscarxxxification If You have no authorization for the specified transaction You can't access it manually or automatically using SAP scripting. But it is weird that You can't connect.

  • @petre1219
    @petre1219 3 года назад +4

    the black background is making me mad. It is unreadable on my work computer

    • @SimpleExcelVBA
      @SimpleExcelVBA  3 года назад

      Sorry. In that case remember, that You can find all the code in the article, link is in the description.