Need a create db script to manually create a 10g rman catalog db on unix
Hi, Gurus:
I would like to manually create a rman catalog database (Oracle 10g) on a HP-UX environment. Could anyone share a sql script to do that?
It is going to be used to backup about 15 databases directly to tape and the retention policy is going to be 35 days. How big the database should be?
Thanks in advance.
I can't find any documentation supporting Oracle support's theory.And who writes the Oracle documentation? People in this forum?
You got the "Best Practice" advise.
If you have rman catalog on the same server or on the same database, it is like storing your backup on the same server you took it from.
So, the idea od RMAN catalog is to have your catalog available for any recovery. If you cannot recover your recovery catalog, then you are better off using the controlfile as the repository.
Similar Messages
-
SaveForWeb file size difference of scripted versus manually created
I've got a VB script that uses Save For Web to make thumbnail images from a folder of larger images. Most perplexing is the file size difference of these thumbnails using the script versus making them one by one manually.
The thumbnails are 180x120 pixels. Using Save for Web from the file menu to manually create jpegs (50 quality, optimized, no profile, no progressive) the typical resultant file sizes are 9 to 14 KB. Using the script, the file sizes end up from 20KB to 30KB! Additionally, if the original file has any metadata (caption, contact info, copyright, etc) the manual process strips all the metadata out except the copyright notice, which is fine. Using the script however, all metadata remains intact!!
Can anyone explain why this is occurring? I'd sure like the smallest file size possible. Am I missing a parameter in the ExportSaveForWeb options?
Here's this save section of the code:
Dim sfwOptions As New ExportOptionsSaveForWeb
sfwOptions.Format = psJPEGSave
sfwOptions.Quality = 50
sfwOptions.Optimized = True
sfwOptions.IncludeProfile = False
SaveFile = OutputFolder & ImageNumber & ".jpg"
docRef.Export SaveFile, PsExportType.psSaveForWeb, sfwOptions
Thanks in advance for any insights and guidance.
(BTW, I get a similar file size disparity with javascript too although they end up a tad smaller than the VB script, go figure...)
Tom
PS - The VB Scripting Guide has the wrong name for the Export Document method. It is not "ExportDocument" but rather, simply "Export". Hopefully this tip will save someone hours and hours of frustration and confusion ;-)Eureka, I found the issue! Now pass the ********...
In the options in the Save for Web window (the two small gray arrows next to the Preset drop down list), on one of the panels there is a checkbox to Preserve Metadata. This was unchecked. Apparently, it was not seen as unchecked when running the script yet behaved accordingly when I did a manual save. Checking this box and clicking apply, run a manual save, then unchecking the box and clicking apply appeared to "reset" it to not save metadata (other than copyright info) either when saving manually or then using the script.
Case closed. -
Create a script that can create entire schema with data when run
Hi,
I need to create a script that creates the entire schema on a database when the script is run. the need is that the script should be capable of creating all schema objects with grants and all, including the table data.
The same objective can be achived through export / import.But we don't want to deliver the dump files instead a script which will be executed on a database created with same database stucture of tablespaces etc.
I have serched the net but yet to achive the goal.
Is there any oracle utility / script file that can do this for me ?
Can Oracle import be used to create the same, the way it is used to create index File ?
Please suggest !!
RegardsYou should look at the package dbms_metadata to be able to extract all ddl to recreate a schema. To load the data, you could write scripts that will generate insert statements and spool these to a file (sql generating sql), or you could write scripts that generates a delimited file and use sql loader to load the data into the target system. There are lots of little gotchas in either of these 2 solutions. The biggest 2 right away. 1 - picking a delimiter, 2 - dealing with carriage returns in text data. SQL Developer is able to do some extraction, so before you go writing this stuff yourself, I would check it out to see if it does what you are looking for before you reinvent the wheel.
-
Dear All,
I'm learning to use iCal v.5.0.3 on a Mac Pro (2,1) 2x3 Ghz Quad-Core Intel Xeon, running Lion OSX10.7.5.
I need to find or write a script which, when I create a new iCal timed event, will automatically send me an email and give a screen alert 24 hours before - plus on the morning of the appointment, plus 2 hours beforehand. I'm wondering if such a script exists already or can be adapted. I've searched various forums and am unable to find specific simple instructions on how to create such a thing in Applescript or Automator or whatever. So I've really tried to find out on my own.
Can anyone direct me to a set of instructions? This can't be so hard, can it? To clarify, when I create an "event" with a time (an appointment), I want to hit a button which tells iCal to send me these reminders without my having to set multiple reminders in iCal for each of my new "events".
I'd be most grateful for any advice at all.
Many thanks for taking the trouble to read this. Hope you can set me on the right course. I have no knowledge of Applescript or Automator, but am ready to learn. I am very stupid, so instruction has to be in language comprehensible by a small hamster.
Best wishes,
Harry.Doing a shell script to burn a DVD from a folder (for example) is pretty challenging. The reason is that you need to execute the entire script in one shot, because making a burned disk is a 3 part affair with each part of the operation taking time. The problem with executing separate commands is that Applescript can't wait around until a shell command is finished, while a shell script will not proceed to the next command until the previous command is completed.
Burning disk takes these 3 parts:
1) Create an empty diskimage of your desired size
2) Mount the empty and copy your stuff to it
3) Burn and eject
There may be a shortcut by burning an existing folder but you don't say exactly what you're doing. See the hdutil command for more information:
http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/hdiutil. 1.html -
Creating RFC with out manually creating structure on client place
HI all,
I have developed some RFC to be used by EP applications. In these RFC i am using some structures in IMPORT, EXPORT and TABLE . I want whatever structure and source code i have developed to be copy to some file which i can directly use it to create RFC on my client side while deploying rather than creating manually all the structure and pasting the source code on client side again.programs available in sdn to download program and FM.
-
Need to personalize the Remittance screen making 'Manual Create' Button invisible
Dear All,
I highly appreciate you people responding to my before questions. All are solved/clarified.
Below is the requirement from my friend, I am trying to help him. Please suggest.
In Receivables>Receipts>Remittance screen
Need to disable the 'Manual Create' button, if the user selects the 'Receipt Method' field as 'XX_REC_METH1'.
I tried just to disable the 'Manual Create' without the receipt Method condition, even that also doesnt work.
Version : R12.1.3
Function Name: AR_ARXRWMAI_REMITTANCES
Form Name: ARXRWMAI
Manual Create Button: AR_BATCHES_SUM. REMIT_MANUAL_CREATION <block>.<field>
Receipt Method: AR_BATCHES_SUM.M_REMIT_RECEIPT_METHOD_NAME <block>.<field>
Kindly suggest any work around.
Thanks a lot in advance.
Regards,
Afzal.Hi Afzal,
your question is about an eBusiness Suite form. Our forum here (and the team that moderates it) deals with Fusion Applications questions.
Please repost this question in one of these forums that deal with EBS:
Technology - General Discussion
Financials
Thanks for your understanding.
Regards,
Oliver
Fusion Apps Developer Relations
https://blogs.oracle.com/fadevrel -
Ihave created a script, i need to email in pdf format.
Hi Experts,
There are 2 criterias...
1. criteria
I have created a script, i need to mail it. Please give me a step by step guide to perform it .. . Please give the comments in all the functional module to be used.
Do we have to write a separate program to send email or in the same program. i'll post my program along with this mail. I'm using this program to display report after delivery on that particular date.
REPORT ZREPORTTOEMAIL LINE-SIZE 400.
data : count, i type i.
TABLES : VBFA, "Sales Document Flow
VBAK,
KNA1,
VBKD,
VBAP,
LIPS,
LIKP,
KONP,
KOMK,
KOMP,
zkna1,
konv.
data : l_vbeln like vbfa-vbeln,
l_posnr like vbfa-posnn,
l_KNUMV like vbak-KNUMV,
L_BILL_ITEM LIKE vbfa-posnn ,
l_netwr like vbrp-netwr,
l_MWSBP like vbrp-mwsbp.
DATA: BEGIN OF TKOMV OCCURS 50.
INCLUDE STRUCTURE KOMV.
DATA: END OF TKOMV.
DATA: BEGIN OF TKOMVD OCCURS 50.
INCLUDE STRUCTURE KOMVD.
DATA: END OF TKOMVD.
TYPE-POOLS: SLIS.
DATA: FIELDTAB TYPE SLIS_T_FIELDCAT_ALV,
HEADING TYPE SLIS_T_LISTHEADER,
LAYOUT TYPE SLIS_LAYOUT_ALV,
EVENTS TYPE SLIS_T_EVENT,
REPNAME LIKE SY-REPID,
F2CODE LIKE SY-UCOMM VALUE '&ETA',
G_SAVE(1) TYPE C,
G_EXIT(1) TYPE C,
G_VARIANT LIKE DISVARIANT,
GX_VARIANT LIKE DISVARIANT.
DATA: GT_LIST_TOP_OF_PAGE TYPE SLIS_T_LISTHEADER.
CONSTANTS: FORMNAME_TOP_OF_PAGE TYPE SLIS_FORMNAME VALUE 'TOP_OF_PAGE'.
DATA: BEGIN OF itab occurs 0,
kunnr like likp-kunnr, "ship to party
NAME2 LIKE KNA1-NAME1, "text
ORT01 LIKE KNA1-ORT01, "City
BSTNK LIKE VBAK-BSTNK, "customer P O
BSTDK LIKE VBAK-BSTDK, "date
vbeln like likp-vbeln, "delivery
ernam like likp-ernam, "person
vstel like likp-vstel, "shipping point
vkorg like likp-vkorg, "sales org
lfdat like likp-lfdat, "delivery date
kunag like likp-kunag, "sold to party
NAME1 LIKE KNA1-NAME1, "text
bil_to like VBAK-KUNNR,
name3 like kna1-name1,
traid like likp-traid, "transport/vehicle no
BOLNR LIKE LIKP-BOLNR,
wadat_ist like likp-wadat_ist, "good mov. date
posnr like lips-posnr, "item
matnr like lips-matnr, "material
arktx like lips-arktx, "item text
matkl like lips-matkl, "mat group
werks like lips-werks, "plant
lgort like lips-lgort, "stoage location
lfimg like lips-lfimg, "del qty
MEINS LIKE LIPS-MEINS,
vrkme like lips-vrkme, "sales unit
UMVKZ LIKE LIPS-UMVKZ,
UMVKN LIKE LIPS-UMVKN,
charg like lips-charg, "batch
vgbel like lips-vgbel, "reference doc
mtart like lips-mtart, "mat type
vkbur like lips-vkbur, "sales office
vkgrp like lips-vkgrp, "sales group
vtweg like lips-vtweg, "Distribution Channel
spart like lips-spart, "division
billno like vbak-vbeln,
basic like komvd-kwert,
budat like bkpf-budat,
fin_amt like vbrp-NETWR,
END OF itab.
data : begin of jtab occurs 0,
kunnr like likp-kunnr,
name2 like kna1-name2,
vbeln like likp-vbeln,
zkunnr like zkna1-zkunnr,
zname like zkna1-zname,
end of jtab.
SELECTION-SCREEN SKIP 1 .
SELECTION-SCREEN BEGIN OF BLOCK BLOCK1 WITH FRAME TITLE TEXT-003.
SELECT-OPTIONS : ABC FOR LIKP-WADAT_IST DEFAULT SY-DATUM
NO INTERVALS .
SELECT-OPTIONS : S_MATNR FOR LIPS-MATNR NO INTERVALS .
SELECT-OPTIONS : S_VKORG FOR LIKP-VKORG NO INTERVALS.
SELECT-OPTIONS : S_VSTEL FOR LIKP-VSTEL NO INTERVALS.
SELECT-OPTIONS : S_VKBUR FOR LIKP-VKBUR NO INTERVALS.
SELECT-OPTIONS : S_VKGRP FOR LIPS-VKGRP.
SELECT-OPTIONS : S_SPART FOR LIPS-SPART.
SELECT-OPTIONS : S_VBELN3 FOR LIKP-VBELN.
SELECT-OPTIONS : S_MATKL FOR LIPS-MATKL NO INTERVALS,
S_KUNAG FOR LIKP-KUNAG.
SELECTION-SCREEN END OF BLOCK BLOCK1.
select * from likp into corresponding fields of itab
WHERE WADAT_IST IN ABC
AND VBELN IN S_VBELN3
AND VKORG IN S_VKORG
and VSTEL in S_VSTEL
AND VKBUR IN S_VKBUR
and lfart like 'Z%'
AND VBTYP = 'J'
AND KUNAG IN S_KUNAG.
select * from lips into corresponding fields of itab
WHERE VBELN = ITAB-VBELN
AND MATNR IN S_MATNR
AND MATKL IN S_MATKL
AND VKBUR IN S_VKBUR
AND VKGRP IN S_VKGRP
AND SPART IN S_SPART.
IF ITAB-VRKME = 'RM' AND ITAB-MEINS = 'KG'.
ITAB-LFIMG = ITAB-LFIMG * ( ITAB-UMVKZ / ITAB-UMVKN ).
ITAB-VRKME = 'KG'.
ENDIF.
SELECT SINGLE BSTNK BSTDK INTO (ITAB-BSTNK,ITAB-BSTDK) FROM VBAK
WHERE VBELN = ITAB-VGBEL.
SELECT SINGLE NAME1 ORT01 FROM KNA1 INTO (ITAB-NAME2,ITAB-ORT01)
WHERE KUNNR = ITAB-KUNNR.
SELECT SINGLE NAME1 FROM KNA1 INTO ITAB-NAME1
WHERE KUNNR = ITAB-KUNAG.
*select single vbeln POSNN into (itab-billno,L_BILL_ITEM) from vbfa where VBELV = itab-vbeln
*and POSNV = itab-posnr and VBTYP_N in ('M','U').
select vbeln POSNN from vbfa up to 1 rows into (itab-billno,L_BILL_ITEM) where VBELV = itab-vbeln
and POSNV = itab-posnr and VBTYP_N in ('M','U') order by vbeln DESCENDING .
endselect.
select single * from vbfa where vbelv = itab-billno and posnv = l_bill_item and
vbtyp_n = 'N'.
if sy-subrc = 0.
clear : itab-billno, l_bill_item.
endif.
select single budat from bkpf into itab-budat where xblnr = itab-billno and
blart = 'RV'.
select single NETWR MWSBP into (l_netwr, l_MWSBP) from vbrp where vbeln = itab-billno
and posnr = l_bill_item.
itab-fin_amt = l_netwr + l_MWSBP.
clear : l_netwr, l_MWSBP.
select single kunnr from vbpa into itab-bil_to where
vbeln = itab-BILLNO and PARVW = 'RE'.
select single name1 into itab-name3 from kna1
where kunnr = itab-bil_to.
*select single VBELV POSNV from vbfa into (l_vbeln,l_posnr)
*where VBELN = itab-vbeln and
*POSNN = itab-posnr and VBTYP_N = 'J'.
*select single VBELN POSNN from vbfa into (l_vbeln,l_posnr)
*where VBELV = itab-vbeln and
*POSNV = itab-posnr and VBTYP_N = 'M'.
select VBELN POSNN from vbfa up to 1 rows into (l_vbeln,l_posnr)
where VBELV = itab-vbeln and
POSNV = itab-posnr and VBTYP_N = 'M' order by vbeln DESCENDING.
endselect.
select single * from vbfa where vbelv = l_vbeln and posnv = l_posnr and
vbtyp_n = 'N'.
if sy-subrc = 0.
clear : l_vbeln, l_posnr.
endif.
if sy-subrc = 0.
*select single KNUMv into l_KNUMv from vbak where vbeln = l_vbeln
select single KNUMv into l_KNUMv from vbRk where vbeln = l_vbeln
select * from konv where knumv = l_knumv and kposn = l_posnr and
kschl in ('ZR00','ZR01','ZR02','ZOBC').
itab-basic = itab-basic + KONV-KBETR.
ENDSELECT.
else.
*select single KNUMv into l_KNUMv from ekko where ebeln = itab-vgbel.
*select single KBETR from konv into itab-basic where knumv = l_knumv
*and kposn = itab-posnr and kschl = 'P101'.
select single KNUMv into l_KNUMv from VBRK where VBELN = itab-BILLNO.
select * from konv where knumv = l_knumv and kposn = l_BILL_ITEM AND
kschl in ('ZR00','ZR01','ZR02','ZOBC').
itab-basic = itab-basic + KONV-KBETR.
ENDSELECT.
*zkna1-zkunnr = itab-kunnr.
*insert zkna1.
endif.
clear : l_vbeln, L_BILL_ITEM, L_POSNR.
APPEND ITAB.
clear : itab-basic, itab-lfimg.
ENDSELECT.
clear : itab.
ENDSELECT.
<b>perform zscript.</b>
*& Form zscript
text
--> p1 text
<-- p2 text
FORM zscript .
CALL FUNCTION 'OPEN_FORM'
EXPORTING
APPLICATION = 'TX'
ARCHIVE_INDEX =
ARCHIVE_PARAMS =
DEVICE = 'PRINTER'
DIALOG = 'X'
FORM = 'ZREPORT2EMAIL'
LANGUAGE = SY-LANGU
OPTIONS =
MAIL_SENDER =
MAIL_RECIPIENT =
MAIL_APPL_OBJECT =
RAW_DATA_INTERFACE = '*'
SPONUMIV =
IMPORTING
LANGUAGE =
NEW_ARCHIVE_PARAMS =
RESULT =
EXCEPTIONS
CANCELED = 1
DEVICE = 2
FORM = 3
OPTIONS = 4
UNCLOSED = 5
MAIL_OPTIONS = 6
ARCHIVE_ERROR = 7
INVALID_FAX_NUMBER = 8
MORE_PARAMS_NEEDED_IN_BATCH = 9
SPOOL_ERROR = 10
CODEPAGE = 11
OTHERS = 12
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LOOP AT ITAB.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'MANU'
FUNCTION = 'SET'
TYPE = 'BODY'
WINDOW = 'MAIN'
IMPORTING
PENDING_LINES =
EXCEPTIONS
ELEMENT = 1
FUNCTION = 2
TYPE = 3
UNOPENED = 4
UNSTARTED = 5
WINDOW = 6
BAD_PAGEFORMAT_FOR_PRINT = 7
SPOOL_ERROR = 8
CODEPAGE = 9
OTHERS = 10
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDLOOP.
CALL FUNCTION 'CLOSE_FORM'
IMPORTING
RESULT =
RDI_RESULT =
TABLES
OTFDATA =
EXCEPTIONS
UNOPENED = 1
BAD_PAGEFORMAT_FOR_PRINT = 2
SEND_ERROR = 3
SPOOL_ERROR = 4
CODEPAGE = 5
OTHERS = 6
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " zscript
The above one is first criteria just to understand how to send mail to the customers.
<b>Second criteria</b> is i have to send the mail to the particular customer with only their details, the process should continue until it sends to all the customers with their details for that particular date.
Please help me out.
I have seen so many posts in the sdn but not able to understand the functional modules, how they declare that and how does it works...
Please provide me a good material to understand the functional module and to declare them.
Please solve this query i'll reward them with very good points.
Thanks in advance.
A.Rafique.Hi babar haroon,
Thanks for the link.....
I went through that link, i created smart form but i was not able to get the results because the pgm gets terminated after executing. I'll show u the code, the code is active. Please check out and tell me if i have missed anything in the code...
*& Report ZZZ_TEST3
REPORT ZZZ_TEST3.
*internal table declarations
data: i_otf type itcoo occurs 0 with header line,
i_tline type table of tline with header line,
i_receivers type table of somlreci1 with header line,
i_record like solisti1 occurs 0 with header line,
*Objects to send mail.
i_objpack like sopcklsti1 occurs 0 with header line,
i_objtxt like solisti1 occurs 0 with header line,
i_objbin like solisti1 occurs 0 with header line,
i_reclist like somlreci1 occurs 0 with header line,
*workarea declaration.
w_objhead TYPE soli_tab,
w_ctrlop TYPE ssfctrlop,
w_compop TYPE ssfcompop,
w_return TYPE ssfcrescl,
w_doc_chng typE sodocchgi1,
w_data TYPE sodocchgi1,
w_buffer TYPE string,"To convert from 132 to 255
Variables declarations
v_form_name TYPE rs38l_fnam,
v_len_in LIKE sood-objlen,
v_len_out LIKE sood-objlen,
v_len_outn TYPE i,
v_lines_txt TYPE i,
v_lines_bin TYPE i.
call function 'SSF_FUNCTION_MODULE_NAME'
*call function '/1BCDWB/SF00000105'
exporting
formname = 'ZZZ_TEST2'
importing
fm_name = v_form_name
exceptions
no_form = 1
no_function_module = 2
others = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
w_ctrlop-getotf = 'X'.
w_ctrlop-no_dialog = 'X'.
w_compop-tdnoprev = 'X'.
CALL FUNCTION '/1BCDWB/SF00000105'
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB = itab1
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO = wa
JOB_OUTPUT_OPTIONS =
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION v_form_name
EXPORTING
control_parameters = w_ctrlop
output_options = w_compop
user_settings = 'X'
IMPORTING
job_output_info = w_return
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
i_otf[] = w_return-otfdata[].
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
IMPORTING
bin_filesize = v_len_in
TABLES
otf = i_otf
lines = i_tline
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Convert PDF from 132 to 255.
LOOP AT i_tline.
Replacing space by ~
TRANSLATE i_tline USING '~'.
CONCATENATE w_buffer i_tline INTO w_buffer.
ENDLOOP.
Replacing ~ by space
TRANSLATE w_buffer USING '~'.
DO.
i_record = w_buffer.
Appending 255 characters as a record
APPEND i_record.
SHIFT w_buffer LEFT BY 255 PLACES.
IF w_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
Refresh: i_reclist,
i_objtxt,
i_objbin,
i_objpack.
clear w_objhead.
Object with PDF.
i_objbin[] = i_record[].
DESCRIBE TABLE i_objbin LINES v_lines_bin.
Object with main text of the mail.
i_objtxt = 'Find attached the output of the smart form.'.
APPEND i_objtxt.
DESCRIBE TABLE i_objbin LINES v_lines_txt.
i_objtxt = 'Regards,'.
APPEND i_objtxt.
i_objtxt = 'J.Jayanthi'.
APPEND i_objtxt.
DESCRIBE TABLE i_objtxt LINES v_lines_txt.
Document information.
w_doc_chng-obj_name = 'Smartform'.
w_doc_chng-expiry_dat = sy-datum + 10.
w_doc_chng-obj_descr = 'Smart form output'.
w_doc_chng-sensitivty = 'F'. "Functional object
w_doc_chng-doc_size = v_lines_txt * 255.
Pack to main body as RAW.
Obj. to be transported not in binary form
CLEAR i_objpack-transf_bin.
Start line of object header in transport packet
i_objpack-head_start = 1.
Number of lines of an object header in object packet
i_objpack-head_num = 0.
Start line of object contents in an object packet
i_objpack-body_start = 1.
Number of lines of the object contents in an object packet
i_objpack-body_num = v_lines_txt.
Code for document class
i_objpack-doc_type = 'RAW'.
APPEND i_objpack.
Packing as PDF.
i_objpack-transf_bin = 'X'.
i_objpack-head_start = 1.
i_objpack-head_num = 1.
i_objpack-head_num = 0.
i_objpack-body_start = 1.
i_objpack-body_num = v_lines_bin.
i_objpack-doc_type = 'PDF'.
i_objpack-obj_name = 'Smartform'.
CONCATENATE 'Smartform_output' '.pdf'
INTO i_objpack-obj_descr.
i_objpack-doc_size = v_lines_bin * 255.
APPEND i_objpack.
Document information.
CLEAR i_reclist.
e-mail receivers.
i_reclist-receiver = '[email protected]'.
i_reclist-receiver = '[email protected]'.
i_reclist-express = 'X'.
i_reclist-rec_type = 'U'. "Internet address
APPEND i_reclist.
Sending mail.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = w_doc_chng
put_in_outbox = 'X'
TABLES
packing_list = i_objpack
object_header = w_objhead
contents_hex = i_objbin
contents_txt = i_objtxt
receivers = i_reclist
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.
Please reply me back, it is very urgent..
Thanks and regards.
A.Rafique -
Need steps to create ant scripts for publishing and deploying projects.
Need steps to create ant scripts for publishing and deploying projects.
Have got ant, Oracle BPM Enterprise WL edition installed , Need to know what are the other configurations to be done.
Any working example would help me to understand, please do mail me at [email protected]
Thanks in advance.
-SreeSreekant,
Please find the build file to publish and deploy.
<project name="deployProject"
xmlns:fuego="antlib:fuego.tools.ant.enterprise"
xmlns:fuego.j2ee="antlib:fuego.tools.ant.j2ee" default = "publish">
<property file="./Properties/fuego_deploy.properties"/>
<fuego:passport id="fuego.passport"
directoryid="${fuego.directoryid}"
preset="engine" />
<target name="publish" description="Publish and deploy processes" depends = "takeInputs">
<!-- Open a session to the Oracle BPM directory -->
<fuego:session
passportref="fuego.passport"
verbose="true"
properties="${fuego.basedir}/conf/directory.xml"
haltonerror="true" >
<!-- Publish processes -->
<fuego:publish fpr="${fuego.project.name}"
deploy="true"
engine="${fuego.engineName}"
importdata = "${fuego.importdata}"
automaproles="${fuego.automaproles}"
automapbuspars = "${fuego.automapbuspars}"
automapvars="${fuego.automapvars}"
automapconfigs = "${fuego.automapconfigs}">
</fuego:publish>
</fuego:session>
</target>
<target name= "takeInputs" >
<input
message="Please enter admin-username:"
addproperty="fuego.participant"
/>
<input
message="Please enter admin-password:"
addproperty="fuego.password"
>
</input>
</target>
</project>
and find the properties I have used..
fuego.basedir=C:\OraBPMEnterpriseHome
fuego.directoryid=default
fuego.engineName = bpmengine
fuego.project.name = E:/antExamples/Project/CommonUtilities
# If the below property is true then ant script imports data from the project, as defined in Studio.
# This includes importing:
# •Holiday and Calendar rules
# •Organizational Units
# •Roles
# •Resource configurations
# •External Variables
fuego.importdata = true
#If the below property is true ant script automatically map abstract roles to real ones with the same name.
fuego.automaproles=true
#If the below property is true ant script automatically map business parameter variable names (as defined in the project design) to an business parameter variable id with the same name (as defined in the Fuego Enterprise directory).
fuego.automapbuspars = true
#If the below property is true ant script automatically map external variable names (as defined in the project design) to an external variable id with the same name (as defined in the Fuego Enterprise directory).
fuego.automapvars=true
#If the below property is true ant script automatically map External Resources configurations (as defined in the project design) to real Configurations with the same name (as defined in the Fuego Enterprise directory).
fuego.automapconfigs = true -
Need to create a script.
Hi All,
I need to create a view script based on the following assumptions.
Table = TABLENAME
View = PUB_TB_TABLENAME_V
So, for the table COLUMNFORMAT I have created a view named PUB_TB_COLUMNFORMAT_V. The example view is below.
CREATE OR REPLACE VIEW PUB_TB_COLUMNFORMAT_V(
columnformatid,
columnid,
displayname,
datafield,
columntypeid,
format,
style,
datalength,
isxmlcolumn,
isvisible,
hideblankflag,
hotspotkey) AS
SELECT cf.columnformatid,
cf.columnid,
cf.displayname,
cf.datafield,
cf.columntypeid,
cf.FORMAT,
cf.style,
cf.datalength,
cf.isxmlcolumn,
cf.isvisible,
cf.hideblankflag,
cf.hotspotkey
FROM columnformat cf;
Can we generate a scrpit, which can generate a scripts against one schema . Though I've managed to create a scripts, but not able to generae the follwing part
Table = TABLENAME
View = PUB_TB_TABLENAME_V
So, for the table COLUMNFORMAT I have created a view named PUB_TB_COLUMNFORMAT_V. The example view is below.
CREATE OR REPLACE VIEW PUB_TB_COLUMNFORMAT_V(
columnformatid,
columnid,
displayname,
datafield,
columntypeid,
format,
style,
datalength,
isxmlcolumn,
isvisible,
hideblankflag,
hotspotkey) AS
SELECT cf.columnformatid,
cf.columnid,
cf.displayname,
cf.datafield,
cf.columntypeid,
cf.FORMAT,
cf.style,
cf.datalength,
cf.isxmlcolumn,
cf.isvisible,
cf.hideblankflag,
cf.hotspotkey
FROM columnformat cf;
The query, I've used --
select DISTINCT table_name,' CREATE OR REPLACE VIEW PUB_TB_'||table_name||'_V ('|| data_utils.column_list(''||table_name||'',0,0,NULL,0,NULL,NULL,0) ||'
) AS SELECT '||data_utils.column_list(''||table_name||'',0,0,NULL,0,NULL,NULL,0)||' from '||table_name||' ;'
from ALL_TAB_COLUMNS A JOIN TAB@EPC_TARGET B ON A.TABLE_NAME=B.TNAME AND B.TABTYPE='TABLE' WHERE OWNER=common_utils.schema_name;
hare krishna
AlokHi,
Please see metal ink Note:123851.1 ,this will provide u idea how to do your required script.
Regards
faheem -
User Exit manually created, needs to be activated
Dear All,
I am a PP consultant and in the absence of ABAPER here needs to do the following. Please provide your inputs.
For MRP run material selection, I have created a user exit manually in PP-config. The help of this transaction says "User exist must be activated in the SAP externsion concept. The name of the extension is M61X0001."
Please let me know what is this, where do i activate this and what are the codes that i write to choose the materials having certain MRP controller(MARC-DISPO).
Thanks in advance.
Sumeet
P.S. > The config is done in SPRO>PRODUCTION>MATERIAL REQ.PLANNING>PLANNING-->uSER eXIT.material selection for planning run.Hi Summet,
See sumeet, u see the definition of user exit in Tcode SMOD.
So goto Tcode SMOD->M61X0001. Once u enter into it, click on components on application toolbar. Then u can find 2 Function modules.
EXIT_SAPLM61C_001
EXIT_SAPMM61X_001
Goto Tcode CMOD to implement the user exit. So goto Tcode CMOD->ZM61X0001->create and add M61X0001 to ur implementation.
Now write the required code in these function modules, and then click on Activate Project to activate the user exit.
Try this and get back to me incase of anu queries.
Dont forget to reward points if found useful.
Thanks,
Satyesh -
Can not create a script manually
I notice that when using Home>SQL Workshop>SQL Scripts>Script Editor,
the Script Editor does not allow me to manually type a script or paste a script.
I must create the script externally and upload it into APEX.
Is this correct?
I am using
Apex version 3.2.1.00.1.0,
Oracle 11g on windowsYes, I disconnect using Internet Explorer and connected using Firefox and now I can enter DDL in the Script Editor. However, there is still a problem under the Home>SQL Workshop> SQL Scripts. Under SQL scripts the options are Create, Upload, View, etc.
If I click the Create options, I get the following messages:
“Session state protection violation: This may be caused by manual alteration of a URL containing a checksum or by using a link with an incorrect or missing checksum. If you are unsure what caused this error, please contact the application administrator for assistance.”
All the other options work with no problem. -
Manually creating DB with scripts question
As mentioned in admin guide, these are the steps to manually creating DB
Step 1: Decide on Your Instance Identifier (SID)
Step 2: Establish the Database Administrator Authentication Method
Step 3: Create the Initialization Parameter File
Step 4: Connect to the Instance
Step 5: Create a Server Parameter File (Recommended)
Step 6: Start the Instance
Step 7: Issue the CREATE DATABASE Statement
I am not sure about step2, can somebody send me quick command what to do here, which are mentioned in
http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14231/create.htm#i1008823C:\Documents and Settings\Ar>set ORACLE_SID=test1
C:\Documents and Settings\Ar>orapwd FILE=test1.pwd
PASSWORD=test ENTRIES=30
= your password file should be named
= %ORACLE_HOME%\database\orapwORACLE_SID.ora
C:\Documents and Settings\Ar>sqlplus /nolog
SQL*Plus: Release 9.2.0.1.0 - Production on Wed May 2
10:59:01 2007
Copyright (c) 1982, 2002, Oracle Corporation. All
rights reserved.
SQL> connect sys/test as sysdba;
ERROR:
ORA-12560: TNS:protocol adapter error
= First, point to your instance, set the ORACLE_SID environment
= variable from the OS:
= set ORACLE_SID=YourInstanceName
= Next, make sure you use proper authentication method.
Now how can i run creat database scripts here???= Just before creating your database, in windows, you must first create the service, with the oradim command, this command creates the password file automatically:
oradim -new -sid YourInstanceName -intpwd YourSYSDBAPassword -startmode A
= Once you have been properly authenticated, and you had made sure everything is OK, issue your CREATE DATABASE command.
= I suggest you to use the dbca to create the scripts, this is the easiest way to create the create database scripts, and the least prone to human error. -
Need to manually create shadow instance
Hi dear Gurus,
I lost my system during downtime phase while updating to EHP7. I'm able to restore Database and SUM directory, but shadow instance directory is lost whith no way to restore it. Is it possible to manually create it?
Your help will be rewarded.
RegardsBest solution is to restore the system before downtime. Your message is not detailed.
You mentioned i lost my system. That mean your system just crashed or wiped out ?
What type of db restore you performed , cold or point in time ? etc.
Did you fired up SUM and tried to click next or repeat etc ?
Thanks,
Hardeep -
Help with validation on a manually created tabbed form
version 4.1.1.00.23
Hello,
I have a manually created tabbed form that I'm having trouble creating validation on.
The page is a Resource Staffing page where PM's can forecast the Resources that will be needed for various projects. The forecast can be for 12 - 18 months.
The requirement is to display a message to the user if they are trying to save a row without forecasting any time. It's possible they may not know how may Resources or the length of time needed when the row is created. If they respond that they want to save the row without time the MRU will create the record. If they answer that they do not want to save the row they are returned to the page without loss of information.
The month fields on the page are defaulting to 0 (zero).
I've updated the Save button to Redirect to URL and in the URL Redirect I have: javascript:confirmNoTimeSaved()
The javascript:
[code]
function confirmNoTimeSaved()
var arr_jan,arr_feb,arr_mar,arr_apr,arr_may,arr_jun,arr_jul,arr_aug,arr_sep,arr_oct,arr_nov,arr_dec = new Array();
arr_jan = document.wwv_flow.f07;
arr_feb = document.wwv_flow.f08;
arr_mar = document.wwv_flow.f09;
arr_apr = document.wwv_flow.f10;
arr_may = document.wwv_flow.f11;
arr_jun = document.wwv_flow.f12;
arr_jul = document.wwv_flow.f13;
arr_aug = document.wwv_flow.f14;
arr_sep = document.wwv_flow.f15;
arr_oct = document.wwv_flow.f16;
arr_nov = document.wwv_flow.f17;
arr_dec = document.wwv_flow.f18;
for(i = 0; i < arr_jan.length; i++)
if(arr_jan[i].value == 0 && arr_feb[i].value == 0 && arr_mar[i].value == 0
&& arr_apr[i].value == 0 && arr_may[i].value == 0 && arr_jun[i].value == 0
&& arr_jul[i].value == 0 && arr_aug[i].value == 0 && arr_sep[i].value == 0
&& arr_oct[i].value == 0 && arr_nov[i].value == 0 && arr_dec[i].value == 0)
txt = 'You have no time assigned to your Forecast. Do you want to save this Forecast without time entered?' + '\n' + '\n' + '"Yes" to save the Forecast.' + '\n' + '"No" to return with no changes.';
caption = 'Confirm Saving With No Time';
vbMsg(txt,caption)
switch (isChoice)
case 6:
doSubmit('SUBMIT');
break;
case 7:
doSubmit('CANCEL2');
break;
else
doSubmit('SUBMIT');
break;
</script>
<script language="VBScript">
<!--
//Yes = 6
//No = 7
Function vbMsg(isTxt,isCaption)
testVal = MsgBox(isTxt,vbYesNo,isCaption)
isChoice = testVal
End Function
//-->
</script>
[/code]
The 'CANCEL2' is just a Branch I'm using to branch back to the page without clearing Cache. I do have 'Cancel' button on the page and the Branch created for that clears the Cache.
While debugging the javascript I get into the VB Script on the testVal = MsgBox(isTxt,vbYesNo,isCaption) line and the browser crashes.
Can someone help with this requirement?
What additional information can I provide?
Thanks,
JoeThe code above is my attempt at this requirement, however, the browser crashes when it gets to the VBScript on the MsgBox call. I don't have to use this approach. Does someone have an idea how to solve this?
Thanks,
Joe -
How to Create a Script in Greasemonkey?
Hello all, I have a couple of things.
One is a rather chronic problem with scrolling on Tumblr (pages with backgrounds that do not scroll have varying degrees of choppiness/stalling scrolling. Just look at my past questions to see a more detailed description), and the other is a script that fixes the problem (again, see past question replies for the script).
While it is a very small nitpick, I would like to know how to place that script in Greasemonkey, since it is a bit annoying to have to do it manually for every page that requires the script.
I tried looking at Greasemonkey to see if it was something I could do myself, but I decided I would go to those who (might) know, because with my luck I would mess up something crucial.
So...my two questions:
1) How does one make a Greasemonkey script? Or more like, how would one insert an existing script into Greasemonkey?
2) Is there a way to make said script automatically affect only the pages that would need it (for example, only tumblr pages with non-scrolling backgrounds? Since those with no/scrolling backgrounds are fine), or would I need to manually enter in the pages in question as I encountered them?'''Edit: I read too fast. The rule in this thread is for content, and therefore goes into the user<u>Content</u>.css file. Please ignore this post for purposes of the above rule.'''
Here's how to manually create/edit the userChrome.css file:
(1) Find (or create) the chrome folder. This is a folder in your currently active Firefox settings folder, also known as your Firefox profile folder.
* Open the your profile folder using: Help > Troubleshooting Information
** Windows: Click the "Show Folder" button
** Mac: Click the "Show in Finder" button
* Check for a chrome folder.
** If it exists: double-click it to open it.
** If it does not exist: create a chrome folder, then double-click it to open it.
(2) Create or Edit a userChrome.css file by adding your style rule.
''Note: spelling and capitalization are crucial. If Windows does not display file extensions such as .css, .js, .doc, and so forth, change that setting as described in this article: [http://support.microsoft.com/kb/865219].''
* Check for a userChrome.css file in the chrome folder.
** If it exists: open it in a text editor. Check that it has this first line:<br><br>@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);<br><br>Then paste in the new style rule (not duplicating the above line).<br>
** If it does not exist: create a new text file named userChrome.css. (In Windows, right-click and choose New > Text Document and change the name to userChrome.css, making sure the file type ends up being CSS file and not Text Document.) Then see the previous step for what to place in the file.
The rule change should take effect the next time you start Firefox.
Note: I find it easier to use the Stylish extension, but if you don't want yet another extension, then userChrome.css makes the most sense.
Maybe you are looking for
-
Have moved to the UK from the US and want to use up credit on existing account. I no longer have those US card details, so whilst I have credit it is asking me for card details I no longer have, There is money to be spent, any suggestions? Also am
-
How to merge documents in Pages
Hi, My question is how do you merge documents the way you do in Microsoft Word 2008. I have two pages document I want to merge together without having to do it manually through copy and paste. I assume if there is way to merge documents in pages I co
-
Ipad 2 touchscreen unresponsive in certain areas
1 month old Ipad2. I made a video to explain the problem: http://www.youtube.com/watch?v=797bfjbEEi8 I have done a hard reset. Still doesnt solve it.
-
Installing Counter on Web Gallery Page(s)
Is it possible to install a 'counter' on iPhoto 08's new Web Gallery pages -if so how does one go about doing that?
-
hey everyone, im having some trouble with my imac/mbox/garageband. Sounds will play out of my studio monitors through the mbox, but when i go to record, it records a really loud hiss/static. Can anyone please help me out?