AR Invoice to be generated for Print as well in PDF for email ,
Hi Gurus
Plz let me know how can we convert a smartform to PDF and send a email .
what are the possibilities of doing the same as Adobe forms and where can we do that
Pol
Here You can find the sample of working code.
Just change come parameters in order to suit You.
*some data
*please check which You need there is some thing that is not *usefull
data lv_string type string.
data main_text type bcsy_text.
data binary_content type solix_tab.
data size type so_obj_len.
* event handler for data retrieval
data: l_devtype type rspoptype,
l_function_module_name type rs38l_fnam.
data: ls_output_options type ssfcompop,
ls_control_parameters type ssfctrlop.
data: ls_output_data type ssfcrescl.
* generated result: HTML with embedded CSS
data: ls_xmloutput type ssfxmlout,
lt_html_raw type tsfixml.
data: l_xstring type xstring, "needed for HTTP response
l_xlength type i,
l_html_xstring type xstring.
data: l_pdf_xstring type xstring,
lt_lines type table of tline,
ls_line type tline,
l_pdf_len type i.
data:
solix TYPE solix,
soli type soli.
DATA send_request TYPE REF TO cl_bcs.
DATA text TYPE bcsy_text.
DATA document TYPE REF TO cl_document_bcs.
DATA recipient TYPE REF TO if_recipient_bcs.
DATA sent_to_all TYPE os_boolean.
DATA pdf_content TYPE solix_tab.
DATA lp_pdf_size TYPE so_obj_len.
*here we make the smartform and convert it to pdf
ls_control_parameters-no_dialog = 'X'.
ls_control_parameters-getotf = 'X'.
CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
EXPORTING
i_language = sy-langu
* i_application = 'SAPDEFAULT'
IMPORTING
e_devtype = l_devtype
EXCEPTIONS
no_language = 1
language_not_installed = 2
no_devtype_found = 3
system_error = 4
others = 5.
IF sy-subrc NE 0.
MESSAGE ID sy-msgid type sy-msgty number sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ls_output_options-tdprinter = l_devtype.
CALL FUNCTION l_function_module_name
EXPORTING
* archive_index =
* archive_parameters =
control_parameters = ls_control_parameters
* mail_appl_obj = APPL_OBJECT_ID
* mail_recipient = RECIPIENT_ID
* mail_sender = SENDER_ID
output_options = ls_output_options
user_settings = space
iv_werks = i_werks
iv_datum = i_date
IMPORTING
* document_output_info =
job_output_info = ls_output_data
* job_output_options =
TABLES
im_matnr = application->IT_MATERIAL
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
others = 5.
IF sy-subrc NE 0.
MESSAGE ID sy-msgid type sy-msgty number sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
* MAX_LINEWIDTH = 132
* ARCHIVE_INDEX = ' '
* COPYNUMBER = 0
IMPORTING
bin_filesize = l_pdf_len
bin_file = l_pdf_xstring " binary file
TABLES
otf = ls_output_data-otfdata
lines = lt_lines
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
err_bad_otf = 4
others = 5.
IF sy-subrc NE 0.
MESSAGE ID sy-msgid type sy-msgty number sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
*and here we mail it
send_request = cl_bcs=>create_persistent( ).
lp_pdf_size = XSTRLEN( l_pdf_xstring ).
pdf_content = cl_document_bcs=>xstring_to_solix( ip_xstring = l_pdf_xstring ).
document = cl_document_bcs=>create_document( i_type = 'PDF'
i_hex = pdf_content
i_length = lp_pdf_size
i_subject = 'Test Message' ).
send_request->set_document( document ).
recipient = cl_cam_address_bcs=>create_internet_address(
i_address_string = 'YOUR-EMAIL-HERE' ).
send_request->add_recipient( i_recipient = recipient ).
sent_to_all = send_request->send( i_with_error_screen = 'X' ).
COMMIT WORK.
Similar Messages
-
Read Receipts generated for emails sent. ( SOST / SOSG )
Hi,
With the current settings, whenever the email sent is read , "<b>Read Receipt</b>" is sent to the user. Looks like the SOST / SOSG needs to be set accordingly. Could any one has info, how to set this, to avoid this happening.
I could also see, SU01 has parameter SOST.
Thanks,
SamThere is a setting in SCOT --> confirmation of receipts --> set as receipt not expected.
This will resolve the issue.
Thanks,
Sam -
Invoice getting generated for 103 MT not for 105 during ERS
Hi Experts,
I am facing one problem ,our client follows 103- 105 Mvt procedure for GR.
the requirement is to create automatic invoice through MRRL for movement type 105 but instead zero value invoice is getting generated for 103 MVT
Please suggest.
Regards.Hi,
Does 105 is performed for your PO .
Before running MRRL.
Does GR based IV and ERS indicators are ticked in PO?
Do also check the below KBA it may help you.
1543167 - Invoice is posted with zero amount in T-code MRRL -
Invoice Document sequence generated repeatedly
1. At the time of booking invoice and saving invoice document no generated for example :-2045546
and then while clicking the distribution line it show the following error.
APP-SQLAP-1000: ORA-01403: no data found oocured in
AP_CREATE_PAY_SCHEDS_PKG.AP_Create_form_Terms<- AP_INVOICES_POST_PROCESS_PKG.
insert_children<-APXINWKB with parameters(invoice_id=56293,Terms_id=
Last_Updated_By=, Created_By=,Payment_Priority=99,Batch_id=,Terms_date=
Invoice_Amount=,Amount_for_discount=,Payment_Method=,Currency=)
While Performing the following operation:
2. After clicking ok on that error it gives us the another new document no for the same invoice for example :-2045552
3.This process continues and giving us the new document no for the same invoice until we close the oracle system itself.
Please provide the way to resolved error.
Regards
NitinIs this an E-Business Suite question? You may want to try out that area on the forums: E-Business Suite
-
PDF file not generating for only one Invoice billing document
Hi all,
We have upgraded our system into ECC6.0 from 4.7 version. During our Testing time, we have found the following Bug:
Bug: Not possible to get output in pdf format for only one Invoice type(TR code: VF02) except for all it is generating PDF output.
Can anybody help me out to find the route cause for this problem.
Regards,
Murali.Hi,
For one Billing-Invoice type , PDF is not generating. But it is generating for other Invoices.
So should i need to go through the Printer settings?
Regards,
Murali. -
PDF file is not generating for Billing Document for Invoice
Hi all,
We have upgraded our system into ECC6.0 from 4.7 version. During our Testing time, we have found the following Bug:
Bug: Not possible to get output in pdf format for Invoice type(TR code: VF02) except for all it is generating PDF output.
Can anybody help me out to find the route cause for this problem.
Regards,
MuraliHi,
For one Billing-Invoice type , PDF is not generating. But it is generating for other Invoices.
So should i need to go through the Printer settings?
Regards,
Murali. -
Accounting document not generating for excise invoice.
Dear all ,
my issue is
accounting document not generating for excise invoice
we are creating accounting document in J1iin
with refferance to billing document but the accounting docuemnt is not generating
the accounting document for billing document is generated
so why the accounting document for excise invoice is not genrating its showing the correct amount in BED ,cee and HE Secc.
please help
regards
SubratIMG -> In Logistics u2013 General -> Tax on Goods Movement -> India -> Account Determination -> Specify Excise Accounts per Excise Transaction
Check if the following is maintained or not
DLFC CR Credit PLAAED PLA AED account
DLFC CR Credit PLAAT1 PLA AT1 Account
DLFC CR Credit PLABED PLA BED account
DLFC CR Credit PLACESS PLA cess account
DLFC CR Credit PLAECS PLA ECS Account
DLFC CR Credit PLASED PLA SED account
DLFC CR Credit RG23AED RG 23 AED account
DLFC CR Credit RG23AT1 RG 23 AT1 Account
DLFC CR Credit RG23BED RG 23 BED account
DLFC CR Credit RG23ECS RG 23 ECS Account
DLFC CR Credit RG23SED RG 23 SED account
DLFC DR Debit MSUSP CENVAT suspense account
Also IMG -> In Logistics u2013 General -> Tax on Goods Movement -> India -> Account Determination -> Specify G/L Accounts per Excise Transaction
Check if for all Excise group u2013 DLFC u2013 Company Code combination GLs are maintained or not (especially in production client) -
Accounting document not generating for excise invoice-please help
Dear all ,
my issue is
accounting document not generating for excise invoice
we are creating accounting document in J1iin
with refferance to billing document but the accounting docuemnt is not generating
the accounting document for billing document is generated
so why the accounting document for excise invoice is not genrating its showing the correct amount in BED ,cee and HE Secc.
please helpDear G. Lakshmipathi,
As uknow i am getting problem when i am creating the debit memo
so is there any specific ETT for debit memo is there .because we are not maintaining delivery type to billing type here in CIN setting
so its not goods removal through sales . so what will be transaction type for this.
how to check the error that why the accounting document is not generated as no error log is also comming.
so please help me in this regards.
Thanks with Regards
Subrat -
Spool is generated for purchase order print
Hi Experts,
We created new printer in production system and defined this as default printer in message conditions. Problem we are facing is that spool is not generated for this printer and message become red. In message log, system is not displaying any error
For other printers system is behaving fine and able to generate spool and print.
Regards,
KamalKamal,
Please ask your Basis team to configure the new Printer in SAP.
Regards,
Manish -
Two accounting document generated for an invoice
Hi ,
Friends I am facing a unique problem as two accounting document has been generated for a Invoice.
Please suggest
1. How is it possible
2. What is possible solution temporary/ permanent .
Regards
AjitHi ,
Shiv kumar,
This is service invoice of E-Recharge voucher of Rs. 1000(Inclusive of tax) no other tax escept service tax EDUHEDU=10%2%1%
No delivery as no physical material movment is there user is on my head and it is unique for a invoice not happening again .
When I tryed to cancilled the document it has got the given document flow
. E VOUCHER ORDER 9289367 07.02.09 Being processed
E VCHR Comm.Inv. 901539710 07.02.09 Completed
. Accounting document 3801044102 07.02.09 Cleared
. Accounting document 3801044132 07.02.09 Cleared
. Cancellation of Inv 70003055 10.08.09 Completed
.. Accounting document 3800614678 10.08.09 Cleared
Please help -
No invoice generated for RMA orders
Hi,
I am running Auto invoice for RMA orders. The request is getting completed but no invoice is generated for the sales orders when I am checking invoice tab in additional header information.
The sales order line is closed but header level is in booked status.
When I checked the workflow at the header level (parent activity - Header Level Invoice Interface - Order) , I found that activity "Fulfill - Wait for line" is repeating with activity result TIMEOUT.
Can anyone please tell what the issue is and how it can be resolved?
Regards,
SRFrom your query it is clear that you are using Header level invoicing for Credit memo for RMAs , as of now your workflow of header is "Fulfill - Wait for line" . Header workflow wait at this activity till all the lines belongs to this Header process the line activity "INVOICING_WAIT_FOR_H".
In your case there are possibility that though One RMA line closed , but there are more RMA lines with this order that are not yet reach to activity "INVOICING_WAIT_FOR_H" once they process to this activity order header will progress to close .
Other possible reason could be wrong custom design of workflow .Say your RMA line doesn't have this activity "INVOICING_WAIT_FOR_H" at all in such case Order header workflow stuck it for ever unless you progress it by some script etc
Addi tonal info available on my blog eoracleapps.blogspot.com -
Generate and print itemised bill for book store management software
i want to generate and print (atleast generate ) bill for book store management software.
such that i enter the bookID ,no of copies (any variable no of items in a bill )
sr no bookid name price copies total
1 9898 java 500 2 1000
2 8728 os 350 1 350
TOTAL 1350Nice! - Me too, I want to programme a lot of things.;-)
Do you want us to write this application, or do you have a specific question? -
Accounting document not generating for Invoice cancellation
Hi Gurus
We have a scenario where two invoices are getting generated from one contract(Order related billing). But when cancelling these two invoice one cancellation document is not generating accounting document.
The posting period is open on the date of cancellation . The posting status is "Error in Financial Accounting Interface".The customer is not blocked and profit center in cancellation invoice is matching with the contract. Please guide.Hi:
Display billing doc in VF02....and do release to accounting or this can happen due to the fact the invoice was generated in a closed period hence you need to change the invoice date in header VF02 to current month date and then do the reversal.
Regards
Edited by: Atif Farooq on Oct 13, 2011 4:47 PM -
I would also like to know if PDF Generator could then direct the created PDF based on what it contains to various e-mail accounts.
I have a main system that I can generate reports in and designate a printer to print to once the report is finished. I want that printer to be a virtual printer that creates a PDF. I then the ability to have that PDF auto e-mailed to some address of my choosing. Can PDF/G do this?
Thank you -
When I cancel an invoice the system creates automatic print out..
Dear all,
when I cancel an invoice the system creates automatic print out..
How can I fix this issue?
Thanks regardsUse Tcode VF03, display the cancelled invoice.
Provide the cancelled invoice number that is generated on cancellation.
Click on "Goto" in the menu bar. then Goto- Header- Output.
Check whether there is any output present here with status as "Green" light.
If the header output is not maintain, check for item.
Accordingly, check your output determination in tcode VV32"..
Provide the output type mention in canceled invoice.
Based on your requirement, either modify or delete the condition record by selecting it.
Thanks & Regards
J Prakash.
Maybe you are looking for
-
Get a connection error when running a BODS job
Hi All, I have BODS system setup in my environment. There are quite some jobs that run everyday. The jobs have stopped running since the last days. The jobs arn't failing, but they do not run. When I try to Execute a job, I get the error "Connection
-
Problem with rotating images in Photoshop CC
When I rotate images in Photoshop CC I get jagged edges and not smooth as before. What has changed? How can I sort this out? Is my software corrupted? Still works perfectly in CS3.
-
BreakOpportunity across successive spanElements
I'm working on an editing application. I have a couple of questions about how breakOpportunity property is applied to spanElements. Say I have entered some text like this: "Which of the diagrams below shows a sketch of y = –3 – f(x)?" And the "y", "
-
Hi, I have a report whcih runs from a custom table which gets populated daily in the night. It retrieves aroun 98000 records widout parameters. The report runs in around 4-5 seconds in Discoverer Plus wheras in Discoverer Viewer it is taking almost 4
-
After installing planning my essbase server just blinks and goes off
Dear All, Till yesterday,everything was working fine. After installing planning my essbase server just blinks and goes off. I am using win xp ,system9.3.1. ARBORPATH: D:\Hyperion\AnalyticServices;D:\Hyperion/common/EssbaseRTC/9.3.1 HYPERION_HOME: D:\