How to use RFC to get data from BW?
Hi all, we need to get data from BW using RFC, I am not familiar with BW and RFC, would you please give me some advice? Many thanks in advance!
would you please bring your solution to light here?
thank you
God's blessing
Andreas
Similar Messages
-
Trying to use FTP to get data from a different server
Hi Friends,
I have to use FTP to get data from a different server and upload it on SAP server. Now my problem is when I m trying to do ftp through command line it brings the file but with no data.
Through ABAP program nothing is happening.
Here's my code--
V_PASSWORD = 'test@123'.
V_PWD_LEN = STRLEN( V_PASSWORD ).
CALL FUNCTION 'HTTP_SCRAMBLE'
EXPORTING
SOURCE = V_PASSWORD
SOURCELEN = V_PWD_LEN
KEY = CS_KEY_500098
IMPORTING
DESTINATION = V_PASSWORD.
CALL FUNCTION 'FTP_CONNECT'
EXPORTING
USER = 'test'
PASSWORD = V_PASSWORD
HOST = '176.0.1.6'
RFC_DESTINATION = 'SAPFTPA'
IMPORTING
HANDLE = MI_HANDLE
EXCEPTIONS
NOT_CONNECTED = 1
OTHERS = 2.
CHECK SY-SUBRC = 0.
cmd = 'lcd d:\ftp'. .
PERFORM FTP_COMMAND USING CMD.
CMD = 'asc'.
PERFORM FTP_COMMAND USING CMD.
CONCATENATE 'dir' 'ftpt*' INTO CMD SEPARATED BY SPACE.
PERFORM FTP_COMMAND USING CMD.
cmd = 'ls'.
concatenate 'ls' INTO CMD SEPARATED BY SPACE.
PERFORM FTP_COMMAND USING CMD.
cmd = 'mget trial.txt'.
CONCATENATE 'mget' 'trial.txt' INTO CMD SEPARATED BY SPACE.
CALL FUNCTION 'FTP_COMMAND'
EXPORTING
HANDLE = MI_HANDLE
COMMAND = CMD
TABLES
DATA = MTAB_DATA1
EXCEPTIONS
TCPIP_ERROR = 1
COMMAND_ERROR = 2
DATA_ERROR = 3
OTHERS = 4.
IF SY-SUBRC = 0.
LOOP AT MTAB_DATA1.
WRITE: / MTAB_DATA1.
ENDLOOP.
ELSE.
CONCATENATE 'Error in FTP Command while executing' CMD INTO ERROR SEPARATED BY SPACE.
WRITE: / ERROR.
ENDIF.Hi
try this.....in one of my reqt, i done this successfully....
FORM FTPCON.
FTP-------------------------------------------------------*
CLEAR DSTLEN.
SET EXTENDED CHECK OFF.
DSTLEN = STRLEN( S_PWD ). -
> (S_PWD (password) is a selection screen field )
CALL FUNCTION 'HTTP_SCRAMBLE'
EXPORTING
SOURCE = S_PWD
SOURCELEN = DSTLEN
KEY = KEY
IMPORTING
DESTINATION = S_PWD.
CALL FUNCTION 'FTP_CONNECT'
EXPORTING
USER = P_USER -
> Username
PASSWORD = S_PWD -
> password
HOST = P_HOST -
> Host
RFC_DESTINATION = P_DEST -
> Destination
IMPORTING
HANDLE = HDL
EXCEPTIONS
NOT_CONNECTED = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'FTP_COMMAND'
EXPORTING
HANDLE = HDL
COMMAND = 'set passive on'
TABLES
DATA = RESULT
EXCEPTIONS
TCPIP_ERROR = 1
COMMAND_ERROR = 2
DATA_ERROR = 3.
CALL FUNCTION 'FTP_R3_TO_SERVER'
EXPORTING
HANDLE = HDL
FNAME = G_FCNAME
CHARACTER_MODE = 'X'
TABLES
TEXT = T_FILE1
EXCEPTIONS
TCPIP_ERROR = 1
COMMAND_ERROR = 2
DATA_ERROR = 3
OTHERS = 4.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'FTP_R3_TO_SERVER'
EXPORTING
HANDLE = HDL
FNAME = G_FCNAME1
CHARACTER_MODE = 'X'
TABLES
TEXT = T_FILE2
EXCEPTIONS
TCPIP_ERROR = 1
COMMAND_ERROR = 2
DATA_ERROR = 3
OTHERS = 4.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'FTP_DISCONNECT'
EXPORTING
HANDLE = HDL.
CALL FUNCTION 'RFC_CONNECTION_CLOSE'
EXPORTING
DESTINATION = P_DEST
EXCEPTIONS
DESTINATION_NOT_OPEN = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " FTPCON
Hope it helps..... -
Anyone knows about using java to get data from MS Access database.
hi there
anyone knows about using java to get data from MS Access database? thank youthere is a list of jdbc drivers at:
http://industry.java.sun.com/products/jdbc/drivers
they have several ms access drivers listed.
also, you can use a jdbc-odbc bridge which allows you to use jdbc to connect to any odbc data source:
http://java.sun.com/j2se/1.3/docs/guide/jdbc/getstart/bridge.doc.html -
How to use sda6810 to receive data from a rs485 channel?
I want to use sda6810 to anlyze data from a rs485 bus. So I use Labview to progame the sda6810 with the drivers.Firstly,I intilite the card,then I cofigued an channel to send data from a buffer,and configued another channel to receive data from the first chanel . But unfortunatly the data I received was not equal to the data I sended.And there are not any error messages indicated in Labview
And when I try to use the GP channel,I found it worked properly.please tell me how I can solve the problem?I really apreciate your help.You told me that
I should use the exameples which shipped with sda driver firstly. I do used them,and it worked correctly.So I think the connections was being setup properly.And I
used labview to progame the rs485 channel
. It do received something .But it was incorrect.
I would be grateful if you could send me an
example writted by labview,or you could tell
me you e-mail address.
Here is my code .
Attachments:
youyou2.zip 110 KB -
How to use macro to pull data from custom infotype?
Hi all,
Is rp_provide_from_last p9004 space pn-begda pn-endda. works?
i am getting all zeros .
is using macros possible pull data from custom infotype? or only select?
Regards
sas
For LDB PNPCE
get peras:Hi,
Try the following Macro it will solve out your problem,
DEFINE rp_provide_from_last.
rp_found = '0'.
clear: rp_tabix.
loop at &1.
if &2 ne space.
check &1-subty eq &2.
endif.
if &1-begda le &4 and &1-endda ge &4.
rp_found = '1'.
exit.
endif.
if &1-begda le &4 and &1-endda ge &3.
rp_tabix = sy-tabix.
endif.
endloop.
if rp_found eq '0'.
if rp_tabix ne 0 .
rp_found = '1'.
read table &1 index rp_tabix.
else.
clear: &1.
endif.
endif.
END-OF-DEFINITION.
rp_provide_from_last <p????> space <begda> <endda>.
Best Regards,
Faisal -
How to make this function module as RFC to get data from different system?
Hi
I am trying to use following function module . This function module is used to copy data from one cube to another cube within same system however I need a this should happen across two different system. How can I use this function module to make it remote call to different system and do the same function what it is doing ?
Name of function module -
RSDRT_INFOCUBE_DATA_COPY
Any help would be really helpful
AGHI,
let us say you want to copy the data of a cube in system A to a cube in system B .
1) create a RFC function module in system B (in this function module call the function module RSDRI_CUBE_WRITE_PACKAGE to update the data), this RFC function module should have same parametersa as RSDRI_CUBE_WRITE_PACKAGE .
2) write a program in system A .. read the data from the infocube using the function module RSDRI_INFOPROV_READ and call the RFC function module in system B that you have created..
for the details of the parameters to pass to these two function modules use the RSDRT_INFOCUBE_DATA_COPY and get the required code
Thanks
mahesh -
hi,
in my scenario, XI is passing the data back to RFC, but in my program where i call the RFC, the data is not received. what could be the issue.
CALL FUNCTION 'ZFFF' DESTINATION 'XI'
TABLES
INP = aaa
OUT1 = bbb
OUT2 = ccc.
COMMIT WORK.
it was working fine before when i had only OUT1. Later I added OUT2 and then onwards I am not getting data for any of the tables. I have checked in XI, data is being passed out of XI to RFC. No issues in that.
something seems to have gone wrong in the RFC modfication or the RFC call. can anyone please help.
thksHi,
Check the export import parameter declarations & data types in both RFC & XI.
Put a break point in RFC & check whether it is getting triggered.
Best regards,
Prashant -
How to use session to passing data from one JSP to another JSP
Dear All, I had create 2 jsp web page and want to do this:
1. input some data into the text box and click the submit button, the jsp page
will open another jsp page and send the text box data to the new open jsp page.
can any one tell me how to open a new jsp web page and reciev data from another jsp page?
thanks yu very much!
the question.jsp got some code like:
<html>
<input type= 'text' name = 'txtName' size = 10 >
<input type= 'submit' name = 'submit'>
<% some jsp code %>
</html>
answer.jsp
<html>
<%
some jsp code here
%>
</html>Contents of HTML forms are transmitted as name-value pairs, so you can call request.getParameter(String name) with your form field's name in order to access its value:
String textValue=request.getParameter("txtName");Regards -
HOW to use xml to transfer data from database?
Hi,
Would you please give me some suggestion on how to use xml connect with a table in oracle/MS_access database?
Thanks a lot
ZhaoHave you already had a look at our online documentation here on OTN, or at a book like Building Oracle XML Applications? There are lots of examples in those.
If you have a specific question about using the API's that's not working for you, we can help out here. -
How To Use OATS To Pull Data From DB And Insert Data Back To DB
Hi All,
My requirement is little different.
I'll explain the scenario,
I am working on OTM application, as far as I have read OAST supports OTM and already test scripts are ready.
My situation is as follows bellow,
I need to pull data of a field for 18,000 shipments.
I have an excel sheet in the format as bellow
Shipment_Number
Stop_Number
Planed_Arrival_Date
Planed_Departure_Date
1
1
1
2
1
3
2
1
2
2
I was able to write script in OATS so that it logins to OTM and searches for the specified shipment number and capture the Planed_Arrival_Date and Planed_Departure_Date for the specific stop.
But the problem is I am not able to save the date back to the excel.
Solution Expecting:
Some way to save the captured data back to excel.
Some way to save the captured data back to a column in a table. if this is possible then some way to make OATS reade the shipment number from a column in database.
Thanks,
Vishwamber ShettyHi Vishwamber,
Try using Datatable in OATS. Using datatable you can read and write to Excel.
Regards,
Deepu Muraleedharan -
How to get data from CRM systems?
Hi...
How to use adapters to get data from external systems such as CRM systems.It is totally depends what kind of message is or are coming out from CRM Systems.
If it is sending IDoc then use Idoc adapter.
If it is BSP and sending HTTP Post then use HTTP adapter.
If you are using proxy then use XI adapter.
thanks
farooq -
How to get data from live site using C# on grid view
hi, how am I able to get data from a website and display it in a grid view ?
Can anyone show me how I would do this? ThanksHello,
This post does not fit to this forum, read the
stickies.
Regards, Eyal Shilony -
Using Get Data From Aggregation event class in SQL Profiler - SSAS 2012
Hi,
I'd like to understand better the use of the Get data from aggregation event class in SQL Profiler to monitor a MDX query and which info provide. Fe, does it return the MDX query? Is it possible to use this event class in order to monitor MDX query vs a
Tabular model?
In the TechNet documentation, this event class is handled briefly.
ThanksHi pscorca,
This event is raised when the storage engine reads data from an aggregation, it may have a negative impact on performance when turned on. If you need to monitor SSAS instance status, we can also use dynamic management view:
Use Dynamic Management Views (DMVs) to Monitor Analysis Services:
http://msdn.microsoft.com/en-us/library/hh230820.aspx
Regards,
Elvis Long
TechNet Community Support -
How to get data from an existing Excel file using report generation toolkit
I'm trying to use the Excel Get Data vi from the report generation toolkit, but i can't figure out how to turn a browsable path into the right type for the VI. I've tried using the New Report.vi, but that doesn't work unless you use a template. It won't open an existing excel file and make it an open report to pull data from.
Essentially, i have a bunch of excel files that have data in them and i want to use a VI to analyze the data. So, i'm trying to pull in all the data directly from the excel file so i don't have to reproscess them all into text so i can use the more standard spreadsheet VIs. But to even convert the excel file programtically in labview won't i still need to be able to open the excel file and get the data?
Solved!
Go to Solution.I C.
Got it,
the reason why I can view it using my Excel file because its in .CSV.
I open Microsoft Excel to open .CSV file.
But you can also open .csv file with notepad.
So, you cannot open .xls with Read Spreadsheet File
I learn something everyday
Best regards,
Krispiekream -
How can i get data from another database SQL Server use database link from
I have a database link from Oracle connect to SQL Server database with user cdit connect default database NorthWind.How can I get data from another database(this database in this SQL Server use this database link)?
hi,
u should see following documentation:
Oracle9i Heterogeneous Connectivity Administrator's Guide
Release 1 (9.0.1)
Part Number A88789_01
in it u just go to chapter no. 4 (using the gateway),,u'll find ur answer there.
regards
umar
Maybe you are looking for
-
How can I quickly configure & save different views in Develop module?
Is there a method to quicky switch custom views (including my favourite selections for Panels, Toolbars, Window's Bars, and Info Overlay)? In the "Develop" module, I would like to switch quickly from (1) seeing all panels, etc. to (2) seeing only my
-
Jdeveloper 11g R2 problem when publishing PL\SQL Web Service
Hi Guys, I have been banging my head against the wall for the past few days trying to publish pl\sql package as a web service on a weblogic 10.3 but I keep running into the same problem. PL\SQL Package Source below create type dept_type as object (de
-
System not going to sleep as scheduled
Since OS 10.4.3 both my PowerMac G5 dual 2.0 Ghz and my 12" PowerBook G4 1.5 Ghz will not go to sleep as scheduled in the energy saver. I read all the posts about this and have not found a solution that works. Any ideas?
-
Does jmf2.1.1 really support rtsp?
where can i find the related examples?
-
App Error 576 - 4.5 Firmware on BES 4.1.6
Whenever an email is opened the above error message appears and the BB has to be reset. Any ideas why this happens? Thanks Angie