Bsp attachments
Hi gurus.
I've created a bso iview, which works perfectly fine except for some link to download attachments from this iview.
There is a link in the iview that loads a pop-up window with a list of attachment. When I click any of these attachments to download it I get a: Business Server Page (bsp) error. I can upload and delete attachments fine!!
Any idea how can I solve this.
thanks in advanced,
Dieuba
Hi Dave,
I haven't used IE 8, but I did a search in google to get the below link. Please go through the below link,
http://en.kioskea.net/forum/affich-56107-internet-explorer-pop-up-issue#p139116
Hope it helps!
Regards,
Maheswaran
Similar Messages
-
Speichern von Zeitwerten im "Write Labview Measurement File"
Ich habe Probleme mit den Zeitwerten, welche ab der Zeit 1E-4s mit dem "Write Labview Measurement File" gespeichert wird. Von 0s bis zur Zeit 1E-4s ist alles in Ordnung, da bis zu dieser Zeit die Zeitschritte folgendermassen gespeichert werden:
0.000000
1.000000E-7
2.000000E-7
3.000000E-7
1.300000E-6
1.400000E-6
1.500000E-6
1.900000E-6
2.000000E-6
2.100000E-6
9.990000E-5
1.000000E-4
Aber ab dann wechselt die Darstellung der Zeit von 1.000000E-4s auf 0.000100s. Dadurch gehen die signifikanten Stellen der Zeitschritte von 0.0001000s bis 0.0001004s verloren und diese werden 5 mal als Zeit 0.000100s dargestellt (gilt analog auch für die restlichen Zeitschritte. z.B.: 0.0001005s bis 0.0001014s wird 10 mal als Zeit 0.000101s geschrieben). Dies sieht dann folgendermassen aus:
1.000000E-4
0.000100
0.000100
0.000100
0.000100
0.000100
0.000101
0.000101
0.000102
0.000102
...usw...
Wie kann ich im "Write Labview Measurement File" alle Zeitwerte im "Scientific" Format speichern?Hallo Michael,
für das Express VI gibts (leider) keine Funktion wo man das Format einstellen könnte.
Deswegen empfehle ich die Verwendung des write in spreadsheet.vi
=> siehe Bsp:
Attachments:
sine to lvm-spreadsheet file.vi 132 KB -
Cannot download or view the attachments from PCUI BSP appliations in portal
Hello,
We are not able to view or download the attachments uploaded into any of the PCUI BSP applications called in portal. Initially we were not able to upload to but activating the services for the PCUI applications made it work, I am not sure if the download is supposed to work with the same service activation. Any help on this is greatly appreciated.
Thanks,
Sreekanth Katanguri.Hi Sreekanth,
After uploading the document through PCUI, can you download/ view the document in Backend (in CRM System) through the transaction.... I mean through SAP GUI... If yes than the application is working fine at PCUI level.... Please test at the backend.
After upload at PCUI, if you can downlaoad at SAP GUI (in backend), than I think you need to do some IMG config. So please check the respective attachment's field group entries.
Let me know if you can see the document at backend and than most probably its a config issue, where in you need to make the field changeable. Also pls tell the application name/ tab name (where the Attachment tab is) and I will try to figure out.
Thanks
Harsh -
Launch URL/BSP from attachments link in workitem in Universal Worklist
Background info:
We have a custom business object. Default method on object in SWO1 is a custom display method. This display method returns a URL to a BSP.
When I open my workitem in SBWP and click the attachments link, it properly launches the URL which opens the BSP.
However, when I open same workitem in Universal worklist and click the attachments link, it does not properly open the BSP. It looks like it's trying to open a SAP GUI version of the object but nothing is displayed. When our developer puts a breakpoint in the ABAP code and we click the workitem link in UWL, the URL/BSP opens fine. So, UWL config must be doing something extra (added code? redirect?) that clobbers the URL/BSP launch. Anyone have any ideas/suggestions?
Thanks,
Matt
*Reminder, We are not trying to launch the BSP when you click the workitem link in the UWL list. This is the attachments link inside the workitem itself.G'Day Matthew,
The reason this works from SBWP and not from UWL is because you have an ABAP session in between. You don't mention the type of attachment, but usually what gets executed is the default method of the object. Thus the UWL has to initiate an ITS/WebGUI session to execute the default object method - this method may contain code to launch a BSP but it still needs to get to the code to start with.
You need to find alternatives, see if Karri's suggestion does what you're after.
Cheers,
Mike -
Sending pdf attachments via e-mail in BSP
Hi all,
i have written a code for sending email to a given mailid with some text but
can anyone tell me step to step procedure for sending pdf attchments to mailid.
Thanks and Regards,
Sneha Puppala.Hi ravikiran,
This is my code for sending email with attach:
<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<%@extension name="bsp" prefix="bsp"%>
<htmlb:content id="content" design="classicdesign2002design2003" controlRendering="sap"
rtlAutoSwitch = "true">
<htmlb:page title = "BSP Extension: HTMLB / Element: fileUpload">
<htmlb:form method = "post" encodingType = "multipart/form-data">
<head>
<link rel="stylesheet" href="../../sap/public/bc/bsp/styles/sapbsp.css">
<title>mail to </title>
</head>
<bsp:testSuite id="testSuite" name = "<fileUpload>" key = "<%=content->design%>">
<% IF NOT %_testSuite->id_list IS INITIAL.%>
<bsp:testCase nr="DATA" text = "Data Handling"/>
<table border="1px" cellpadding="1px" cellspacing="0px" style="font:normal 10pt Arial">
<tr> <th>id</th> <th>File Name</th> <th>Content Type</th> <th>Length</th> </tr>
<%-- Notice: It's recommended to do input processing in onInputProcessing
event block, not in onLayout block like in this case. --%>
<% DO.
DATA: fu TYPE REF TO CL_HTMLB_FILEUPLOAD,
next_id TYPE STRING.
next_id = %_testSuite->next_restore_id( ).
IF next_id IS INITIAL. EXIT. ENDIF.
fu ?= CL_HTMLB_MANAGER=>GET_DATA( request = request id = next_id name = 'fileUpload' ).
%>
<tr>
<td><%=next_id%></td>
<td><%= cl_http_utility=>escape_html( fu->file_name ) %> </td>
<td><%=fu->file_content_type%> </td>
<td><%=fu->file_length%></td>
</tr>
<% ENDDO. %>
</table>
<% ENDIF. %>
<%----
%>
<%
DATA: event TYPE REF TO if_htmlb_data,
fileUpload_event TYPE REF TO CL_HTMLB_FILEUPLOAD.
event = cl_htmlb_manager=>get_event_ex( request ).
IF event IS NOT INITIAL AND event->event_name = htmlb_events=>fileupload.
fileUpload_event ?= event.
%>
<table border="1px" cellpadding="1px" cellspacing="0px" style="font:normal 10pt Arial">
<tr> <td>Event-Class</td> <td><%= event->event_class%> </td> </tr>
<tr> <td>Event-ID</td> <td><%= event->event_id%> </td> </tr>
<tr> <td>Event-Name</td> <td><%= event->event_name%> </td> </tr>
<tr> <td>Event-Type</td> <td><%= event->event_type%> </td> </tr>
<tr> <td>Event-Server Name</td> <td><%= event->event_server_name%> </td> </tr>
<tr> <td>Event-Defined</td> <td><%= event->event_defined%> </td> </tr>
<tr> <td>FileUpload-Name</td> <td><%= fileUpload_event->file_name%> </td> </tr>
<tr> <td>FileUpload-Content_Type</td> <td><%= fileUpload_event->file_content_type%> </td> </tr>
<tr> <td>FileUpload-Length</td> <td><%= fileUpload_event->file_length%> </td> </tr>
</table>
<%
ENDIF.
%>
<%----
%>
<bsp:testCase text = "upload attachment" />
<htmlb:fileUpload id = "<%= %_testSuite->seq_nr( )%>" />
<htmlb:button id = "submitButton"
text = "Upload"
onClick = "HandleUpload" />
<%----
%>
<html>
<body class="bspBody1">
<H1 class="bspH1"> Consultation-Service </H1>
<form method = "post" action="<%=page->get_page_url( )%>">
<table class="bspTbvStd" cellpadding="4">
<tr>
<td class="bspTbvHdrStd" colspan="2" align="center"><font size="4">Address</font></td>
</tr>
<tr class="bspTbvCellStd">
<td>Name</td>
<td><input type="text" name="name"
value="<% page->write( value = name ). %>" size="40" ></td>
</tr>
<tr class="bspTbvCellStd">
<td>Mail address1</td>
<td><input type="text" name="mail_address1"
value="<% page->write( value = mail_address1 ). %>" size="40"></td>
</tr>
<tr class="bspTbvCellStd">
<td>Mail address2</td>
<td><input type="text" name="mail_address2"
value="<% page->write( value = mail_address2 ). %>" size="40"></td>
</tr>
</table>
</bsp:testSuite>
</htmlb:form>
</htmlb:page>
</htmlb:content>
</form>
</body>
</html>
On Input Processing:
if page->messages->num_messages( ) eq 0.
if mail_address1 is not initial and mail_address2 is not initial.
call method application->send
exporting mail_address = mail_address1
changing messages = page->messages .
call method application->send
exporting mail_address = mail_address2
changing messages = page->messages .
if page->messages->num_messages( ) eq 0.
data text type string.
text = application->get_text( ).
navigation->set_parameter( name = 'mailtext' value = text ).
navigation->next_page( 'show' ).
endif.
else.
navigation->next_page( 'no_address' ).
endif.
endif.
"method send in defined class":
method SEND.
CLASS cl_bcs DEFINITION LOAD.
DATA:
lo_send_request TYPE REF TO cl_bcs VALUE IS INITIAL.
lo_send_request = cl_bcs=>create_persistent( ).
Message body and subject
DATA:
lt_message_body TYPE bcsy_text VALUE IS INITIAL,
lt_att_content_hex type solix_tab,
lo_document TYPE REF TO cl_document_bcs VALUE IS INITIAL.
APPEND 'Dear Vendor,' TO lt_message_body.
append ' ' to lt_message_body.
APPEND 'Please find the attached report.'
TO lt_message_body.
append ' ' to lt_message_body.
APPEND 'Thank You,' TO lt_message_body.
lo_document = cl_document_bcs=>create_document(
i_type = 'RAW'
i_text = lt_message_body
i_subject = 'Visit report' ).
data: data_tab type solix_tab,
p_data type XSTRING.
call function 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = p_data
TABLES
binary_tab = data_tab.
DATA: lx_document_bcs TYPE REF TO cx_document_bcs VALUE IS INITIAL.
TRY.
lo_document->add_attachment(
EXPORTING
i_attachment_type = 'PDF'
i_attachment_subject = 'Visit Report'
I_ATTACHMENT_SIZE =
I_ATTACHMENT_LANGUAGE = SPACE
I_ATT_CONTENT_TEXT =
I_ATTACHMENT_HEADER =
i_att_content_hex = data_tab ).
CATCH cx_document_bcs INTO lx_document_bcs.
ENDTRY.
Add attachment
Pass the document to send request
lo_send_request->set_document( lo_document ).
Create sender
DATA:
lo_sender TYPE REF TO if_sender_bcs VALUE IS INITIAL,
l_send type ADR6-SMTP_ADDR value '[email protected]'.
lo_sender = cl_cam_address_bcs=>create_internet_address( l_send ).
Set sender
lo_send_request->set_sender(
EXPORTING
i_sender = lo_sender ).
Create recipient
DATA:
lo_recipient TYPE REF TO if_recipient_bcs VALUE IS INITIAL.
lo_recipient = cl_sapuser_bcs=>create( sy-uname ).
Set recipient
lo_send_request->add_recipient(
EXPORTING
i_recipient = lo_recipient
i_express = 'X' ).
lo_send_request->add_recipient(
EXPORTING
i_recipient = lo_recipient
i_express = 'X' ).
Send email
DATA: lv_sent_to_all(1) TYPE c VALUE IS INITIAL.
lo_send_request->send(
EXPORTING
i_with_error_screen = 'X'
RECEIVING
result = lv_sent_to_all ).
COMMIT WORK.
message 'The visit report has been sent' type 'I'.
Thanks and Regards,
Sneha Puppala. -
Bsp error - synthax error - standard pages
http://server:8000/sap/bc/bsp/sap/dswpnotifcreate/selfsubmit.html
This is standard and I get the following message
500 SAP Internal Server Error
Error message: Syntax error in program CL_O2C3YJC90QK4A21UYC755ZFS5D7CP . ( type of termination: RABAX_STATE )
WITH DUMP
Runtime Errors SYNTAX_ERROR
Occurred on 12.10.2005 at 14:24:10
Syntax error in program "CL_O2C3YJC90QK4A21UYC755ZFS5D7CP ".
What happened?
What can you do?
Error analysis
How to correct the error
System environment
User, transaction...
Information on where terminated
Source code extract
000360 if sy-subrc = 0. " not yet existing
000370 context = <reg_instance>-context.
000380 * set current page instance
000390 m_page_instance = context->m_page_instance.
000400 * re-init page internal properties
000410 context->m_page_instance->do_reinit( ).
000420 return.
000430 endif.
000440
000450
000460 * create new page context
000470 create object l_page_context
000480 exporting runtime = c_runtime.
000490
000500 * instantiate new page instance
000510 if m_page_type = 'C'.
000520 try.
000530 create object l_controller_instance type (m_page_class).
000540 create object l_controller_adapter.
000550 l_controller_adapter->m_adaptee = l_controller_instance.
000560 l_controller_instance->adapter = l_controller_adapter.
000570 l_page_context->m_page_instance = l_controller_adapter.
000580 catch cx_root.
000590 raise exception type cx_bsp_impl_deprecated
000600 exporting page_name = m_page_name.
000610
000620 endtry.
000630 else.
000640 * instantiate new page instance
000650 try.
> create object l_page_context->m_page_instance
000670 type (m_page_class).
000680
000690 catch cx_root.
000700 raise exception type cx_bsp_impl_deprecated
000710 exporting page_name = m_page_name.
000720
000730 endtry.
000740 endif.
000750
000760 * fill-up context information
000770 l_page_context->m_page_name = m_page_name.
000780 l_page_context->m_page_id = ''.
000790 l_page_context->m_page_class = m_page_class.
000800 l_page_context->m_page_parameters = m_page_parameters.
000810 l_page_context->m_page_html_pool = m_page_html_pool.
000820 l_page_context->m_page_script_code = m_page_script_code.
000830 l_page_context->m_page_mime_type = m_page_mime_type.
000840 l_page_context->m_page_secure = m_page_secure.
000850 l_page_context->m_page_lifetime = m_page_lifetime.
Contents of system fields
SY field contents..................... SY field contents.....................
SY-SUBRC 0 SY-INDEX 1
SY-TABIX 0 SY-DBCNT 1
SY-FDPOS 11 SY-LSIND 0
SY-PAGNO 0 SY-LINNO 1
SY-COLNO 1 SY-PFKEY
SY-UCOMM SY-TITLE HTTP Control
SY-MSGTY SY-MSGID
SY-MSGNO 000 SY-MSGV1
SY-MSGV2 SY-MSGV3
SY-MSGV4
Active calls / events
No.... Type........ Name..........................
Program
Include Line
Class
7 METHOD GET_PAGE_CONTEXT_CURRENT
CL_BSP_CONTEXT================CP
CL_BSP_CONTEXT================CM009 66
CL_BSP_CONTEXT
6 METHOD ON_REQUEST_ENTER
CL_BSP_RUNTIME================CP
CL_BSP_RUNTIME================CM007 45
CL_BSP_RUNTIME
5 METHOD ON_REQUEST
CL_BSP_RUNTIME================CP
CL_BSP_RUNTIME================CM002 100
CL_BSP_RUNTIME
4 METHOD IF_HTTP_EXTENSION~HANDLE_REQUEST
CL_HTTP_EXT_BSP===============CP
CL_HTTP_EXT_BSP===============CM001 24
CL_HTTP_EXT_BSP
3 METHOD EXECUTE_REQUEST
CL_HTTP_SERVER================CP
CL_HTTP_SERVER================CM00G 326
CL_HTTP_SERVER
2 FUNCTION HTTP_DISPATCH_REQUEST
SAPLHTTP_RUNTIME
LHTTP_RUNTIMEU02 490
1 MODULE (PBO) %_HTTP_START
SAPMHTTP
SAPMHTTP 13
Chosen variables
7 METHOD GET_PAGE_CONTEXT_CURRENT
CL_BSP_CONTEXT================CP
CL_BSP_CONTEXT================CM009 66
CONTEXT
F0000000
F0000000
L_PAGE_CONTEXT->M_PAGE_INSTANC
F0000000
F0000000
L_CONTROLLER_ADAPTER
F0000000
F0000000
SPACE
2
0
SY-XFORM
222222222222222222222222222222
000000000000000000000000000000
SY ########################################
0000000000000000000000000001000000000000
0001000000000000000000000004000000000000
... + 40 #######################################P
0000000000000000000000000000000000000005
0001000B00010000000100000000000000000000
... + 80 ########################################
0000000000000000000000000000000000000000
0000000000000000000100000000000000000000
... + 120 #######################################T
0000000000000000000000000000000000010005
0000000000000000000000000000000000060004
... + 160 ################XC############# E0 0
0000000000000000540000000000000222432223
0000000100000000830030000C0000C000500000
... + 200 010 ####__S 100
3332222222220000555222222222222222223332
0100000000000000FF3000000000000000001000
... + 240 00
222223322222222
000000000000000
%_EXCP
F0000000
F0000000
%_SPACE
2
0
ME->M_PAGE_NAME selfsubmit.html
766677666726766
35C6352D94E84DC
%_DUMMY$$
2222
0000
SYST ########################################
0000000000000000000000000001000000000000
0001000000000000000000000004000000000000
... + 40 #######################################P
0000000000000000000000000000000000000005
0001000B00010000000100000000000000000000
... + 80 ########################################
0000000000000000000000000000000000000000
0000000000000000000100000000000000000000
... + 120 #######################################T
0000000000000000000000000000000000010005
0000000000000000000000000000000000060004
... + 160 ################XC############# E0 0
0000000000000000540000000000000222432223
0000000100000000830030000C0000C000500000
... + 200 010 ####__S 100
3332222222220000555222222222222222223332
0100000000000000FF3000000000000000001000
... + 240 00
222223322222222
000000000000000
ME->M_PAGE_CLASS CL_O2C3YJC90QK4A21UYC755ZFS5D7
445434354433543433554333545343
3CFF2339A3901B4121593755A63547
6 METHOD ON_REQUEST_ENTER
CL_BSP_RUNTIME================CP
CL_BSP_RUNTIME================CM007 45
ME->C_NAVIGATION
F0000000
4000000B
%_PRINT 000
2222333222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 40
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 80 0 ########
2222222222320000000022222222222222222222
0000000000000000000000000000000000000000
... + 120
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 160 0 ####
222222222222223222222222222222220000
000000000000000000000000000000000000
%_DUMMY$$
2222
0000
%_ARCHIVE
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 40
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 80
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 120
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 160
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 200
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 240
222222222222222
000000000000000
ME
F0000000
90000006
ME->C_REDIRECT_URL
ME->C_REDIRECT_PAGE
ME->C_REDIRECT_TYPE 0
0000
0000
ME->C_CONTEXT
F0000000
80000007
SPACE
2
0
ME->IF_BSP_RUNTIME~SESSION_ID SID:ANON:sapzoo_SMG_00:YWoc_ZnD_Z7HJoimb
5443444437677665544533355665564553446666
394A1EFEA310AFFF3D7F00A97F3FAE4FA78AF9D2
... + 40 2WAz0Vjxh4P8RnL2CMZkGe0-ATT
354735676353564344564632455
271A06A884082EC23DAB750D144
ME->C_CONTEXT_APP->M_SESSION_I SID:ANON:sapzoo_SMG_00:YWoc_ZnD_Z7HJoimb
5443444437677665544533355665564553446666
394A1EFEA310AFFF3D7F00A97F3FAE4FA78AF9D2
... + 40 2WAz0Vjxh4P8RnL2CMZkGe0-ATT
354735676353564344564632455
271A06A884082EC23DAB750D144
SYST ########################################
0000000000000000000000000001000000000000
0001000000000000000000000004000000000000
... + 40 #######################################P
0000000000000000000000000000000000000005
0001000B00010000000100000000000000000000
... + 80 ########################################
0000000000000000000000000000000000000000
0000000000000000000100000000000000000000
... + 120 #######################################T
0000000000000000000000000000000000010005
0000000000000000000000000000000000060004
... + 160 ################XC############# E0 0
0000000000000000540000000000000222432223
0000000100000000830030000C0000C000500000
... + 200 010 ####__S 100
3332222222220000555222222222222222223332
0100000000000000FF3000000000000000001000
... + 240 00
222223322222222
000000000000000
L_PAGE_INSTANCE
F0000000
F0000000
ME->C_CONTEXT->M_PAGE_INSTANCE
F0000000
F0000000
SYST-REPID CL_BSP_RUNTIME================CP
4454555554544433333333333333334522222222
3CF230F25E49D5DDDDDDDDDDDDDDDD3000000000
5 METHOD ON_REQUEST
CL_BSP_RUNTIME================CP
CL_BSP_RUNTIME================CM002 100
SERVER
F0000000
D0000002
RC 0
0000
0000
ME->C_NAVIGATION
F0000000
4000000B
ME
F0000000
90000006
ME->C_REDIRECT_URL
SY-REPID CL_BSP_RUNTIME================CP
4454555554544433333333333333334522222222
3CF230F25E49D5DDDDDDDDDDDDDDDD3000000000
CL_BSP_RUNTIME=>IF_BSP_RUNTIME min
666
D9E
ME->C_STATE 0
0000
0000
ME->CO_STATE_ON_LEAVE 99
0006
0003
ME->C_CONTEXT->M_APP_INSTANCE_
F0000000
F0000000
RSJOBINFO 00000000
2222222222222222222222222222222233333333
0000000000000000000000000000000000000000
... + 40 000000
3333332222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 80 ####
0000
0000
%_SPACE
2
0
%_FSREG_001 ???
ME->C_REQUEST
F0000000
C0000003
4 METHOD IF_HTTP_EXTENSION~HANDLE_REQUEST
CL_HTTP_EXT_BSP===============CP
CL_HTTP_EXT_BSP===============CM001 24
SERVER
F0000000
D0000002
%_DUMMY$$
2222
0000
%_EXCP
F0000000
F0000000
CLIENT_SIDE_EXCEPTION
SY-REPID CL_HTTP_EXT_BSP===============CP
4454555545554553333333333333334522222222
3CF8440F584F230DDDDDDDDDDDDDDD3000000000
%_ARCHIVE
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 40
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 80
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 120
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 160
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 200
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 240
222222222222222
000000000000000
SY ########################################
0000000000000000000000000001000000000000
0001000000000000000000000004000000000000
... + 40 #######################################P
0000000000000000000000000000000000000005
0001000B00010000000100000000000000000000
... + 80 ########################################
0000000000000000000000000000000000000000
0000000000000000000100000000000000000000
... + 120 #######################################T
0000000000000000000000000000000000010005
0000000000000000000000000000000000060004
... + 160 ################XC############# E0 0
0000000000000000540000000000000222432223
0000000100000000830030000C0000C000500000
... + 200 010 ####__S 100
3332222222220000555222222222222222223332
0100000000000000FF3000000000000000001000
... + 240 00
222223322222222
000000000000000
SYST-REPID CL_HTTP_EXT_BSP===============CP
4454555545554553333333333333334522222222
3CF8440F584F230DDDDDDDDDDDDDDD3000000000
ME->M_BSP_RUNTIME
F0000000
90000006
L_RC 0
0000
0000
L_EXCEPTION
F0000000
F0000000
SY-ONCOM X
5
8
%_SPACE
2
0
3 METHOD EXECUTE_REQUEST
CL_HTTP_SERVER================CP
CL_HTTP_SERVER================CM00G 326
SERVER
F0000000
D0000002
SERVTBL Table IT_5[6x1112]
FIRSTALIAS
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 40
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 80
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 120
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 160
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 200
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 240
222222222222222
000000000000000
URLSUFFIX selfsubmit.html
766677666726766
35C6352D94E84DC
FLOW_RC 0
0000
0000
TIMEOUT 000000
333333
000000
PF_OPCODE_CHANGE_PAR #
0
2
PF_OPCODE_CLOSE_INTERVAL #
1
2
PF_LOCK_ERROR 10
0000
000A
SY-SUBRC 0
0000
0000
%_DUMMY$$
2222
0000
SY-REPID CL_HTTP_SERVER================CP
4454555554554533333333333333334522222222
3CF8440F352652DDDDDDDDDDDDDDDD3000000000
%_SPACE
2
0
STIME 16248
0037
00F8
CL_HTTP_SERVER=>C_STATISTIC_ST 0
0000
0000
SY-XFORM
222222222222222222222222222222
000000000000000000000000000000
PF_OPCODE_OPEN_INTERVAL #
1
1
%_PRINT 000
2222333222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 40
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 80 0 ########
2222222222320000000022222222222222222222
0000000000000000000000000000000000000000
... + 120
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 160 0 ####
222222222222223222222222222222220000
000000000000000000000000000000000000
ETIME 0
0000
0000
CL_HTTP_SERVER=>M_EXE_TIME 0
00000000
00000000
2 FUNCTION HTTP_DISPATCH_REQUEST
SAPLHTTP_RUNTIME
LHTTP_RUNTIMEU02 490
CLIENT_NAME
DOCUMENT_IN
VIRTUAL_HOST 0
0000
0000
DOCUMENT_OUT
SY ########################################
0000000000000000000000000001000000000000
0001000000000000000000000004000000000000
... + 40 #######################################P
0000000000000000000000000000000000000005
0001000B00010000000100000000000000000000
... + 80 ########################################
0000000000000000000000000000000000000000
0000000000000000000100000000000000000000
... + 120 #######################################T
0000000000000000000000000000000000010005
0000000000000000000000000000000000060004
... + 160 ################XC############# E0 0
0000000000000000540000000000000222432223
0000000100000000830030000C0000C000500000
... + 200 010 ####__S 100
3332222222220000555222222222222222223332
0100000000000000FF3000000000000000001000
... + 240 00
222223322222222
000000000000000
%_DUMMY$$
2222
0000
C_SERVER
F0000000
D0000002
%_ARCHIVE
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 40
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 80
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 120
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 160
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 200
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 240
222222222222222
000000000000000
C_SERVER->IF_HTTP_SERVER~CO_CO 2
0000
0002
SY-REPID SAPLHTTP_RUNTIME
5454455555545444222222222222222222222222
310C8440F25E49D5000000000000000000000000
PF_EYE_END_DESTROYED 4
0000
0004
CL_ABAP_TRACE=>DEFAULT_VARIANT
F0000000
F0000000
ERROR_STATE 0
0000
0000
PF_TASK_RFC #
0
9
C_STATISTIC_STATE 0
0000
0000
SY-XFORM
222222222222222222222222222222
000000000000000000000000000000
SERVER_ACCEPTED
F0000000
D0000002
PF_OPCODE_OPEN_INTERVAL #
1
1
SERVTBL Table IT_5[6x1112]
FIRSTALIAS
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 40
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 80
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 120
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 160
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 200
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 240
222222222222222
000000000000000
URLSUFFIX selfsubmit.html
766677666726766
35C6352D94E84DC
FLOW_RC 0
0000
0000
TIMEOUT 000000
333333
000000
%_PRINT 000
2222333222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 40
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 80 0 ########
2222222222320000000022222222222222222222
0000000000000000000000000000000000000000
... + 120
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 160 0 ####
222222222222223222222222222222220000
000000000000000000000000000000000000
PF_OPCODE_CLOSE_INTERVAL #
1
2
C_SERVER->IF_HTTP_SERVER~STATE 0
0000
0000
ICF_ACTIVE_INVALID I
4
9
C_SERVER->C_DEBUGGING_POSSIBLE N
4
E
C_SERVER->PUBLIC_SERVICE 0
0000
0000
1 MODULE (PBO) %_HTTP_START
SAPMHTTP
SAPMHTTP 13
SY-REPID SAPMHTTP
5454455522222222222222222222222222222222
310D844000000000000000000000000000000000
SYST-REPID SAPMHTTP
5454455522222222222222222222222222222222
310D844000000000000000000000000000000000
%_ARCHIVE
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 40
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 80
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 120
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 160
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 200
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 240
222222222222222
000000000000000
%_DUMMY$$
2222
0000
%_SPACE
2
0
Application Calls
No dump information available
Application Information
No dump information available
Internal notesHi,
These are the possible notes linked to dswpnotifcreate
830882 DSWPNOTIFCREATE URL initialization parameters 24.03.2005
820012 Retransport of OTR Texts for BSP DSWPNOTIFCREATE 23.02.2005
820015 DSWPNOTIFCREATE: Long text incorrectly transmitted 17.02.2005
819504 DSWPNOTIFCREATE: OS and DB missing in CRM message from BSP 16.02.2005
855646 Messages created from Web browser lose attachments II 22.06.2005
855119 Messages created from Web browser lose attachments 22.06.2005
879905 Text for category missing in BSP DSWPNOTIFCREATE 16.09.2005
829635 Create Message: Long text incorrectly formatted
Eddy -
.ics calendar attachments sent from R/3
Hi.
Does anyone know if it is possible to set the content type of a file attachment to an email sent from R/3? Specifically, I need to set the content type to "text/calendar" when generating notifications from bsp that contain an MS Outlook calendar attachment (.ics file).
When iCalendar attachments go through FM SO_DOCUMENT_SEND_API1, the content type is set to text/plain which apparently some virus scanners have a problem with. The virus scanner then corrupts the attachment. The exact same attachment will work as an Outlook calendar entry if sent to a recipient with different virus scanner.
Per RFC 2445, it appears content type should be text/calendar, but I can't find a manner to set this using R/3 functions for sending email...
Thanks for any help,
jasonHi Jason,
just tested out FM SO_DOCUMENT_SEND_API1 in a small report. Find attached the coding that delivers a mail with the mime type you desire:
data: ls_doc like sodocchgi1,
lt_content type table of solisti1,
wa_content type solisti1,
lt_rec type table of somlreci1,
wa_rec type somlreci1,
lv_int type i,
lv_int2 type i.
wa_content = 'Line 1'.
append wa_content to lt_content.
wa_content = 'Line 2'.
append wa_content to lt_content.
wa_rec-receiver = '[email protected]'.
wa_rec-rec_type = 'U'.
append wa_rec to lt_rec.
* Mail Header
ls_doc-obj_name = 'Test Mail Mime Type'.
ls_doc-obj_descr = 'Mime Type test'.
ls_doc-sensitivty = 'O'.
describe table lt_content lines lv_int.
lv_int2 = ( lv_int - 1 ) * 255.
lv_int = strlen( wa_content ).
lv_int2 = lv_int2 + lv_int.
ls_doc-doc_size = lv_int2.
CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
EXPORTING
document_data = ls_doc
DOCUMENT_TYPE = 'ICS'
* PUT_IN_OUTBOX = ' '
COMMIT_WORK = 'X'
* IMPORTING
* SENT_TO_ALL =
* NEW_OBJECT_ID =
tables
* OBJECT_HEADER =
OBJECT_CONTENT = lt_content
* CONTENTS_HEX =
* OBJECT_PARA =
* OBJECT_PARB =
receivers = lt_rec
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
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Here the relevant part of the mail header:
MIME-Version: 1.0
Importance: Normal
X-Priority: 3 (Normal)
X-Mailer: SAP Web Application Server 6.40
Content-Type: text/calendar;
charset="us-ascii";
method="VEVENT"
Content-Transfer-Encoding: quoted-printable
Content-Description: SAP.ics
I guess that's what you are looking for. Just adjust the receivers adress and test it out on your system.
Best Regards
Michael -
Print Problem in Appraisal BSP HAP_DOCUMENT
Hi,
I'am using HAP_DOCUMNET Biving SP's for appraisal.I created BSP iviews in EP and i'am using them.
There is a problem i'am facing in this BSP's,when i click on PRINT after creating Appraisal,it will ask me to either open or save in pdf.
But when i open or save it and open it is giving me this message in Adobe
"Acrobat could not open u2018webforms.pdfu2019 because it is either not a supported file type or because the file has been corrupted (for example, it was sent as an email attachment and wasnu2019t correctly decoded).
To create an Adobe PDF document, go to the source application. Then print the document to Adobe PDF."
Any body please guide me with a solution.
With Regards,
Pradeep.Bhi ,
the probelm with adobe (pdf) only(.i.e. pdf attachments are damaged or something) so, check the below links to get more info regrding above error...
http://www.computing.net/answers/windows-xp/pdf-error-acrobat-could-not-open/118542.html
http://forum.planetpdf.com/wb/default.asp?action=9&fid=6&read=62004
http://www.acrobatusers.com/forums/aucbb/viewtopic.php?id=6911
thnx
suriya -
File Upload in BSP Applications and store in Application server
Hi we have requirement to store the attachments from BSP application into the external/internal storage space connected to application server.
I search for weblogs and all talking about <a href="http://help.sap.com/saphelp_me21sp2/helpdata/en/eb/8c683c8de8a969e10000000a114084/content.htm">File Upload in BSP Applications and store in MIME Repository</a>.
But our requirement is upload and store(no need to read the file content) attachments from BSP page into file server, and then make a link back in BSP page to open.
I know we can handle documnets in R/3 using DMS, but our system is SRM.
Please give a suggestion and solution.
Thanks,
GiriHi,
I faced a similar problem some time ago (uploading a file via BSP, storing it to the application server and then linking the archived document to a business object.
Here is the coding I used:
when 'SubmitUploadFile'. "OnInputProcessing
DATA: data_fileupload TYPE REF TO CL_HTMLB_FILEUPLOAD,
l_filename type string,
l_archiv_doc_id type SAPB-SAPADOKID,
l_content type string,
l_file_ixos(100) type c value '/transfer/PV2/aus/IXOS/',
l_file(200) type c,
tbl_bin TYPE STANDARD TABLE OF tbl1024,
wa_bin type TBL1024,
l_xstring type xstring,
l_arc_doc_id type SAPB-SAPADOKID,
l_doctype type TOADD-DOC_TYPE,
l_filename_e type DRAW-FILEP.
upload the file from the BSP web interface (e.g. file C:TempSUTestPDF_SU.pdf)
data_fileupload ?= CL_HTMLB_MANAGER=>GET_DATA(
request = runtime->server->request
name = 'fileUpload'
id = InputFieldFileUpload
IF NOT data_fileupload IS INITIAL.
l_filename = data_fileupload->file_name.
l_content = data_fileupload->file_content.
l_content_type = data_fileupload->file_content_type.
ENDIF.
The uploaded file is returned as XSTRING, so we have to convert it to BINARY
(or STRING alternatively)!
l_xstring = l_content.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
BUFFER = l_xstring
APPEND_TO_TABLE = 'X'
TABLES
BINARY_TAB = tbl_bin.
split path for storing the file to the application server
l_filename_c = l_filename.
CALL FUNCTION 'CV120_SPLIT_PATH'
EXPORTING
PF_PATH = l_filename_c
IMPORTING
PFX_FILE = l_filename_e.
write the uploaded file to the application server
l_filename = l_filename_e.
concatenate l_file_ixos l_filename into l_file.
open dataset l_file for output IN LEGACY BINARY MODE.
loop at tbl_bin into wa_bin.
transfer wa_bin-line to l_file.
endloop.
close dataset l_file.
store the uploaded file on the IXOS-archive
l_doctype = l_content_type.
CALL FUNCTION 'ARCHIVOBJECT_CREATE_FILE'
EXPORTING
ARCHIV_ID = '2T'
DOCUMENT_TYPE = l_doctype
PATH = l_file_arc
IMPORTING
ARCHIV_DOC_ID = l_arc_doc_id
EXCEPTIONS
ERROR_ARCHIV = 1
ERROR_COMMUNICATIONTABLE = 2
ERROR_UPLOAD = 3
ERROR_KERNEL = 4
OTHERS = 5.
link the archived document to the business object DRAW
CALL FUNCTION 'ARCHIV_CONNECTION_INSERT'
EXPORTING
ARCHIV_ID = '2T'
ARC_DOC_ID = l_arc_doc_id
AR_OBJECT = 'DRW'
OBJECT_ID = g_object_id_arc
SAP_OBJECT = 'DRAW'
DOC_TYPE = l_extend
EXCEPTIONS
ERROR_CONNECTIONTABLE = 1
OTHERS = 2.
Remark: It´s vital to convert the uploaded file from XSTRING to BINARY. Otherwise the file cannot be stored/archived properly.
The archived document can then be displayed by inserting the (IXOS-web client-)link to the BSP page (e.g. http://193.228.208.78:4060/archive.dll/get?arc=2T&doc=44439F1B4F701E65E1000000C1E4D00A).
Hope this helps!
Regards,
Ulli -
Hi,
I searched but could not find an answer...I am working on a program that itseems worked till the last few days...not sure why it stopped working suddenly. I was able to fix it now, but am wondering how to retrieve the old attachments uploaded using this app.
This BSP app is used to store documents.
Step-1:Simple BSP form upload. In the event handler, the cData is read using cl_http_entity->get_cdata. This is stored in a table as a string along with filename, file type etc.
Step-2: To download the document from Step-1, the string from Step-1 is converted to xstring using SCMS-STRING-TO-XSTRING and then the response is set using:
runtime->server->response->set_data( data = lxstringdata length = xstrtlen ).
This no longer works - it gives garbage data...
I converted it to read binary data while uploading (cl_http_entity->get_cdata) and it works fine now - but any idea on how I can read the files that have been created so far? I was told that it was working atleast a few days back..
Thanks in advance.
JHAny help from the gurus?
-
Upload Attachments and Store in SAP
Hi I am using <htmlb:fileUpload to load the attachements. Any dea where these attachments store. We have large numbers of attachmets needs to be attached to the BSP pages, and show the list of all attahed documents in BSP page. Also user should able to delete/display the attachemants by selecting individual.
Any idea where we should store the attachemnets and any code will help. This requireemnt is for SRM.
Thanks,
GireeshWell the htmlb:fileUpload only gets the binary content of the file into memory on the server. What you do with after that really has nothing to do with BSP. You could write the file to a filesystem relative to the App server (using ABAP commands like OPEN DATASET). You could store the content in a custom database table (with a field that has a type XSTRING). You could store the file in the Mime Repository. You could Call a BAPI and store the document in an R/3 DMS system. You could combine that with the SAP Content and Cache Server. You could store the content as document attachments to business documents using the BCS. You could store the content in a Portal KM repository.
As you see, you have many options. How you want to access the documents, control security, how much storage they will require, are your users geographically distributed, do you need file explorer access to them or just HTTP, etc - these questions all play into this decision. -
How to store / retrieve attachments?
Hi Experts,
I am sending message attachments to XI using ABAP Proxy program. The message itself has a number which identifies the attachment.
My requirement is to store the attachment in some format in ABAP table. The is required because there is a webapplication which will send a SOAP request to XI to fetch the attachemnt. The request will have the attachment identification number and the response should have the attachment itself in SOAP body.
Could you please tell me how to store the attachment in XI and how to retrieve the same using a webservice call?
Thanks,
ShobhitHi,
Refer these articles
http://help.sap.com/saphelp_nw04/helpdata/en/a7/3b2a2d45a34a23b75e3b18745c63bc/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/de/705c3c3806af06e10000000a11402f/content.htm
Refer these blogs
ABAP POP3 Email Client Using an RFC enabled PHP client proxy
XI: Reliable Messaging EOIO in ABAP Proxies
BSP a Developer's Journal Part XIV - Consuming WebServices with ABAP
Regards,
Suryanarayana -
Launch UWL attachments in new window
Hi,
Has anyone tried launching uwl attachments in a new window ? We're on EP SP14. I couldn't find any related action type in uwl.weblow.xml file. It looked as if displaySAPObject action is used for handling this but in SAPHelp it says it is used to evaluate and navigate to the BSP blueprint display of the underlying object of the item.
Kind Regards,
AhmetMerhaba Ahmet,
sdn'de portal'ın kodlarına direk müdahale ve tema değiştirme konularındaki sorularını gördüm. Konu en son cevaplanmamış görünüyor. Bu konuda bir gelişme oldumu senin tarafında. Email'ine ulaşamadığım için burdan yazmak zorunda kaldım. Yardımcı olabilir misin?
Selamlar,
Ahmet
[email protected] -
Hi Forum,
We are using CRM 4.0 with EP 6.2.
<b>Issue</b>
In the activity transaction when we try to open an attached excel and pdf files(in BSP(Tx se80)/EP) the screen gets refreshed and nothing happens after that.
We are able to open only the word documents.Is there any configuration step Iam missing please guide.
Regards
ShridharGuys,
I have resolved this issue by trying the following things. I have not tried Excel but MS Word and PDF attachments are working fine.
1. Refer OSS Notes 635049 & 818685
2. In order for attachments to work Microsoft Internet Explorer 5.0 and above is required. Do the following settings in Internet Explorer->Security tab->Custom Level.
Activate 'Active Scripting'
Activate 'Run ActiveX controls and plug-ins'
Activate 'Initialize and script ActiveX controls not marked as safe'
Generic settings for Attachments:
Transaction code SICF: Activate service /default_host/sap/bc/contentserver. Create External Alias /sap/bc/contentserver and maintain target element as /default_host/sap/bc/contentserver by double clicking on it. Provide anonymous logon data. Use a non-dialog userid something like RFCUSER or ALEREMOTE etc and the password.
After these settings, when you click on the attachment hyperlink your attachment will be opened in a seperate window.
MS Word Integration:
If you want to use MS Word button on PCUI Attachments tab, do the following settings.
1. Transaction code SICF: Activate Service /default_host/sap/crm/crm_bsp_webdav. Create External Alias /sap/crm/crm_bsp_webdav with target element as /default_host/sap/crm/crm_bsp_webdav. Also maintain anonymous logon.
2. Additionally, maintain this external alias in IMG. SPRO->Customer Relationship Management->Basic Functions->Content Management->Define Alias for MS Office Integration in the People-Centric Interface. This entry is transportable.
After these settings MS word button starts working and opens MS Word documents in edit mode. You should be able to make changes and save it back.
Regards
Krishna Kanduri -
BSP -> HAP_DOCUMENT.
I browsed through some threads and found out the code for this, but wanted to know which page/controller method I should write in my code. This functionality is required in both Manager page and in Employee page.. Could someone help me on this, it would be very helpful...hi ,
the probelm with adobe (pdf) only(.i.e. pdf attachments are damaged or something) so, check the below links to get more info regrding above error...
http://www.computing.net/answers/windows-xp/pdf-error-acrobat-could-not-open/118542.html
http://forum.planetpdf.com/wb/default.asp?action=9&fid=6&read=62004
http://www.acrobatusers.com/forums/aucbb/viewtopic.php?id=6911
thnx
suriya
Maybe you are looking for
-
Calling Portal iView from a WebdynPro ABAP application
Hi , I have a requirement where I need to call an iView in my portal from the Webdynpro application also existing in the portal. Can anyone provide me the method with source code( if possible ) to call an iView existing in the portal from the WebDynP
-
Help with asl files (Apple Script Logs)
I went through my hard drive recently using a program called GrandPerspective. It showed me that i had this huge chunk of files thats taking up almost a quarter of my 232 GB hard drive. I did some google searching and found out that they are logs o
-
Exporting pdf with Markups as JPG???
I can't get my markups to show up on my export to .jpg. My version is Acrobat 7.0 Standard. Please help.
-
Volume Resets to Loud When Starting Up
Each time I startup my computer, the volume is always too loud-usually all but 3 of the blocks in the volume bar are white. Normally it was the same level of volume at which I left it when I shut it down. I have tried resetting my PRAM to resolve the
-
PasswordSync -direct mode normalize Exception
Hey, I am getting this strange exception while resetting AD user's password. Does anyone seen this before? Environment Info: Sun Identity Management 8.1 Active Directory 2008 64-bit. User's resourceAccountId=CN=Xx Yy,OU=OU ou1,OU=OU ou2,OU=OU ou3,OU=