Help with Scripting: Excel to SAP then back to excel with data ME23N

L

Legacy 296444

Guest
Hello,

New to SAP here and want to make a script to pull data. Never made an SAP script before

I have LOTS of emails (50,000+
shocked.gif
) That contain PO #'s.In Outlook i created a VBA macro(With help from online as this was my first vba) to go through the selected emails of my choice and copy that PO number into an excel spreadsheet.



I am looking up the PO's in SAP SSO ME23N to see if they have a green check mark in the release strategy status box. Is there a way i can have SAP Grab the PO's off my spreadsheet, Look them up to see if they have the green check mark, and put that data in Column B of my excel spreadsheet?

I can do the sorting i need from there
happy.gif



All help is greatly appreciated!
happy.gif
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
This is the code i get when i create a script recording in SAP. Clicking the tab and field i need to check.

Code:
If Not IsObject(application) Then
   Set SapGuiAuto  = GetObject("SAPGUI")
   Set application = SapGuiAuto.GetScriptingEngine
End If
If Not IsObject(connection) Then
   Set connection = application.Children(0)
End If
If Not IsObject(session) Then
   Set session    = connection.Children(0)
End If
If IsObject(WScript) Then
   WScript.ConnectObject session,     "on"
   WScript.ConnectObject application, "on"
End If
session.findById("wnd[0]").maximize
session.findById("wnd[0]/usr/subSUB0:SAPLMEGUI:0010/subSUB1:SAPLMEVIEWS:1100/subSUB2:SAPLMEVIEWS:1200/subSUB1:SAPLMEGUI:1102/tabsHEADER_DETAIL/tabpTABHDT12/ssubTABSTRIPCONTROL2SUB:SAPLMERELVI:1100/cntlRELEASE_INFO/shellcont/shell").currentCellColumn = "ICON"
 
Upvote 0

Forum statistics

Threads
1,216,084
Messages
6,128,722
Members
449,465
Latest member
TAKLAM

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top