web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Automate SAP data extr...
Power Automate
Answered

Automate SAP data extraction to Excel with Power Automate Desktop

(0) ShareShare
ReportReport
Posted on by 79

Hi,

 

I need to read 400 items from sap that do not have an export function

meaning i need to read row by row to extract data out from sap table.

which action can i use for in PAD?

Thanks

I have the same question (0)
  • VishnuReddy1997 Profile Picture
    2,656 Super User 2025 Season 2 on at

    Hi @Zy_Sin ,

     

    If the Data in SAP is in Grid form it will directly get as table.

    You can use Extract Data from Window action.

    If I have tried with Contoso application as shown in below image try to replicate same with the SAP.

    VishnuReddy1997_0-1715689011986.png

    You can save output into variable or spreedsheet.You will get like as shwon in below image.

    VishnuReddy1997_1-1715689072799.png

     

    (Note:- if you got your solution you can mark as solution and gives kudos)


    Thanks & Regards

    Vishnu Reddy

  • eetuRobo Profile Picture
    4,204 Super User 2025 Season 2 on at

    Is there export to Spreadsheet option when you right click the table?

    eetuRobo_0-1715689709019.png

    If not then if you have PAD that is updated recently try the SAP automation action "Get details of SAP UI element". 

    eetuRobo_2-1715689884922.png
    I haven't really tried those since I don't have that new PAD version in the environment I have SAP in.

    If not then you could also try UI automations "Extract data from window" -action. I couldn't make that work but maybe your SAP table element is bit different.

    eetuRobo_3-1715689937256.png


    Or just make it bit more manually.
    Try first can you do copy the table to excel by hand: Click the SAP table and press Ctrl + A to select the whole table and then Ctrl + C to copy it. Then Paste it into Excel.

    If that works try doing these steps:

    eetuRobo_4-1715690181759.png

    step 3 clicks the SAP table somewhere in the middle of it. Then Ctrl + A selects all and Ctrl + C copies the table. Step 9 clicks Excel cell(what ever cell) and then select all with Ctrl + A (so that it won't paste it into singular cell) and paste the table to the excel.

    You might also be able to do this with VBScript. I don't think you can return (echo) datatable value to PADs datatable type. VBScript will always return string type to PAD I think. So you would need to insert the data into excel in the vbscript.

  • Zy_Sin Profile Picture
    79 on at

    hi @VishnuReddy1997 
    no is not a grid 
    and the extract data from window only extract one cell.
    below is an example of table i have like more than 400 rows which will not be visible till scroll downward and there is no export function for this t-code

    please help

    Zy_Sin_0-1715734884284.png

     

  • Zy_Sin Profile Picture
    79 on at

    Hi @eetuRobo 
    not possible to do ctrl a cos it only a in one cell whereby i need the entire table to be selected.

    gotten the new version but the get details of SAP UI element is only getting the attribute.

    is there any other way?

    thanks

  • Verified answer
    eetuRobo Profile Picture
    4,204 Super User 2025 Season 2 on at

    Are you sure you are taking correct element since its taking only one cell? Make sure you are taking the Gui Table Control and not just one cell.

    So like this:

    eetuRobo_0-1715766239778.png

    Not like this:

    eetuRobo_1-1715766239779.png

     

    At least I was able to take from similar

    eetuRobo_2-1715766239779.png

     

    eetuRobo_3-1715766239779.png

     

     

    Only thing is that it also takes empty rows and takes only rows that are showing in your screen. So then you would need to go down and take it again until there is no more rows to take.
    Atleast in this SAP version and this screen I can just go down with Page Down keyboard button and it will show the next rows. So for example If it shows only 16 rows pressing page down it shows 17 - 32 rows and so on.

     

    So if that works make some kind of logic that stops when there is an empty row and then just remove the empty rows form the datatable.

  • Zy_Sin Profile Picture
    79 on at

    Hi @eetuRobo 

     

    sadly for this limitation... if you ever gotten a solution without pressing the Page down key, kindly let us know.
    Thanks for now
    is a solution.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard