Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8944

Re: Excel

$
0
0

Hi Rafael.

You have to follow this steps:

 

1.- create a New View in SQL.

 

vista en SQL2.JPG

 

You have to write a query (this is a single example):

 

SELECT docnum, doctotal, cardcode, cardname

FROM OINV

WHERE docdate between getdate()-30 and getdate()

 

this query show you the invoices saved in last 30 days.

 

2.- Go to MsExcel --> Main Menu --> Data  --> other sources --> from SQL server

vista en SQL3.JPG

 

3.- clic on: From SQL Server

vista en SQL4.JPG

 

In this windows, you have to write a loca IP of your server of SQL. In my case is 10.10.1.4

You have to write a user (in my case the user is INFO), write a password.

clic in NEXT bottom

 

4- Select the database where you saved your view

and  (below) Select the view

vista en SQL5.JPG

 

5.- clic on finish bottom

vista en SQL6.JPG

 

6- clic on OK

vista en SQL7.JPG

 

7- The result of your SQL View, show on msExcel


vista en SQL8.JPG

 

8- Ready. You have a SAP information from your SQL Database on MsExcel.

9- If you want to refresh the information, you have to go to:

 

msExcel Main Menu --> Data --> update all

in the windows that apear you have to write

user (in my case the user is "info")

password

 

clic on OK.

 

And the info on msExcel from your SAP database will be updated.

vista en SQL10.JPG

 

Note: the user info and the password you have to create on SQL Server like a security login. (I show you in the image below)

 

vista en SQL11.jpg

 

I hope that it help you.

Have a nice day.

 

Best regards.


Viewing all articles
Browse latest Browse all 8944

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>