VBA Macro Code using SAP script

LeanneBG

Board Regular
Joined
Jun 20, 2016
Messages
157
Hi All - I hope someone could help me with this. I am downloading this report monthly and i think it would be easier to automate the downloading, however, i have zero knowledge on how to do sap script (hopefully this wouldn't be version-sensitive since i am using SAP 7.30 but there are SAP 7.20 version). Please see below step by step process that i do.

I Go to SAP, G4P box then enter transaction code "xxxx" and enter the following details:
Cost Center: "1234567892"
Cost Element Group: "EXPENSES"
Posting Date: 1st Day of the year to the last day of the Closed month
Layout: /pgeorgeCB

I execute the report (F8)

then save it as excel file and then go back to SAP and expand all fields (this is the hardest/tedious part), and then save again the file as excel (this is another file)

Then i consolidate both files into one excel file.

I dont know where to start, if someone can just help me with sap script, i think i can figure out the excel (copy and formatting stuff) on my own.. Thanks in advance!
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,422
Messages
5,837,143
Members
430,478
Latest member
masoodb1358

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
Top