Pdf conversion help needed
I just keep getting re-reouted to purchase- can anyone walk me through the steps?
Hi njmtngirl,
Did you confirm your subscription via the 'Welcome' email you received? There is a link contained within.
Let me know!
Kind regards, Stacy
Similar Messages
-
11i to r12 Conversion - help needed
Hi
My client is doing re-implementation of r12 and migrating from 11i to r12. I need help particularly on conversions side. The client is a SaaS company. they are considering to bring open and history transactions and applied/unapplied receipts to r12 AR.
- how to migrate revenue scheduled open/closed invoices from 11i to r12 since rev schedules for a SaaS company is expected to be long terms. and how to make sure that rev schedules are correct upon migration to r12??
- for partially paid invoices how to make sure that the same partially paid amount reflects in r12 upon conversion? can a negative line amount equalling to paid amount be a possible solution??
- upon migration do the closed invoices have to be converted as open and receipts re-applied after migration in r12 or they can be brought in as-is with status closed?
- if customer paid for an invoice using a credit card in 11i and upon migration it came to notice that the credit card is no longer used by the customer so how to re-apply the same receipt in r12 which was applied in 11i using that credit card. do we have to enable it in r12 just for closing the invoice? what could be possibilities?
please anyone if can answer would be very helpful
Thanks
-MSIt depends on the dpi. Usually 72dpi = 72 pixels per inch.
1000/72 = 13,88888 inch
1 inch = 25,4 mm
13,88888 * 25,4 = 352,7777 mm
You do the arithmatic with a calculator.
To do the same with pictures, you can do it in any image editor. Even Preview.app :
!http://www.wyodor.net/_Discussions/PreviewResize.png! -
Arabic Character set conversion-help needed
We have our main database running in 10g (Solaris o/s) & planning to move these to RAC 11g.
One of our old oracle DB(8.0.5)/solaris, which is not used till recently need to upgrade to 10g Rel2.
I know Supported direct upgrade 8.0.6/8.1.7/9i -> 10g
Current DB: 8.0.5 (Character Set: AR8ISO8859P6)
Target DB : 10g Rel 2 (Character Set: AR8MSWIN1256)
I am thinking to go the following way by using exp/imp
8.0.5(AR8ISO8859P6) -> 8.1.7(AR8ISO8859P6) -> 10G(AR8MSWIN1256)
OR
8.0.5(AR8ISO8859P6) -> 8.1.7(AR8MSWIN1256) -> 10G(AR8MSWIN1256)
please advice
thanks(1) At source db 8.0.5 (solaris)
PARAMETER VALUE
NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_CALENDAR GREGORIAN
NLS_DATE_FORMAT DD-MON-YY
NLS_DATE_LANGUAGE AMERICAN
NLS_CHARACTERSET AR8ISO8859P6
NLS_SORT BINARY
NLS_NCHAR_CHARACTERSE T AR8ISO8859P6
$set NLS_LANG=AMERICAN_AMERICA.AR8ISO8859P6
$exp sys/dba file=full251109.dmp full=y
(2):>> At target db 10g R2 (solaris)
PARAMETER VALUE
NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_CALENDAR GREGORIAN
NLS_DATE_FORMAT DD-MON-RRRR
NLS_DATE_LANGUAGE AMERICAN
NLS_CHARACTERSET AR8ISO8859P6
NLS_SORT BINARY
NLS_NCHAR_CHARACTERSET UTF8
NLS_COMP BINARY
NLS_LENGTH_SEMANTICS BYTE
NLS_NCHAR_CONV_EXCP FALSE
$export NLS_LANG=AMERICAN_AMERICA.AR8ISO8859P6
$imp testdba/testdba file=full251105.dmp fromuser=PROFINAL touser=PROFINAL
*$csscan testdba/testdba FULL=Y FROMCHAR=AR8ISO8859P6 TOCHAR=AR8ISO8859P6 LOG=P6check CAPTURE=Y ARRAY=100000 PROCESS=2*
There is EXCEPTIONAL DATA in .err file+
clients accessing 8.0.5 dataabase uses characterset AR8IS08859P6, which is SAME as 8.0.5 database
-CSSCAN result->>[Database Scan Parameters]
Parameter Value
CSSCAN Version v2.1
Instance Name MIG1
Database Version 10.2.0.1.0
Scan type Full database
Scan CHAR data? YES
Database character set AR8ISO8859P6
FROMCHAR AR8ISO8859P6
TOCHAR AR8ISO8859P6
Scan NCHAR data? NO
Array fetch buffer size 100000
Number of processes 2
Capture convertible data? YES
[Scan Summary]
Some character type data in the data dictionary are not convertible to the new
haracter set Some character type application data are not convertible to the new characters
[Data Dictionary Conversion Summary]
Datatype Changeless Convertible Truncation Lossy
VARCHAR2 2,235,403 0 0 *1,492*
CHAR 1,097 0 0 0
LONG 155,188 0 0 6
CLOB 24,643 0 0 0
VARRAY 21,352 0 0 0
Total 2,437,683 0 0 1,498
Total in percentage 99.939% 0.000% 0.000% 0.061%
The data dictionary can not be safely migrated using the CSALTER script
[Application Data Conversion Summary]
Datatype Changeless Convertible Truncation Lossy
VARCHAR2 16,986,594 0 0 *1,240,383*
CHAR 164,114 0 0 0
LONG 7 0 0 0
CLOB 1 0 0 0
VARRAY 1,436 0 0 0
Total in percentage 93.256% 0.000% 0.000%
6.744%
[Distribution of Convertible, Truncated and Lossy Data by Table]
USER.TABLE Convertible Truncation Lossy
PROFINAL.BASE_MASTER_DATAS 0 0 *362,003*
PROFINAL.CODE_ALLOW 0 0 *53*
PROFINAL.CODE_ALLOWANCE_TYPES 0 0 *1*
PROFINAL.CODE_BONUS_TYPES 0 0 *2*
PROFINAL.CODE_BRANCHES 0 0 *2*
PROFINAL.CODE_CERTIFICATES 0 0 *94*
Kindly help,,,
Edited by: userR12 on Nov 25, 2009 1:43 AM
Edited by: userR12 on Nov 25, 2009 1:52 AM -
File Sender Content Conversion: Help needed
Hello Experts,
i need help with file sender content conversion:
i have a file which looks like this:
12329460 24.01.09/07:01 167 Y010122851 136086 43300007 E70115 1L2_96_1
12329660 25.01.09/07:02 157 Y010122851 136086 43390007 E711J5 1L2_96_1
as you can see 8 fields, separated with whitespaces
and i want and xml file which looks like this:
<DT_DATA_FILESENDER>
<Recordset>
<Data>
<field1>12329460</field1>
<field2>24.01.09/07:01</field2>
<field3>167</field3>
<field4>Y010122851</field4>
<field5>136086</field5>
<field6>43300007</field6>
<field7>E70115</field7>
<field8>1L2_96_1</field8
</Data>
<Data>
<field1>12329660</field1>
<field2>25.01.09/07:02</field2>
<field3>157</field3>
<field4>Y010122851</field4>
<field5>136086</field5>
<field6>43390007</field6>
<field7>E711J5</field7>
<field8>1L2_96_1</field8
</Data>
</Recordset>
Would you please let me know how the datatype has to look like?
And especially how the FCC has to be configured for this scenario?
Thanks in advance,
Chris> With fixed lengths i get it working,
>
> but with de fieldseparator 0X09 it does not work,
> would you please tell me the complete FCC config not only the fieldSeparation line?
Well Christian,
There is one thing, eithere you can use fieldSeparator or fieldFixedLengths you can not use both together. So in your case do not use fieldSeparator.
The complete FCC is almost same as given in the blog in my previous reply. See the final output in that blog and create your data type accordingly. e.g.
Recordset
------Item 0...unbound
--------Field1 0..1
--------Field2 0..1
--------Field3 0..1
--------Field8 0..1
Regards,
Sarvesh -
Conversion help needed.
Hi everybody. I'm new to the forum, and need your assistance.
I've recently purchased a Sony 30GB hardrive camcorder and I'm having
problems editing the movies in iMovie HD. The problem is that the camera
records movies in MPEG2 format, and in order for me to edit anything, I
need to convert the movie into MPEG4 format. I was wondering if anybody
could recomend a third party conversion software 'cause Apple doesn't
have anything like that? (so I've been told). Any help would be much
appreciated.
Thank you very much. Derek
G4 Mac OS X (10.3.9)Hi kwak,
welcome to the board
in order … to edit anything, I need to convert the movie into MPEG4 format.
no, you need to convert to "dv", only format storing every frame without (almost) any loss of pic information.. (mpegs are lossy, a delivery format)
choose, in recommended order:
* DVDxDV (free trial, 25$)
* Apple mpeg2 plugin (20$) + Streamclip (free)
* Cinematize >60$
* Mpeg2Works >25$ + Apple plug-in
* Toast6/7 allows converting to dv/import file, hit apple-k -
Pixels to mm conversion help needed!
Hi.. it's a long shot, but I am constructing a dummy web page... and need to figure out how to take 1000 pixels and convert to a mm or cm box to do a design in.
Does anyone know how to do that... as web designers say they need a 1000 pixel wide page!
I cant seem to find a conversion tool that gives just measurements...
any help appreciated....
as in iweb i just set it but cant find it in cm either!It depends on the dpi. Usually 72dpi = 72 pixels per inch.
1000/72 = 13,88888 inch
1 inch = 25,4 mm
13,88888 * 25,4 = 352,7777 mm
You do the arithmatic with a calculator.
To do the same with pictures, you can do it in any image editor. Even Preview.app :
!http://www.wyodor.net/_Discussions/PreviewResize.png! -
I have a Windows pc only for 1 thing - printing pdfs. My problem is that Windows printer drivers allow me to have auto select paper size/tray depending on if the pdf page is standard or legal. I have not yet found anyway to do this through the mac.
I have a Brother HD-5370 laser printer and need some assistance with the paper auto select. If any one has any suggestions or an actual fix, I am all eras.
Thank You,
DanDan231,
Welcome to Apple Discussions.
We are willing to help however we need you to complete your Public Profile (look to your right) so we can tell what computer you have, the version of OS X, how much RAM etc. Also letting us know where you are located could help in future posts.
Most printing issues are handled in the Printing forums. Each version of OS X has it's own printing forum. For example if you use Snow Leopard (10.6) then that forum is located at:
http://discussions.apple.com/forum.jspa?forumID=1344
However let me try and take a stab at your problem. I am guessing you are using Preview to print the PDFs so let's start there. When you print (Command-P) the printing box will appear, look under the Orientation and right below that it will probably default to Preview. Click that radio and choose paper handling to see if your printer offers more choices. You can also run Software Update to see if you have the most up-to-date drivers and retry.
Hope this starts to give you some direction.
Roger -
Pricing : ABAP to Java conversion help needed
Hi all.
I am basically an ABAP developer. My recent assignment needs some java coding.
It will be very helpful if we anybody helps me in finding the corresponding pricing fields in java.
The abap code is as follows
check : xkomv - kgrpe = ' '.
check: xkomv - xkbetr ne 0.
check : komp - kpein ne 0.
if komp - netwr < 0.
komp - netpr = 0 - komp - netpr.
endif.
xkwert = ( ( ( komp - netpr * ( 100000 + xkomv - xkbetr)) / 100000)
komp-mglme / komp-kumza * komp - kumne / 1000 / komp - kpein )
- komp-netwr.
Please help in converting this abap code to its corresponding java code.
Thanks and Regards
DeepikaHere is the code I have developed: Please check and let me know if there are any changes
import java.math.BigDecimal;
import com.sap.spe.pricing.customizing.PricingCustomizingConstants;
import com.sap.spe.pricing.transactiondata.PricingTransactiondataConstants;
import com.sap.spe.pricing.transactiondata.userexit.IPricingConditionUserExit;
import com.sap.spe.pricing.transactiondata.userexit.IPricingItemUserExit;
import com.sap.spe.pricing.transactiondata.userexit.ValueFormulaAdapter;
public class ZS2S_IPC_ZDCP extends ValueFormulaAdapter {
public BigDecimal overwriteConditionValue(
IPricingItemUserExit item,
IPricingConditionUserExit condition) {
BigDecimal kompKumza = new BigDecimal(String.valueOf(condition.getFraction().getNumerator()));
BigDecimal kompKumne = new BigDecimal(String.valueOf(condition.getFraction().getDenominator()));
boolean xkomvKgrpe = condition.isGroupCondition();
BigDecimal kompKpein = condition.getPricingUnit().getValue();
BigDecimal kompNetwr = item.getNetValue().getValue();
BigDecimal kompNetpr = item.getNetPrice().getValue();
BigDecimal xkomvKbetr = condition.getConditionRate().getValue();
BigDecimal kompMglme = item.getBaseQuantity().getValue();
if ( xkomvKgrpe = true )
return PricingTransactiondataConstants.ZERO;
if ( kompKumza != PricingTransactiondataConstants.ZERO )
return PricingTransactiondataConstants.ZERO;
if ( kompKumne != PricingTransactiondataConstants.ZERO )
return PricingTransactiondataConstants.ZERO;
if ( kompKpein != PricingTransactiondataConstants.ZERO )
return PricingTransactiondataConstants.ZERO;
if (kompNetwr.compareTo(PricingTransactiondataConstants.ZERO) < 0 )
kompNetpr = (PricingTransactiondataConstants.ZERO).subtract(kompNetwr);
BigDecimal y = new BigDecimal("100000");
BigDecimal a = y.add(xkomvKbetr);
BigDecimal temp = kompNetpr.multiply(a);
BigDecimal result1 = temp.divide(y, 2, BigDecimal.ROUND_HALF_UP);
BigDecimal result2 = result1.multiply(kompMglme)
.divide(kompKumza, 2 BigDecimal.ROUND_HALF_UP).multiply(kompKumne).divide(kompKpein, 2, BigDecimal.ROUND_HALF_UP);
BigDecimal Result = result2.subtract(kompNetwr);
return Result;
Edited by: Deepika Mallya on Aug 6, 2009 9:08 AM -
Html to wml conversion help needed urgently
Hello everybody,
I need static HTML to WML code urgently as soon as possible.
Can please somebody help.
Moreover, how to discard the tags in HTML which are not in WML.The problem is that few tags are not mandatory to close.So, what should be the rule of discarding tags?
Please help!!!!
iwapsmshttp://www.google.co.uk/search?q=html+2+wml&start=0&ie=utf-8&oe=utf-8
-
RecordSet to Cusror Conversion Help Needed
Hi,
I have a Perl Code which calls a Stored Procedure in Oracle 8i Database. As you know that you can return Cursors
and other data types back to Perl and not RecordSets. So I am trying to convert a RecordSet to a Cursor. The Stored
Procedure Does some complex computations and then stores the results in a record Set. I need to tansfer the data
from the Record Set back to the Perl Code via a REF Cusror. The only solution that I can think of is Creating a Temp
Table to store the results and then point a Cursor to that and return that Cusror to the Perl Code. Is there any other
way of doing this???. I searched lot of sites/forums, But couldnt find any solution.
You Help will be greatly appreciated :).
Thanks
RajeshHi Rajesh,
i too had the same requirement but using Java Code.
One way to return a Cursor to the code is using a package.
the query which returns the recordset is to be assigned to a ref cursor. For eg.
CREATE OR REPLACE PACKAGE PKG_PLAN AS
TYPE RESULT IS REF CURSOR;
PROCEDURE USERDETAILS2 (
O_RESULT OUT RESULT
END PKG_PLAN;
CREATE OR REPLACE PACKAGE BODY PKG_PLAN AS
PROCEDURE USERDETAILS2(
O_RESULT OUT RESULT
AS
BEGIN
OPEN O_RESULT FOR SELECT DISTINCT US_FIRSTNAME AS UserName,
US_COMPANYNAME AS Company, TBLUSER.US_PRIMARYEMAIL AS EmailId ,
FROM
TBLUSER where
TBLUSER.US_STATUS = 'A' ORDER BY UserName;
EXCEPTION
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE('INSIDE EXCEPTION');
END USERDETAILS2;
END PKG_PLAN;
and in the perl code u will invoke the procedure as
CALL PKG_PLAN.USERDETAILS2(?)
where ? is the out parameter -of type cursor which is to be
registered via perl code.(not sure how it is done in perl)
and after issuing execute command via perl code
get the resultset.
hope u understood it and the above was of help.
Good luck
Rani
Hi,
I have a Perl Code which calls a Stored Procedure in Oracle 8i Database. As you know that you can return Cursors
and other data types back to Perl and not RecordSets. So I am trying to convert a RecordSet to a Cursor. The Stored
Procedure Does some complex computations and then stores the results in a record Set. I need to tansfer the data
from the Record Set back to the Perl Code via a REF Cusror. The only solution that I can think of is Creating a Temp
Table to store the results and then point a Cursor to that and return that Cusror to the Perl Code. Is there any other
way of doing this???. I searched lot of sites/forums, But couldnt find any solution.
You Help will be greatly appreciated :).
Thanks
Rajesh -
Mapping conversion help needed for date
Hi Experts,
I need help in message mapping convesion for date field
The source date field can have value '2010-06-04T02:09:59.610-07:00' or 2010-06-04T02:09:60.610-07:00
I have to change it to '2010-06-04T02:09:59.000-07:00'. ie, if the seconds are 59.XXX, or 60.XXX, then change to 59.000.
Please let me know the best way to do this
Thanks
MikeAgain, to make it more clear
The source date field can have any date value such as
2010-06-04T02:09:59.610-07:00 -
This needs to be changed to 2010-06-04T02:09:59.000-07:00
2010-06-04T02:09:60.610-07:00 -- This needs to be changed to 2010-06-04T02:09:59.000-07:00
2010-06-04T02:09:60.000-07:00 -- This needs to be changed to 2010-06-04T02:09:59.000-07:00
2010-06-04T02:09:59.000-07:00 - This need not be changed
2010-06-04T02:09:58.610-07:00 -- This need not be changed
2010-06-04T02:09:57.610-07:00 etc etc - These need not be changed.
The only change using date function is for the first two dates, in which 59.XXX and 60.XXX need to be replaced with 59.000
Using the above date function, all the seconds 59.XXX, 58.XXX, 60.XXX, etc etc,,, are converted to 59.000, 58.000 and 60.000
I dont need this as per the requirement. So looks like the UDF needs to be altered a little to accomodate my requirement.
Please help me.
Thanks
Mike -
Quicktime conversion help needed greatly!!!
I need to convert my project in Final Cut Express to a quicktime movie, the only problem is I don't know the right settings to make the movie of high quality. Its a film im sending into a film festival and the post mark date is tomarrow! Does anyone know what are the right settings for a film? Any help would greatly be appreciated. Thankyou.
Quicktime as you probably know will export to a variety of different formats.
1. If it is something that they wish to view on a computer, you can export from Final Cut as a Quicktime movie making sure that it is using current settings and that it is self contained. This can then be simply saved to a disc.
2. If the file is to large, open it in Quicktime and export as a Quickime movie.
In the options box under "settings" it should default to H.264 with options on the quality. ( "medium" is normally fine ). Save to a disc.
3. To save to a DVD that will play in DVD player you will need something like Toast Titanium. Drop the QT movie into Toast under "video" and choose DVD Video. Click Burn.
Give me a shout if you get stuck.
[email protected]
Darren Honeywill -
BSO to ASO Formula Conversion - Help Needed
ASO is not my forte...I am trying to get a simple formula to work in ASO cube as part of BSO->ASO conversion.
If it is level 0 entity, the formula is (Last Shipped (PU) * Part Volume)...works fine.
If its upper level, it should just sum the values of its children. The BSO equivalent that we typically use is @SUM(@CHILDREN(@CURRMBR("Entity"))).
I attempted the same in the ASO MDX script as shown below, it is not yielding me the correct result....any thoughts why this is not working?
Thanks in advance.
Nima
Member Formula*
CASE WHEN ISLEVEL(Entity.CurrentMember, 0) THEN+
Last Shipped (PU) x Part Volume+
ELSE+
SUM(Children(Entity.CurrentMember))+
END+
Edited by: Nima.V on Nov 12, 2008 7:12 PMHave you tried specifying which measure you want it to sum?
e.g.
CASE WHEN ISLEVEL(Entity.CurrentMember, 0) THEN
Last Shipped (PU) x Part Volume
ELSE
SUM(Children(Entity.CurrentMember), [Measure].[Part Volume])
END
also I'm not sure whether the SUM is correct. This might work as it definately specifies the tuples:
SUM({Products.CurrentMember.children},[Measures].[Part Volume])
hope it helps,
Gee -
Error while emailing pdf Smartform- help needed
Hi All,
I have successsully saved smartform as pdf on my local machine and while trying to send the same as an attachment.i am encountering a run time error in SCOT transaction on pressing send message.
Error details are as follows:-
CPIC-CALL: THE SAPECMINIT UNABLE TO DETERMINE HOST ADDRESS
Source Code: SAPMSSY1
CALL RFCIMPORT
The program is given below. Kindly reply me the solution.
All helpful answers will b rewarded.
Regards,
Eureka.
*& Report Z24436_SMARTFORM2 *
REPORT Z24436_SMARTFORM2 .
Global Variables Declarations
DATA: MAt_id TYPE MATNR VALUE '1%',
fm_name TYPE rs38l_fnam.
DATA: ITAB_MAkt TYPE STANDARD TABLE OF MAkt.
DATA: p_form TYPE tdsfname VALUE 'ZUDAY_SMARTFORMS1'.
All Database Selections are here
*Getting Materials belonging to the given plant
SELECT * FROM MAkt INTO TABLE ITAB_MAkt
WHERE MATNR LIKE MAT_id.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = p_form
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
fm_name = fm_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.
EXIT.
ENDIF.
DATA : gw_ssfcrescl TYPE ssfcrescl.
DATA: gt_otf TYPE STANDARD TABLE OF itcoo ,
gt_tline TYPE STANDARD TABLE OF tline,
gt_pdf TYPE STANDARD TABLE OF tline,
gv_len LIKE sood-objlen,
gw_ssfctrlop TYPE ssfctrlop, "for CONTROL_PARAMETERS
gw_ssfcompop TYPE ssfcompop. "for OUTPUT_OPTIONS
gw_ssfctrlop-getotf = 'X'.
gw_ssfctrlop-no_dialog = 'X'.
gw_ssfcompop-tdnoprev = 'X'.
**Calling the generated function module
CALL FUNCTION fm_name
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS = gw_ssfctrlop
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS = gw_ssfcompop
USER_SETTINGS = 'X'
customer_info = customer
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO = gw_ssfcrescl
JOB_OUTPUT_OPTIONS =
TABLES
it_makt = itab_makt
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.
gt_otf[] = gw_ssfcrescl-otfdata[].
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
IMPORTING
bin_filesize = gv_len
TABLES
otf = gt_otf
lines = gt_pdf
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.
DATA:
gt_pdf TYPE TABLE OF tline,
gt_xi_pdf TYPE TABLE OF tline,
gt_pdf_conv TYPE TABLE OF solisti1,
gt_xi_temp TYPE TABLE OF bapiqcmime.
CONSTANTS:
lc_x(1) TYPE c VALUE 'X',
lc_raw(3) TYPE c VALUE 'RAW',
lc_pdf(3) TYPE c VALUE 'PDF',
lc_attach(12) TYPE c VALUE 'ATTACHMENT'.
DATA:
lv_spool TYPE rspoid, "Spool Number
lv_pdf_size TYPE i, "PDF Size
lv_subject(40) TYPE c, "Email subject
lv_tab_lines TYPE sytabix, "Table Lines
lv_date(10) TYPE c, "Variable for date
lv_time(8) TYPE c. "Variable for Time
DATA:
For Compressing document
ls_objpack TYPE sopcklsti1,
lt_objpack TYPE STANDARD TABLE OF sopcklsti1,
To specify subject
lt_objhead TYPE STANDARD TABLE OF solisti1,
ls_objhead TYPE solisti1,
To send the PDF
lt_objbin TYPE STANDARD TABLE OF solisti1,
ls_objbin TYPE solisti1,
Email body
lt_objtxt TYPE STANDARD TABLE OF solisti1,
ls_objtxt TYPE solisti1,
To specify Receivers
lt_reclist TYPE STANDARD TABLE OF somlreci1,
ls_reclist TYPE somlreci1,
Documenting Data
ls_doc_chng TYPE sodocchgi1,
ls_pdf_conv TYPE solisti1.
CONSTANTS: lc_under(1) TYPE c VALUE '_'.
**Copy the Spool request to a Local Variable
lv_spool = sy-spono.
Convert spool job to PDF
***************this is normal report spool to pdf.
but your case it will be smartform to pdf
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = lv_spool
no_dialog = lc_x
IMPORTING
pdf_bytecount = lv_pdf_size
TABLES
pdf = gt_pdf
EXCEPTIONS
OTHERS = 0.
To Format the PDF file so as each row contains 255 characters
PERFORM page_format .
Transfer the file to objbin table
LOOP AT gt_pdf_conv INTO ls_pdf_conv.
ls_objbin-line = ls_pdf_conv-line.
APPEND ls_objbin TO lt_objbin.
CLEAR ls_objbin.
ENDLOOP.
*// Creating the document to be sent - Mail subject creation
ls_doc_chng-obj_name = sy-repid.
lv_subject = text-008. "Mail subject
WRITE sy-datum TO lv_date USING EDIT MASK '__/__/____'.
WRITE sy-uzeit TO lv_time USING EDIT MASK '__:__:__'.
CONCATENATE lv_subject lc_under lv_date lc_under lv_time
INTO ls_doc_chng-obj_descr.
*// Email body
PDF attachment of Product Allocation for Open orders
ls_objtxt = text-009.
APPEND ls_objtxt TO lt_objtxt.
Write Date when the mail was sent in the email body
CONCATENATE text-010 lv_date INTO ls_objtxt.
APPEND ls_objtxt TO lt_objtxt.
Write Time when the mail was sent in the email body
CONCATENATE text-011 lv_time INTO ls_objtxt.
APPEND ls_objtxt TO lt_objtxt.
DESCRIBE TABLE lt_objtxt LINES lv_tab_lines.
READ TABLE lt_objtxt INTO ls_objtxt INDEX lv_tab_lines.
Calculate the document size
ls_doc_chng-doc_size = ( lv_tab_lines - 1 ) * 255 +
STRLEN( ls_objtxt ).
*// Creating the entry for the compressed document
CLEAR ls_objpack-transf_bin.
ls_objpack-head_start = 1.
ls_objpack-head_num = 0.
ls_objpack-body_start = 1.
ls_objpack-body_num = lv_tab_lines.
ls_objpack-doc_type = 'RAW' . "RAW
APPEND ls_objpack TO lt_objpack.
CLEAR lv_tab_lines.
DESCRIBE TABLE lt_objbin LINES lv_tab_lines.
ls_objhead = ls_doc_chng-obj_descr.
APPEND ls_objhead TO lt_objhead.
*// Creating the entry for the compressed attachment
ls_objpack-transf_bin = lc_x.
ls_objpack-head_start = 1.
ls_objpack-head_num = 1.
ls_objpack-body_start = 1.
ls_objpack-body_num = lv_tab_lines.
ls_objpack-doc_type = 'PDF'. "PDF
ls_objpack-obj_name = 'ATTACHMENT'. "ATTACHMENT
CONCATENATE lv_subject lc_under lv_date lc_under lv_time
INTO ls_objpack-obj_descr.
CLEAR: ls_objbin.
READ TABLE lt_objbin INTO ls_objbin INDEX lv_tab_lines.
ls_objpack-doc_size = ( lv_tab_lines - 1 ) * 255 +
STRLEN( ls_objbin ).
APPEND ls_objpack TO lt_objpack.
ls_reclist-receiver = '[email protected]'.
ls_reclist-receiver = gv_email_addr.
ls_reclist-rec_type = 'U'.
APPEND ls_reclist TO lt_reclist.
IF ls_reclist-receiver IS INITIAL.
MESSAGE i175.
ELSE.
*// Send EMail
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = ls_doc_chng
put_in_outbox = lc_x
commit_work = lc_x
TABLES
packing_list = lt_objpack
object_header = lt_objhead
contents_bin = lt_objbin
contents_txt = lt_objtxt
receivers = lt_reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
operation_no_authorization = 3
OTHERS = 99.
CASE sy-subrc.
WHEN 0.
Mail successfully delivered
*// Do nothing
WHEN 1.
This will never occur as at any point of time mail will be
sent to one processor only.
*// Do nothing
WHEN 2.
MESSAGE i175.
WHEN 3.
MESSAGE i175.
*// Do nothing
ENDCASE.
ENDIF.
REFRESH: lt_objpack,
lt_objbin,
lt_objtxt,
lt_objhead,
lt_reclist.
CLEAR: ls_reclist,
ls_doc_chng,
ls_objpack,
ls_objhead,
ls_objtxt.
DATA : gv_filename LIKE rlgrap-filename VALUE 'C:\Udaya4.pdf'.
CALL FUNCTION 'DOWNLOAD'
EXPORTING
bin_filesize = gv_len
filename = gv_filename
filetype = 'BIN'
filetype_no_show = 'X'
IMPORTING
act_filename = gv_filename
filesize = gv_len
cancel = ''
TABLES
data_tab = gt_pdf.
FORM page_format .
Local data
DATA : lv_lines TYPE i,
lv_temp(500) TYPE c,
lv_offset TYPE p,
lv_lineslen(2) TYPE p,
lv_mimelen(2) TYPE p,
lv_tabix LIKE sy-tabix,
ls_pdf_conv TYPE solisti1,
ls_xi_temp TYPE bapiqcmime,
ls_xi_pdf TYPE tline.
CLEAR : gt_xi_pdf,
gt_xi_temp.
REFRESH: gt_xi_pdf,
gt_xi_temp.
Copy the PDF file into table gt_xi_pdf
gt_xi_pdf[] = gt_pdf[].
Reformat the line to 255 characters wide (code from SAP)
CLEAR: lv_temp, lv_offset, gt_xi_temp.
DESCRIBE TABLE gt_xi_pdf LINES lv_lines.
DESCRIBE FIELD ls_xi_pdf LENGTH lv_lineslen IN CHARACTER MODE.
DESCRIBE FIELD ls_xi_temp LENGTH lv_mimelen IN CHARACTER MODE.
Go through all the lines of table gt_xi_pdf
LOOP AT gt_xi_pdf INTO ls_xi_pdf.
lv_tabix = sy-tabix.
Move ls_xi_pdf into lv_temp variable
MOVE ls_xi_pdf TO lv_temp+lv_offset.
Check if its the last line of table gt_xi_pdf
IF lv_tabix = lv_lines.
lv_lineslen = STRLEN( ls_xi_pdf ).
ENDIF.
Calculate the new offset
lv_offset = lv_offset + lv_lineslen.
Check if the new offset is equal to or greater than the length of
gt_xi_temp
IF lv_offset GE lv_mimelen.
CLEAR ls_xi_temp.
Copy the PDF data into gt_xi_temp
ls_xi_temp = lv_temp(lv_mimelen).
APPEND ls_xi_temp TO gt_xi_temp.
SHIFT lv_temp BY lv_mimelen PLACES.
Calculate the new offset
lv_offset = lv_offset - lv_mimelen.
ENDIF. "Offset GE MIMELEN
Check if its the last line of gt_xi_pdf
IF lv_tabix = lv_lines.
Check if lv_temp has some data that is not been transferred to
gt_xi_temp
IF lv_offset GT 0.
CLEAR ls_xi_temp.
Copy the PDF data into gt_xi_temp
ls_xi_temp = lv_temp(lv_offset).
APPEND ls_xi_temp TO gt_xi_temp.
ENDIF. "lv_offset GT 0
ENDIF. "lv_tabix = lv_lines
ENDLOOP.
gt_pdf_conv[] = gt_xi_temp[].
ENDFORM. " page_formatall settings in SCOT is ok ? like SMTP settings , link b/w ur Outlook server and SAP server ?
Regards
Prabhu -
Unicode and ascii conversion help needed
I am trying to read passwords from a foxpro .dbf. The encrpytion of the password is crude, it takes the ascii value of each char entered and adds an integer value to it, then stores the complete password to the table. So to decode, just subtract same integer value from each chars retieved from .dbf. pretty simple.
The problem is that java chars and strings are unicode, so when my java applet retrieves these ascii values from the .dbf they are treated as unicode chars, if the ascii value is over 127 I have problems.
The question. how can i retrieve these ascii values as ascii values in java?
Should I use an InputStream like:
InputStream is=rs.getAsciiStream("password");
Is there a way to convert from unicode to extended ascii?
Some examples would be helpful, Thanks in advance.version 1
import java.nio.charset.Charset;
import java.nio.ByteBuffer;
import java.nio.CharBuffer;
class Test {
static char[] asciiToChar(byte[] b) {
Charset cs = Charset.forName("ASCII");
ByteBuffer bbuf = ByteBuffer.wrap(b);
CharBuffer cbuf = cs.decode(bbuf);
return cbuf.array();
static byte[] charToAscii(char[] c) {
Charset cs = Charset.forName("ASCII");
CharBuffer cbuf = CharBuffer.wrap(c);
ByteBuffer bbuf = cs.encode(cbuf);
return bbuf.array();
}version 2
import java.io.*;
import java.nio.charset.Charset;
class Test {
static char[] asciiToChar(byte[] b) throws IOException {
Charset cs = Charset.forName("ASCII");
ByteArrayInputStream bis = new ByteArrayInputStream(b);
InputStreamReader isr = new InputStreamReader(bis, cs);
char[] c = new char[b.length];
isr.read(c, 0, c.length);
return c;
static byte[] charToAscii(char[] c) throws IOException {
Charset cs = Charset.forName("ASCII");
ByteArrayOutputStream bos = new ByteArrayOutputStream();
OutputStreamWriter osw = new OutputStreamWriter(bos, cs);
osw.write(c, 0, c.length);
osw.flush();
byte[] b = bos.toByteArray();
return b;
}
Maybe you are looking for
-
What are the different licences?
I'm thinking about getting the Production Premium suite, but I'm slightly confused about the different licences... As far as I can tell, there's a student licence, and a "normal" one... Is that all of them? Also, what are the restrictions for each?
-
Image garbled after upgrading to 10.6.1
When I open faces with the "faces" button below the main iPhoto screen, the display is garbled and blocks of the screen are repeated across the picture. There seems to be something wrong with the way 10.6.1 displays certain pictures. This effect is n
-
Suitable example needed to understand concepts around WSDL and usage in XI
Hi All, How to create an WSDL from Interface Definition?What are all the pre-requisities for this step? I know,how to create an interface when a WSDL is provided at the receiver side.However,not getting why we need a WSDL created for the sender side.
-
Why is my Droid Mini suddenly not receiving all texts sent to me?
It doesn't matter if the sender is iPhone, Blackberry, etc. or Verizon, AT&T, etc. It started with picture messages. I had to send a text to whoever was sending me a picture before the picture "pushed through". Now I am sporadically not receiving
-
Setting id's for the datatables.
I have a datatable "A" in which another datatable "B" is nested. I need to hide/unhide "B" from the onclick event of an item on the datatable "A". But i can't seem to set the id of the datatable "B". How can i achieve this?