To get data from an equipment to SAP
Hi,
Is there any ways to get data from an external equipment to the SAP (say) to a MIGO screen as we have some COM port programming..
I am aware that SAP can get data from a telnet server (in case of BARCODES and RFID)
Is there any way to obtain from a Equipment (electronic weigh Bridge) TO SAP..
Thanx in Advance..
Arjun.G
Hi,
have a look at this threads:
Re: Interface with Weigh Bridge
Re: how to interface the Weigh Bridge System with ABAP thru' RS232 PORT
Another one:
http://66.102.9.104/translate_c?hl=en&sl=ru&u=http://www.sapnet.ru/viewtopic.php%3Ft%3D578%26start%3D0%26postdays%3D0%26postorder%3Dasc%26highlight%3D%26sid%3D0a8ec74af5df8dee55092ce47c36831d&usg=ALkJrhhBux0cndNF5aZVdnurkbtLUm0dcw
Best regards.
Edited by: Pablo Casamayor on Aug 8, 2008 10:42 AM
Similar Messages
-
How to get data from Oracle using Native SQL in SAP.. Problem with date
Hi Masters.
I'm trying to get data from an Oracle DB. I was able to connect to Oracle using tcode DBCO. The connetion works fine
I wrote this code and it works fine without the statement of where date > '01-09-2010'
But i need that statement on the select. I read a lot about this issue, but no answer.
My code is (this code is in SAP ECC 6.0)
DATA: BEGIN OF datos OCCURS 0,
id_numeric(10),
component_name(40),
comuna(10),
record_id(10),
status,
sampled_date(10),
END OF datos.
DATA: c TYPE cursor.
EXEC SQL.
connect to 'LIM' as 'MYDB'
ENDEXEC.
EXEC SQL.
SET CONNECTION 'MYDB'
ENDEXEC.
EXEC SQL PERFORMING loop_output.
SELECT ID_NUMERIC, COMPONENT_NAME, COMUNA, RECORD_ID, STATUS, SAMPLED_DATE
into :datos from lims.SAMP_TEST_RESULT
where date > '01-09-2010'
ENDEXEC.
EXEC SQL.
disconnect 'MYDB'
ENDEXEC.
How can i get the data from that date?? If i delete the where statemet, the program works well, it takes 30 mins and show all the data, I just need the data from that date.
Any help
RegardsPlease refer the example in this link which deals with Oracle date format.
You can finnd a command DECODE which is used for date formats. If you have a look at whole theory then you will get an idea.
Link:[Bulk insert SQL command to transfer data from SAP to Oracle|http://sap.ittoolbox.com/groups/technical-functional/sap-dev/bulk-insert-sql-command-to-transfer-data-from-sap-to-oracle-cl_sql_connection-3780804] -
How to get data from Oracle to SAP
Hi All,
I want to get data from Oracle to my internal table in SAP,
I worked on puting the data from SAP to Oracle, it's working fine...
Can anybody suggest the code for accessing from Oracle with 4 primary keys in oracle.
regards
manishhi
good
there is two things in sap open sql and native .if you ll use the open sql than you can access any database.
thanks
mrutyun -
Any helpful materials or sample on how to get data from lotus in SAP?
I have some experience on get data from Biztalk (Microsoft Middleware). In that case, i could using "call FMxxxx DESTINATION rfc". the destination with type TCP/IP is created via SM59.
and how about lotus ?
thsI have some experience on get data from Biztalk (Microsoft Middleware). In that case, i could using "call FMxxxx DESTINATION rfc". the destination with type TCP/IP is created via SM59.
and how about lotus ?
ths -
Get Data from SAP over the Business Connector into a Java Programm
Hallo dear community,
i would like to receive data from the sap over the application business connector into a java programm. i work with the german book "SAP Business Connector 4.8 - Administration und Entwicklung".
Now i hand on the routing rule.
[Screenshot|http://h-2.abload.de/img/routingruleuyt9.png]
i don't know what i should configure here for receiving data, which i need for an java programm.
i will be very happy, when somebody got a tip or an source (tutorial) where i can find such a configuration :wink:I think u r writing BDC for Uploading the data from excel flile to sap. for this is the code I am sending u can use then for Uploading data from excel to sap.
DATA: lv_filename TYPE rlgrap-filename.
FIELD-SYMBOLS : <fs>.
DATA : l_intern TYPE alsmex_tabline OCCURS 0 WITH HEADER LINE.
DATA : l_index TYPE i.
PARAMETERS : startcol TYPE i ,
startrow TYPE i ,
endcol TYPE i ,
endrow TYPE i .
PARAMETERS: p_flnam LIKE rlgrap-filename.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_flnam.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
program_name = sy-repid
FIELD_NAME = ' '
IMPORTING
file_name = p_flnam .
MOVE p_flnam TO lv_filename.
Uploading the flat file from the desktop
START-OF-SELECTION.
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
filename = lv_filename
i_begin_col = startcol
i_begin_row = startrow
i_end_col = endcol
i_end_row = endrow
TABLES
intern = l_intern
EXCEPTIONS
INCONSISTENT_PARAMETERS = 1
UPLOAD_OLE = 2
OTHERS = 3
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
SORT l_intern BY row col.
LOOP AT l_intern.
MOVE l_intern-col TO l_index.
ASSIGN COMPONENT l_index OF STRUCTURE itab TO <fs>.
MOVE l_intern-value TO <fs>.
AT END OF row.
APPEND itab.
CLEAR itab.
ENDAT.
ENDLOOP.
I hope it will help u.
Regards
Nayan -
Pls Help me with steps to add data from xml file to SAP B1 through B1iSN.
Pls Help me with steps to add data from xml file to SAP B1 through B1iSN. I am getting stuck in xsl transformation. not able to understand where the mapping code needs to be added.
Pls explain me the steps for adding data from xml to B1 quotation step by step.
thanks and regards
PriyaHi,
Have you checked this: https://sap.na.pgiconnect.com/p45508295/?launcher=false&fcsContent=true&pbMode=normal ?
Thanks,
Gordon -
Help needed with variable - trying to get data from Oracle using linked svr
Sorry if I posted this in the wrong forum - I just didn't know where to post it.
I'm trying to write a simple stored procedure to get data from an oracle database via a linked server in SQL Enterprise manager. I have no idea how to pass a variable to oracle.
Here's how I would get the variable in SQL:
declare @maxkey INTEGER
select @maxkey= MAX(keyfield) from [server].Data_Warehouse.dbo.mytable
select * from [server].Data_Warehouse.dbo.mydetailtable where keyfield=@maxkey
the select statement I need to do in oracle would use that variable like this:
select * from OPENQUERY(OracleLinkedServer,'select
* from ORACLEDB.TABLE where keyfield > @maxkey')
and I get this message: OLE DB provider "OraOLEDB.Oracle" for linked server "OracleLinkedServer" returned message "ORA-00936: missing expression".
I realize that I can't pass the @maxkey variable to oracle - so how do I accomplish this?Please refer the example in this link which deals with Oracle date format.
You can finnd a command DECODE which is used for date formats. If you have a look at whole theory then you will get an idea.
Link:[Bulk insert SQL command to transfer data from SAP to Oracle|http://sap.ittoolbox.com/groups/technical-functional/sap-dev/bulk-insert-sql-command-to-transfer-data-from-sap-to-oracle-cl_sql_connection-3780804] -
How can i get data from a maintance view?
Hi all.
Can you give me some suggestion about 'How can i get data from a maintance view?'?
Thanks
Best regardhi
good
go through this link
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ecdf446011d189700000e8322d00/content.htm
thanks
mrutyun^ -
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..... -
How to get data from COSP table, field HRKFT as the key to data from PM?
Dear ladies and gentlemen!
I need to get data from COSP table, field HRKFT as the key to data from PM tables (AFKO and AUFK).
The problem is that it is a key field to the COSP, and all non-key fields as an alternative to HRKFT are not suitable for this task.
All this is necessary for the extractor, which loads the data from the R \ 3 systems in the BW-system. I need to perform SELECT from a table COSP and maybe also JOIN, most likely between tables COSP and AUFK.
What should I do in this case?
Thank you very much in advance!From information on help.sap.com I've made a conclusion that one of possible solutions in theory is to modify standard extractor PM_OM_OPA_1 in order to make HRKFT field available for work, because by default it is hidden by SAP and not available for use as a key field.
Of course, it's not a very good solution, but for now I know no other way to solve this problem.
Maybe someone knows better ways? In this case I will be very grateful for any help!
Moderator: You'd better post it on BI forums -
EJB-Archive for getting Data from the DB
Hello,
I want to get data from the Database. I created a EJB-Project with an Entity Bean and a Session Bean.
The jar-Archive that I generated is corrupt. Is that normal?
Can you provide me with information on database acces?
In ABAP it would be a piece of cake: Select * from table into ...;-)
Greetings, FrankHi Frank,
I see that you are interested in getting data from R/3, please correct me if I'm wrong.
If that's so, you cannot do it by purely using EJBs, as an entity bean maps to a Table row in the database, which is not quite straight forward in terms of R/3.
The only way to get data from R/3 is to use
1)Java + SAP JCO
2)or a Netweaver technology like Webdynpro + Adaptive RFC
3)Portal Component + SAP JCO.
Again, assuming you're dealing with a WebAS server, coming to EJBs, its no different to any other application server. So, you need an RDBMS to use Entity Beans.
Please let me know if you've got more doubts.
Regards,
Rajit -
Get data from a Report Painter
Hello.
Does anyone know how to get data from a Report Painter?
Thanks in advance!Hi
check the links
Report Writer functions can be accessed from within the Report Painter.
The difference lies in the GUI of the report painter.
For Report Painter
http://help.sap.com/saphelp_47x200/helpdata/en/66/bc7d2543c211d182b30000e829fbfe/content.htm
For Report Writer
http://help.sap.com/saphelp_47x200/helpdata/en/66/bc7dc143c211d182b30000e829fbfe/content.htm
Refer the following links :
http://www.virtuosollc.com/PDF/Get_Reporter.pdf
http://sap.ittoolbox.com/groups/technical-functional/sap-r3-other/accessing-tables-using-report-painterwriter-98766
http://help.sap.com/saphelp_47x200/helpdata/en/da/6ada3889432f48e10000000a114084/frameset.htm
http://help.sap.com/saphelp_bw31/helpdata/en/66/bc7d2543c211d182b30000e829fbfe/frameset.htm
Regards
Anji -
How to make smartform get data from report painter???
hi all!
please tell me how to get data from report painter?
i has a report painter zabc ( create through t-code ke31).
I want get data from Zabc after run and show data by smartform.
plz help me!
thanksHi ,
Please check this link [SMARTFORM|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf]
Regards,
Smart -
Whats the easiest way to get data from R/3 from XI
Hi there
I would like to know if there is a way to to access a database table in the R/3 system in a user defined function in Message Mapping? I have to map some fields where I have to get data from a table. What would be the easiest way?
Thanks,
JanThis article provides details on the usage of Generic Lookup API used for calling RFC from user defined functions.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a03e7b02-eea4-2910-089f-8214c6d1b439
RFC Lookup.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a03e7b02-eea4-2910-089f-8214c6d1b439 -
How to get data from external source
Hi experts,
I want to get data from a different source e.g. from oracle. How can i get the data in BW??
SamHi Samir
there are different interfaces are available according to the source system.
For Oracle source system you can use DB connect interface.
you can extract data from several data sources to BI
File Interface:: Using this interface, you can access files in ASCII format or CSV format
DB Connect :: You use DB Connect to open other database connections in addition to the default connection and use these connections to transfer data from tables or views into a BI system.
UD Connect :: UD Connect (Universal Data Connect) uses the Application Server J2EE connectivity to enable the reporting and analysis of both SAP and non-SAP data. Using UD Connect, you can access all relational and multidimensional data sources. UD Connect transfers the data as flat data.
BI Service API ::
Web Service for Staging ::You use the Web service to write the data from the source into the PSA. The transfer of data is controlled externally, without placing demand on BI.
You can use this interface in conjunction with real-time data acquisition.
Please assign points if this info helps.
Regards
Vivek..
Maybe you are looking for
-
Problem with headerline in OO again - other thread was locked -
Problem with headerline in OO Hello, I've the problem that I cannot give values from an inertnal table to an variable because the itab has no headerline, because in oo it is not possible. Here the coding: structure in se11 ZACTIVITYIF with componen
-
I cannot get my library to show up on my newly authorized computer, please help if you can. I have home sharing enable on old computer and new one. If I try to sync --I get the message that ipod can be synced w only one computer and if I sync with
-
Need inputs regarding Costelement
Hello CO experts, Am a SAP Project systems person and regarding one of our requirement mentioned below i request your suggestions/inputs. We are using transcation CJR2 to plan primary cost against WBS elements for each period/month of the year. Now
-
PDFs Crashing Acrobat 9.3.4 for seemingly no reason
We're having a big problem with commented PDFs (made in Indesign) crashing at seemingly random points. Have tried re-saving the PDFs, opening in different locations (both local and network drives), changing view options, etc... The crashes occur on o
-
How do you convert channels.dvb to channels.conf
Title says is all. How do you convert the kaffeine file channels.dvb to a channels.conf file which can be used by mplayer. The winterhill transmitter in the UK is now totally digital, since the change over I've not been able to get BBC channels prope