Regarding adobe interactive technical books
Hi
I am new in SAP Interactive forms and i want complete document in this area. Please provide some links which is help me.
Hi,
Go to the following link to know more about adobe interactive form.
http://wwwimages.adobe.com/www.adobe.com/enterprise/partners/pdfs/bwp_interactive_forms_adobe.pdf
The following link contains a offline application in ABAP. You can try it.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c2567f2b-0b01-0010-b7b5-977cbf80665d
For further questions, check the follow
https://www.sdn.sap.com/irj/sdn/adobe
Improving the Performance of Adobe® LiveCycleu2122 Designer Forms(scripting)
http://www.adobe.com/devnet/livecycle/articles/lc_designer_perf_guidelines.pdf
Interactive Forms Based on Adobe Software: Overview
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e635e290-0201-0010-a9be-9e8e4ce04770
Adobe Interactive Forms
http://www.saplounge.be/Files/media/pdf/Huberland-Interactive-Forms-2007.10.10.pdf
Taking interactive forms to next level
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8c103c36-0301-0010-cda8-f6b381bedb6e
Introduction to Adobe PDF Library SDK(PDFL SDK)(Simply scroll the document)
http://partners.adobe.com/public/developer/en/webseminars/PDFL_WebSeminar.pdf
Creating Interactive forms in webdynpro for java
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5f27e290-0201-0010-ff82-c21557572da1
PDF-Based Print Forms/SAP Interactive Forms by Adobe
http://help.sap.com/saphelp_nw04s/helpdata/en/c8/4adf7ba13c4ac1b4600d4df15f8b84/frameset.htm
Date Objects in Adobe Designer
http://help.sap.com/saphelp_nw04/helpdata/en/dd/60694fddb74ad88cdb7d2a094f3dd2/frameset.htm
Checking and Testing a PDF-Based Print Form
http://help.sap.com/saphelp_nw04s/helpdata/en/c2/1fe9aa4d7b413e8515f90b73729e97/frameset.htm
Architecture
http://help.sap.com/saphelp_nw04/helpdata/en/f2/21021b911f4c0cae11459a4ce0bc62/frameset.htm
http://www.nl4b.com/Adobe/Invitation_SAPBrussels_Q407.pdf
Cheers
Arafat
Similar Messages
-
Questions regarding Adobe Interactive Forms capabilities
Hi,
We have the following questions regarding Adobe Interactive Forms.
1. Not able to create a text field with dynamic size according to the data entered in the text field in a form with Static Content type forms. We use a scroll area, but cannot print content that is not visible in the scroll area.
We currently have Designer 7.0 and 2004 SP 16. I tried to set Form Properties -> PDF Render Format to be Acrobat 7.0 Compatible Dynamic PDF but the text field did not grow dynamically.
2. Another requirement is that once one form is accepted by the Customer, we need to generate a second, new form (with all user entered information from the first form) and the customer should be able to print the form.
To implement this, we need to have a form that can support dynamically growing text field in some areas, and specific positioning of form elements for other areas. Can we have a dynamic form which lets the fields grow dynamically according to the data entered in the field and with specific positioning of elements?
3. Sending emails from Offline forms Requirement is to send an email as soon as the form is accepted by our Customers. But the Customers can complete the form offline. Is it possible to automatically send an email in an offline forms without having the user push the send button from their email application? Can the Adobe Form do that part automatically?
Appreciate any help regarding above questions.
Thanks,
KalyanHI Francois,
Thank you very much for the very helpful information.
1. I am able to insert now the floating field inside a static text but the text does not grow dynamically even when I set the form type to be "Flowed Content". Is it something that required Adobe Designer 7.0 and also 2004s ADS?
2. I can still select only Flow or position content from the option but how can we use both in the same form? I am using Adobe Designer 7.0 and it allows to select only one. Is it again a problem in lower versions that I use?
3. This is an excellent idea and I strongly believe this is going to work (am trying to create POC for this solution). The form should be able to call the webservice as long as the user is connected to internet.
Can you provide your views on the first two points. I appreciate your help.
Thanks,
Kalyan -
Adobe interactive forms: Book and/or documentation
Hi all,
next week I will start a project abount Adobe interactive forms in a huge company here. Therefore I want to read documentation and/or a book about this that I can learn to develop with this functionallity. I have done a lot of changes with SAP Script. Where can I find good documentation or a good book (checked also SAP PRESS) about AIF?
Thx for your answers and your help that I can learn more about this topic.
Regards
MichaelHi,
/people/thomas.jung3/blog/2005/07/13/lessons-learned-from-adobe-forms-development
/people/community.user/blog/2006/11/20/search-help-in-isr-adobe-forms
/people/franklin.herbas/blog/2005/12/13/2d-barcode-pdf-forms-with-sap-netweaver
/people/vani.krishnamoorthy/blog/2006/05/17/fillable-adobe-forms-using-abap
http://help.sap.com/saphelp_nw04s/helpdata/en/43/849b3482206353e10000000a11466f/frameset.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/43/82538c0c4458bbe10000000a422035/frameset.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/46/55c841d202c317e10000000a155106/frameset.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/6d/bd2d828aa04eeb9451aad0d02ae9a0/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/dd/60694fddb74ad88cdb7d2a094f3dd2/frameset.htm
Adobe Forms:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/f5718380-0c01-0010-aebf-8786fb890302 [original link is broken]
https://www.sdn.sap.com/sdn/developerareas/was.sdn?page=AdobeForms.htm
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d4fe7fca-0b01-0010-569a-9a9c1ddf4132
https://www.sdn.sap.
Hope it helps you...
Regards,
Satish -
Regarding adobe interactive forms
plz tell me the which purpose we use ABAP-HR,
which purpose we use ADOBE INTERACTIVE FORMS,
ADOBE PRINT FORMS.
IF POSSIBLE PLZ SEND ME THE SAMPLE MATERIAL AND FAQ
Edited by: Alvaro Tejada Galindo on Apr 22, 2008 1:41 PMBelow link will he helpful for Adobe Interactive Forms
https://www.sdn.sap.com/irj/sdn/adobe
Regarding ABAP HR. ABAP HR is an integral part of ABAP.It is the development of ABAP in the area of HR to meet the clients requirements according to the functional specifications .They may be in any area of HR like in the areas of time aspects ,pay aspects, OM aspects and Self Services like E-recruitment, ESS etc.,
Saravanan
Edited by: Saravanan on Apr 22, 2008 7:28 PM -
Adobe Interactive Forms Set Fillable through SFP
Hello Gurus,
I have a question regarding adobe interactive forms. I have created an interface and form in transaction SFP. The form is being called as an email attachment during an issue creation. What i want to do is set the form fillable in the import structure /1BCDWB/DOCPARAMS. I tried to do this through the code initialization in the interface but it does not set the form fillable. I have no other code interaction with the from besides in the code initialization section of the interface. Is there a straight forward way to set it fillable? Thanks.Hello Timothy
You must be generating the PDF and emailing it as an attachment in background in your program.
Refer to code below, It should work
* get the name of the generated function module
try.
call function 'FP_FUNCTION_MODULE_NAME'
exporting
i_name = 'DEMO_ADOBE_OFFLINE'
importing
e_funcname = fm_name.
catch cx_fp_api.
assert 1 = 2.
endtry.
* set output parameters and open spool job
fp_outputparams-preview = 'X'. " do not launch print preview
fp_outputparams-nodialog = 'X'. " suppress print dialog
fp_outputparams-connection = cl_fp=>get_ads_connection( ).
fp_outputparams-getpdf = 'X'.
call function 'FP_JOB_OPEN'
changing
ie_outputparams = fp_outputparams
exceptions
cancel = 1
usage_error = 2
system_error = 3
internal_error = 4
others = 5.
assert sy-subrc = 0.
* set the form to be editable
* Try to set fp_docparams- FILLABLE = 'F' instead of fp_docparams- FILLABLE = 'X'
fp_docparams-fillable = 'F'.
* call the generated function module to generate the pdf
call function fm_name
exporting
/1bcdwb/docparams = fp_docparams
/1bcdwb/docxml = xml
importing
/1bcdwb/formoutput = fp_result
exceptions
usage_error = 1
system_error = 2
internal_error = 3
others = 4.
assert sy-subrc = 0.
* close spool job
call function 'FP_JOB_CLOSE'
* IMPORTING
* E_RESULT =
exceptions
usage_error = 1
system_error = 2
internal_error = 3
others = 4.
Regards
Sandy -
Adobe Interactive Forms - for Travel Expense Booking
Hi:
We are implementing Adobe Interactive Forms for Travel Expense Booking integrated with Portal (where user would download the form from portal locally to work offline and then upload it later when connected).
For the form to function properly, our consultants has asked to make following changes in the Adobe Reader settings on user machine:
1. Under Edit -> Preferences -> Internet -> Check "Display PDF in browser"
2. Under Edit -> Preferences -> JavaScript -> Check "Enable Acrobat JavaScript"
3. Under Edit -> Prefenences -> Security (enhanced) -> Uncheck "Enable Enhanced Security"
All the above three changes are opposite to our current settings. And our IT group is seeing a major secutity threat to company network on making the above changes.
I wanted to check how other companies with Adobe implementation are handling the above changes? Is there any work around to these changes?
Any ideas?
Thanks,
Rahulyou have to get really creative when trying to dynamically control the form without javascript / formcalc.
One of my little secrets (you owe me big points here) is that I prepare my output in a series of tables when possible.
For instance, in SAP i'll fill an internal table with
Customer | Sales Order Number
12345 | 80002038
Date | 09/15/2011
Special Instructions | Deliver around back
something like this... then I drop this table where I need it. However, if there are no special instructions, I simply do not fill that info out in my internal table. This has the effect of "hiding" the field. -
Interactive e-book in Adobe?
We are creating units for an oline course and I would like to know if there is any product that could serve for that purpose, similar to an interactive e-book.
(we have used Mac's iBook Author, which has the type of resources we are looking for, but we need to be able to have a programme to use on PC as well)
Thank you!
JuliaMoving the discussion here
-
Calling RFC from Adobe Interactive Form
Hello,
After creating and calling Adobe Interactive form from ABAP web dynpro, within the form designer is it possible to call RFC or Business Object method from the form script to get the data back from SAP for specific Click events?Yes,
this is possible, but not through pure RFC, but using webservices and webservice enabled function modules within SAP.
Technically it is quite simple. Create a functionmodule, and create a webserve from that (all SE37 or SE80 but from WAS 6.40). Generate a WSDL (with the Java tool) and import that into the form that you are designing. From there you can bind the data from the dataset (as defined in the WSDL) to screenfields or treat the data any other way Javascript can.
BTW. I only managed this so far by using anonymous logins, so with a password and username bound to the webservice (in SICF).
Hope this helps, regards, Hans Gmelig Meyling -
Use of Adobe Interactive Forums
Hi,
We have been asked to evaluate the use of Adobe Interactive Forms with SAP's External Service Management. The client desires to provide external contractors with Adobe Interactive Forms representing the SAP Service Entry Sheet. The external contractor will complete and submit the form which can then be uploaded into the Service Entry Sheet.
Additionally, there may be a requirement for a similar upload functionality with respect to a CATS timesheet. For their supplemental workforce, the client desires the ability to track time in CATS, and then use the 'CATM' transaction code to transfer time from CATS to a Service Entry Sheet in order to post the costs to a work order. Thus, the information required would be if the client has the ability to provide external contractors with an Adobe Interactive Form that mirrors the CATS timesheet, which will then be completed and uploaded into the SAP system in the CATS module.
Our team is currently weighing the viability of multiple options, with the use of Adobe Interactive Forms being one of them. Any information on possible technical solutions, feasibility, architecture for the use of Adobe Interactive Forms would be much appreciated.
Thanks,
AkashHi Akash,
Filling an Adobe Form offline and uploading the data back is very much possible.
You may have a look at these -
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/how-to%20guides%20-%20rig%20official/nw2004/webas/how%20to%20create%20online%20and%20offline%20forms%20in%20web%20dynpro.pdf">Online and Offline forms.</a>.
<a href="/people/sijesh.manohar/blog/2006/11/22/enabling-approval-within-interactive-forms">Automatic updation through GP.</a>.
Also do learn more about the possiblities at <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/interactiveforms">Interative Forms Page.</a>.
Hope these helps.
Thanks and Regards,
Anto. -
Error in Adobe Interactive forms
Hi All,
I am implementing MSS/ESS.
I created an Adobe Interactive form in my View and mapped it with the corresponding context. I binded the interactive form(in the Right Click->Interactive Form->Edit) also with the corresponding context. But when I run the Application, I am not getting the following error.
com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRuntimeException: IOException occured while creating template stream from the TemplateSource : ./temp/webdynpro/public/sap.com/ess~rep/webdynpro/Components/com.sap.xss.hr.rep.vciframe.VcRfwIFrame/VcRfwIFrameView_InteractiveForm.xdp (No such file or directory (errno:2))
But the VcRfwIFrameView_InteractiveForm.xdp is available in the respective folder.HI
Hi
Firstly check weather ur ads configuration of the server is done properly. i
see weather ur ads settings are as per the following document
Tutorial on Installing Credentials and Configuring ADS
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f03414f8-d4ce-2a10-d4b6-ab201b329d98
f yes ur ADSUser password
must have expired follow the steps to reset the password
SAP NetWeaver '04 / 2004s
1. Log on to the Visual Administrator.
2. Follow the path:
Server -> services -> Security Provider -> User Management tab
3. Display the user ADSUser.
4. Change the ADSUser password. (You can use the same password.) Check the checkbox
'No password change is required'.
Note: The below mentioned technical user role is available for the ADSuser as of
NetWeaver 2004s SPS 7.
5. Log on to 'User Management' of your AS Java:
http://<AS Java server>:<http port> -> User Management
6. Display the user ADSUser.
7. In the 'Security policy' field, change the setting from 'Default' to 'Technical
Users' and save.
(For more information on the 'Security Policy' option, see the Release Notes in
the SAP Help Portal at
http://help.sap.com/saphelp_erp2005vp/he
lpdata/en/44/04265816343fdbe10000000a11466f/frameset.htm.)
After changing this option, the ADSUser password will not expire.
Note that this feature is not available for SAP NetWeaver '04.
regards,
Nikhil Tapkir. -
Smartforms or Adobe Interactive Forms?
Hello Folks,
my client currently are beginning the decision making process to replace all of their current Jetform based SAP printing solution to a newer more stable solution - and they are interested in the possible options available.
Note that this is a major project as we have to migrate all documents (invoices, orders, POs, account statements etc) defined in multi languages and versions. Currently we are running SAP4.6C - but there is the possibility of an upgrade in the near future too.
To me the most stable alternative right now appears to be SAP smartforms - as this is a tried, proven and well integrated technology. Now I read here about the possibilities offered by Adobe interactive forms - and that from 6.40 onwards they will be integrated into the ABAP workbench. It is not clear to me though if Adobe interactive forms are intended to replace Smartforms or if they are merely an alternative approach - and what the pros and cons are of each technique.
Also it is not clear to me how well Adobe forms can be integrated with standard NAST table style output control - is it possible to integrate adobe forms to the standard output control?
What we are really concerned with is that we spend a lot of effort migrating to Smartforms only to find out that it is yesterdays technology and that we subsequently have to remigrate to Adobe interactive forms...
Can anyone there at SAP or on SDN provide any advice as to the pros and cons of the Smartform solution when compared with Adobe interactive forms, and any advice you can offer as to which solution to opt for in our migration project?Hi Julian,
it sounds to me that all your current forms are output forms (for printing, faxing, e-mailing, etc.) i.e. non-interactive.
Interactive Forms based on Adobe software is SAP's new solution for forms development. Its first release has the focus on interactive use of forms. High-volume printing is supported in principle, but - being a new solution - the performance has not yet reached the same level as Smart Forms or SAPscript, two established solutions that had years to grow. Interactive Forms is the only solution that will continue to be enhanced with new features, while SAPscript and Smart Forms will be supported without limitations.
When (or if) to move to Interactive Forms depends on your requirements. For interactive forms usage, i.e. the new functions, you have no choice, as the existing solutions don't support it. High-volume print scenarios need to be carefully analyzed to see whether your concrete requirements can be met at this point.
However, it is possible to move to Smart Forms and design your forms in such a way that a migration at any point in the future would be but a small step. Smart Forms offers from Web AS 6.40 a migration wizard to Interactive Forms. Technically, everything can be migrated, but we recommend against things like ABAP program nodes, for example.
You are not forced to ever go to Interactive Forms if you don't want to. It really depends on whether your client needs any of the new features in Interactive Forms. Also, if they are currently working with JetForms, they could enquire with Adobe directly what migration path they offer to the joint solution.
Hope this helps.
Best regards,
Markus Meisl
SAP NetWeaver Product Management -
Howto send email with Adobe Interactive F Attachm. when saving complaint
We want to implement a scenario where we send an email after saving a complaint.
This email must have an Adobe Interactive Form (AIF) as attachment.
This AIF must contain some of the fields entered in a complaint (tables CRMD_ORDERADM_H and CRMD_ORDERADM_I ) and some customer fields which can not be found in these tables but which can be derived from the data in the tables.
As an example we used the How-To document found on SDN :
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/7089e001-fcd3-2b10-b08d-f36d78326c6e
Written by Alexander Biesinger
We followed the mentioned steps and were able to do the following :
1. Create webservice.
We followed the steps (Select Objects, Select Atributes, Maintian Attributes, Settings)
And created the webservice
Object name : ZKLACHT
Used as : Service Object
Business Object : Customer Complaint
Component : Business Transaction [BT]
Root Object : Business Transaction [BTOrder]
Function Group name : /CRMOST/ZKLACHT
Technical WS Name : ZKLACHT
2. Create document template
File type : Adobe XML Form File
Name : ZKLACHT
Object type : BUS2000120
Webservice : ZKLACHT
We then used the option "Download Schema" to download file ZKLACHT.xsd
After starting the Adobe Livecycle Designer and creating a new document a new data connection was made by selecting the XML schema file ZKLACHT.xsd.
We then added some fields of the schema to our Adobe Interactive Form and saved the form to an XDP file.
This file was then uploaded using the option "Upload template to CRM"
3. Create mailform
Name : ZKL1_KLACHTFORM
With one Text element with email body
4. After this customizing work is done we want to send out an email (body is text of step 3) with an attachment and this has to be the Interactive Form created in step 2 "Upload template to CRM"
The email must be sent after the complaint is saved and must contain some data from the complaint.
5. The last step mentioned in the How-To document (define the mail form and SAP interactive form )
defines how the created mail form and the SAP Interactive Form must be used in customising so the email can be sent with attached AIF.
However we were not able to find similar setting where we can do the same for complaints.
We would like to know if someone can help us with this scenario
Some Technical info :
- Adobe Livecycle Designer 8.0
-Component version : SAP CRM ABAP 7.0Hi,
After you've created the form sending it out as an email attachment can be done using Actions. There is a SCOT (tx code) setting for the form to be sent out as an attachment to the email. Sometimes this setting is missing and the form is sent as text in the body of the email.
Updating the CRM transaction when the user fills in data and submits the form can be achieved using a new functionality called CRM via Email. This tool will allow users to submit the form even when they are not on the network.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60fb6277-983c-2c10-f1b7-f93c34f9c7f2
Regards,
Gaurav -
List of SAP provided Adobe Interactive forms
Dear All,
Does the list of SAP provided Adobe Interactive forms exists somewhere on the SAP Marketplace?
Thanks,
Svetlana
Edited by: Svetlana Blokhina on Jan 29, 2010 11:16 AM1.) Transaction SFP:
FP_TEST_00 Output ITF
FP_TEST_01 SAPscript Texts and Text Modules
FP_TEST_02 Format Various Data Types
FP_TEST_03 PDF-Based Forms: Training Example
FP_TEST_03_TABLE PDF-Based Forms: Training Example
FP_TEST_03_TABLE_DUPLEX
FP_TEST_05 Various Data Types in Continuous Text
FP_TEST_42 Test Form for Fonts
FP_TEST_CONDITION1 PDF-Based Forms: Training Example
FP_TEST_CONDITION2 PDF-Based Forms: Training Example
FP_TEST_CONDITION3 PDF-Based Forms: Training Example
FP_TEST_CONDITION4 PDF-Based Forms: Training Example
FP_TEST_CONDITION5 PDF-Based Forms: Training Example
FP_TEST_COUNT PDF-Based Forms: Training Example
FP_TEST_DATE Date Formatting
FP_TEST_IA_01 Interactive Test Form
FP_TEST_NESTED_TABLE Nested Table
FP_TEST_PAGE_BREAK PDF-Based Forms: Example for Data-Driven Page Break
FPAYM_NL_BANKBET
FPAYM_NL_BANKINC
2.) Then just look in properties of the form for the interface.
3.) In addition you'll need the print programs. Please check the following program content for function module 'FP_FUNCTION_MODULE_NAME' to get the link to Form (Transaction SFP)
FP_TEST_00 Form Processing: Central Test Program
FP_TEST_01 Form Processing: Central Test Program with Archiving
FP_TEST_02 Form Processing - Test Program for Various Data Types
FP_TEST_03 Flight Booking Example
You will need some training documentation on the interactive forms part. By default the form is set to interactive in the layout tab -> edit -> form properties -> defaults tab -> preview type, but there's licensing involved, ADS setup etc. The best bet if you'd like to dig into this is to buy the following book: http://sap-press.com/product.cfm?account=&product=H3026 It is impressive.
Best regards,
Adrian Bruwer -
Problem by Sending an Email with attached Adobe Interactive Form (Code)
Thanks. I have written Programm, but it does not work as i want it to do. I will send an Email with attached Adobe Interactive Firm to [email protected]. I tried it with "*lo_recipient = cl_sapuser_bcs=>create( sy-uname )" at the marked(bold, fat) position. It worked but the Email was send to my SAP-Account, but i want to send to [email protected], so I tried this (see at code in bold, fat):
lo_rec TYPE adr6-smtp_addr VALUE '[email protected]'. " Empfänger Receiver
lo_recipient = cl_cam_address_bcs=>create_internet_address( lo_rec ).
But it doens`t send the email.
Can anybody help me please???
Kevin
Here my Code:
Report FP_EXAMPLE_01
Printing of documents using PDF based forms
REPORT z_example_02.
Data declaration
DATA: carr_id TYPE sbook-carrid,
customer TYPE scustom,
bookings TYPE ty_bookings,
connections TYPE ty_connections,
fm_name TYPE rs38l_fnam,
fp_docparams TYPE sfpdocparams,
fp_outputparams TYPE sfpoutputparams,
error_string TYPE string,
l_booking TYPE sbook,
t_sums TYPE TABLE OF sbook,
l_sums LIKE LINE OF t_sums,
fp_formoutput TYPE fpformoutput.
PARAMETER: p_custid TYPE scustom-id DEFAULT 38.
SELECT-OPTIONS: s_carrid FOR carr_id DEFAULT 'AA' TO 'ZZ'.
PARAMETER: p_form TYPE tdsfname DEFAULT 'FP_EXAMPLE_01'.
PARAMETER: language TYPE sfpdocparams-langu DEFAULT 'E'.
PARAMETER: country TYPE sfpdocparams-country DEFAULT 'US'.
Get data from the following tables: scustom(Flight customer)
sbook (Single flight reservation)
spfli (Flight plan)
SELECT SINGLE * FROM scustom INTO customer WHERE id = p_custid.
CHECK sy-subrc = 0.
SELECT * FROM sbook INTO TABLE bookings
WHERE customid = p_custid
AND carrid IN s_carrid
ORDER BY PRIMARY KEY.
SELECT * FROM spfli INTO TABLE connections
FOR ALL ENTRIES IN bookings
WHERE carrid = bookings-carrid
AND connid = bookings-connid
ORDER BY PRIMARY KEY.
Print data:
First get name of the generated function module
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
EXPORTING
i_name = p_form
IMPORTING
e_funcname = fm_name.
IF sy-subrc <> 0.
MESSAGE e001(fp_example).
ENDIF.
Set output parameters and open spool job
fp_outputparams-nodialog = 'X'. " suppress printer dialog popup
fp_outputparams-getpdf = 'X'. " launch print preview
CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
ie_outputparams = fp_outputparams
EXCEPTIONS
cancel = 1
usage_error = 2
system_error = 3
internal_error = 4
OTHERS = 5.
Set form language and country (->form locale)
fp_docparams-langu = language.
fp_docparams-country = country.
*fp_docparams-fillable = 'X'.
*fp_docparams-langu = 'E'. "wird jetzt automatisch gesetzt, bzw. kann dynamisch verändert werden
*fp_docparams-country = 'GB'. "wird jetzt automatisch gesetzt, bzw. kann dynamisch verändert werden
currency key dependant summing
LOOP AT bookings INTO l_booking.
l_sums-forcuram = l_booking-forcuram.
l_sums-forcurkey = l_booking-forcurkey.
COLLECT l_sums INTO t_sums.
ENDLOOP.
Now call the generated function module
CALL FUNCTION fm_name
EXPORTING
/1bcdwb/docparams = fp_docparams
customer = customer
bookings = bookings
connections = connections
t_sums = t_sums
IMPORTING
/1bcdwb/formoutput = fp_formoutput
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4.
IF sy-subrc <> 0.
CALL FUNCTION 'FP_GET_LAST_ADS_ERRSTR'
IMPORTING
e_adserrstr = error_string.
IF NOT error_string IS INITIAL.
we received a detailed error description
WRITE:/ error_string.
EXIT.
ELSE.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDIF.
Close spool job
CALL FUNCTION 'FP_JOB_CLOSE'
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 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.
*********************Send the form*******************
*********************to the Customer*****************
*********************via Email***********************
*IF i_down = abap_true.
DATA: filename TYPE string,
path TYPE string,
fullpath TYPE string,
default_extension TYPE string VALUE 'PDF'.
Data:
lt_att_content_hex TYPE solix_tab.
*DATA: data_tab TYPE TABLE OF x255.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = fp_formoutput-pdf
TABLES
binary_tab = lt_att_content_hex.
CLASS cl_bcs DEFINITION LOAD.
DATA:
lo_send_request TYPE REF TO cl_bcs VALUE IS INITIAL.
lo_send_request = cl_bcs=>create_persistent( ).
DATA:
lt_message_body TYPE bcsy_text VALUE IS INITIAL.
DATA: lo_document TYPE REF TO cl_document_bcs VALUE IS INITIAL.
APPEND 'Dear Vendor,' TO lt_message_body.
APPEND ' ' TO lt_message_body.
APPEND 'Please fill the attached form and send it back to us.'
TO lt_message_body.
APPEND ' ' TO lt_message_body.
APPEND 'Thank You,' TO lt_message_body.
lo_document = cl_document_bcs=>create_document(
i_type = 'RAW'
i_text = lt_message_body
i_subject = 'Vendor Payment Form' ).
DATA: lx_document_bcs TYPE REF TO cx_document_bcs VALUE IS INITIAL.
TRY.
lo_document->add_attachment(
EXPORTING
i_attachment_type = 'PDF'
i_attachment_subject = 'Vendor Payment Form'
i_att_content_hex = lt_att_content_hex ).
CATCH cx_document_bcs INTO lx_document_bcs.
ENDTRY.
lo_send_request->set_document( lo_document ).
DATA:
lo_sender TYPE REF TO if_sender_bcs VALUE IS INITIAL,
lo_send TYPE adr6-smtp_addr VALUE '[email protected]'. "Absender SENDER
lo_sender = cl_cam_address_bcs=>create_internet_address( lo_send ).
Set sender
lo_send_request->set_sender(
EXPORTING
i_sender = lo_sender ).
Create recipient
DATA:
lo_recipient type ref to if_recipient_bcs value is initial.
Data:
lo_rec TYPE adr6-smtp_addr VALUE '[email protected]'. " Empfänger Receiver
lo_recipient = cl_cam_address_bcs=>create_internet_address( lo_rec ).
*lo_recipient = cl_sapuser_bcs=>create( sy-uname ).
Set recipient
lo_send_request->add_recipient(
EXPORTING
i_recipient = lo_recipient
i_express = 'X' ).
*lo_send_request->add_recipient(
*EXPORTING
*i_recipient = lo_recipient
*i_express = 'X' ).
Send email
DATA: lv_sent_to_all(1) TYPE c VALUE IS INITIAL.
lo_send_request->send(
EXPORTING
i_with_error_screen = 'X'
RECEIVING
result = lv_sent_to_all ).
COMMIT WORK.
MESSAGE 'The payment form has been emailed to the Vendor' TYPE 'I'.Hi Kevin,
Please try this code to send your mail, i wrote it and works well in many system.
Take care if in your profile you got an e-mail adress define .
Take care also of trnasaction SCOT customizing, are you able to send mail to e-mail adress ?
Let me know if it's works.
Best regards.
<i>**----
CLASS-DEFINITIONS
DATA: send_request TYPE REF TO cl_bcs.
DATA: document TYPE REF TO cl_document_bcs.
DATA: sender TYPE REF TO cl_sapuser_bcs.
DATA: recipient TYPE REF TO if_recipient_bcs.
INTERNAL TABLES
DATA: l_mailtext TYPE soli_tab.
DATA: iaddsmtp TYPE TABLE OF bapiadsmtp.
DATA: ireturn TYPE TABLE OF bapiret2.
VARIABLES
DATA: mail_line LIKE LINE OF l_mailtext.
DATA: bapiadsmtp TYPE bapiadsmtp.
DATA: subject TYPE so_obj_des.
DATA : att_subject TYPE so_obj_des.
DATA : w_except TYPE REF TO cx_root .
CONSTANTS : c_defmail TYPE ad_smtpadr VALUE
'[email protected]' .
FIELD-SYMBOLS : <smtp> TYPE bapiadsmtp.
*Convert the pdf given by function module into Binary .
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = output-pdf "PDF file from function module
TABLES
binary_tab = hexa.
*Set subject of the mail
subject = 'Exemple de PDF interactif'.
Set text of the mail
mail_line = 'Merci de remplir le formulaire et nous le retourner'.
APPEND mail_line TO l_mailtext .
Set the name of the attached document
att_subject = 'Template du PDF'.
TRY.
Create persistent send request
send_request = cl_bcs=>create_persistent( ).
Get sender object
sender = cl_sapuser_bcs=>create( sy-uname ).
Add sender
CALL METHOD send_request->set_sender
EXPORTING
i_sender = sender.
Read the E-Mail address for the user
CALL FUNCTION 'BAPI_USER_GET_DETAIL'
EXPORTING
username = sy-uname
TABLES
return = ireturn
addsmtp = iaddsmtp.
LOOP AT iaddsmtp ASSIGNING <smtp> WHERE std_no = 'X'.
CLEAR bapiadsmtp.
MOVE <smtp> TO bapiadsmtp.
ENDLOOP.
CASE bapiadsmtp-e_mail.
WHEN space.
No adress main for user, so send it to the default mail adress
recipient =
cl_cam_address_bcs=>create_internet_address( c_defmail ).
WHEN OTHERS.
recipient =
cl_cam_address_bcs=>create_internet_address( bapiadsmtp-e_mail ).
ENDCASE.
Add recipient with its respective attributes to send request
CALL METHOD send_request->add_recipient
EXPORTING
i_recipient = recipient
i_express = 'X'
i_copy = space
i_blind_copy = space
i_no_forward = space.
Set that you don't need a Return Status E-mail
CALL METHOD send_request->set_status_attributes
EXPORTING
i_requested_status = 'E'
i_status_mail = 'E'.
set send immediately flag
send_request->set_send_immediately( 'X' ).
*Build Document
document = cl_document_bcs=>create_document(
i_type = 'RAW'
i_text = l_mailtext
i_subject = subject ).
add attachment to document
CALL METHOD document->add_attachment
EXPORTING
i_attachment_type = 'PDF'
i_attachment_subject = att_subject
i_att_content_hex = hexa.
Add document to send request
CALL METHOD send_request->set_document( document ).
Send document
CALL METHOD send_request->send( ).
COMMIT WORK.
CATCH cx_send_req_bcs INTO w_except.
CATCH cx_address_bcs INTO w_except.
CATCH cx_document_bcs INTO w_except.
ENDTRY.</i> -
How to binnding the data in the adobe interactive forms for making a table?
Hi, experts,
Function:
Through the sharing context node between adobe interactive form and a WDA for ABAP, display the data of the sflight_node in the ADOBE.
version:
Acrobat Reader 8.1.0
currently both of the SAP-ABA and SAP-BASIS SP level: 9
ADS : Successful.
The following is my action:
1. Create a interface (Z_SFLIGHT_INTF) with a attribute node (SFLIGHT_NODE) that type is "sflight" using the transaction code "sfp"
2. Create a form (Z_SFLIGHT_FORM) using the transaction code "sfp" with the interface Z_SFLIGHT_INTF.
3. Trag the sflight_node in the Z_SFLIGHT_INTF to the form( Z_SFLIGHT_FORM).
4. Open the layout tab in the form(Z_SFLIGHT_FORM), and create a table(table1). Click the table created just now, select the binding tab in the object tab, and in the Default Binding, select the SFLIGHT_NODE under the Z_SFLIGHT_FORM.
Problem 1:
Do you tell me whether is right for binding the context SFLIGHT_NODE using this way? If bind 3 context attributes in the sflight, how can I do it?
5. Create a WDA for abap (ZZ_02_SFLIGHT), and create a view(MAINVIEW) using transaction code "se80" in the sap-gui with adobe interactive form. Set the templatesource(Z_SFLIGHT_FORM) in the adobe interactive form properties and saved, and then, datasource is "MAINVIEW_Z_SFLIGHT_FORM" automatically.
6. But I only found the attribute SFLIGHT_NODE under the context node(Z_SFLIGHT_NODE), and I don't found the NODE ( SFLIGHT_NODE ) context in the context tab in the WDA for abap so that I don't set data to the context NODE (SFLIGHT_NODE).
Problem 2:
Do you tell me what can I do it so that I get the node SFLIGHT_NODE rather than attribute in the WDA for setting the data to the CONTEXT NODE (SFLIGHT_NODE)?
Thanks a lot.
Best regards,
TaoHi, experts,
You can reply back to me via e-mail if you think we should discuss this internally at [email protected] or [email protected]
Thanks a lot.
Best regards,
tao
Maybe you are looking for
-
Hi All, I am trying to activate EWA for ERP DEV system and presently I don't have QAS and PRD system available for me. I have done following steps - 1. Install Solution Manager EHP1 and applied all latest patches in ABAP and Java stack. 2. Did Initia
-
How to determine the get/set methods of an element from the schema
Is there a way that I can obtain the java method call to an element using only the schema (maybe using SchemaTypeSystem, SchemaType, SchemaComponent)? For instance, as I traverse the schema is there a method that I can call that will return: "getPurc
-
Why are my iTunes movies subtitled in Spanish?
I'm not sure if it's an iTunes issue or iPad (the device upon which I watch my movies), but when I watch a movie and there's the occasional subtitle, it's always in Spanish. I can't figure out how to change this. Any ideas? Thanks
-
In this forum, where do I find my previously asked question?
I just posted a question to this forum, and was asked to create a login, which I did. But I can not see the question anywhere. Shouldn't I be able to trace it when I am logged in?
-
Locally I have 32 bit windows and the server is 64 bit. When I try to change the provider locally to SQLNCLI11.1, the connection test succeeds but when I close the package and reopen it the provider is set to 10.1 again. Do I need to install a driver