How to handle more than 250 characters in excel attachment
hi,
i lokesh, actually i am sending a excel attachment through mail. i am using " SO_DOCUMENT_SEND_API1" function module, one problem what i facing is , this function module handle only 250 characters, i need to display more than 250 characters. pls any one knows about this, pls let me know.
regards
lokesh t
Hi,
Xls allows only 250 char.
Cheers
Similar Messages
-
hi all,
Good morning.
My requirement is to send a report as an excel attatchment to the respective managers mail box. For this I am using the function module SO_DOCUMENT_SEND_API1 as follows.
call function 'SO_DOCUMENT_SEND_API1'
exporting
document_data =
put_in_outbox =
sender_address =
sender_address_type =
commit_work =
tables
packing_list =
object_header =
contents_bin =
contents_txt =
receivers =
exceptions
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
others = 8.
Here the problem is contents_bin is of type SOLISTI1 which takes max 255 characters, As my report columns occupies more than 400 characters, I am unable to get all the column values in excel attachement.
Can anyone please help me to get all the column values in the excel attachment.
Thanks in Advance.Hi,
Please check the following extract of a sample program I had executed.It deals with how to handle more that 255 chars in excel att in FM SO_DOCUMENT_SEND_API1
Hope this helps....
CONSTANTS: con_cret TYPE x VALUE '0D', "OK for non Unicode
con_tab TYPE X VALUE '09'. "OK for non Unicode
data : Begin of wa_output ,
BUFFER(1000) TYPE C, " data to be written into xls format
End of wa_output.
data : gt_output LIKE wa_output OCCURS 0 WITH HEADER LINE.
data : FIELDNAME_OFFSET TYPE I.
Attachement contents
DATA: BEGIN OF wa_att_cont.
INCLUDE STRUCTURE solisti1.
DATA: END OF wa_att_cont.
DATA: lt_att_cont LIKE wa_att_cont OCCURS 0.
data : begin of zdfies occurs 0.
include structure dfies.
data : end of zdfies.
data : begin of it_field occurs 0,
fldname(40) type c,
end of it_field.
data : yfilname like RLGRAP-FILENAME value 'C:\Documents and
Settings\'.
data : ok_code TYPE sy-ucomm,
save_ok TYPE sy-ucomm.
data : flag type i.
********************************Variables*****************************
DATA: lv_count TYPE i, " count
lv_forwarder LIKE soud-usrnam, " Forwarder.
lv_lines TYPE i. " no of lines
********************************Structures****************************
DATA: w_doc_data LIKE sodocchgi1,
w_sent_all(1) TYPE c,
ld_sender_address LIKE soextreci1-receiver,
ld_sender_address_type LIKE soextreci1-adr_typ.
******Structure for Folder ID
DATA: BEGIN OF wa_folder_id.
INCLUDE STRUCTURE soodk.
DATA: END OF wa_folder_id.
Folder Contents, change attributes
DATA: BEGIN OF wa_object_fl_change.
INCLUDE STRUCTURE sofm1.
DATA: END OF wa_object_fl_change.
******Object definition, change attributes
DATA: BEGIN OF wa_object_hd_change.
INCLUDE STRUCTURE sood1.
DATA: END OF wa_object_hd_change.
******Object ID
DATA: BEGIN OF wa_object_id.
INCLUDE STRUCTURE soodk.
DATA: END OF wa_object_id.
******Object Defintion.
DATA: BEGIN OF wa_sood.
INCLUDE STRUCTURE sood.
DATA: END OF wa_sood.
******User Definition
DATA: BEGIN OF wa_soud.
INCLUDE STRUCTURE soud.
DATA: END OF wa_soud.
******Sent to all flag.
DATA: BEGIN OF wa_sonv.
INCLUDE STRUCTURE sonv.
DATA: END OF wa_sonv.
******Mail contents
DATA: BEGIN OF wa_objcont.
INCLUDE STRUCTURE solisti1.
DATA: END OF wa_objcont.
******Mail header.
DATA: BEGIN OF wa_objhead.
INCLUDE STRUCTURE soli.
DATA: END OF wa_objhead.
******Para A
DATA: BEGIN OF wa_objpara.
INCLUDE STRUCTURE soparai1.
DATA: END OF wa_objpara.
******Para B
DATA: BEGIN OF wa_objparb.
INCLUDE STRUCTURE soparbi1.
DATA: END OF wa_objparb.
******Receivers list
DATA: BEGIN OF wa_receivers.
INCLUDE STRUCTURE somlreci1.
DATA: END OF wa_receivers.
Pack list
DATA: BEGIN OF wa_packlist.
INCLUDE STRUCTURE sopcklsti1.
DATA: END OF wa_packlist.
DATA: BEGIN OF wa_att_head.
INCLUDE STRUCTURE soli.
DATA: END OF wa_att_head.
********************internal tables******************************
DATA: lt_objcont LIKE wa_objcont OCCURS 0, "mail contents
lt_objhead LIKE wa_objhead OCCURS 0, "mail header
lt_objpara LIKE wa_objpara OCCURS 0, "Paragraph A
lt_objparb LIKE wa_objparb OCCURS 0, "Paragraph B
lt_receivers LIKE wa_receivers OCCURS 0," receiver list
lt_packlist LIKE wa_packlist OCCURS 0,"Pack list
lt_att_head LIKE wa_att_head OCCURS 0."Attachment Header
**************************Constants***********************************
CONSTANTS: lc_kreuz LIKE sonv-flag VALUE 'X', "Outbox flag,
lc_colon(1) TYPE c VALUE ':',
lc_raw(3) TYPE c VALUE 'RAW',
lc_f(1) TYPE c VALUE 'F',
lc_u(1) TYPE c VALUE 'U'.
DATA: w_cnt TYPE i.
data : wa_edition like t_edition.
DATA : i_strlen TYPE i,
i_off TYPE i ,
i_len TYPE i VALUE 254,
i_totlen TYPE i,
lv_fill_space TYPE i,
lv_split_times TYPE i,
lv_len TYPE i.
**>> Populate the attachment contents.*
LOOP AT gt_output INTO wa_output.
i_strlen = strlen( wa_output ) .
IF i_strlen LE 254.
CONCATENATE con_cret wa_output-buffer
INTO wa_output-buffer.
APPEND wa_output-buffer TO lt_att_cont.
ELSE. " i.e the data is more than 255 characters
DO 4 TIMES.
i_totlen = i_off + i_len .
IF i_totlen = 254.
wa_att_cont = wa_output+i_off(i_len).
CONCATENATE con_cret wa_att_cont
INTO wa_att_cont.
APPEND wa_att_cont TO lt_att_cont.
ELSE.
wa_att_cont = wa_output+i_off(i_len). "splitting more than 255
APPEND wa_att_cont TO lt_att_cont.
ENDIF.
IF i_totlen GE i_strlen.
CLEAR : i_off .
EXIT.
ELSE.
i_off = i_off + 254.
ENDIF.
ENDDO.
ENDIF.
CLEAR : wa_output.
ENDLOOP. -
How to display more than 132 characters in a smartform
Hi Experts,
I am reading notes/text entries by calling read_text and then passing them in a variable. I want to display the notes. But even after declaring the variable as LINE2048, it is displaying only 255characters as output length in smartform.
My code:
TYPES: BEGIN OF TYP_FINAL,
PARTNER_NO TYPE BU_PARTNER, "Partner No.
OBJECT_ID TYPE CRMT_OBJECT_ID_DB, "Object ID
PROCESS_TYPE TYPE CRMT_PROCESS_TYPE, "Activity Type
ACTUAL_NOTE TYPE LINE2048, "Actual Notes
END OF TYP_FINAL.
data : T_FINAL TYPE STANDARD TABLE OF TYP_FINAL,
WA_FINAL TYPE TYP_FINAL.
data: v_actualnote TYPE LINE2048.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = C_0002
LANGUAGE = sy-langu
NAME = l_name1
OBJECT = C_BUT000
TABLES
LINES = t_line
EXCEPTIONS
ID = 1
LANGUAGE = 2
IF SY-SUBRC = 0.
clear: v_accountnote.
LOOP AT T_LINE INTO WA_LINE.
CONCATENATE v_accountnote wa_line INTO v_accountnote SEPARATED BY space.
clear: wa_line.
ENDLOOP.
wa_final-account_note = v_accountnote.
clear: v_accountnote.
ENDIF.
On the smartformm side, under main window->loop->text(to display the variables).
How to display more than 255 characters in a smartform.
Regards,
Sangeeta.why the heck would you use read_text when you want to print a text/note on a form?
in SAP-Script we use the "INCLUDE"-Statement for this.
and in smartforms a Text-node of type 'I'.
you can not write all in one line and expect the system to handle this like a floating text.
one character takes a cretain amount of space (varying for different characters and font and font sizes).
you Page has a certain width, so where is the miracle in the thesis that on a sheet of paper with a certain width just a certain amount of characters will fit? -
How to put more than 1200 characters in a text form within a pdf created in Adobe Acrobat
I need to know how to put more than 1200 characters in a text form within a pdf created in Adobe Acrobat. I have a request from a customer to do so and after googling I have came up with nothing. Also the customer would like it if they could convert said pdf form to a microsoft word document with the text form.
There's no limit on the number of characters you can enter into a text
field, unless you set it as such. -
More Than 250 Characters in single field
Hi
Can anybody help me Regarding this issue.
Is there any possibilty to get More than 250 Characters in single field (i.e up to 500),whether in Background or Online Mode.Hi
do declare the field as string than Char .
data var1 type string , this can hold more 500 size .
Please mark helpful answers -
How to accomodate more than 255 characters in character field
HI All
i need to accomodate more than 255 characters in character field. How can i do that ?
thanks in advance!!!Hi,
You can try the following things:
1. Use a datatype STRING and check it will work.
2. In se11 transaction goto datatype and search for char* in data elements.
You will find predefined data types ,you can make use of it.
For eg. char2000,char3000,char4000 etc.
Hope this will help.
Regards,
Nitin. -
How to enter more than 132 characters in a Parameters Field
Hi Everyone,
I have a field of type file_table-filename as Parameters in my Selection-screen. The size of the filename is 1024 characters as declared in the structure file_table. But when i am trying to enter the path into this field, its allowing not more than 132 characters....how is it possible to enter more characters? Even in debugging mode the maximum value we can scroll is upto 128/132 characters..if we want more then we should use the Offset option...but how to enter more than 132 chars into this field?
Best regards,
ramaHai,
I did the same in my program...i get the filename along with the path into this field...but then there is a chance that the User wants to say edit the filename..here comes the problem.
Best regards,
rama -
How to import more than 2k items from Excel(2010) to SharePoint 2010 List?
Hi,
I am getting error while importing more than 2k items from Excel to SharePoint List.
Need solution!!Hi.
Try to use the Import Spreadsheet list template to import your data.
http://www.dummies.com/how-to/content/import-a-spreadsheet-as-a-list-in-sharepoint-2010.html
Regards,
Bubu
http://zsvipullo.blogspot.it
Please mark my answer if it helped you, I would greatly appreciate it. -
How to handle more than one message coming from an async BPEL in a sync BPEL process?
Here is the scenario,
Sync process A is calling an Async process B and Async process B is developed in such a way that it is returning more than one message to sync process A, how you will handle those messages in sync process A?As durga said, its a wrong design, you will have issues in real time. You wont get the response back most of the time. It can be otherway around, async is waiting for sync process.
Change your design or provide what is your use case below, we can think of which design suits you.
Thanks,
Vijay -
How to handle more than one submit buttons on servlets
Hi:
anyone know how to handle the multiplet submit button on servlet,
such as next, previous, add and so on.
Thank youDon't worry about because only the button that is clicked will get submitted. In the servlet you just test for the existance of a parameter:
if (request.getParamter("SubmitButton1") != null) { ..... }
if (request.getParamter("SubmitButton2") != null) { ..... }
Save the following HTML code, open in IE and click on the buttons to see what will get sent to the servlet:
<html><head></head><body>
<form method="GET">
<input type=text name=text1>
<input type=submit name="Submit1" value="Me">
<input type=submit name="Submit2" value="you">
</form>
</body></html> -
How to write more than 65536 data in excel Via Labview in one column
I have more than 65536 data and i want to write these data in excel sheet. It is giving Error:-
"Description:-
Error -2146827284 occurred at an unidentified location
This error code is undefined. No one has provided a description for this code, or you might have wired a number that is not an error code to the error code input."
Less than 65536 data can be written....
Please give some solution...This is not a limitation of LabVIEW writing to a spreadsheet file but a limitation of Microsoft Excel (and also of Notepad) itself.
One option could be, you can switch to Excel 2007 or higher verison...!!
Other solution could be, forget about writing to Excel, instead write in some other format and use LabVIEW your other compatible (with large data) application to read it back.
I am not allergic to Kudos, in fact I love Kudos.
Make your LabVIEW experience more CONVENIENT. -
How to display more than 255 characters in the report
Hi all,
In my program, i try to output a variable type c length 500 in the report. But this report still keep on display 255 characters only although i had set the line-size to 500.
Is there any method output all characters?
thanks,
JaniceHi Janice Yeoh,
I am assuming this is classical report......And just need to do is increase the line-size in report statement. Find below for small example which i ve tried..
REPORT ytest1 LINE-SIZE 500.
DATA : BEGIN OF it OCCURS 500,
v TYPE c,
END OF it.
DO 503 TIMES.
IF sy-index = 500.
WRITE '500'.
ELSE.
WRITE : 'X' NO-GAP.
ENDIF.
ENDDO.
Dont forgot to Reward me points .....All the very best....
Regards,
Sreenivasa sarma K. -
How to handle more than one button in a form?
Hello Java fans,
I am new to Servlets. I am facing a problem in java servlet. I tried to place two buttons in the form. Both buttons has to invoke different servlets. How to associate action to each button?
Thanks in advance,
SMVELGive each button a different name so that you can check which button is clicked.
<input type="submit" name="button1" value="Press this button to invoke servlet1">
<input type="submit" name="button2" value="Press this button to invoke servlet2">
Then in your controller servlet:
if(request.getParameter("button1") != null){
//button1 is pressed.
//forward to servlet1.
else if(request.getParameter("button2") != null){
//button2 is pressed.
//forward to servlet2.
} -
How to store more than 4000 characters in a table
I have a requirement to store 4000+ character string in the table. CLOB and BLOB does not allow me as it has limitations of 4000 characters.
Any suggestions please.declare
l clob;
begin
l:= '111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111';
update table_name
set column_name = l;
commit;
end;
This works fine.
We are using Pentaho to insert records so using pl/sql is not appropriate. -
Excel 2007 to Sql server table. Column with more than 255 characters.
Hi there,
I am facing a problem while converting data from Excel 2007 to SQL server 2005 table. I am using BIDS 2005.I have an excel file where one particular column has more than 255 characters. I use OLEDB connection for excel file as there is no driver for Excel
2007 in BIDS2005. I am using Microsoft Office 12.0 Access Database Engine OLE DB Provider for Excel file.
Next, I changed advanced properties for the column to DT_NTEXT. But when I am getting errors on execution. They are:
[OLE DB Source [1949]] Error: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E21.
[OLE DB Source [1949]] Error: Failed to retrieve long data for column "action".
[OLE DB Source [1949]] Error: There was an error with output column "action" (2046) on output "OLE DB Source Output" (1959). The column status returned was: "DBSTATUS_UNAVAILABLE".
[OLE DB Source [1949]] Error: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "output column "action" (2046)" failed because error code 0xC0209071 occurred, and the error row disposition on "output column "action"
(2046)" specifies failure on error. An error occurred on the specified object of the specified component. There may be error messages posted before this with more information about the failure.
Please advise on how can I deal with columns having more than 255 characters in Excel file.
Thanks!Here is what your connection string should look like for excel source
Provider
=Microsoft.Jet.OLEDB.4.0;Data
Source=c:\temp\test.xls;Extended
Properties="EXCEL 8.0;HDR=YES";
http://sqlworkday.blogspot.com/
Maybe you are looking for
-
Safari 6.0.1 not responding while opening Youtube or any other websites.
Hi, My safari is getting frozen and am getting the noise when its trying to consume more resources (just while opening webpages). The only process that was running is safari and its started using 99% of my CPU. Can someone please help? Sathish.R
-
Alpine connection no longer works
This is so wierd. We have a fourth generation iPod and we mostly keep it in the glovebox connected to our Alpine CDA-9856. It's worked perfectly and we love it. It just stopped working for no apparent reason! To troubleshoot it we did a couple of thi
-
Hi I have a fact table which has a time data stored in two columns, month_id,year_id. My fact table looks like this Sales,Month_ID,Year_ID How can I model a level based dimension for time for this sort of table ?
-
FND_WEB_SEC.Validate_Login
I have modified the fnd_web_sec.validate_login to integrate with Novell Active Directory. I have created a new function and validating the Active Directory using DBMS_LDAP call. I am calling this function in the fnd_web_sec.validate_login. It works f
-
If my IPad is in locked mode is the WiFi still connected?