Converting a RAWSTRING to RAW for mailing Adobe Forms
Hi,
I am trying to send a PDF form to an external email using the function module described in Weblog:
/people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface
The Adobe form was created using transaction SFP (ERP2004). After calling this FM parameter /1BCDWB/FORMOUTPUT-PDF gives me back the PDF file as a data type 'RAWSTRING' (so one single line with all data in it). In order to use the function module from the weblog I need to transform this single line to multiple 255 character lines in table CONTENT_HEX (data type 'RAW').
Does anyone know if there is an easy way to convert a RAWSTRING field to multiple RAW lines?
Thanks in advance,
Michiel van Rhoon
Hi Michiel,
Check out this code, I am sorry it is in dutch, but these are just variables:
data: teller type I,
lengte type I,
restlengte type I,
pos type I.
lengte = xstrlen( FORMINHOUD-PDF ).
teller = lengte div 255.
restlengte = lengte - ( teller * 255 ).
pos = 0.
DO teller TIMES.
MOVE FORMINHOUD-PDF+pos(255) TO PDF_regel-line.
Append PDF_regel to PDF_tab.
pos = pos + 255.
ENDDO.
MOVE FORMINHOUD-PDF+pos(restlengte) TO PDF_regel-line.
Append PDF_regel to PDF_tab.
Cheers,
Noel
Similar Messages
-
INBOUND MAIL PROCESSING in SAP for Offline ADOBE FORM Concept
Hi to all,
Please can anyone tell me, what INBOUND MAIL PROCESSING in SAP for Offline ADOBE FORM?
What is concept and how to use it, is any program need to write for that or only need to configure it.
I have searched the SDN, but only get topic how to configure inbound mail processing.
I am new to this area; please any one put some light on it.
I shall be thankful to you for this.
Regards
Pavneet RanaHi Pavneet,
Inbound processing of an offline adobe form consists of several things -
a) an email id to be created on the server (to accept the mail & process the adobe form - this needs to have the right roles)
b) the smtp config needs to be done by basis
c) the abap developer needs to create a handler class that gets called when an email is recd in SAP. This handler class has 3-4 methods (first to read the mail and extract the pdf, convert data in pdf to the abap variable, process the form to do the specific function in sap (which will vary from requirement to another).
I found this blog very useful when I was getting my adobe form done -
/people/thomas.jung3/blog/2004/09/09/receiving-e-mail-and-processing-it-with-abap--version-610-and-higher
Hope this helps.
Cheers, Liz
(ps: you might get more help in the adobe form specific forum in sdn) -
How to provide security settings for the adobe form using livecycleDesigner
Hello,
I am very new to form designing,
can any one please tell me how to provide security settings for the adobe forms at client side?
Regards,
MenakaHi,
that is a good topic for the ADFS forum.
ADFS forum - http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=Geneva
But you could pass the user-agent as incoming claim type Client User agent. User-agents can be manipulated, so if that is an issue you can look into Device Registration and the Device OS type from there. That is also a incoming claim but requires DRS and
DRS is not available for all plattforms.
Hth,
Lutz -
Authorization Profile needed for ISR Adobe Forms
Hi,
We have a couple of Custom ISR's and PCR's that are launched in Enterprise Portal.
Well my Development ID had <b>SAP_ALL</b> and <b>SAP_NEW</b> Profiles attached.
Now, when we started testing with the sample Test id's which doesnt have SAP_ALL or SAP_NEW profiles, we are getting error in ENTERPRISE PORTAL saying that...
"<i>You are not authorized to use the Notification Type 99</i>"
Can anyone help me out in knowing the exact Authorization Objects for our Adobe Forms to run in EP.
I cannot attach SAP_ALL and SAP_NEW profiles to all my users.
Regards,
<i><b>Raja Sekhar</b></i>Hi,
Im new to the ISR framework implementation.
We have a problem when we try testing a scenario using the adobe part, we have not done this before and we getting errors.
We get the following errors:
1. When using Administrator and Adsuser:
com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: ComponentUsage(FPMConfigurationUsage): Active component must exist when getting interface controller. (Hint: Have you forgotten to create it with createComponent()? Should the lifecycle control of the component usage be "createOnDemand"?
2. When i use my profile username:
com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"https://10.142.252.157:50001/AdobeDocumentServicesSec/Config?style=document:50000/AdobeDocumentServices/Config?style=document"
Can anyone advise me on what i should configure so that this can work properly...
Is it an issue with the authorisation, because the ADS tests are all working.
Thanks
Joseph Tshwene -
Webdynpro for ABAP - Adobe form ISR based
Hi,
We are building a custom HR application to automate various HR processes
like New Hire, Termination, etc.. Due to certain internal issues we are
unable to use the standard business package for MSS (and hence PCR screens
with adobe forms). We have to create custom webdynpro abap screens for the
whole application. Now i would like to check if there is a possibility to
use the ISR framework with a custom webdynpro abap application.
I checked the transaction QISRSCENARIO but i could not find any option for
webydnpro abap in "Entry type for Web".
Have anyone of you tried such a scenario earlier with ISR's? Is there any other way
that we can use webdynpro ABAP applications with ISRs? Or do we have any
work around for this.
Please send in your valuable comments.
Thanks in advance!
SudhaHi Phani,
Thanks for the info.
I am able to see if it is not interactive.
Displaytype is native only.
Let me explain you the issue in detail:
Currently Client is calling ZFORM thro Java. They have some issues with JAVA so they want to use Webdynpro to call that ZFORM and the form is ABAP Dic based.
For Templete source I gave ZFORM name, and it automatically created a 'NODE' wrt the context in the ZFORM.
Now I have to pass data from difft node attributes to that 'NODE'.
Thanks in advance,
GG -
Help for Interactive ADOBE form
Can anybody tell me the example of Interactive ADOBE form usin web dynpro in ABAP? I am getting stucked at mapping between the two contexts. PLease guide me. And also the next step for Interactive form. After mapping betwwen form and web dynpro context.
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 -
Is WebDyn ABAP or WebDyn JAVA better for developing Adobe forms ?
Hi Experts,
For our project development we have to decide the option of using Webdynpro ABAP and Webdynpro Java for developing Interactive forms.
What are the pros and cons when it come to select between Webdynpro ABAP and Webdynpro Java for developing Interactive forms.
Can someone provide the advantages and disadvantages over each other.
Thanks in advance.
Edited by: VINAY on Jun 17, 2010 12:45 PM
Edited by: VINAY on Jun 17, 2010 12:48 PMHi Vinay,
It depends on various factors. one is skill availability. IF client has Strong ABAP Development team, Client can go with WebDynpro ABAP, but if client has more Java skills, no issue in going with WebDynpro Java.
In HR, If you choose to use WD-ABAP, you can use many standard WD-ABAP components as search helps. ( WD-abap components HRRCF_C* , HRASR_C* etc )
But do keep in mind that, even if you go with WD-ABAP, you cannot do away with scripting using FormCalc or Javascript in Adobe Form depending on the complexity & UI elements/Search helps etc.
I personally prefer WD-ABAP & would strongly recommend WD-ABAP. Afterall, it is the language of SAP :).
Thanks,
Phani -
Requirements for displaying Adobe forms
Dear All,
I have developed an application with interactive form ui element(Adobe). When I deployed the application I was not able to see it initially but after the installation of ACF I am able to see it perfectly(thanks to Arafat in this forum). Now, I just want to know what are the end user requirements in order to be able to see the application on their end. My queries are:
1. What are the end-user requirements in order to see these adobe interactive forms?
2. What is the native type in interactive forms UI element and what does it do(if I set type as native)? In which version this native type is available. I am using 2.0.9 version right now(I have 7.0 version too) but I was unable to find this type in any of them.
3. Does the user requires the installation of ACF in order to view this adobe form once deployed on their server?
4. What is the minimum version of Adobe that needs to be available at the client machine in order to be able to view this interactive form?
I hope I am clear with what my doubts are. It's a bit urgent . Helpful answers will be appreciated with reward points.
Thanks and Regards,
Gaurav BhardwajHi Gaurav,
Here are answers to your queries:
1: End User Requirements -
If you are using activex controls:
- Adobe Reader 7.x or above and when using ver 8, then 8.1 & above
- ACF Installed
If you are using Adobe Native Controls:
- No need for ACF
- Adobe Reader 8.1.x or above
2: You can find native type nder displaytype property of Interactive form UI elemen. If you are using the nativ type, then it makes the ZCI.
3: Yes, if you are using ActiveX components in your form, then you need ACF
4: 8.1 or above is best... 7.x will also do but there may be some instances where 7 wouldnt work
Hope this resolves your issues.
Regards,
Arafat -
Web Dynpro for ABAP Adobe Forms
We have created a table with fields.
How can we create a Web Dynpro for ABAP applicaton to populate these fields into an Adobe Form?hi,
Refer this: /people/bhawanidutt.dabral/blog/2007/11/15/how-to133-integrate-adobe-form-on-webdynpro-for-abap-and-deploy-it-on-portal
If you have created Fields or Table in Adobe form then you can populate those fields in Adobe form.
When you give the name of Adobe form in the Template Source Property of Interactive UI then screen will pop up asking to make contexts for the fields in adobe form.
If you click on yes, then you will have automatically created context corresponding to Fields or Table in your WD application.
Write the suitable logic to populate the Contexts in Wd Do init or using supply funciton
This way your Adobe form will be populated with values.
I hope it helps.
Thanx.
Saurav. -
Transaction code for creating adobe forms
hi guys,
i was trying to learn adobe forms. can anyone tell me the t.code like where to create adobe forms.
points will be awarded generously.Hi,
t.code SFP.
definition:
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.
go thru this links
http://help.sap.com/saphelp_nw04/helpdata/en/d2/4a94696de6429cada345c12098b009/frameset.htm
example
To get an overview idea about Adobe forms ,
Using SFP , first you need to create a interface . in interface you can declare the import and export parameters and also the declaration part, coding etc : This is nothing but similar to Function module interface.
And now we have to create the Form which is interactive. Create the form and enter the interface name which you have created in first step, so that the parameters , declarations of fields etc : will be copied and available in the form layout. So that you can drag and drop these declared fields ( dclared fields of interface ) to the layout.
Create the context and layout in the form.
The layout generated can be previewed and saved as PDF output.
Now we need to integrate the driver program and the PDF form to get the final output as per the requirement.
On activating and executing the form you will get a function module name just similar to smartforms.
The driver program needs to call this FM.
Refer to the below sample code :
DATA : is_customer TYPE scustom.
DATA : it_bookings TYPE ty_bookings.
DATA : iv_image_url TYPE string.
DATA : iv_sending_country TYPE adrc-country.
DATA : it_sums TYPE TABLE OF flprice_t.
DATA : docparams TYPE sfpdocparams.
DATA : formoutput TYPE fpformoutput.
DATA : outputparams TYPE sfpoutputparams.
PARAMETERS : pa_cusid TYPE scustom-id.
SELECT SINGLE * FROM scustom INTO is_customer
WHERE id = pa_cusid.
SELECT * FROM sbook
INTO CORRESPONDING FIELDS OF TABLE it_bookings
WHERE customid = pa_cusid.
outputparams-nodialog = 'X'.
outputparams-getpdf = 'X'.
*outputparams-adstrlevel = '02'.
CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
ie_outputparams = outputparams
EXCEPTIONS
cancel = 1
usage_error = 2
system_error = 3
internal_error = 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.
docparams-langu = 'E'.
docparams-country = 'US'.
docparams-fillable = 'X'.
CALL FUNCTION '/1BCDWB/SM00000043'
EXPORTING
/1bcdwb/docparams = docparams
is_customer = is_customer
it_bookings = it_bookings
IV_IMAGE_URL =
iv_sending_country = 'US'
IT_SUMS =
IMPORTING
/1bcdwb/formoutput = formoutput
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.
CALL FUNCTION 'FP_JOB_CLOSE'
IMPORTING
E_RESULT =
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.
Reward points
Regards
pc -
What's the business case for using adobe forms for handling print forms
Hi
We are just starting our SAP project and are looking at the possibility to use Adobe forms for generating and printing our forms, like purchase orders, invoices etc.
My Question is:
1. Is this possible / adviseable ?
2. if so - what's the business case in using Adobe forms - <i> We have been looking on the SAP Pricing for adobe interactive form, and in our point of view it's grotesque high</i>
3. What other options do we have - do we need to settle with SAP Script / Smartforms ?
Regards
Morten NielsenHi Morten,
1. Is this possible / adviseable ?
As far I know SAP is going to stop support for SAPScript in coming years (I don't know exact dates). It is pretty much advisable to use Adobe Print Forms.
2. if so - what's the business case in using Adobe forms - We have been looking on the
SAP Pricing for adobe interactive form, and in our point of view it's grotesque high
We can use Adobe Print Forms where ever we can able to use SApscripts/PDF print Forms.
3. What other options do we have - do we need to settle with SAP Script / Smartforms ?
It is better to settle with Adobe forms rather than using SAPscript/Smart forms. One of the main reason for this is maintainance is much easier than SAPscript/Smart forms.
But remember that Java Stack need to be installed in order to use Adobe Forms.
Please visit the below SDN area on Adobe forms for more details.
https://www.sdn.sap.com/irj/sdn/interactiveforms
Thanks
Ramakrishna
Message was edited by:
Ramakrishna Ramisetti -
CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
ie_outputparams = ie_outputparams.
*data : fm_name_appl type rs38l_fnam.
*CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
* EXPORTING
* formname = 'ZHR_OFFER_FORM'
* IMPORTING
* fm_name = fm_name_appl
* EXCEPTIONS
* no_form = 1
* no_function_module = 2
* OTHERS = 3.
* IF sy-subrc EQ 0.
* CALL FUNCTION fm_name_appl "'/1BCDWB/SM00000046'
CALL FUNCTION '/1BCDWB/SM00000046'
EXPORTING
/1BCDWB/DOCPARAMS = /1BCDWB/DOCPARAMS
APPLICANT_NAME = G_APPLNAME
POSITION = POSITION_1000
JOINING_DATE = join_1000
REPFORM = g_repFORM_name
REPMGR = g_repmgr_name
CONTROLMGR = g_controlmgr_name
PLACE = PLACE_1000
APPLICANT_GENDER = G_APPL_GENDER
BASE_PLACE = loc_1000
REPMGR_GENDER = g_repmgr_gender
REPFORM_GENDER = G_REPF_GENDER
CONTROLMGR_GENDER = g_controlmgr_gender
GROSSS = gross_1000
BASIC = basic_1000
CONVEYANCE = conv_1000
FOOD = food_1000
VARIABLE = var_1000
CITY = g_ORT01
DISTRICT = g_ORT02
ADDRESS = g_stras
C_DATE = sy-datum
APPLICANTID = pernr1_1000
IMPORTING
/1BCDWB/FORMOUTPUT = /1BCDWB/FORMOUTPUT
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.
*endif.
CALL FUNCTION 'FP_JOB_CLOSE'.
Dear Experts i need to send this form which is created by (adobe forms) to mail how to do this can any one give some ideas,
Thanks and Regards,
Thirukumaran. RI hope you want to send it as Attachment then in that case it is similar
using this /1BCDWB/FORMOUTPUT-PDF you can do that..
call function 'SCMS_XSTRING_TO_BINARY'
exporting
buffer = /1BCDWB/FORMOUTPUT-PDF
tables
binary_tab = t_pdf_data.
now use the binary data as attachement and send it. make sure the attachment type is 'PDF' -
I am having problem for activate adobe form in transaction.code SFP
Dear friends,
I am getting one dialogbox with error message when ever i activate adobe form in transaction code sfp.
ERROR is :
THis form refers to external files which where not found on this computer. please create a connection to the following folder so that these files can be found.
http://localhost:8000/sap/bc/form/layout/exactly the same problem here.
Somebody any idea?
All help is appreciated.
Tnx!
RoB -
A user manual for creating adobe form with transaction HRASR_DT
Hi ,
can any one tell me please if there is A user's manual for this ?
I m new with this subject and need help .
Best Regards,
EyalHi Federico,
Thank you very much ! very helpfull .
I have another question -
I have created all required setting for creating HCM Form and in the last step - Creating procces ,
after insert the form scenario and save my entries i get the following message - ASSERTION_FAILED.
what is this ????? how can i correct this problem ?
Best Regards,
Eyal -
Creating multiple templates for an adobe form
Hi Experts,
I am using Adobe Designer 7.1 and using SFP T-code to design the adobe forms in SAP ECC 6.0.
I have a requirement where user needs to select a desired template from a set of custom designed layout templates and then, the abode form should be generated based on the selected template.
Is it possible to create different layout templates and select them at a run time to generate the final adobe form ?
Thanks in advance.
Regards,
V Joshi.Hi,
If you install demonstrative application to your workspace, you can see example how use custom authentication.
This might also help
http://www.oracle.com/technology/oramag/oracle/09-may/o39security.html
http://download.oracle.com/docs/cd/E17556_01/doc/user.40/e15517/concept.htm#sthref96
http://download.oracle.com/docs/cd/E17556_01/doc/appdev.40/e15516/build_app.htm#sthref132
Br,Jari
Maybe you are looking for
-
How can I get a PC connect to my home Airport Extreme network ?
HELP! I'm trying to get a new PC (that we know has a working wireless card-it works fine at Best Buy) to connect to my home Airport Express network? It's an older Apple Airport, but I have multiple Mac's of various ages, an iPad, 2 iPhone 4S & an iP
-
I5Grid MII 14 MDO Filter Expression
Hi Guys, I am building a sample webpage to display MDO query data using I5Grid. I am not sure if I am missing any lines. attached is my code and the webpage is empty with no errors on the browser console If I remove the below lines, the grid appears,
-
Proper stock transfering not happening for intercompany
Hi Friends, When I executed the scenario of procure to pay using replenishment for intercompany am getting the proper result step by step in IDES for standard document type (NB for PO). Now I have created my own document type for PO and have assigned
-
USE OF FUNCTION FORM_SUCCESS
Hi, Can any one please tell me if i can use FORM_SUCCESS with CLIENT_HOST command? The code is as follows. l_host_cmnd := ' ftp âs:' || l_ftp_destination || '/' || 'temp.txt'; HOST( l_host_cmnd, NO_SCREEN); if not form_success then message(The file
-
Hi there, Anyone know how you search a chm for special characters? In our product, we have a group template with a [S] suffix. And I have documented these group templates in my help file. But if I want to find this section in the chm, how do I search