Error on start uploading a file?
hi,
when i tries to define ORDAUDIO,ORDIMAGE,ORDVIDEO to a database field, i keep getting the error "invalid specification of chunk value for lob storage of coloumn.its minimum value for this database is 8192".
please tell me how to define intermedia fields in my database tables?
thank you.
Hi,
I'm afraid I don't really understand your environment.
First we need to understand the version of the database you are using. When you say:
C:\> sqlplus scott/tiger
SQL*Plus: Release 8.1.7.0.0 - Production on Fri Jun 29 10:01:22 2001
(c) Copyright 2000 Oracle Corporation. All rights reserved.
Connected to:
Oracle8i Enterprise Edition Release 8.1.7.1.1 - Production
With the Partitioning option
JServer Release 8.1.7.1.1 - Production
SQL>Please start SQL*Plus and provide the version information that it displays.
Next, we should try creating a simple image table using SQL*Plus and using all the defaults. For example:
SQL> CREATE TABLE myimages ( id VARCHAR2(10), image ORDSYS.ORDImage );Alternatively, for an existing table, such as:
SQL> CREATE TABLE myimages ( id VARCHAR2(10) );try adding an image column as follows:
SQL> ALTER TABLE myimages ADD ( image ORDSYS.ORDImage );If that works, then the issue is with the wizard tool you are using. In that case, you need to contact Oracle support and provide full information about the tool you are using and the steps you followed when you tried to create the table. If that fails, then please supply full details of the error message that is displayed.
Please let us know what you find.
Regards,
Simon
null
Similar Messages
-
Error message while upload excel file (with macro) to sap (iw28)
While upload excel file to sap through iw28, i get error message (vb)
u2022 i have to say that the excel file contain macro , with out the macro , work fine .
u2022 The error display just in refresh command.
the error message :
Public Sub ALV_CUS_Exit()
Dim objs As ChartObjects
Dim obj As ChartObject
Dim sheet As Worksheet
Dim r As Range
For Each sheet In Sheets
Set objs = sheet.ChartObjects
For Each obj In objs
Set r = Sheets("RawData").UsedRange
obj.Chart.SetSourceData Source:=r
Next obj
Next sheet
End Subhi,
This is releated to the ABAP coding...There might be some ouput problem in the Abap list viewer...Pls check it with the ABAP consultant...
Regards
Priyanka.P -
Error for the uploading csv file to database
Hi i tried to upload the csv file to database and i am getting error as
<cffile action="read" file="#data_dir_upload#/di_audit_corp_upc_ldr_tbl.csv" variable="di_audit_corp_upc_ldr_tbl">
<!--- loop through the CSV-TXT file on line breaks and insert into database --->
<cfloop index="index" list="#di_audit_corp_upc_ldr_tbl#" delimiters="#chr(10)##chr(13)#">
<cfquery datasource="#request.dsnCAO#">
<!--- SET ANSI_WARNINGS OFF --->
INSERT INTO [dbo].[di_audit_corp_upc_ldr_tbl]
( cpt_dpt_cd,cpt_com_cd,sub_com_cd,con_upc_no,pid_lng_dsc_tx,pid_sht_dsc_tx)
VALUES
(<cfqueryparam value='#left(trim(listgetAt('#index#',2,',')),2)#' cfsqltype="cf_sql_char">,
<cfqueryparam value='#left(trim(listgetAt('#index#',3,',')),3)#' cfsqltype="cf_sql_char">,
<cfqueryparam value='#left(trim(listgetAt('#index#',4,',')),5)#' cfsqltype="cf_sql_char">,
<cfqueryparam value='#left(trim(listgetAt('#index#',1,',')),13)#' cfsqltype="cf_sql_varchar">,
<cfqueryparam value='#left(trim(listgetAt('#index#',5,',')),25)#' cfsqltype="cf_sql_varchar">,
<cfqueryparam value='#left(trim(listgetAt('#index#',6,',')),12)#' cfsqltype="cf_sql_varchar">)
</cfquery>
</cfloop>
Error:
An error occurred while executing DTS package to import data.
Invalid list index 6.
In function ListGetAt(list, index [, delimiters]), the value of index, 6, is not a valid as the first argument (this list has 5 elements). Valid indexes are in the range 1 through the number of elements in the list.
i am unable to solve this issue can any one will help me to solve this issue
Thanks,
KiranI take it your are trying to use a csv file to insert new data into a database, using flex and coldfusion?
if so, then I would load the file in flex using cffile in ColdFusion and then use Load Data if you are using MySQL
This can show you more about it.
http://blog.tygate.com/?p=75
We get very large csv files ftp'd to us every week, and we have to load them in to the db. this works for us. -
Error Raised while uploading Excel file to SAP
Hi All,
I am getting error while uploading excel file into SAP using the function module 'TEXT_CONVERT_XLS_TO_SAP'.
Error Message is UX(893) - 'Excel file & cannot be processed' .
Please let me know what went wrong.
Regards,
DeepthiHi,
1 .TEXT_CONVERT_XLS_TO_SAP Funtion module will work if you have installed Microsoft Excel at front end.
2. Whenyou declare internal table for upload, specify the char only in the strcture ,don't specify any data element or dictionary reference. If the data element and dictionaly reference is character field then its ok.
eg.
types:begin of st_data,
field1 type char15,
field2 type char23,
endif.
3. Close the excel before you upload
Hope this might solve your issue.
Regards
Aromal R -
"Not connected to internet" error only when uploading large files.
Hi,
I have a strange problem that occurs when im uploading large files to any of my servers....
The files upload just fine but while im uploading im unable to use the internet for anything else. For example if I try to open a web page I get an error saying im not connected to the internet. This error will persist until the file finishes uploading.
Its a strange and annoying problem and was wondering if anybody could throw any light on the problem.
I cant be sure but it may have coincided with me connecting a new Netgear wireless modem router.
Many thanks
MattHi Sorry, only just noticed your reply. Didn't get an email alert like I usually do.
Thanks for that. To be honest I have no idea what QOS is but I will take a look at the routers settings to see if it makes sense to me.
Thanks
Matt -
Error when performing uploading a file in a thread worker.
Could anyone give me some suggestions?
I am trying to get the ajax file upload to work in Netbeans Visual Web Pack.
I pass the Upload component in the start() method, and perform uploading in the run() method. I get the following errors:
WARNING: Cannot serialize session attribute SessionBean1 for session CDF8F6EF75EF4DBC930C977303C8C472
java.io.NotSerializableException: java.lang.Thread
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
at java.util.HashMap.writeObject(HashMap.java:1000)
at sun.reflect.GeneratedMethodAccessor245.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
at org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1462)
at org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:938)
at org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:516)
at org.apache.catalina.session.StandardManager.unload(StandardManager.java:462)
at org.apache.catalina.session.StandardManager.stop(StandardManager.java:666)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4345)
at org.apache.catalina.core.StandardContext.reload(StandardContext.java:2984)
at org.apache.catalina.manager.ManagerServlet.reload(ManagerServlet.java:906)
at org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:353)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:174)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:619)Sorry this isn't a concurrency problem and I know nothing of Ajax or Netbeans.
As the exception states, you are trying to serialize a Thread object and Thread is not a Serializable class. -
Error!! uploading .txt file using WS_upload
Hi Friends,
I am trying to upload a .txt file with 5 fields into a ztable using WS_upload. In debug mode i see that the internal table itab has all the fields clustered together seperated by a # symbol. How do i remove this # symbol so that i can upload it into ztable properly .
For eg the error i m getting is
ibm#1042#krj#04-19-2006#PS. All these 5 fields get clustered under material column and not in their respective columns.
Your opinion and advice is greatly appreciated .
Thank youSuppose you have the data from the file in i_text and i_vendor is a structure similar to the database, then you use the following logic to split the text with hash as delimiter.
loop at i_text.
split i_text-text at '#' into i_vendor-lifnr
i_vendor-ekorg
i_vendor-ktokd
i_vendor-name1
i_vendor-sortl
i_vendor-land1
i_vendor-spras
i_vendor-waers.
append i_vendor.
clear :i_vendor,
i_text.
endloop.
Let me send you a sample code. Let me know if this helps.
Award points if the answer helped you !
Session Method: ( Batch Input)
3 Function Modules are there.
1) BDC_OPEN_GROUP
2) BDC_INSERT
3) BDC_CLOSE_GROUP
Instead of all the Call Transactions we use the Function modules here.
1) Go for MK01
2) Go for recording. M4567,0001,0001 enter; test1, abcd, us, en, enter; usdollars; save.
3) Save and come back.
4) Select Vendor and Click on PROGRAM button . Stest_01
5) Select Transfer from recording button.
6) Save as local object
7) Copy the code into a Report program and execute it.
Example:
1) Create a text field having the following entries
t3456,0001,0001,testt3456,abcd123,US,E,USD and save the entries for 4-5 lines of these type.
2) Create a Program.
Report ZBDC_MK01.
*& Report ZBDC_MK01
REPORT ZBDC_MK01.
* Internal table for file
data : begin of i_text occurs 0,
text(255) type c,
end of i_text.
* Internal table for MK01 Transaction
data : begin of i_vendor occurs 0,
lifnr(10) type c,
ekorg(4) type c,
ktokd(4) type c,
name1(40) type c,
sortl(10) type c,
land1(3) type c,
spras(1) type c,
waers(3) type c,
end of i_vendor.
* Internal table for BDCDATA
data i_bdcdata like bdcdata occurs 0 with header line.
data : v_repid like sy-repid.
parameters p_file like rlgrap-filename.
INITIALIZATION.
v_repid = sy-repid.
at selection-screen on value-request for p_file.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
PROGRAM_NAME = v_repid
* * DYNPRO_NUMBER = SYST-DYNNR
* FIELD_NAME = ' '
IMPORTING
FILE_NAME = p_file
start-of-selection.
* Get the data from file to internal table
perform get_data.
* Open the session
perform open_session.
* Process the bdcdata
perform process_bdcdata.
* Call the close_group
perform close_group.
*& Form get_data
* WS_UPLOAD FM
FORM get_data .
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
* CODEPAGE = ' '
FILENAME = p_file
FILETYPE = 'ASC'
* HEADLEN = ' '
* LINE_EXIT = ' '
* TRUNCLEN = ' '
* USER_FORM = ' '
* USER_PROG = ' '
* DAT_D_FORMAT = ' '
* IMPORTING
* FILELENGTH =
TABLES
DATA_TAB = i_text
EXCEPTIONS
CONVERSION_ERROR = 1
FILE_OPEN_ERROR = 2
FILE_READ_ERROR = 3
INVALID_TYPE = 4
NO_BATCH = 5
UNKNOWN_ERROR = 6
INVALID_TABLE_WIDTH = 7
GUI_REFUSE_FILETRANSFER = 8
CUSTOMER_ERROR = 9
NO_AUTHORITY = 10
OTHERS = 11
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
else.
loop at i_text.
split i_text-text at ',' into i_vendor-lifnr
i_vendor-ekorg
i_vendor-ktokd
i_vendor-name1
i_vendor-sortl
i_vendor-land1
i_vendor-spras
i_vendor-waers.
append i_vendor.
clear :i_vendor,
i_text.
endloop.
endif.
free: i_text.
ENDFORM. " get_data
*& Form open_session
* text
FORM open_session .
CALL FUNCTION 'BDC_OPEN_GROUP'
EXPORTING
CLIENT = SY-MANDT
* DEST = FILLER8
GROUP = 'VENDOR_MK01'
* HOLDDATE = FILLER8
KEEP = 'X'
USER = sy-uname
* RECORD = FILLER1
* PROG = SY-CPROG
* IMPORTING
* QID =
EXCEPTIONS
CLIENT_INVALID = 1
DESTINATION_INVALID = 2
GROUP_INVALID = 3
GROUP_IS_LOCKED = 4
HOLDDATE_INVALID = 5
INTERNAL_ERROR = 6
QUEUE_ERROR = 7
RUNNING = 8
SYSTEM_LOCK_ERROR = 9
USER_INVALID = 10
OTHERS = 11
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. " open_session
*& Form process_bdcdata
* BDCDATA
FORM process_bdcdata .
loop at i_vendor.
perform bdc_dynpro using 'SAPMF02K' '0107'.
perform bdc_field using 'BDC_CURSOR'
'RF02K-KTOKK'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RF02K-LIFNR'
i_vendor-lifnr.
perform bdc_field using 'RF02K-EKORG'
i_vendor-ekorg.
perform bdc_field using 'RF02K-KTOKK'
i_vendor-ktokd.
perform bdc_dynpro using 'SAPMF02K' '0110'.
perform bdc_field using 'BDC_CURSOR'
'LFA1-SPRAS'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'LFA1-NAME1'
i_vendor-name1.
perform bdc_field using 'LFA1-SORTL'
i_vendor-sortl.
perform bdc_field using 'LFA1-LAND1'
i_vendor-land1.
perform bdc_field using 'LFA1-SPRAS'
i_vendor-spras.
perform bdc_dynpro using 'SAPMF02K' '0120'.
perform bdc_field using 'BDC_CURSOR'
'LFA1-KUNNR'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_dynpro using 'SAPMF02K' '0130'.
perform bdc_field using 'BDC_CURSOR'
'LFBK-BANKS(01)'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
perform bdc_dynpro using 'SAPMF02K' '0310'.
perform bdc_field using 'BDC_CURSOR'
'LFM1-WAERS'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'LFM1-WAERS'
i_vendor-waers.
perform bdc_dynpro using 'SAPMF02K' '0320'.
perform bdc_field using 'BDC_CURSOR'
'RF02K-LIFNR'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
perform bdc_dynpro using 'SAPLSPO1' '0300'.
perform bdc_field using 'BDC_OKCODE'
'=YES'.
* Call the transaction code.
perform bdc_insert.
refresh i_bdcdata.
endloop.
ENDFORM. " process_bdcdata
*& Form bdc_dynpro
* text
* -->P_0264 text
* -->P_0265 text
FORM bdc_dynpro USING p_prog
p_scrn.
clear i_bdcdata.
i_bdcdata-program = p_prog.
i_bdcdata-dynpro = p_scrn.
i_bdcdata-dynbegin = 'X'.
append i_bdcdata.
ENDFORM. " bdc_dynpro
*& Form bdc_field
* text
FORM bdc_field USING p_fnam
p_fval.
clear i_bdcdata.
i_bdcdata-fnam = p_fnam.
i_bdcdata-fval = p_fval.
append i_bdcdata.
ENDFORM. " bdc_field
*& Form bdc_insert
* text
FORM bdc_insert .
CALL FUNCTION 'BDC_INSERT'
EXPORTING
TCODE = 'MK01'
* POST_LOCAL = NOVBLOCAL
* PRINTING = NOPRINT
* SIMUBATCH = ' '
* CTUPARAMS = ' '
TABLES
DYNPROTAB = i_bdcdata
EXCEPTIONS
INTERNAL_ERROR = 1
NOT_OPEN = 2
QUEUE_ERROR = 3
TCODE_INVALID = 4
PRINTING_INVALID = 5
POSTING_INVALID = 6
OTHERS = 7
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. " bdc_insert
*& Form close_group
* text
* --> p1 text
* <-- p2 text
FORM close_group .
CALL FUNCTION 'BDC_CLOSE_GROUP'
* EXCEPTIONS
* NOT_OPEN = 1
* QUEUE_ERROR = 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.
ENDFORM. " close_group
4) Save and activate.
5) Go to SM35 and see the session created. Vendor_MK01 (group name which was given)
6) Need to go to SM35. Select the Session name and Click on Process. Select BACKGROUND.
7) Click on PROCESSED Tab.
8) For seeing the log file select the session and click on LOG. Click on Display.
Difference between Call Transaction and Sessions Method.:
1) In CT if mode is ¡¥A¡¦ then there wont be log messages. In sessions method we can get log messages in Foreground and Background too.
2) In session method until and unless session Is created it wont update the data. But in CT data is updated immediately.
3) In CT for log messages have to write BDCMSGCOLL structure and Format_Messages function module. Logs are created automatically in Session method.
4) Data UPDATION in CT is Asynchronous. In Session method its Synchronous.
5) In CT we have to split the file. In Session method we need not split the file.
6) In CT we use BEND in Session we have to use END
Real time most of the times its SESSION Method.
Use CT method when:
a) Run time Validation. Example: We are creating a sales order. Here we are validating when selecting Payment Terms etc.
DIRECT INPUT Method:
If anything modified in SAP transaction don¡¦t use DI method. Updation is very fast.
There is no Restart mechanism in DI method.
Ex: have 10 records. 6,7 are error. In session method we needent go to the file. We have to go to BI and process again. Process in Foreground and during this time change at run time.
We need to go for the file. Delete the first files, last files and then upload the data and run again.
Main Transaction Code for DI is SXDB
1) Click on GoTo-----³ DX Tools
2) Object type---Select G/L Account ; Task type: Load Data; Program type: Batch Input; Program: RFBISA00 .
Q) How to copy files from SAP server to local?
Ans) Bcos we don¡¦t get authorization for AL11 transaction. If we know file directory and File name. We can see structure.
In SXDB.
1) Click on GoTo-----³ DX Tools
2) Object type---Select G/L Account (BUS 3006) ; Task type: Load Data; Program type: Batch Input; Program: RFBISA00 .
Go for Copy file. Give the Application Server file name and also he presentation server name and location.
*& Report ZBDC_MM01
REPORT ZBDC_MM01.
* Constants
constants : c_x type c value 'X'.
* Internal table for file
data : begin of i_text occurs 0,
text(255) type c,
end of i_text.
* iNTERNAL TABLE FOR MATERIAL LOAD
DATA : BEGIN OF I_MATERIAL OCCURS 0,
MATNR(18) TYPE C,
MBRSH(1) TYPE C,
MTART(4) TYPE C,
MAKTX(40) TYPE C,
MEINS(3) TYPE C,
MAKTL(3) TYPE C,
END OF I_MATERIAL.
* INTERNAL TABLE FOR BDCDATA
DATA I_BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE.
* internal table for for logs
data i_bdcmsg like bdcmsgcoll occurs 0 with header line.
* Report id
data : v_repid like sy-repid,
v_msg(255) type c.
* Internal tabel for log records
data : begin of i_log occurs 0,
text(255) type c,
end of i_log.
* Selection-screen
selection-screen : begin of block blk with frame title text-001.
parameter p_file like rlgrap-filename.
selection-screen : end of block blk.
* fill the defaut value
INITIALIZATION.
v_repid = sy-repid.
* F4 value for File
at selection-screen on value-request for p_file.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
PROGRAM_NAME = v_repid
* DYNPRO_NUMBER = SYST-DYNNR
* FIELD_NAME = ' '
IMPORTING
FILE_NAME = p_file
start-of-selection.
* get the data from file to internal table
perform get_data_itab.
* tO PROCEESS BDCDATA
PERFORM PROCESS_BDCDATA.
end-of-selection.
* Process the data into file
perform download_file.
*& Form get_data_itab
* ws_upload
FORM get_data_itab .
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
* CODEPAGE = ' '
FILENAME = P_FILE
FILETYPE = 'ASC'
* HEADLEN = ' '
* LINE_EXIT = ' '
* TRUNCLEN = ' '
* USER_FORM = ' '
* USER_PROG = ' '
* DAT_D_FORMAT = ' '
* IMPORTING
* FILELENGTH =
TABLES
DATA_TAB = I_TEXT
EXCEPTIONS
CONVERSION_ERROR = 1
FILE_OPEN_ERROR = 2
FILE_READ_ERROR = 3
INVALID_TYPE = 4
NO_BATCH = 5
UNKNOWN_ERROR = 6
INVALID_TABLE_WIDTH = 7
GUI_REFUSE_FILETRANSFER = 8
CUSTOMER_ERROR = 9
NO_AUTHORITY = 10
OTHERS = 11
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ELSE.
LOOP AT I_TEXT.
SPLIT I_TEXT-TEXT AT ',' INTO I_MATERIAL-MATNR
I_MATERIAL-MBRSH
I_MATERIAL-MTART
I_MATERIAL-MAKTX
I_MATERIAL-MEINS
I_MATERIAL-MAKTL.
APPEND I_MATERIAL.
CLEAR : I_MATERIAL,
I_TEXT.
ENDLOOP.
ENDIF.
ENDFORM. " get_data_itab
*& Form PROCESS_BDCDATA
* bdcdata
FORM PROCESS_BDCDATA .
LOOP AT I_MATERIAL.
* First Screen
perform f_get_program using 'SAPLMGMM' '0060'.
perform f_get_field using 'BDC_CURSOR' 'RMMG1-MATNR'.
perform f_get_field using 'BDC_OKCODE' '=AUSW'.
perform f_get_field using 'RMMG1-MATNR' i_material-matnr.
perform f_get_field using 'RMMG1-MBRSH' i_material-mbrsh.
perform f_get_field using 'RMMG1-MTART' i_material-mtart.
* Second screen
perform f_get_program using 'SAPLMGMM' '0070'.
perform f_get_field using 'BDC_CURSOR' 'MSICHTAUSW-DYTXT(01)'.
perform f_get_field using 'BDC_OKCODE' '=ENTR'.
perform f_get_field using 'MSICHTAUSW-KZSEL(01)' c_x.
* third screen
perform f_get_program using 'SAPLMGMM' '4004'.
perform f_get_field using 'BDC_CURSOR' 'MAKT-MAKTX'.
perform f_get_field using 'BDC_OKCODE' '=BU'.
perform f_get_field using 'MAKT-MAKTX' i_material-maktx.
perform f_get_field using 'MARA-MEINS' i_material-meins.
perform f_get_field using 'MARA-MATKL' i_material-maktl.
** call transaction
call transaction 'MM01'
using i_bdcdata
mode 'N'
messages into i_bdcmsg.
refresh i_bdcdata.
* Log message
CALL FUNCTION 'FORMAT_MESSAGE'
EXPORTING
ID = SY-MSGID
LANG = '-E'
NO = SY-MSGNO
V1 = SY-MSGV1
V2 = SY-MSGV2
V3 = SY-MSGV3
V4 = SY-MSGV4
IMPORTING
MSG = v_msg
EXCEPTIONS
NOT_FOUND = 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.
i_log-text = v_msg.
append i_log.
clear: i_log,
v_msg.
ENDLOOP.
ENDFORM. " PROCESS_BDCDATA
*& Form f_get_program
* Program ,Screen no, Dynbegin
* -->P_0206 text
* -->P_0207 text
FORM f_get_program USING p_prog
p_scrn.
clear : i_bdcdata.
i_bdcdata-program = p_prog.
i_bdcdata-dynpro = p_scrn.
i_bdcdata-dynbegin = c_x.
append i_bdcdata.
ENDFORM. " f_get_program
*& Form f_get_field
* field name ,field value
* -->P_0217 text
* -->P_0218 text
FORM f_get_field USING p_fnam
p_fval.
clear i_bdcdata.
i_bdcdata-fnam = p_fnam.
i_bdcdata-fval = p_fval.
append i_bdcdata.
ENDFORM. " f_get_field
*& Form download_file
* text
* --> p1 text
* <-- p2 text
FORM download_file .
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
* BIN_FILESIZE = ' '
* CODEPAGE = ' '
FILENAME =
'C:Documents and SettingsAdministratorDesktoplog.txt'
FILETYPE = 'ASC'
* MODE = ' '
* WK1_N_FORMAT = ' '
* WK1_N_SIZE = ' '
* WK1_T_FORMAT = ' '
* WK1_T_SIZE = ' '
* COL_SELECT = ' '
* COL_SELECTMASK = ' '
* NO_AUTH_CHECK = ' '
* IMPORTING
* FILELENGTH =
TABLES
DATA_TAB = i_log
* FIELDNAMES =
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_WRITE_ERROR = 2
INVALID_FILESIZE = 3
INVALID_TYPE = 4
NO_BATCH = 5
UNKNOWN_ERROR = 6
INVALID_TABLE_WIDTH = 7
GUI_REFUSE_FILETRANSFER = 8
CUSTOMER_ERROR = 9
NO_AUTHORITY = 10
OTHERS = 11
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. " download_file -
Hi,
I Need your help, when I am attempting to load TBH file, I am getting an error input contains special characters check the file, I am unable to identify the special character in the upload file, can you please help to trace the error?
I thought that the error is due to # inclusion, hence I removed the same tried with -, still it didnt go through.
Thanks in advance.
Gopal.Hi,
The # must be a new line or a tab.
so you should actually scan and replace for CL_ABAP_CHAR_UTILITIES->New_line or CL_ABAP_CHAR_UTILITIES=>horizontal_tab
loop at itab into wa_itab.
replace all occurences of CL_ABAP_CHAR_UTILITIES->New_line in wa_itab-tdline with space.
if sy-subrc = 0.
conditions
endif.
Reference: GUI_UPLOAD
Reward if helpful.
Regards,
Ramya -
Unable to upload to ftp host. errors out on uploading .htaccess file
Switching to uploading a site from using Fetch to using the muse Upload to Secure FTP tool. Secure FTP parameters are OK. I gain access to the host FTP server fine.
Muse errors out with the message Error uploading file .htaccess file. Error 553. Try again.
Yahoo is the host. They are only accepting Secure FTP. All my settings are same as Dreamweaver suggests which is good.
I have been successful with Fetch for a long time.
"Try again later" is unsuccessful. Assist please, thanksPlease see this thread <Re: Failed FTP upload: 553 error>.
-
I have problems playing some .mov files on my Mac with QT X, it says I need QT 7 so I installed that, but then QT 7 comes up with an error: codec needs updating and it starts to download QuickTimeupdateKB337585.exe
I have Perian, Flip4Mac installed and also divx and xvid components in the /Library/Quicktime folder. How can I find out what codec I'll need and how do I install it in the QT 7 folder?CS2 would run on older Macs. What are your system and OS specs like?
PowerPC® G3, G4, or G5 processor
Mac OS X v.10.2.8 through v.10.3.8 (10.3.4 through 10.3.8 recommended)
320 MB of RAM (384 MB recommended)
750 MB of available hard-disk space
1,024 x 768 monitor resolution with 16-bit graphics adapter
CD-ROM drive
Internet or phone connection required for product activation
Gene -
Error opening an uploaded Winzip file
Hi
I have uploaded a zipped file into the portal, but when I click on it, it gives me an error that the file is corrupt. I checked the file, and locally on my harddrive, it opens up perfectly.
I tested it with a couple of files.. and the only ones that opens is zipped text documents.
Anyone have encountered the same problem and maybe know how to resolve it.
regards
MariusHi,
Try with this:
https://www.sdn.sap.com/irj/sdn/thread?threadID=160400
Patricio. -
Error when trying uploading .pfx file
Hi
I have a problem with the configuring the .pfx file. I go to the Document Service Configuration and click on Browse for P12 File and get an I get the following error "com.adobe.service.sap.Configuration.ConfigurationException: An error occured while indexing the credential files"
What do I do to resolve this issue
Regards
Naziem MahomedHello Marius,
Did you check if the fdirectory below are avaliable on your system:
Copy the credential file (<filename>.pfx) to the /usr/sap/<SAPSID>/SYS/global/AdobeDocumentServices/ TrustManagerService/trust/credentials directory.
If not then you should create them yourself.
I hope it helps.
Kind regards,
Maarten. -
Error after starting a .rpt file over Infoview
Hi
I´ve a Question about the BO XI 3.1 SP3 version.
If I want to load a crystal report named "OutputBlock.rpt" over BO I get the following error.
->Error about the data OutputBlock: The chart could not found
Does everyones know why?
mfg
Mr.Hyde
It´s fixed.
Threat can be closed!!
Edited by: Mr.Hyde on Sep 2, 2010 2:48 PMyes, of course I did:
sqlplus "/as sysdba"
from Windows Oracle 10g. I wanted to test those commands for an Oracle8 i database and par mistake I wrote svrmgrl.
Thank you,
Mihaela -
Capturing the details of data in which error occured during uploading
Hi, anyone tell me how to Capturing the details of data in which error occured during uploading the file using BDC in backgroung mode. Please do the needful
Thanks & Regards.
Aniruddhahi,
This declaration is used to capture the error msg. V is the std table that captures that.i have given a sample code with this..pls chk it out..
data: err type standard table of bdcmsgcoll with header line.
SAmple code:
report z_aru_bdc_new4
no standard page heading line-size 255.
include bdcrecx1.
Generated data section with specific formatting - DO NOT CHANGE ***
parameters: p_file like rlgrap-filename obligatory.
data: err type standard table of bdcmsgcoll with header line.
data: mess(200) type c.
data: begin of it_err occurs 0,
msg(200) type c,
end of it_err.
data: begin of record occurs 0,
data element:
viewname_001(030),
data element: VIM_LTD_NO
ltd_dta_no_002(001),
data element: ZEMPID3
zempid3_003(004),
data element: ZENAME3
zename3_008(040),
data element: ZEDEPID
zedepid_009(004),
data element:
zsalkey_010(005),
data element:
salary_011(013),
data element: ZENAME3
ZENAME3_008(040),
data element: ZEDEPID
ZEDEPID_009(004),
data element:
ZSALKEY_010(005),
data element:
SALARY_011(013),
end of record.
End generated data section ***
start-of-selection.
at selection-screen on value-request for p_file.
call function 'WS_FILENAME_GET'
exporting
DEF_FILENAME = ' '
DEF_PATH = ' '
mask = '.,..'
mode = 'O' " O -- open, S -- Save.
title = 'OPEN'
importing
filename = p_file
RC =
exceptions
inv_winsys = 1
no_batch = 2
selection_cancel = 3
selection_error = 4
others = 5.
start-of-selection.
call function 'UPLOAD'
exporting
CODEPAGE = ' '
filename = p_file
filetype = 'DAT'
ITEM = ' '
FILEMASK_MASK = ' '
FILEMASK_TEXT = ' '
FILETYPE_NO_CHANGE = ' '
FILEMASK_ALL = ' '
FILETYPE_NO_SHOW = ' '
LINE_EXIT = ' '
USER_FORM = ' '
USER_PROG = ' '
SILENT = 'S'
IMPORTING
FILESIZE =
CANCEL =
ACT_FILENAME =
ACT_FILETYPE =
tables
data_tab = record
exceptions
conversion_error = 1
invalid_table_width = 2
invalid_type = 3
no_batch = 4
unknown_error = 5
gui_refuse_filetransfer = 6
others = 7
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
*perform open_dataset using dataset.
*perform open_group.
delete record index 1.
loop at record.
*read dataset dataset into record.
*if sy-subrc <> 0. exit. endif.
perform bdc_dynpro using 'SAPMSVMA' '0100'.
perform bdc_field using 'BDC_CURSOR'
'VIEWNAME'.
perform bdc_field using 'BDC_OKCODE'
'=UPD'.
perform bdc_field using 'VIEWNAME'
record-viewname_001.
perform bdc_field using 'VIMDYNFLDS-LTD_DTA_NO'
record-ltd_dta_no_002.
perform bdc_dynpro using 'SAPLZSHAP' '0001'.
perform bdc_field using 'BDC_CURSOR'
'ZEMPTAB1-ZEMPID3(01)'.
perform bdc_field using 'BDC_OKCODE'
'=NEWL'.
perform bdc_dynpro using 'SAPLZSHAP' '0002'.
perform bdc_field using 'BDC_CURSOR'
'ZEMPTAB1-SALARY'.
perform bdc_field using 'BDC_OKCODE'
'=SAVE'.
perform bdc_field using 'ZEMPTAB1-ZEMPID3'
record-zempid3_003.
perform bdc_field using 'ZEMPTAB1-ZENAME3'
record-zename3_008.
perform bdc_field using 'ZEMPTAB1-ZEDEPID'
record-zedepid_009.
perform bdc_field using 'ZEMPTAB1-ZSALKEY'
record-zsalkey_010.
perform bdc_field using 'ZEMPTAB1-SALARY'
record-salary_011.
perform bdc_dynpro using 'SAPLZSHAP' '0002'.
perform bdc_field using 'BDC_CURSOR'
'ZEMPTAB1-ZENAME3'.
perform bdc_field using 'BDC_OKCODE'
'=UEBE'.
perform bdc_field using 'ZEMPTAB1-ZENAME3'
record-zename3_008.
perform bdc_field using 'ZEMPTAB1-ZEDEPID'
record-zedepid_009.
perform bdc_field using 'ZEMPTAB1-ZSALKEY'
record-zsalkey_010.
perform bdc_field using 'ZEMPTAB1-SALARY'
record-salary_011.
perform bdc_dynpro using 'SAPLZSHAP' '0001'.
perform bdc_field using 'BDC_CURSOR'
'ZEMPTAB1-ZEMPID3(01)'.
perform bdc_field using 'BDC_OKCODE'
'=SAVE'.
perform bdc_dynpro using 'SAPLZSHAP' '0001'.
perform bdc_field using 'BDC_CURSOR'
'ZEMPTAB1-ZEMPID3(01)'.
perform bdc_field using 'BDC_OKCODE'
'=BACK'.
perform bdc_dynpro using 'SAPMSVMA' '0100'.
perform bdc_field using 'BDC_OKCODE'
'/EBACK'.
perform bdc_field using 'BDC_CURSOR'
'VIEWNAME'.
perform bdc_transaction using 'SM30'.
*enddo.
*perform close_group.
*perform close_dataset using dataset.
endloop.
loop at it_err.
write : / it_err-msg.
endloop.
form error.
call function 'FORMAT_MESSAGE'
exporting
id = sy-msgid
lang = '-D'
no = sy-msgno
v1 = sy-msgv1
v2 = sy-msgv2
v3 = sy-msgv3
v4 = sy-msgv4
importing
msg = mess
exceptions
not_found = 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.
it_err-msg = mess.
append it_err.
clear it_err.
endform.
If it is session method u can find the session in SM35 from where u can get the error log.
Hope this helps u,
Regards,
Arunsri -
Hi Experts,
When I attempt to attach a document to a PO (ME21N/ME22N) I get an error message say:
Read Error During PC Upload : Include File in PC Application
The funny thing is, some users can make attachments, others cannot. Is this a profile or authorization issue?
Thanks in advance!
SWHi Steven,
You cannot attach a file in ME21N trxn using Services for Object. For this you have to come out of Trxn ME21N after saving Po and again go to ME22N trxn code and in Menu System - Select Services for Object and Attach your File.
Be sure the File is not in use and closed.
Reg,
Ashok
Maybe you are looking for
-
Itunes wont open, not a quicktime problem
i have looked everywhere, tried everything. My quicktime will open but my itunes wont. i click it and my curser stalls like it is about to open but never does. sometimes that white agreement box flashes but goes away without a chance to read or click
-
Display full name (first+lastname) sy-uname
hey all, I have a bsp page where sy-uname shows the logged in username... I want this to be replaced by the users first- and lastname... can this be done? if yes? how? thanks a lot, points will be awarded!
-
Problem with depositioned picture boxes after export or printing
I have created a template with 20 boxes (4x5) defined as placeholders for pictures. The alignment and margins between the boxes are set to be exactly equal (it's one millimetre actually). On the screen of my MBP everything looks good. But when I prin
-
If you are able to write a photoshop plugin. I have the algorthmn in C++ and I think it could be made into a filter. It reads a pixel in RGB and adjusts it if it is out of gamut. If you are interested send an offer to [email protected]
-
Computer freezes when trying to reload the OS from the HP recovery disks.
I have an HP Media Center m8300f desktop pc. My hard drive crash and I had to replace it. Since the recovery software was on the hard drive I had to order the recovery disks from HP. Have checked with HP and they are the correct disks for my system.