Upload data from ms access to sap r/3
Dear Experts,
I have a requirement to upload data from one ms access database tables to sap r/3.I have searched a lot in sdn but i am able to find to upload data from sap r/3 to ms access.
Please give me a solution.
Thanks And Regards
Ansuman
Hi ansuman,
i tried this for getting the result..
[access to sap|http://www.sdn.sap.com/irj/scn/advancedsearch?query=uploadfrommsaccessto+sap#sdn_content_category_value_forums]
Similar Messages
-
Uploading data from MS Access into SAP R3 v3.1
Hey Gurus,
I am wondering which options I have to import data from a MS Access database into SAP R3 version3.1. For example, can I make use of the LSM Workbench?
Regards,
Pim
points are awarded if helpfullIt is much better to take the help of technical person, as directly you can upload the data from MS Access to SAP ..the thing you have to keep in mind is tell theABAPer to convert the file into a .txt one..as then only SAP will allow.
Reward Points if it helps,
Regards,
N -
Uploading data from MS Access to SAP
Hi all,
How can I upload data from an Access file to my internal table?
Regards,
Phani.check out the following link
Re: download table from ms-access
Regards
Raja -
Upload data from legacy system to SAP through ALE IDOC
Hello All,
I have a requirement where i need to upload the data from legacy system to SAP. So i am using ALE IDOC.
In my requirement i need to extend the Standard IDOC. I have extended the IDOC and even found the exit for the updation of the extended fields to SAP. My data would be be placed in the application server.
Can anybody tell me how to retrieve the data and update in the tables for the extended fields.
Could you please provide a sample program for retrieving data for IDOC.
ThanksHi,
You can find the sample code in the following link.
Re: calling idoc_input_creditor
Regards
Sajid -
Uploading data from Legacy System to SAP (In PS Module)
While Implementing Project system Module, Whether LSMW is applicable for uploading data from Legacy sytem. If not, then what is the method used for uploading the data from Legacy sytsem to SAP
For creating/uploading the master data from legacy system to SAP we either use below options
1. BDC (recording)
2. BAPI
3. ALE iDoc.
I would sugguest you to use BAPI and there's already this post which explains few details about the BAPI:
Problems with BAPI_PROJECT_MAINTAIN
Regards
Sreenivas -
Upload data from microsoft access to oracle form(in data block)
Hi all,
Any one can help me, how we can upload data from access file to developer form(in data block).
as
we upload data from text file to developer form(in data block) using some packages.
Thank's in advanceHi Zuhair,
If you give details of the problems you are still having then we should be able to get SQL*Developer to work.
However, if you don't want to use SQL*Developer then the following options are taken from note 393760.1 available in Metalink if you have access to that -
1. Use a gateway that supports the non-Oracle database or generic connectivity if a third party ODBC driver is available to do a -
'create Oracle_table as select from non_oracle_table@database_link'
for each table. You would then have to manually create all the other objects (views, indexes, stored procedurs etc) and permissions etc that existed in the non-Oracle database.
2. Use the SQL*Plus COPY command to copy data from the non-Oracle database to the
Oracle database using a gateway or generic connectivity. The syntax is as follows:
COPY FROM username/password@oracle_sid -
INSERT destination_oracle_table -
USING query;
The following example selects all rows from the EMP table in the non-Oracle database and
inserts them into the local Oracle EMP table:
COPY FROM SCOTT/TIGER@ora10 -
INSERT EMP -
USING SELECT * FROM SCOTT.EMP@gateway;
where "gateway" is the database link created for the gateway.
3. Load the non-Oracle data into flat files and use SQL*Loader to put the data into Oracle tables. Again manual
work is required for the other objects.
4. Contact the Oracle Product Technology Services (PTS) group for assistance. See the webpage -
http://www.oracle.com/technology/tech/migration//workbench/index_sqldev_omwb.html
5. Use a third party migration tool. See -
http://www.oracle.com/technology/tech/migration/isv/third_party.html
6. Use JDBC to connect to the non-Oracle database and Java in the Oracle database. This method will work but it is not suppported by the JDBC team.
=========
The amount of work involved will depend on the number and size of Access tables that you want to migrate.
Regards,
Mike -
Uploading data from Excel sheet into SAP.
Dear All,
I want to upload data existing in Excel sheet into SAP. Is there any possibility with the following requirements?
1) Excel file contains serial numbers with different values.Like power(230Wp),Voc,Isc,Vmp and Imp.
2) We need to upload the same data into SAP with validations.
3) Validations are like no serial number should be repeated.
4) And depending on the Power value, the serial number should be assigned to different batches.Eg:The batches are as follows:
201 - 210
210 - 220
220 - 230
and if the Pmax of the serial number is 205.It should be assigned to batch 201 - 210 .
5) At present we are using MB31 to post the serial numbers which are existing in the flat file.
Thanks and Regards,
Varun SiddharthHi,
Refer to the following code:
DATA: lv_filetype(10) TYPE c,
lv_gui_sep TYPE c,
lv_file_name TYPE string.
lv_filetype = 'ASC'.
lv_gui_sep = 'X'.
lv_file_name = pa_dfile.
FM call to upload file
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = lv_file_name
filetype = lv_filetype
has_field_separator = lv_gui_sep
TABLES
data_tab = gi_zhralcon_file
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
The excel file must be a tab delimited file.
Hope it helps.
Regards,
Rajesh Kumar -
Scheduling Problem for uploading Data from Flat file to SAP
Hi guys,
I am facing a weared problem in uploading some leave records in z table. The code is working fine if we run it through se38 after selecting the file from a shared location from production server which has all the access rights.
This folder lies in the \usr folder of SAP Production.
I have kept all the Flat files in the shared path "
Tis-mum-iz-s1\migration\SAP-INT\leave\" ...
To give u exact directory structure..
Tis-mum-iz-s1 is the Server Name
usr is the SAP System folder used for uploads and downloads
usr |
...-> Migration |
-> SAP-INT |
-> leave -> (Flat Files)
Migration folder is shared with all rights.
Obviously, we cannot give shared drive as the variant in the scheduler.
So i use the system path i.e. \usr\sap\tmp\migration\sap-int\leave\ as the variant.
All my other download programs are working fine with this path as a variant...
But my this particular upload program does not work with this path....
I am giving u my code...
TATA INTERACTIVE SYSTEMS (A Division of TATA INDUSTRIES LIMITED)
REPORT : ZMIGRATE_ZLEAVE
DESCRIPTION : To Upload the Leave data. (ZLEAVE)
CREATED BY : Abhishek Bachhawat
CREATED ON : 01.09.2005
CONSULTANT : ANAND
REPORT ZMIGRATE_ZLEAVE.
TABLES: ZLEAVE.
data: begin of wtab,
MANDT(3),
ZLVID(8),
PERNR(8),
ZSTDT(8),
ZENDT(8),
ZDAYS(4),
AEDAT(8),
ERDAT(8),
end of wtab,
itab like WTAB occurs 0 WITH HEADER LINE.
data: temp like zleave occurs 0 WITH HEADER LINE.
SELECTION-SCREEN BEGIN OF BLOCK file
WITH FRAME TITLE text-005.
parameters: file like rlgrap-filename Obligatory.
Concatenate File SY-DATUM '_Leave.txt' into File.
SELECTION-SCREEN END OF BLOCK file.
at SELECTION-SCREEN ON VALUE-REQUEST FOR file .
CALL FUNCTION 'WS_FILENAME_GET'
IMPORTING
FILENAME = file.
IF SY-SUBRC <> 0.
ENDIF.
start-of-selection.
if file ne space.
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
FILENAME = FILE
FILETYPE = 'DAT'
TABLES
DATA_TAB = ITAB.
else.
message e000(zps) with 'Specify a file'.
endif.
SORT ITAB BY ZLVID.
LOOP AT ITAB.
REFRESH TEMP.
CLEAR TEMP.
TEMP-MANDT = sy-mandt.
TEMP-ERDAT = SY-DATUM.
TEMP-ZLVID = ITAB-ZLVID.
TEMP-PERNR = ITAB-PERNR.
TEMP-ZSTDT = ITAB-ZSTDT.
TEMP-ZENDT = ITAB-ZENDT.
TEMP-ZDAYS = ITAB-ZDAYS.
TEMP-AEDAT = ITAB-AEDAT.
TEMP-ERDAT = ITAB-ERDAT.
APPEND TEMP.
SELECT SINGLE *
FROM ZLEAVE
WHERE ZLVID = TEMP-ZLVID
AND PERNR = TEMP-PERNR.
IF SY-SUBRC = 0.
UPDATE ZLEAVE SET ZSTDT = TEMP-ZSTDT
ZENDT = TEMP-ZENDT
ZDAYS = TEMP-ZDAYS
AEDAT = TEMP-AEDAT
ERDAT = TEMP-ERDAT
WHERE ZLVID = TEMP-ZLVID
AND PERNR = TEMP-PERNR.
ELSE.
INSERT ZLEAVE FROM TABLE TEMP.
COMMIT WORK.
ENDIF.
ENDLOOP.Hi,
open dataset file for input in text mode.
check sy-subrc = 0.
while sy-subrc = 0.
read dataset file into wa.
if sy-subrc = 0.
append wa to itab.
else.
exit.
endif.
endwhile.
close dataset file.
regards
Siggi
PS: check also the F1-help for open, read and close statements! -
Reg : Error While uploading Datas from EXCEL in to SAP
Hi Experts,
Please help me with code inorder to upload EXCEL File DATA in to SAP.... I tried with FM : ALSM_EXCEL_TO_INTERNAL_TABLE & TEXT_CONVERT_XLS_TO_SAP but exception raised like UPLOAD_OLE for me..
Wat to do...?
Please help with exact data (EXCEL) and code...
regards
e arthiHi arthi
save you file as CSV file in excel.
that means your file will be coma separated,
and then use fm
GUI_UPLOAD.
This will solve your problem.
Regards,
Vijay -
Uploading data from legacy system to sap system
Hi,
Uploaded 10 datas in Direct Input mtdit is successful; while the same no. of records are uploaded using call transaction, then it failswhat is the reason for it?
points will be awarded.hi
kavitha
after getting records in internal table
use loop at stmt
between loop and end loop you need to clear
BDCDATA internal table (both header and body)
eg.
LOOP AT IT_MAT.
CLEAR BDCDATA.
CLEAR BDCDATA[].
perform bdc_dynpro using 'SAPLMGMM' '0060'.
perform bdc_field using 'BDC_CURSOR'
'RMMG1-MTART'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RMMG1-MBRSH'
IT_MAT-MBRSH.
perform bdc_field using 'RMMG1-MTART'
IT_MAT-MTART.
perform bdc_dynpro using 'SAPLMGMM' '0070'.
perform bdc_field using 'BDC_CURSOR'
'MSICHTAUSW-DYTXT(02)'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
perform bdc_field using 'MSICHTAUSW-KZSEL(01)'
'X'.
perform bdc_field using 'MSICHTAUSW-KZSEL(02)'
CALL TRANSACTION 'MM01' USING BDCDATA MODE 'A'
MESSAGES INTO IT_MESSTAB.
ENDLOOP.
plz reward points if useful
regards
Hemasekhara Reddy -
Uploading Data From Excel Sheet to SAP Database Tables
Dear Friends,
We are having an Excel Sheet with 90 different columns. Now we want only 2 of the columns to be uploaded in the database tables. So, Plz tell me which function module will be suitable for this. And plz help me with the code also.
Thanks,
Nishant JainHi Nishu,
A sample for the same..
data it_excel like table of ALSMEX_TABLINE with header line.
here we retrieve only 2 cols directly..
now itab will contain only 2 cols of all rows seperated by comma ..
data str(1000).
data itab like table of str with header line.
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
filename = 'C:sample1.xls'
i_begin_col = 1
i_begin_row = 1
i_end_col = 2
i_end_row = 100
tables
intern = it_excel
LOOP AT it_excel.
AT NEW row.
CLEAR itab.
ENDAT.
IF itab IS INITIAL.
MOVE it_excel-value TO itab.
ELSE.
CONCATENATE itab ',' it_excel-value INTO itab.
ENDIF.
AT END OF row.
APPEND itab.
ENDAT.
ENDLOOP.
regards
satesh -
Create a table and upload data in MS ACCESS from SAP ABAP programming?
Hi All,
How to create a table in MS ACCESS database and Upload SAP database table data into MS ACCESS table using ABAP programming?
Explain: My client requirement is " If he/she runs a ABAP Program, that will create a table and upload data into MS ACCESS Database table in background. "
Could you please give the solution or code? I know the program RIACCESS and I went through the SAP Note 583698.
Is this only solution for this? Or Any other possibilities?
Please give me solution.
Thanks in advance.Hi,
It is not possible to create tables in a non SAP schema from inside SAP.
The SAP-Oracle license also does not allow you to create the table (see note 581312):
the following actions, among other things, are therefore forbidden at database level:
Creating database users
Creating database segments
Querying/changing/creating data in the database
Using ODBC or other SAP external access methods
Please refer following link,
[Ckick Here|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do]
You can also do it by LSMW,
If you are using Access 97, you can download directly into an access
database from SAP. See program RIACCESS for details. You have to establish
an RFC destination PS_ACCESS_1 and 2.
There are then a couple of function modules. Go to SE37 and put in
msaccess and hit PF4.
The following is from the readme file: sapgui/ps/readme.sap
For the MS-Access interface SAP delivers 4 files:
WDPSASTR.EXE This is an RFC server program that is called by SAP R/3
(PS module). This program creates a MS Access database. The structure
information of the tables is transferred from R/3. In addition to
these tables a table named DDIC is created. This table contains the
structure information and should in no case be modified or deleted.
WDPSATAB.EXE This is an RFC server program that is called by SAP R/3
after WDPSASTR. This program filles the tables of the database with data.
There must not be made any changes of the structure of
the tables between the calls of WDPSASTR and WDPSATAB.
WDPSAZET.EXE This is an RFC client program that triggers work/time
confirmations in the PS module of SAP R/3 (like transaction CN27 Collectiv
confirm).
WDPSAMAT.EXE This is an RFC client program that triggers material
confirmations in the PS module of SAP R/3 (like transaction MB1A - Goods
Please also refer following links,
[Click here|Upload data from MS Access tables, to SAP tables.;
Before using the program "RIACCESS", you need to install the PS utilities, which are part of SAPGUI install CD.
It is available in the "SAPGUIPS directory".
Then do the followings :
1. Select transaction code SALE -> Systems in network-> Define RFC Destination.
2. You will need two RFC destinations (TCP/IP connections for the front-end workstation).
Setup the two RFC destinations PS_ACCESS_1 and PS_ACCESS_2 and you'll have to get them to point to
wdpsastr.exe and wdpsatab.exe respectively.
3. Then execute RIACCESS and choose PS_ACCESS_1 to generate access tables.
The system must also be able to access the RFC-DLL files (librfc2.dll, librfc3.dll, librfc4.dll, librfc5.dll, librfc6.dll, vrfc.dll).
Please note that Access only supports tables with up to 255 fields. -
Upload data from excel (not the excle file) into SAP
Guys,
how can we upload data from excel sheet into SAP? I mean just the data not the entire file,
I have a requirement where user press a button in excel sheet and the data in the sheet will get uploaded into SAP.
I am sure we have to use BAPI and some VB programming for macros, I will really appriciate if anyone can help how to achive this.
some sample code exampe will help.
Cheers!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 -
Uploading data from excel sheets through BDC's into sap system
hi guys,
can you please help me with this. As we use gui_upload to upload data from flat file to sap system, which function module you use to upload data from Excel sheet to sap system through bdc'shello pavan,
welcome to SDN
check the below program
REPORT ZEXCEL_TO_INTERNAL .
data: begin of itab occurs 0,
name(20) type c,
addre(20) type c,
end of itab.
DATA : ITAB1 LIKE ALSMEX_TABLINE OCCURS 0 WITH HEADER LINE.
DATA : B1 TYPE I VALUE 1,
C1 TYPE I VALUE 1,
B2 TYPE I VALUE 100,
C2 TYPE I VALUE 9999.
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
FILENAME =
'C:\Documents and Settings\administrator\Desktop\ppcon001bd_24.xls'
I_BEGIN_COL = B1
I_BEGIN_ROW = C1
I_END_COL = B2
I_END_ROW = C2
TABLES
INTERN = itab1
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.
loop at itab1.
write:/ itab1.
Endlop.
Regards,
Naveen -
Upload data from Excel to Sap-Crm
Hi All,
I need to upload data from EXCEL to SAP-CRM system.The problem is in crm there is no ALSM_EXCEL_INTO_INTERNAL_TABLE or corresponding function modules exist.Using GUI_UPLOAD I can upload data from excel to CRM but the main problem with this is it supports only 255 chars for entire line, in my excel file it contains more than 255 chars.Please help me out.Try the following :
Class: CL_GUI_FRONTEND_SERVICES
Method: GUI_UPLOAD
Thanks
<b>Allot points if this helps!</b>
Maybe you are looking for
-
Why can I not see my projects in time machine
I have lost a project book and so I went into my time machine to find that projects wasn't there. What do I need to do to either find my project or for this not to happen again. Thanks
-
Flash Player Renders Images Differently in Browser than Stand-alone Player
Hey, guys! Not sure if this is a Flash issue or a Flash Player issue, but here we go... I`m currently working on a Flash project with a great deal of images. Flash does a great job compressing images, but in some cases it messes up the colors. I have
-
Error 1 while building in 8.2
This error below occurs when I build. I try to put a path into the destination path but it does not get saved. I have tried the entry in the destinations folder entry and the Application information. I have copied the path and also selected the path
-
ITunes intermittently refuses to add albums
Every now and then, upon dropping a folder into iTunes, the individual tracks are displayed but remain in grey and the files refuse to copy over. (These are mp3 files, not flac or something which iTunes does not support.) I must then force quit iTune
-
Alternative valuation run methodolgy for material ledger
Hi Experts Does someone can explain me how to customize alternative valuation run in SAP and how to use it. Do I have to run it from CKMLCPAVR or from CKMLCP. Can I run for same plant and same period the AVR in CKMLCP ? On the screen of CKMLCPAVR I d