KM Documnet Server
Hi Frnds,
I need small Help, i hope every one knows about this,
I Want maintain KM in separate system,
The Issue is I have to keep lots of PDF files @ production portal to get download for the End users, so this access links(to download) am using KM Navigation iview, up to here every thing is fine, but If I keep all pdf file @ Production server which is not at all gud, So I want keep all this files in other system.
What am think get install KM in other system do the need full changes @ KM and give the access to enduser through Production portal, this is only my thought I donu2019t know is this possible or not .
If yes plz let me how to do r give me few tips or any Docs, ASAP,
It would be very kind of u my frnds
thaQ n Regards,
vita.
Hi ,
ThanQ for ur Reply,
am working with one application , which is Uploading, for that am using KM upload ivew using with this enduser will upload pdf files in to KM (min 20 in a day) then anonymous user will download according to them requirement from Km(for this am using KM Navigation iview).
Above 2 iviews i've changed the par files like i added few parameters to KM Upload iview and changed few things in Layout set, that layout set am using in KM Navigation ivew.
Till this every thing is working fine.
but my Question is if i do change this @ production which is not recommendable coz this 2 view going to use for other application also and second thing is if some one recomended to do this, if end user uplaod all PDF file @ production the may get some kind of problem
So what i am think is i want maintain one Km Document server between production and only KM to do the above changes in KM then give to End-user to Upload file and give permission to Anonymous user to get Download .
Is it possible or not plz let me know if yes plz tell me how to do and give some documents
ThanQ n Regards,
vita
Similar Messages
-
File name structure for picking up X12/EDIFACT documents from an FTP Server
According to some documents, and posts in this forum, the file name for a document retreived from an FTP server by B2B has to be in the following format: %TPName%_%X12 Doc Type%_%X12 Version_1_12345.dat
Why is this format required? Is it possible to obtain all this information for the Header Envelopes of each X12 or even EDIFACT EDI Document?Thanks Ramesh.
I did specify the propery oracle.tip.adapter.b2b.edi.identifyFromTP=Group, but I was still not getting the expected results. Now I played around for a while and now I identified the problem . When I specify the property oracle.tip.adapter.b2b.edi.identifyFromTP=Group, I should use the Group ID when I create the agreement so that the agreement would be identified by using group id. I think I got that working now.
I have one question on the trading partner end point URL in FILE/FTP. When I specify the endpoint URL for a trading partner would that be used to pull the document from the trading partner or push the documents to trading partner?
In my testing even though I specified the end point URL for the trading partner using FILE protocol, when I put the message in that URL ( folder), it did not pull the message from that URL ( this trading partner is the initiator for that EDI 204 message). But when I put the messages into the host partner's end point URL, it got pulled and processed successfully. I am little confused on the usage of trading partner end point URL for the FILE/FTP protocols . Could you explain me little bit or point me to a documnet where it is expalined in detail?
Bala -
Converting binary data into pdf and placing into application server
Hi Friends,
I am able to get PO details in binary format and then using GUI_DOWNLOAD with file type with 'bin' and file name with 'sample.pdf' extension , got PO in pdf format.
But i need to get with pdf extension in application server without using GUI_DOWNLOAD.
Is there any functional modules for it?
With Warm Regards,
Madhu!!!Hi Madhu,
Check this code.
*& Report ZSPOOLTOPDF *
*& Converts spool request into PDF document and emails it to *
*& recipicant. *
*& Execution *
*& This program must be run as a background job in-order for the write *
*& commands to create a Spool request rather than be displayed on *
*& screen *
REPORT zspooltopdf.
PARAMETER: p_email1 LIKE somlreci1-receiver
DEFAULT '[email protected]',
p_sender LIKE somlreci1-receiver
DEFAULT '[email protected]',
p_delspl AS CHECKBOX.
*DATA DECLARATION
DATA: gd_recsize TYPE i.
Spool IDs
TYPES: BEGIN OF t_tbtcp.
INCLUDE STRUCTURE tbtcp.
TYPES: END OF t_tbtcp.
DATA: it_tbtcp TYPE STANDARD TABLE OF t_tbtcp INITIAL SIZE 0,
wa_tbtcp TYPE t_tbtcp.
Job Runtime Parameters
DATA: gd_eventid LIKE tbtcm-eventid,
gd_eventparm LIKE tbtcm-eventparm,
gd_external_program_active LIKE tbtcm-xpgactive,
gd_jobcount LIKE tbtcm-jobcount,
gd_jobname LIKE tbtcm-jobname,
gd_stepcount LIKE tbtcm-stepcount,
gd_error TYPE sy-subrc,
gd_reciever TYPE sy-subrc.
DATA: w_recsize TYPE i.
DATA: gd_subject LIKE sodocchgi1-obj_descr,
it_mess_bod LIKE solisti1 OCCURS 0 WITH HEADER LINE,
it_mess_att LIKE solisti1 OCCURS 0 WITH HEADER LINE,
gd_sender_type LIKE soextreci1-adr_typ,
gd_attachment_desc TYPE so_obj_nam,
gd_attachment_name TYPE so_obj_des.
Spool to PDF conversions
DATA: gd_spool_nr LIKE tsp01-rqident,
gd_destination LIKE rlgrap-filename,
gd_bytecount LIKE tst01-dsize,
gd_buffer TYPE string.
Binary store for PDF
DATA: BEGIN OF it_pdf_output OCCURS 0.
INCLUDE STRUCTURE tline.
DATA: END OF it_pdf_output.
CONSTANTS: c_dev LIKE sy-sysid VALUE 'DEV',
c_no(1) TYPE c VALUE ' ',
c_device(4) TYPE c VALUE 'LOCL'.
*START-OF-SELECTION.
START-OF-SELECTION.
Write statement to represent report output. Spool request is created
if write statement is executed in background. This could also be an
ALV grid which would be converted to PDF without any extra effort
WRITE 'Hello World'.
new-page.
commit work.
new-page print off.
IF sy-batch EQ 'X'.
PERFORM get_job_details.
PERFORM obtain_spool_id.
Alternative way could be to submit another program and store spool
id into memory, will be stored in sy-spono.
*submit ZSPOOLTOPDF2
to sap-spool
spool parameters %_print
archive parameters %_print
without spool dynpro
and return.
Get spool id from program called above
IMPORT w_spool_nr FROM MEMORY ID 'SPOOLTOPDF'.
PERFORM convert_spool_to_pdf.
PERFORM process_email.
if p_delspl EQ 'X'.
PERFORM delete_spool.
endif.
IF sy-sysid = c_dev.
wait up to 5 seconds.
SUBMIT rsconn01 WITH mode = 'INT'
WITH output = 'X'
AND RETURN.
ENDIF.
ELSE.
SKIP.
WRITE:/ 'Program must be executed in background in-order for spool',
'request to be created.'.
ENDIF.
FORM obtain_spool_id *
FORM obtain_spool_id.
CHECK NOT ( gd_jobname IS INITIAL ).
CHECK NOT ( gd_jobcount IS INITIAL ).
SELECT * FROM tbtcp
INTO TABLE it_tbtcp
WHERE jobname = gd_jobname
AND jobcount = gd_jobcount
AND stepcount = gd_stepcount
AND listident <> '0000000000'
ORDER BY jobname
jobcount
stepcount.
READ TABLE it_tbtcp INTO wa_tbtcp INDEX 1.
IF sy-subrc = 0.
message s004(zdd) with gd_spool_nr.
gd_spool_nr = wa_tbtcp-listident.
MESSAGE s004(zdd) WITH gd_spool_nr.
ELSE.
MESSAGE s005(zdd).
ENDIF.
ENDFORM.
FORM get_job_details *
FORM get_job_details.
Get current job details
CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
IMPORTING
eventid = gd_eventid
eventparm = gd_eventparm
external_program_active = gd_external_program_active
jobcount = gd_jobcount
jobname = gd_jobname
stepcount = gd_stepcount
EXCEPTIONS
no_runtime_info = 1
OTHERS = 2.
ENDFORM.
FORM convert_spool_to_pdf *
FORM convert_spool_to_pdf.
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = gd_spool_nr
no_dialog = c_no
dst_device = c_device
IMPORTING
pdf_bytecount = gd_bytecount
TABLES
pdf = it_pdf_output
EXCEPTIONS
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
OTHERS = 12.
CHECK sy-subrc = 0.
Transfer the 132-long strings to 255-long strings
LOOP AT it_pdf_output.
TRANSLATE it_pdf_output USING ' ~'.
CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
ENDLOOP.
TRANSLATE gd_buffer USING '~ '.
DO.
it_mess_att = gd_buffer.
APPEND it_mess_att.
SHIFT gd_buffer LEFT BY 255 PLACES.
IF gd_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
ENDFORM.
FORM process_email *
FORM process_email.
DESCRIBE TABLE it_mess_att LINES gd_recsize.
CHECK gd_recsize > 0.
PERFORM send_email USING p_email1.
perform send_email using p_email2.
ENDFORM.
FORM send_email *
--> p_email *
FORM send_email USING p_email.
CHECK NOT ( p_email IS INITIAL ).
REFRESH it_mess_bod.
Default subject matter
gd_subject = 'Subject'.
gd_attachment_desc = 'Attachname'.
CONCATENATE 'attach_name' ' ' INTO gd_attachment_name.
it_mess_bod = 'Message Body text, line 1'.
APPEND it_mess_bod.
it_mess_bod = 'Message Body text, line 2...'.
APPEND it_mess_bod.
If no sender specified - default blank
IF p_sender EQ space.
gd_sender_type = space.
ELSE.
gd_sender_type = 'INT'.
ENDIF.
Send file by email as .xls speadsheet
PERFORM send_file_as_email_attachment
tables it_mess_bod
it_mess_att
using p_email
'Example .xls documnet attachment'
'PDF'
gd_attachment_name
gd_attachment_desc
p_sender
gd_sender_type
changing gd_error
gd_reciever.
ENDFORM.
FORM delete_spool *
FORM delete_spool.
DATA: ld_spool_nr TYPE tsp01_sp0r-rqid_char.
ld_spool_nr = gd_spool_nr.
CHECK p_delspl <> c_no.
CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
EXPORTING
spoolid = ld_spool_nr.
ENDFORM.
*& Form SEND_FILE_AS_EMAIL_ATTACHMENT
Send email
FORM send_file_as_email_attachment tables it_message
it_attach
using p_email
p_mtitle
p_format
p_filename
p_attdescription
p_sender_address
p_sender_addres_type
changing p_error
p_reciever.
DATA: ld_error TYPE sy-subrc,
ld_reciever TYPE sy-subrc,
ld_mtitle LIKE sodocchgi1-obj_descr,
ld_email LIKE somlreci1-receiver,
ld_format TYPE so_obj_tp ,
ld_attdescription TYPE so_obj_nam ,
ld_attfilename TYPE so_obj_des ,
ld_sender_address LIKE soextreci1-receiver,
ld_sender_address_type LIKE soextreci1-adr_typ,
ld_receiver LIKE sy-subrc.
data: t_packing_list like sopcklsti1 occurs 0 with header line,
t_contents like solisti1 occurs 0 with header line,
t_receivers like somlreci1 occurs 0 with header line,
t_attachment like solisti1 occurs 0 with header line,
t_object_header like solisti1 occurs 0 with header line,
w_cnt type i,
w_sent_all(1) type c,
w_doc_data like sodocchgi1.
ld_email = p_email.
ld_mtitle = p_mtitle.
ld_format = p_format.
ld_attdescription = p_attdescription.
ld_attfilename = p_filename.
ld_sender_address = p_sender_address.
ld_sender_address_type = p_sender_addres_type.
Fill the document data.
w_doc_data-doc_size = 1.
Populate the subject/generic message attributes
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle .
w_doc_data-sensitivty = 'F'.
Fill the document data and get size of attachment
CLEAR w_doc_data.
READ TABLE it_attach INDEX w_cnt.
w_doc_data-doc_size =
( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle.
w_doc_data-sensitivty = 'F'.
CLEAR t_attachment.
REFRESH t_attachment.
t_attachment[] = it_attach[].
Describe the body of the message
CLEAR t_packing_list.
REFRESH t_packing_list.
t_packing_list-transf_bin = space.
t_packing_list-head_start = 1.
t_packing_list-head_num = 0.
t_packing_list-body_start = 1.
DESCRIBE TABLE it_message LINES t_packing_list-body_num.
t_packing_list-doc_type = 'RAW'.
APPEND t_packing_list.
Create attachment notification
t_packing_list-transf_bin = 'X'.
t_packing_list-head_start = 1.
t_packing_list-head_num = 1.
t_packing_list-body_start = 1.
DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
t_packing_list-doc_type = ld_format.
t_packing_list-obj_descr = ld_attdescription.
t_packing_list-obj_name = ld_attfilename.
t_packing_list-doc_size = t_packing_list-body_num * 255.
APPEND t_packing_list.
Add the recipients email address
CLEAR t_receivers.
REFRESH t_receivers.
t_receivers-receiver = ld_email.
t_receivers-rec_type = 'U'.
t_receivers-com_type = 'INT'.
t_receivers-notif_del = 'X'.
t_receivers-notif_ndel = 'X'.
APPEND t_receivers.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = w_doc_data
put_in_outbox = 'X'
sender_address = ld_sender_address
sender_address_type = ld_sender_address_type
commit_work = 'X'
IMPORTING
sent_to_all = w_sent_all
TABLES
packing_list = t_packing_list
contents_bin = t_attachment
contents_txt = it_message
receivers = t_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.
Populate zerror return code
ld_error = sy-subrc.
Populate zreceiver return code
LOOP AT t_receivers.
ld_receiver = t_receivers-retrn_code.
ENDLOOP.
ENDFORM.
Hope this resolves your query.
<b>Reward all the helpful answers.</b>
Regards -
Error: "Express Documnet "Update was terminated" received from author ...
Hi,
While maintaining the Quotation we getting the following problem:
Express Documnet "Update was terminated" received from author ...
Update was terminated
System ID.... SVP
Client....... 400
User..... ABAP
Transaction.. ME47
Update key... 49DCB48654720178E1008000C0A800A1
Generated.... 08.04.2009, 20:03:43
Completed.... 08.04.2009, 20:03:43
Error Info... 00 671: A Update was terminated
The problem here is that once we maintain Price & Tax Code, the system shows the message - Quotation is maintained. But when we re-run the T Code ME47, the system throws the above error.
Pls. note that there is no problem in Development Server with same configuration.
Regards,Hi,
This message usually comes when system is unable to take load and it doesn't update the tables also.
Error is coming because server is unable to allocate resources to this program.
Ur basis consultant and DBA can help u out.
Regards
AM. -
DMS and Content Server in ECC 6
Dear colleagues.
IN ECC 6 there is a internal BSP based content server, that allows store the document in the main SAP Database.
In case of great number of documnets. managed in DMS, can in impact performance of all ECC 6 applications.
Does it make sence to install separate 640 Content server, or maybe install pure NW 2004S server, which wil run inly content sever BSP on separate database?
Regards
VladimirI would always recommend the use of the SAP HTTP Content Server (640 content server). The database on the SAP server itself is impractical for anything other than a dev or qa environment.
-
Oracle 10g on Windows 2008 Server Std. edition
Hi all
We create two partitions C 80 Gb, D 300 GB on HP Server XEON Dual Processor with 6GB installed with Windows 2008 Std. Edition server 32 Bit
We try to install Oracle 10g 32 Bit - We get the following problems
a) By default it should take the highest partion i.e d:\oracle\product etc.
but it takes c:\users\administrator\documnets\oracle\product which is wrong
However we correct it by typing the correct path. Brows does not take to D partition
b) On proceeding further - >Installation aborts and and we get messages
unknowkn , unknown etc. for 3-4 aspects.
Windows 2008 server has service pack 1 installed. We installed Service Pack 2 also but without any benefit. Further we also tried to install after removing all firewall , anitvirus etc. but again of no use.
User connected was administrator while installation of Oracle 10g 32 Windows.
We never get any problem with the same CD /Dump on Windows XP, Windows 2003 Server
Kindly suggest some remedy
Suresh BansalWith due respect i wish to request you to please see below thread:
Re: Oracle 10g
Which is making me confused.
Regards
Girish Sharma
There's a specific version for Windows 2008 (10.2.0.4), ready to download:
http://www.oracle.com/technology/software/products/database/index.html Reply by Werner -
Create PDF based on spool ID and store on content server
Hi all,
I need to create a PDF file from a spool ID and store this in a repository on the content server (archive). How can I do this <b>without creating a physical file on the local workstation</b>?
All helpful answers will be rewarded!
- Mari VirikHi Mari,
This is a sample report pgm which create pdf file from spool id :
PARAMETER: p_email1 LIKE somlreci1-receiver
DEFAULT '[email protected]',
p_sender LIKE somlreci1-receiver
DEFAULT '[email protected]',
p_delspl AS CHECKBOX.
*DATA DECLARATION
DATA: gd_recsize TYPE i.
Spool IDs
TYPES: BEGIN OF t_tbtcp.
INCLUDE STRUCTURE tbtcp.
TYPES: END OF t_tbtcp.
DATA: it_tbtcp TYPE STANDARD TABLE OF t_tbtcp INITIAL SIZE 0,
wa_tbtcp TYPE t_tbtcp.
Job Runtime Parameters
DATA: gd_eventid LIKE tbtcm-eventid,
gd_eventparm LIKE tbtcm-eventparm,
gd_external_program_active LIKE tbtcm-xpgactive,
gd_jobcount LIKE tbtcm-jobcount,
gd_jobname LIKE tbtcm-jobname,
gd_stepcount LIKE tbtcm-stepcount,
gd_error TYPE sy-subrc,
gd_reciever TYPE sy-subrc.
DATA: w_recsize TYPE i.
DATA: gd_subject LIKE sodocchgi1-obj_descr,
it_mess_bod LIKE solisti1 OCCURS 0 WITH HEADER LINE,
it_mess_att LIKE solisti1 OCCURS 0 WITH HEADER LINE,
gd_sender_type LIKE soextreci1-adr_typ,
gd_attachment_desc TYPE so_obj_nam,
gd_attachment_name TYPE so_obj_des.
Spool to PDF conversions
DATA: gd_spool_nr LIKE tsp01-rqident,
gd_destination LIKE rlgrap-filename,
gd_bytecount LIKE tst01-dsize,
gd_buffer TYPE string.
Binary store for PDF
DATA: BEGIN OF it_pdf_output OCCURS 0.
INCLUDE STRUCTURE tline.
DATA: END OF it_pdf_output.
CONSTANTS: c_dev LIKE sy-sysid VALUE 'DEV',
c_no(1) TYPE c VALUE ' ',
c_device(4) TYPE c VALUE 'LOCL'.
*START-OF-SELECTION.
START-OF-SELECTION.
Write statement to represent report output. Spool request is created
if write statement is executed in background. This could also be an
ALV grid which would be converted to PDF without any extra effort
WRITE 'Hello World'.
new-page.
commit work.
new-page print off.
IF sy-batch EQ 'X'.
PERFORM get_job_details.
PERFORM obtain_spool_id.
Alternative way could be to submit another program and store spool
id into memory, will be stored in sy-spono.
*submit ZSPOOLTOPDF2
to sap-spool
spool parameters %_print
archive parameters %_print
without spool dynpro
and return.
Get spool id from program called above
IMPORT w_spool_nr FROM MEMORY ID 'SPOOLTOPDF'.
PERFORM convert_spool_to_pdf.
PERFORM process_email.
if p_delspl EQ 'X'.
PERFORM delete_spool.
endif.
IF sy-sysid = c_dev.
wait up to 5 seconds.
SUBMIT rsconn01 WITH mode = 'INT'
WITH output = 'X'
AND RETURN.
ENDIF.
ELSE.
SKIP.
WRITE:/ 'Program must be executed in background in-order for spool',
'request to be created.'.
ENDIF.
FORM obtain_spool_id *
FORM obtain_spool_id.
CHECK NOT ( gd_jobname IS INITIAL ).
CHECK NOT ( gd_jobcount IS INITIAL ).
SELECT * FROM tbtcp
INTO TABLE it_tbtcp
WHERE jobname = gd_jobname
AND jobcount = gd_jobcount
AND stepcount = gd_stepcount
AND listident <> '0000000000'
ORDER BY jobname
jobcount
stepcount.
READ TABLE it_tbtcp INTO wa_tbtcp INDEX 1.
IF sy-subrc = 0.
message s004(zdd) with gd_spool_nr.
gd_spool_nr = wa_tbtcp-listident.
MESSAGE s004(zdd) WITH gd_spool_nr.
ELSE.
MESSAGE s005(zdd).
ENDIF.
ENDFORM.
FORM get_job_details *
FORM get_job_details.
Get current job details
CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
IMPORTING
eventid = gd_eventid
eventparm = gd_eventparm
external_program_active = gd_external_program_active
jobcount = gd_jobcount
jobname = gd_jobname
stepcount = gd_stepcount
EXCEPTIONS
no_runtime_info = 1
OTHERS = 2.
ENDFORM.
FORM convert_spool_to_pdf *
FORM convert_spool_to_pdf.
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = gd_spool_nr
no_dialog = c_no
dst_device = c_device
IMPORTING
pdf_bytecount = gd_bytecount
TABLES
pdf = it_pdf_output
EXCEPTIONS
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
OTHERS = 12.
CHECK sy-subrc = 0.
Transfer the 132-long strings to 255-long strings
LOOP AT it_pdf_output.
TRANSLATE it_pdf_output USING ' ~'.
CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
ENDLOOP.
TRANSLATE gd_buffer USING '~ '.
DO.
it_mess_att = gd_buffer.
APPEND it_mess_att.
SHIFT gd_buffer LEFT BY 255 PLACES.
IF gd_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
ENDFORM.
FORM process_email *
FORM process_email.
DESCRIBE TABLE it_mess_att LINES gd_recsize.
CHECK gd_recsize > 0.
PERFORM send_email USING p_email1.
perform send_email using p_email2.
ENDFORM.
FORM send_email *
--> p_email *
FORM send_email USING p_email.
CHECK NOT ( p_email IS INITIAL ).
REFRESH it_mess_bod.
Default subject matter
gd_subject = 'Subject'.
gd_attachment_desc = 'Attachname'.
CONCATENATE 'attach_name' ' ' INTO gd_attachment_name.
it_mess_bod = 'Message Body text, line 1'.
APPEND it_mess_bod.
it_mess_bod = 'Message Body text, line 2...'.
APPEND it_mess_bod.
If no sender specified - default blank
IF p_sender EQ space.
gd_sender_type = space.
ELSE.
gd_sender_type = 'INT'.
ENDIF.
Send file by email as .xls speadsheet
PERFORM send_file_as_email_attachment
tables it_mess_bod
it_mess_att
using p_email
'Example .xls documnet attachment'
'PDF'
gd_attachment_name
gd_attachment_desc
p_sender
gd_sender_type
changing gd_error
gd_reciever.
ENDFORM.
FORM delete_spool *
FORM delete_spool.
DATA: ld_spool_nr TYPE tsp01_sp0r-rqid_char.
ld_spool_nr = gd_spool_nr.
CHECK p_delspl <> c_no.
CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
EXPORTING
spoolid = ld_spool_nr.
ENDFORM.
*& Form SEND_FILE_AS_EMAIL_ATTACHMENT
Send email
FORM send_file_as_email_attachment tables it_message
it_attach
using p_email
p_mtitle
p_format
p_filename
p_attdescription
p_sender_address
p_sender_addres_type
changing p_error
p_reciever.
DATA: ld_error TYPE sy-subrc,
ld_reciever TYPE sy-subrc,
ld_mtitle LIKE sodocchgi1-obj_descr,
ld_email LIKE somlreci1-receiver,
ld_format TYPE so_obj_tp ,
ld_attdescription TYPE so_obj_nam ,
ld_attfilename TYPE so_obj_des ,
ld_sender_address LIKE soextreci1-receiver,
ld_sender_address_type LIKE soextreci1-adr_typ,
ld_receiver LIKE sy-subrc.
data: t_packing_list like sopcklsti1 occurs 0 with header line,
t_contents like solisti1 occurs 0 with header line,
t_receivers like somlreci1 occurs 0 with header line,
t_attachment like solisti1 occurs 0 with header line,
t_object_header like solisti1 occurs 0 with header line,
w_cnt type i,
w_sent_all(1) type c,
w_doc_data like sodocchgi1.
ld_email = p_email.
ld_mtitle = p_mtitle.
ld_format = p_format.
ld_attdescription = p_attdescription.
ld_attfilename = p_filename.
ld_sender_address = p_sender_address.
ld_sender_address_type = p_sender_addres_type.
Fill the document data.
w_doc_data-doc_size = 1.
Populate the subject/generic message attributes
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle .
w_doc_data-sensitivty = 'F'.
Fill the document data and get size of attachment
CLEAR w_doc_data.
READ TABLE it_attach INDEX w_cnt.
w_doc_data-doc_size =
( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle.
w_doc_data-sensitivty = 'F'.
CLEAR t_attachment.
REFRESH t_attachment.
t_attachment[] = it_attach[].
Describe the body of the message
CLEAR t_packing_list.
REFRESH t_packing_list.
t_packing_list-transf_bin = space.
t_packing_list-head_start = 1.
t_packing_list-head_num = 0.
t_packing_list-body_start = 1.
DESCRIBE TABLE it_message LINES t_packing_list-body_num.
t_packing_list-doc_type = 'RAW'.
APPEND t_packing_list.
Create attachment notification
t_packing_list-transf_bin = 'X'.
t_packing_list-head_start = 1.
t_packing_list-head_num = 1.
t_packing_list-body_start = 1.
DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
t_packing_list-doc_type = ld_format.
t_packing_list-obj_descr = ld_attdescription.
t_packing_list-obj_name = ld_attfilename.
t_packing_list-doc_size = t_packing_list-body_num * 255.
APPEND t_packing_list.
Add the recipients email address
CLEAR t_receivers.
REFRESH t_receivers.
t_receivers-receiver = ld_email.
t_receivers-rec_type = 'U'.
t_receivers-com_type = 'INT'.
t_receivers-notif_del = 'X'.
t_receivers-notif_ndel = 'X'.
APPEND t_receivers.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = w_doc_data
put_in_outbox = 'X'
sender_address = ld_sender_address
sender_address_type = ld_sender_address_type
commit_work = 'X'
IMPORTING
sent_to_all = w_sent_all
TABLES
packing_list = t_packing_list
contents_bin = t_attachment
contents_txt = it_message
receivers = t_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.
Populate zerror return code
ld_error = sy-subrc.
Populate zreceiver return code
LOOP AT t_receivers.
ld_receiver = t_receivers-retrn_code.
ENDLOOP.
ENDFORM.
<b>and then use archiving object to store the photo i have explained you as an example</b>
You have to create a content repository "A2" or another . You have to follow then next steps :
Create a content repository with storage type FILE archive.
Tcode OAC0
IMG: Basis Components Basis Services SAP Archive Link Basic Settings Maintain content repositories
(Embedded image moved to file: pic00041.pcx)
Swap from display to amend. Select a current entry and 'copy' or just hit 'create'. Then select .
(Embedded image moved to file: pic18467.pcx)
Then fill in the details as below:
Choose a two char name
Set DocArea to be 'Archive Link'
Storage type FILE archive (see Note below on how to get this!)
Choose Version no. 0031
Enter the path name where the photos are to be loaded from. Note this is for loading only. When the photos are linked into the sap system (see later), actually, SAP takes a 'copy' and stores it elsewhere. The path may only need to be entered to 'Arch.path', but entering to all three doesn't seem to hurt.
Note on storage type:
Storage type 'FILE archive' may not be in the dropdown list, and F4 (poss entries) may not work! If this is the case, click on the field Storage type (left mouse button) and then click the right mouse button. Choose Possible entries and a full list of all
possible storage types is shown. FILE archive is entry number 08 and then
Check which content repository (Archive) is linked to document type HRICOLFOTO in object type PREL.
Tcode OAC3
Table TOAOM_C
IMG: Basis Components Basis Services SAP Archive Link Basic Settings Maintain Links
(Embedded image moved to file: pic06334.pcx)
Set the 'Content R' field to the one you've just set in the step above.
Note the Ret.per. field is the retention period for the photo in MONTHS. (so the default is 833 years and 3 months!)
Now you can link the photo to the employee.
<b>Pls reward pts if found usefull :)</b>
Regards
Sathish -
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 SDNers,
I am facing a Performance Issue.
In my Repository I am having 2.15 MIllion reocrds. IN June The memory usage is 25%.
Now in August it is comsuming 39% of memory usage.
Can you anybody tell, How I can analyse and how I can redcue the memory usage of the server.
Thanks
RaviHi Ravi,
Can you please check this documnet for the same:
https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/10c4cd5f-6893-2a10-a2b0-f9cb3cd38a6f&overridelayout=true
Regards,
---Satish -
How to change local draft folder loaction in sharepoint server
Hi,
please help me that how to change local draft folder location for documnet libery in sharepoint server.
because by default when we check out document that documnet store in c:/documnet setting folder in our local drive.
i want to store in another location is this possible if yes then how to.
Please help me.
Thanks in advance.
Regards
Sanjeev TiwariWhile the steps below are fine for Word (and I gather that Excel, Powerpoint have similar steps), what
about Project 2007? We have Project 2007 SP3, and (a) it doesn't have an Office Button like the core Office 2007 products, and (b) the SharePoint Local Drafts folder isn't listed in the Save options. Please advise!
-Joe
Hi,
You can change the location of your local drafts folder where your files are placed while they are
checked out to you in Office system program: click “Microsoft Office Button”>select “Word Options”>select “Save”>in
Offline editing options for document management server files> in Server drafts location
box, type the location on your hard disk where you want to work with checked-out files, or click
Browse and find the location.
This article has detailed steps:
http://office.microsoft.com/en-us/powerpoint/HA102085831033.aspx
Xue-Mei Chang -
Multiple Managed Server for Hyperion Planning in 11.1.2.2
Hi All,
I was going through some online documnetation/new features on Hyperion Planning 11.1.2.2 and came to know that from an architecture standpoint we can now have multiple Planning Managed Servers in a cluster thereby making it truly Highly Available.
I have done a standard deployment and can see a cluster for Planning with a single managed server Planning0 in weblogic admin console.
Can any one please provide me insight/documnetation as what steps needs to be done to create multiple planning managed server in 11.1.2.2.
Thanks
PerwezThanks John.
I was not looking for something which is scaling out Hyperion Planning(via load balancer)/Horizontal clustering.
But was looking for some thing like Vertical clustering(multiple JVMs/nodes of Hyperion Planning within a single planning server) which was applicable in 11.1.1.3.
Came to know that with 11.1.2.2 vertical clustering not more supported.
Thanks -
Oracle Http server 11g, change ports with command-line tool
I have installed the WLS11g webtier's Oracle Http server 11g. I installed the OH 11g only.
The OH is runing fine with ports: non-ssl 7779 and ssl 4444
I want to change the ssl port to 443 such that we can have the url without showing the port as https://hostname.domain/
I have looked up the documnet http://download.oracle.com/docs/cd/E15523_01/core.1111/e10105/ports.htm#CIHJIFHB for "managing port".
it states "You can change the port numbers for some Oracle Fusion Middleware components, using Fusion Middleware Control, Oracle WebLogic Server Administration Console, or *the command line*."
Because I only installed the OH, I have no the Fusion Middleware control , admin console available for making the port change. And I cannot find out how to the command line tool to make the change.
I followed the steps in section 5.3.2.1 Enabling Oracle HTTP Server to Run as Root for Ports Set to Less Than 1024 (UNIX Only) http://download.oracle.com/docs/cd/E15523_01/core.1111/e10105/ports.htm#CIHJEEJH
And I did edit ssl.conf for port change to 443 ---- this is not documented in the document. I think because Oracle wants you to use the console to make the change.
OH is not working after I made the change.
Does anyone know how to use the commend line tool for making the port changes for OH11g?
ThanksHi,
if u want to achieve it using JMX then u can try :
http://middlewaremagic.com/weblogic/?p=613
Using Command Line Option WLST you can do it in ONLINE Mode...like:
Step1). Please run the ". ./setWLSEnv.sh" script to set the CLASSPATH & PATH in the shell prompt.
<b><font color=red>NOTE:</font></b> Run the “setWLSEnv.sh” by adding two DOTs separated by a single space …..before the actual script like following : (use ‘cd’ command to move inside the <BEA_HOME>/wlserver_10.3/server/bin) then run the following command….
*. ./setWLSEnv.sh*
Note: the first DOT represents that set the Environment in the current Shell, AND the second ./ represents execute the script from the current directory.
Step2). Now in the same Shell Prompt please run the WLST Utility like following:
<b><font color=maroon>
java weblogic.WLST
wls:/offline> connect()
Please enter your username [weblogic] : weblogic
Please enter your password [weblogic] : weblogic
Please enter your server URL [t3://localhost:7001] : t3://localhost:7001
Connecting to t3://localhost:7001 with userid weblogic ...
edit()
startEdit()
cd ('Servers/AdminServer')
cmo.setListenPort(9999)
save()
activate()
</font></b>
Now you NEED NOT to restart your Server to reflact these Changes....
The Above JMX Code is also able to do it in Runtime only on the Fly.
Thanks
Jay SenSharma
http://middlewaremagic.com/weblogic (Middleware Magic Is Here) -
Wiki Server - People - suppress for unauthenticated users
With Wiki Server 4 (Server 10.8.1), unauthenticated users hitting the web server's default home page are presented with Wiki Server's default landing page listing:
"My Documents"
"All Activity"
"Wikis"
"People"
If an unauthenticated user tries any of the first three items they get no content, which is great (althouh only the "My Documnets" page prompts for credentials — I think they all should).
However, if they hit the "People" item, it lists (exposes) all of the people on your system.
We don't want a list of our users exposed — we think if you are unauthenticated, you shouldn't see anything when clicking on "People".
Suggestions?******** PLEASE BEFORE DOING ANYTHING COPY THE CONTENT FOLDER OF THE SERVER.APP AND BACK IT UP SOMEWHERE SAFE**************
I have been working on this for weeks..... I understand some people want to be able to share there blogs and people pages but you have to understand some people don't
"People pages" should be set up is the same way as wikis... The owner(s) have the ability to give access to whom they choose. If it is a public "people page" it shows up in search and activity, if it is private it doesn't show up (or only shows up in search results with people that have access). I also feel you should have the ability to choose whether a person has a "people page" or not.
But it is what it is. So I'll step through what I did to make it work for me. You do lose some services but this was my goal....
1. All activity does not work
2. Search does not work
3. tags do not work (I hope to fix this because I want tags....)
4. iPad now brings up the PC version of the wiki server, which eliminates the ability to upload files. Some one with some java script experience maybe able to help us out but at this time I just chose to remove it....
**The other thing to note is the iPad version is completely independent of the PC version (I address this also) so even if you make all these fixes someone with an iPad will still be able to search and gain access to people unauthenticated***
Now all services (including the home page and people) need authentication to gain access.
************** Once complete you need to stop/restart wikis**************
**************I recommend making a copy of the content file of your server app (just incase)**************
Step 1. Set up authentication: (SAVE A COPY ON THE DESKTOP BEFORE EDITING)
1.Edit the controller for the wiki
/Applications/Server.app/Contents/ServerRoot/usr/share/collabd/coreclient/app/co ntrollers/application_controller.rb
2. find the block
helper_method :service_client, :current_user, :current_version, :page_context, :use_inline_webauth, :javascript_includes_for_locale
helper_method :webcal_enabled?, :webmail_enabled?, :entityURL, :iphone, :ipod, :ipad
before_filter :master_before_filter, :block_older_internet_explorer
after_filter :master_after_filter
3. Change to
helper_method :service_client, :current_user, :current_version, :page_context, :use_inline_webauth, :javascript_includes_for_locale
helper_method :webcal_enabled?, :webmail_enabled?, :entityURL, :iphone, :ipod, :ipad
before_filter :master_before_filter, :block_older_internet_explorer
before_filter :ensure_user_is_authenticated
after_filter :master_after_filter
2. Remove search/all activity/tag access (SAVE A COPY TO DESKTOP BEFORE EDITING)
Go to:
/Applications/Server.app/Contents/ServerRoot/usr/share/collabd/coreclient/config /routes.rb
I removed the following lines of code:
match "/updates" => redirect("/wiki/activity")
match "/updates/:path", :to => redirect {|params| "/wiki/activity/#{params[:path]}"}
match "/activity", :to => 'activity#index'
match "/search", :to => 'find#index'
match "/search/:id", :to => 'find#index'
match "/find", :to => 'find#index'
match "/find/:id", :to => 'find#index'
3. Remove activity from menu bars (SAVE A COPY TO DESKTOP BEFORE EDITING)
Go to:
/Applications/Server.app/Contents/ServerRoot/usr/share/collabd/coreclient/config /initializers/register_apple_plugins.rb
I removed these lines of code:
BannerLinks::Project::Activity,
BannerLinks::Project::Documents,
BannerLinks::Project::Tags,
BannerLinks::Person::Activity,
Sources::Activity,
Sources::MyFavorites
4. Redirect iPad to the PC version of the wiki server. (SAVE A COPY TO DESKTOP BEFORE EDITING)
Go to:
Applications/Server.app/Contents/ServerRoot/usr/share/collabd/coreclient/app/con trollers/application_controller.rb
Change:
if ipad and ios5plus
redirect_url = "/wiki/ipad/#route=#{request.fullpath}"
logger.info("Redirecting to #{redirect_url} because we detected an iPad running iOS5+")
redirect_to redirect_url
end
To:(You could probably just remove these lines but I was still troubleshooting at the time)
# if ipad and ios5plus
# redirect_url = "/wiki/ipad/#route=#{request.fullpath}"
# logger.info("Redirecting to #{redirect_url} because we detected an iPad running iOS5+")
# redirect_to redirect_url
# end -
JDBC, Tomcat, J2EE server
I would like to request help with JDBC, Tomcat and the J2EE server.
I have figured out how to connect a servlet running in Tomcat 4.0 to a Filemaker database using Filemaker's JDBC drivers:
Class.forName("com.fmi.jdbc.JdbcDriver");
fmpConnection = DriverManager.getConnection("jdbc:fmpro:http://127.0.0.1:80");
Now I'm trying to use the drivers in a web application (CMP, session facade - much along the lines of Sun's Duke's Bank app) in the free J2EE server downloadable from Sun. When I try to 'Generate Default SQL' in the 'deployment settings' for the CMP that uses the driver (via JNDI), an error dialogue box displays "java.sql.SQL.Exception: Feature Not Supported". No default sql is generated.
This web app works all right with MySQL.
I was wondering if someone out there could offer some advice on how to interpret the error message.
Thanks.Hi,
throw away ur jdbc driver.some standard jdbc methods (required by the
container) may be missing in your jdbc driver. refer vendor
documnets/faq on error messages and its expalanation.stick on the
database and driver which is giving u a satisfacory performance
(seems MySQL is working fine for u !).
HTH,
asharaf -
IS BO Mobile 3.1 Supports BlackBerry Server 4.1.5
HI,
We are at the intial stage of installing the BO Mobile 3.1 Package and
The environment is BlackBerry Server version 4.1.5,
and Database serevr is SQL Server 2005 SP2
As per the supported platforms documnet of BO Mobile, the Blackberry version 4.1.5 is not mentioned
SO please provide me whether the BLackberry server 4.1.5 is supported or not
Also one more question like
Can we connect to DEVELOPEMENT and PRODUCTION CMS Sevres from ONE BlackBerry Server
or i sholud have two seperate server installations
Thanks,
Ramakrishnaany information ?? please let me know
Maybe you are looking for
-
I dont have credit card or debit card and i don't want the pre-paid one on there and i just want itunes cards only. but i made the apple id and now the pre-paid card is on my account. i need help please.
-
Reference to an object by String(ID)?
I am trying to build a glow container/manager in order to turn off and turn on appropriate component. In fact, when a specific component respond to a click, it will be glowed. But if the user click on another specific component, the previous glowed s
-
Running a batch file in a java servlets programme
this is what i have Process p = Runtime.getRuntime().exec("C:\\sync.bat"); Now i need a way for the program to wait until this is finished running. I dont want to print anything until this is done. Is there a way to do this
-
Some question on IDOC (Control Record/Data Record/Status Record)
Dear all, I am new in this area, and would like to enquire some question on this topic. When I view a IDOC via WE02, each of the IDOC record will consist of Control Record/Data Record/Status Record). Questions: I notice that the data records consists
-
My Iphone is stuck on searching mode
Help Help My Iphone 4s went into search mode all of a sudden. Will not make phone calls or get on the net.