Excel upload in SRM 4.0
HI All,
Can we upload data from excel sheet in SRM 4.0? It seems, it is accepting only text file.
Can you please advise, if there is any FM that can recongnize excel sheet in case of upload programs?
Thanks,
Arun
For example in PO creation, did you try fm:FM BBP_PO_APP_EXCEL_UPLOAD?
If this FM didnt work in the way as you expected, you could use tr:se30 to take an ABAP trace and
check the relevant FMs.
Regards
Lauren
Similar Messages
-
Uploading Excel file in SRM server
Dear Gurus,
I am trying to upload the excel file in SRM 5.0 server. But the function modules that are present in R/3 like 'TEXT_CONVERT_XLS_TO_SAP',
'KCD_EXCEL_DATE_CONVERT' and also ALSM_EXCEL_TO_INTERNAL_TABLE but these function modules are not present on SRM server.
I need to upload a simple excel file and write an bdc on that.
Is there any way.
Thanka in advance,
Saurabh ChhatreHi,
save the internal table as a desktop file and then use CG3Z transaction to put the data from desktop to application server.
then to read the application file use the logic given below:
DATA: wa_file_data TYPE text4096,
lv_app_server_file TYPE string.
lv_app_server_file = pa_afile.
To read file from Application server
OPEN DATASET lv_app_server_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
DO.
READ DATASET lv_app_server_file INTO wa_file_data.
IF sy-subrc = 0.
APPEND wa_file_data TO gi_file_data.
ELSE.
EXIT.
ENDIF.
ENDDO.
CLOSE DATASET lv_app_server_file.
DATA: lv_file_separator TYPE c.
lv_file_separator = cl_abap_char_utilities=>horizontal_tab.
To upload file in other formats(CSV, Tab delimited etc)
CALL FUNCTION 'TEXT_CONVERT_TEX_TO_SAP'
EXPORTING
i_field_seperator = lv_file_separator
i_tab_raw_data = gi_file_data
TABLES
i_tab_converted_data = gi_zhralcon_file
EXCEPTIONS
conversion_failed = 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.
Hope it helps.
Regards,
Rajesh Kumar -
Hello,
I need to upload excel file in SRM system.
FM ALSM_EXCEL_TO_INTERNAL_TABLE & TEXT_CONVERT_XLS_TO_SAP are not available in this system.
i am able to upload text file (.txt) using following code
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
EXPORTING
PROGRAM_NAME = SYST-REPID
* DYNPRO_NUMBER = SYST-DYNNR
* FIELD_NAME = 'P_FILE'
STATIC = 'X'
MASK = '.excel , *.xls '
CHANGING
file_name = p_file
EXCEPTIONS MASK_TOO_LONG = 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.
ld_file = p_file.
CALL METHOD cl_gui_frontend_services=>gui_upload
EXPORTING
filename = ld_file
* filetype = 'ASC'
* filetype = 'BIN'
filetype = 'DAT'
HAS_FIELD_SEPARATOR = 'X'
CHANGING
data_tab = itab[]
EXCEPTIONS
OTHERS = 1.
tried with filetype = ASC , BIN & DAT - All r allowing .txt file only.
Please tell me which parameters do i need to provide in order to upload excel file
thanks & regrads,Hello,
This is a simple example program to get data from an excel file and store it in an internal table.
Try it in this way.
REPORT zexcel_to_itab.
TYPE-POOLS: truxs.
PARAMETERS: p_file TYPE rlgrap-filename.
TYPES: BEGIN OF t_datatab,
col1(30) TYPE c,
col2(30) TYPE c,
col3(30) TYPE c,
END OF t_datatab.
DATA: it_datatab type standard table of t_datatab,
wa_datatab type t_datatab.
DATA: it_raw TYPE truxs_t_text_data.
* At selection screen
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
field_name = 'P_FILE'
IMPORTING
file_name = p_file.
*START-OF-SELECTION.
START-OF-SELECTION.
CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
EXPORTING
* I_FIELD_SEPERATOR =
i_line_header = 'X'
i_tab_raw_data = it_raw " WORK TABLE
i_filename = p_file
TABLES
i_tab_converted_data = it_datatab[] "ACTUAL DATA
EXCEPTIONS
conversion_failed = 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.
* END-OF-SELECTION.
END-OF-SELECTION.
LOOP AT it_datatab INTO wa_datatab.
WRITE:/ wa_datatab-col1,
wa_datatab-col2,
wa_datatab-col3.
ENDLOOP. -
Hi,
I have enabled excel upload with the listener, and it actually works fine. I get the data into a collection.
Now what if I want to store the file in the database? It seems that the file is NOT inserted into wwv_flow_files. Also the item that contains the file has no value when the page is submitted with the XLS2COLLECTION button. (If I create another button that also submits the filename is there)..
So it seems that when this feature is enabled the file is deleted from www_flow_files when page processing starts.Hi Martin,
the feature is undocumented and not officially supported for 1.1, but known to work for Excel files up to the 2003 format. XLSX (2007 onwards) is not implemented.
Perhaps going through the discussion and examples in {thread:id=2342792} helps you solve your issue.
-Udo -
ADFDi Excel upload failed in a new session
ADFDi Excel upload failed when a change was made in a locally saved ADFDi Excel file. This should be a very common disconnected scenario. I must miss something. Here are high-level steps that I have done.
1. Open a ADFDi Excel from a ADF page.
2. Download data to Excel
3. Modify a row in ADF table component in the Excel, then save the Excel file locally. (If I clicked the 'Save' button instead of saving the file locally, the change was uploaded to the server correctly).
4. Open the locally saved Excel, and accept the option to connect to the server and login. A new session should be created in the ADF web application.
5. Click 'No' in the popup window of "Do you want to discard the pending change?"
6. The 'changed' indicator is shown on the changed row in the Excel. Click 'Save' button, which has two actions - Upsync and ADFTable.upload
7. On the server, a 'Row not found' exception is thrown from DCJboDataControl.setCurrentRowInRSI(). In this method, it tries to find the row in the ViewObject instance using the uploaded row's key. The code is rsi.findByKey(key, 1). I checked the value of key. It looks correct. But no row is return from findByKey() call. Then 'No row found' exception is thrown.
My JDev version 11.1.1.7
Greatly appreciate any suggestion on what could be wrong?HI
I am facing the same issue. Are you able to resolve this issue or any solution around ?
Thanks -
How to import 300 purchase order into SAP using excel upload
Hi Everyone,
I am trying to close all the existing purchase orders in the system (about 300) and create similarly 300 new ones under new accounts.
My questions is can I do that using an excel upload, or it will have to be done manually? If I can, any help in that regard would be highly appreciated.
Regards,
Abubakr AsifHi
Welcome to SDN World!
You can use LSMW to create 300 Purchase Orders.
please check this link for guidance
http://www.ficoexpertonline.com/downloads/0703.doc
To close existig POs, you can use Mass update (Tr code MEMASSPO).
hope it helps.
regards
Srinivas
Reward if it helps -
Excel Upload via Web dynpro ABAP
Hi All,
Could any one please explain how to upload MS Excel file in Web Dynpro ABAP?
Regards,
SuryaHi Surya,
Ya Excel upload is not supported some times.
You can save your excel sheet as "Tab Limited" file. Then you can easily upload the file contents to your WebDynpro.
Thanks. -
Preceeding zeroes while excel upload and download
Hi,
I am uploading some data from excel into an internal table,processing it and then downloading it again in excel.
For Excel Upload I am using CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
For Excel Download I am using GUI_DOWNLOAD.
But the problems is when the data is like 01 it is downloading it as 1 in the excel.The user don't want to do any changes after downloading it to the excel and want the data 01 to be dowloaded as 01 itself and not as 1.
We can format it in excel but the user is not willing for that.Any possibility that we can handle it in the program.
Thanks,
K.Kiran.You have to use OLE technique for the same....that will solve your case.
supposae i want to make the 5th , 6th and 7th coloumn , as character format.
The below scenario will help.
collect the contents of the excel in it[] ,
DESCRIBE TABLE it[] LINES wf_it_line.
wf_it_line = wf_it_line + 8.
CLEAR : wf_cellx, wf_celly, wf_cellr.
CALL METHOD OF wf_excel 'Cells' = wf_cellx
EXPORTING
#1 = 8
#2 = 5.
CALL METHOD OF wf_excel 'Cells' = wf_celly
EXPORTING
#1 = wf_it_line
#2 = 7.
CALL METHOD OF wf_excel 'Range' = wf_cellr
EXPORTING
#1 = wf_cellx
#2 = wf_celly.
SET PROPERTY OF wf_cellr 'NumberFormat' = '@' .
this will change the format of the excel.
then call the below method
CALL METHOD cl_gui_frontend_services=>clipboard_export
IMPORTING
data = it[]
CHANGING
rc = l_rc
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
not_supported_by_gui = 3
OTHERS = 4.
CALL METHOD OF wf_excel 'Cells' = wf_cell1
EXPORTING
#1 = 1
#2 = 1.
CALL METHOD OF wf_excel 'Cells' = wf_cell2
EXPORTING
#1 = 1
#2 = 1.
CALL METHOD OF wf_excel 'Range' = wf_range
EXPORTING
#1 = wf_cell1
#2 = wf_cell2.
CALL METHOD OF wf_range 'Select'.
CALL METHOD OF wf_worksheet 'Paste'.
then call the method 'SAVEAS' to save the excel.
Edited by: Rudra Prasanna Mohapatra on Jan 22, 2009 5:47 AM -
Hi All,
I am using SCM 5.0 DP module.
I am facing some problem while uploading Historical Sales data from excel file to Planning book.
Steps
1. I download the planning book data by clicking on "Save Locally" at that time I select "Prepare file for upload at later time" and select "Save Additionla information in file"
Use comma as separator.
file saved in desktop as csv file.
2. I opend the saved file in notepad and modify the data.
3. Go to Planning Book, click on "Upload data"
Select file name and check it and then click on "Upload File".
Upload is successful..but interestingly : System doesn't show modified data or even old data.
All data are deleted and Planning book is blank.
Any thought on this issue?
Thanks,
Vipul ShahHi
There is the same problem in SCM 5.1 and there is a note fix for it:
[1131260 - Excel Upload not Working Properly|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1131260&nlang=EN&smpsrv=https%3a%2f%2fwebsmp103%2esap-ag%2ede]
However this is down as relevant only for 5.1 but I am sure it will fix 5.0 as well. It may be worth opening an OSS Message on this point.
Regards
Ian -
In KP26 excel uploading not happening with +new values+
Kp26 the users is doing thorugh EXCEL upload
wants to update NEW activity values even if Costs already posted ?
But manually we are able to delete the values and update, but for large employee turnovers
we cannt do it manually, so they are looking for update option which will
erase the current data and update the fresh ones?
the following error message appears when we try with delete button?
The following is the error message
Costs already posted under cost element SEC_ACT_CO. No deletion possible
Message no. K8098
Diagnosis
You want to delete business process or cost center/activity type 5000010114/LE6047.
However, you have already posted actual costs in version 0 in fiscal year 2011 under cost element SEC_ACT_CO.
System Response
The deletion may therefore not be executed.
Procedure
First reverse the posted record under cost element SEC_ACT_CO.
Alternatively you can set all fields to zero in the plan record you have just selected. This corresponds to a deletion of the activity types/business process quantity planning on object 5000010114/LE6047.
If the message appears several times in the error log, it could be that the actual records were posted under different transaction currencies. In this case, you must delete them all.
Edited by: melgibson on Feb 1, 2012 4:08 PMthankx for the reply
But in our case the while we checked periodwise values are not the difference which are getting posting
rather 100 is getting multiplied with the old values.
the Acvtivity price was 10 for 01 to 12 periods we changed to 100
New value old value posted amounts
100 7.37 73.7
100 7.36 73.6
100 7.31 73.1
100 9.5 95
100 9.9 99
100 11.23 112.3
100 11.22 112.2
100 11.22 112.2
100 11.22 112.2
100 11.23 112.3
100 11.22 112.2
100 11.22 112.2
the user changes period values some times thats the reason above table shows different figlures
But as per the delta logic it should be as follows
New value old value User rquires
100 7.37 100
100 7.31 100
100 9.5 100
100 9.9 100
100 11.23 100
100 11.22 100
100 11.22 100
100 11.22 100
100 11.23 100
100 11.78 100
100 11.22 100
But here the requirement is little peculiar,
The user wants to update plan data , irrespective whether it is existing or not, with fresh
figures which should equally distribute periodwise (not according to delta logic) as shown above
all should become 100?
How that can be achieved?
Edited by: melgibson on Feb 3, 2012 11:59 AM
Edited by: melgibson on Feb 6, 2012 1:09 PM
Edited by: melgibson on Feb 15, 2012 8:43 AM
Edited by: melgibson on Feb 15, 2012 8:47 AM -
Excel uploading does not open excel file
Hi!
On customer site users try to upload tables of docs and reports via standart MS Excel upload functionality, B1 saves data in txt file but does not open MS Excel with auto_open macro - what could be the reason?Dear ,
For your issue, kindly check Note-542663 below:
Symptom
When exporting a file to Excel the program opens, but the exported file
itself doesn't open automatically although an "AutoOpen" file exists.
Other terms
export, Excel, tools, options, auto open, file, document, office, macro,
ignore, application, Office97, Office2000
Reason and Prerequisites
In Excel the options "Ignore Other Applications" and "Protection from
Macro Viruses" are set.
Solution
To remedy this problem you should deselect the following :
"Ignore Other Applications" and "Protection from Macro Viruses" options
in the Excel program.
For Microsoft Office 2000
in order to de-select the tick-box "Ignore Other Application" :
1. On your desktop go To: "Start -> Programs -> Microsoft Office ->
Microsof Excel
2. In Excel go to:"Tools->Options-> General" Tab.
3. De-select the tick-box "Ignore Other Applications"
In order to de-select the "Portection from Macro Viruses"
1. In Excel go to:"Tools-> Macro->Security"
2. Set the security level to "Medium".
For Microsoft Office97:
1. In Excel go to:"Tools->Options->General" tab.
2. De-select the tick-box "Protection from Macro Viruses".
You could also refer to note 941266 & 540054 for reference.
Wish the information above is helpful for you.
Regard
Apple -
I need to upload an Excel file with the transaction 7KEX, but i do not know how to do it. How to configure the input file.
If you have ever come across with "flexible excel upload" transactions, could you please provide a sample code of the Z program which you have witten to interpret the values from excel and for posting those values?Hi!
Here some more information about the report S_ALR_87013336
. This report belongs to the group of drill-down/interactive reports.
This means that those reports are always aggregating/cumulating account
values in the following way:
'From'-Period: 0 (this is hard-coded in the system and cannot be
influenced by the selection criteria in the field
'From period')
'To'- Period: selected period in the selection criteria.
This is because the drill-down reports like S_ALR_87013336 should
provide the ability to show the stock values of the BALANCE SHEET
accounts ands so it has to accumulate the values from period 0 to the
selected period. Furthermore, report S_ALR_87013336 shows only values
for balance sheet accounts.
Please also consider the attached note 180906 which explains the
different update logic for the periodic data transfer programs, namely,
1KEH, 1KEK, 1KEI and 1KEJ. I am sure your postings you mentioned have
been made by any of these periodical transfer programs.
So please consider the described update logic of the tables GLPCA (line
items) and GLPCT (totals table). So if you want to see the balance over
the periods 1 - 12 in TN KE5Z you only have to inout in the period
field in TN KE5Z 12 - 12 and NOT 0 - 12.
BR
Werner -
Purchase requisition upload in SRM 7.0
hi,
Im 2 months old in SAP-ABAP, can u please help me to create a purchase requisition upload in SRM 7.0.
can u please help me with the procedure and bapi's used in the code.
Thanks in advance.Hi Paul,
We have to use the SRM portal for all kind of purchase order processing like creation, updation etc,. Can you be more precise in your question, so then we can answer from our side.
Thanks,
Nastera -
Field merge via Excel upload?
I decided to create a new string for this question, though I had found a related article where I initially made a posting (I can't now edit or delete my original posting - "actions" menu doesn't open for me, PC and Mac, Chrome and FF):
Using Field Merge to Dynamically Display an Image
The post above outlines pretty much exactly what I want to do, but I'm missing something -
Here is what I'd like to do: I have some customer information that I want to merge to an email; the information is not something I want to necessarily retain with my contacts.
We're using Excel to upload lists, as these are contacts not currently in our database. I created a new field merge, and inserted the merge into my email. Creating the field merge requires linking the merge to either Contacts, Accounts, Events/Event Sessions, or CDOs. My original assumption was that I'd need to create a CDO, which I did. So I created the field merge, tied it to my CDO, and inserted the field into the email.
When I then go to test the email, I upload my test segment. In matching fields, I can't match the additional customer data fields from Excel to fields in Eloqua - I had thought maybe the CDO fields would appear as options for matching.
So, my question is, how do I get the Excel data to match up to my merge field in Eloqua?
Thanks for any help you can give!
ColinHere was the outcome:
You can't perform a merge via Excel upload (ie - trying to create a new segment via upload that contains data to be merged) - I was on the right track, that this needs to be done via CDO.
1. Create your CDO, upload your Excel file, and map contacts to the data card
- Create a new CDO, adding the extra fields you want to capture
- Specify "Email Address" in the Display name, Unique ID and Email Address fields. I also set the Group By field to Email Address, and the Entity type as Contacts with field again set to Email Address.
- When uploading your Excel file with the records you want to merge, make sure to map the uploaded contacts to the data card (Custom Object > Upload Custom Object Records). In the resulting wizard, in step 4 - Upload Actions, be sure that the Map data card checkbox is checked. Not real sure why you'd ever not want this - it seems to me you can't do much without it.
2. Create your field merges Email Field Merges
- map these to your CDO fields
3. Insert the field merges into your email
That's about it - if anyone has additional info or corrections on the above, let me know. Hope this helps -
Colin -
SRM 7.0 Central Contracts Excel upload
Hello All,
We are implementing SRM7.0 implementing Central Contracts ,want to use the Contract upload function using the excel file , not able to see the button or link to do the same .
Am i missing something.
Pl. help.
Cheers,
SidHello Jay,
I would like to import central contract to SRM 7.0 via excel file. When I click the import button after edit functionality and choose the file path from the computer and push the upload, button, I got an error message saying File type of specified file C:\Users\Administrator\Desktop\Contract.xls not supported . Therefore, the excel file cannot be imported to the SRM system. When I also try to import tablimited format of .txt files, I got same error message and unfortunately I cannot achieve central contracts to be imported. How can I solve this issue? Should I check some customizing settings or something?
Many thanks for your guidence,
Mehmet Gullu
Maybe you are looking for
-
Error message when trying to install Lightroom 5.7.1 on Windows 8.
Get a message saying to reinstall. Reinstalling doesn't work.
-
hi while i am trying to import content for integration repository(mentioned in NW2004s Demo Config guide) i get the following error : Internal Error during PVC Call: java.lang.nullpointer exception. I have SAP Basis 7 with patch level 6 and i have do
-
Hi, what is the latest SP in PI 7.0?what are the different SP released in PI 7.0 right from the begining? thank you.
-
Does this mean I lose functionality when I work offline? But I made a onetime purchase and the software took about 2 hours to download..
-
Linking and updating colors across multiple illustrator files
Is there a way to link and automatically update color swatches across multiple illustrator files (CS4)? I've saved swatches into an ASE file, and opened the ASE file into multiple illustrator files, but the secondary files don't seem to reference bac