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!
 

Some videos you may like

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Watch MrExcel Video

Forum statistics

Threads
1,122,459
Messages
5,596,270
Members
414,049
Latest member
MisterExcel26

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