Interactive form code page encoding
hi gurus,
could you please tell me where to set the code page encoding type of a WDA PDF FORM?
thanks and best regards.
Jun
Hi did you solved your problem please?
Regards,
Ari
Similar Messages
-
Not Displaing Interactive form in page
Hi All,
I am was working with adobe interactive forms but suddenly stoped showing the form on one fine morning. bellow is the error given by server
<b>'sapUrDomainRelaxing' is undefined</b>
any one has any idea what could be this error. I tried to develop a simple application where there is just a simple interactive form so no other complexity in the form. so this is not the error in development / code. what could be the other issue as previously it was running fine
Thanks
NinadHi Olaf,
I have checked the link that is not the problem because upto yesterday the same application was running fine and we don't had any issues and suddenly started giving this error so I tried another simple application which have no coplexity as the previous one and still problem persist so I guess this is not the problem with code or WebDynpro but with the configuretion in administration part but I don't know where exactly
so please guide me for the same
Thanks
Ninad -
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> -
Adobe Interactive Form - Master Page vs. Body Page
Hi
Could someone please explain to me what
1) the difference between the Master Page and Body Page and when to use the Master page
2) the reference object and when to use it
I am new to this and I cannot find any answers related to this in SDN
Thankshi,
The master and body pages represent the canvas on which you build your form design.
Master Page
Every form design contains at least one master page that LiveCycle Designer creates automatically. Master pages are responsible for formatting body pages. They help to facilitate design consistency because they can provide a background and layout format for more than one of the body pages in a form design.
master pages define the orientation and dimensions of body pages. You can use master pages to define these aspects of a form design:
1.Page size and orientation
2.Headers and footers
3.Watermarks and company logos
Each master page is created with a default content area that covers the whole page. You can add text, images, and other boilerplate objects to a master page. These objects are displayed on all of the body pages that the master page is responsible for formatting.
Body pages
Body pages represent the pages of a form. Each body page derives its page size and orientation from a master page, and by default, each body page is associated with the default master page that LiveCycle Designer creates. Each body page is created with a default subform that covers the whole page.
If your form design contains more than one master page and body page, you can choose which master page to assign to a body page. -
We are having difficulty finding answers on how to control code management and promotion for our Interactive Forms by Adobe projects. We have tried to load our projects into the DTR and are having some issues, but we haven't even found anything that says that we should be trying to do so. Can anyone tell me if we should use the NWDI for our Interactive Forms code?
Thank you for any help.Hi Christopher,
the decision on whether to use NWDI for your developments has in nothing really to do with Interactive Forms, but more with how you develop your Java applictions in general.
If you have the need for a centralized development infrastructure for, for example, Web Dynpro for Java applications (of which Interactive Forms can be a part), the NWDI makes sense. If it's OK for you to do only local (i.e. non-shareable) Java development, you're OK without it: Each developer simply installs a local Java stack and the SAP NetWeaver Developer Studio, and away they go.
I may be simplifying here, but again: NWDI use and Interactive Forms are in no way related to or dependent upon one another.
Best regards,
Markus Meisl
SAP NetWeaver Product Management -
Adobe Interactive Form - Signature Software
Hello dear fellow members,
we are currently using CIC sign it software Plugin in our Adobe documents for signature.
Currently we are upgrading the reader to Adobe X.
and there comes the problem. CIC sign IT plugin in not compatiable to this version of reader.
My question is, Are ther any other Signature tools/plugin, that will capture the signature from (tablet PC) and load as image in the signature field.
All possible answers and appreciated and alternate solutions are welcome.
Note: i tried TOPAZ SigPlus - but i think i have to change my interactive form code. (am reaserching.....still going)A bit late, but SigPDF by Signature Perfect is supporting Acrobat X and Adobe Reader X, also the Protected Mode of ARX, supporting classic PDF documents and forms, but also Interactive Forms by Adobe (LiveCycle Forms). Selective Signing possible, recommended for Enterprises
Signature validation of SIGPDF signatures compatible down to A 8.1.2 and AR 8.1.2 for XFA (LiveCycle Forms) and down to A6 / AR6 for classic PDF docs / forms.
Supporting TOPAZ 1x5 LCD pads, Signotec SIGMA / OMEGA pads, "Penabled" Tablet PCs with WACOM technology (Win XP, VISTA, Win 7).
Actually already testing for A 11 / AR 11, because we are member of the Adobe Acrobat PreRelease program
infos at www.signature-perfect.com
BR, Rolf Schmoldt -
Interactive Form - How to make fields read-only through the code?
Simple question but i can't seem to figure out how to do it. I have an interactive form that have editable fields. How do I toggle fields to make some of them read-only through the code. Please provide cold sample. thanks a lot.
<b>Nagarajan Kumarappan:</b>
I know how to do that but that's setting the value at design time. Mine has to be done at runtime(when the page loads) because there are a lot of condidtions determining which fields should be and should not be readonly. therefore I have to do in the code. Any by saying code I mean Java not java script or formcal.
<b>kushagra mittal:</b>
are you talking about regular webdynpro input fields? I am asking for that. I am talking about input fields inside my adobe interactive form embedded on the webdynpro page.
I think what needs to be done is to disable context attributes like Nagarajan Kumarappan suggested but do that through Java which I don't see any tutorials show that.
still looking for help. -
Having trouble having both an interactive form and an interactive page curl in a pdf?
Okay, so I need an interactive pdf with a page curl AND an interactive form. I exported my Indesign file as a swf file with the interactive page curl, (which the interactive form doesn't work on), then I imported the swf file back into Indesign, opened the media tab and chose the option to 'open file on current page' so that when I open the pdf it doesn't ask me to activate the file before use, and then export as an interactive pdf. the interactive page curl works perfectly, but the form doesn't work. How do I put an Indesign form into my interactive pdf?
Hi Enrico,
If I understand correctly, you are calling the addInstance() on click of the button that you placed in your form and when you add more pages using this button and save the fikle and open it again, the newly added instances are not displayed in the form. Am I right?
If this is the scenario, the you need to store the value of the forms created using this button and call the same addInstance() method in the initialize event of your form. I.e place the same code that is there in click event of the button inside the Initialize event of the form with the number that we have saved in some hidden field.
Hope this resolves your issue.
Cheers,
Arafat -
Adda more pages to an Interactive Form and the binary context
Hi to all,
my scenario is: I have a java webdynpro with a view with an interactive form of 2 pages. I inserted a button on the pdf which duplicates the second page (using java script). Then there is the "submit to SAP" button which transfers the content of the binary context (I bound it to the pdfSource attribute of the interactive form) to an R/3 system. The fact is that when then I read the "binary" file from R/3, I find only the 2 pages and not the pages I added with my button.
How can I do? It's important for me the possibility of having more second pages.
Sorry for my english,
Thanks in advance
EnricoHi Enrico,
If I understand correctly, you are calling the addInstance() on click of the button that you placed in your form and when you add more pages using this button and save the fikle and open it again, the newly added instances are not displayed in the form. Am I right?
If this is the scenario, the you need to store the value of the forms created using this button and call the same addInstance() method in the initialize event of your form. I.e place the same code that is there in click event of the button inside the Initialize event of the form with the number that we have saved in some hidden field.
Hope this resolves your issue.
Cheers,
Arafat -
Submit Interactive Form using button on Wed Dynpro page instead of in PDF
Say I've a Web Dynpro page with an interactive form embedded. Is it possible to have on the page an HTMLB button, when clicked, submit the interactive form to an iView on EP? I haven't found any tutorials showing something like this. Please advice. Basically I need to make this adobe form/web dynpro app interact with the portal (passing the completed form to the portal)? any help will be greatly appreciated. thanks again.
Hi Mick,
I don't get your exact requirements.
What i get is, you want submit to SAP button outside the adobe forms and on the webdynpro page.
Yes, you can do this thing. Whenever webdynpro page has any events at that time whatever the values on the adobe form are reflected into the node which you have bound with the Interactiveform UI element.
So, you can place your button outside adobe form also.
Now, for "submit the interactive for to an iView or EP" I can't get exactly what you want. But i can say that you can manipulate your adobe form in code using pdfObject.
Check the SAP tutorial for manipulating pdfObject.
Regards,
Bhavik -
Interactive form sample code(ABAP)
I make an ABAP program using form FP_EXAMPLE_01 folowing training document "Printing Forms with Interactive Forms Based on Adobe Software" . But it can not run.
I am new in Interactive form. Can you help me a full code sample to run this form FP_EXAMPLE_01, please.Error in adobe form
check this.
look at the Adobe page here in SDN:
Use the Tcode : SFP
https://www.sdn.sap.com/sdn/developerareas/was.sdn?page=AdobeForms.htm
Check these links on Adobe forms
http://help.sap.com/saphelp_nw04/helpdata/en/1e/05853ff8ec2c17e10000000a114084/content.htm
https://www.sdn.sap.com/irj/sdn/interactiveforms
http://www.sap.com/solutions/solutionextensions/pdf/BWP_Interactive_Forms_Adobe.pdf
It contains lots of useful information, documentation, and e-learning materials teaching you the basics.
http://help.sap.com/saphelp_nw2004s/helpdata/en/b7/64348655fb46149098d95bdca103d0/frameset.htm
follow these links.
https://www.sdn.sap.com/irj/sdn/interactiveforms
http://www.sapfinug.fi/downloads/2006/seminaari/uudet/SAP_Adobe.pdf
https://weblogs.sdn.sap.com/weblogs/topic/45?x-o=50
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 Tcode , 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.
Plzz reward if it is useful -
Hi,
We have already released our product for WinRT desktop and tablet versions.
Now we are developing the same app for Windows 8.1 Phone.
We are supporting 'Windows-1250', 'Windows-1251', 'Windows-1252', 'Windows-1253', 'Windows-1254', 'Shift-JIS', 'GB2312' and 'Big5' in both desktop and tablet versions which uses WinRT API's.
But in Windows 8.1 Phone version, i am getting 'ArgumentException' saying 'Windows-1252' is not a supported encoding name.
Please help me with a solution or workaround to support the above specified code pages for Encoding.
Regards,
Balaji Reddy. MDoes CP-1252 work? If not, this page may help:
https://social.msdn.microsoft.com/Forums/windowsapps/en-US/cf5ca6c9-72b0-4abb-9ef5-ff77226ec642/how-to-handle-unsupported-encoding-in-xml?forum=wpdevelop
Matt Small - Microsoft Escalation Engineer - Forum Moderator
If my reply answers your question, please mark this post as answered.
NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
objects and unknown namespaces. -
Interactive Form in WD ABAP, Blocks WEB page Interaction.
SCENARIO:
ABAP web dynpro with UIelement for interactive form display and editing.
1- 1st Web dynpro view with IForm element, (enable option = True) so user can edit the IForm.
2- Data node for Binding has 0-n cardinality (so in IForm a dynamic table will be generated)
3- 2nd Web Dynpro View, UI FileUpload for Iform Upload.
PROBLEMS:
1 - On Upload view, I tried the the Auto-Binding combining FileUpload and UI IForm element (as sap note) but dosen't work. For now I solved the problem the old way, converted the xml from binary to string, parsed the XML and then did backward-data-binding.
2- On PDF display view, the pdf is displayed correctly and it's editable, but any other actions user tries to do on the web page don't work.
2.1 I have a (navigate back) button on the web dynpro, but once the pdf is displayed, no interaction with the web page is possible.
NOTE: when enable option = FALSE, everything works ok, but Form is no more editable.
Can't find any sap notes that solve the problem, Help needed....One more thing:
If I put the view that contains the Iform in a popup window, I get this error when I try to close the popup, or any action on the popup window:
Short text
The ASSERT condition was violated.
What happened?
In the running application program, the ASSERT statement recog
situation that should not have occurred.
The runtime error was triggered for one of these reasons:
- For the checkpoint group specified with the ASSERT statement
activation mode is set to "abort".
- Via a system variant, the activation mode is globally set to
for checkpoint groups in this system.
- The activation mode is set to "abort" on program level.
- The ASSERT statement is not assigned to any checkpoint group
method create_by_view_element.
data:
class_registry_entry type t_class_registry,
mappings type standard table of wdr_elem_ap
mapping type wdr_elem_apt_map,
elem_defs type sorted table of wdy_ui_elem_d
elem_def type wdy_ui_elem_def,
new_entries type standard table of t_class_reg
adapters type sorted table of wdr_uiel_adap
adapter_def like line of adapters,
id_gen_entity type string.
if view_element is not bound.
==> assert 1 = 2.
endif.
read table m_class_registry into class_registry_entry
with table key view_element_cid = view_element->_cid -
How to Hide page in interactive form
Hello All,
I have developed the Interactive form for one of the HR process. Form is pread across the three pages.
My requirment is to hide the second page based on some condition. I have tried JAVA script to hide the page using below syntax but its not working.
if ($record.CARRID.value == "AA") { this.presence = "invisible";}
Am i missing something? Help needed... Thanks
Regards,
SagarHi Sagar,
Wrap all the UI elements that you want to hide inside a subform. Then try the following script in the initialize event of the subform.
if (this.CARRID.rawValue == "AA") { this.presence = "hidden";}
Thanks & Regards,
Sanoosh -
How to 'flatten' interactive forms with Fixed Pages?
I have a large project I am working on that is automating the population of forms with strict layouts. (Provided by State governments for licensing requirements). I have the need to generate flattened version, or image of the document as one of the last steps of the process. The final step is to use "Insert Pages" to include into the newly created PDF, other PDFs that were attachments to the original document. These would include employment histories, Residential histories, etc. all are in PDF format.
The current method is to print the main document to "Adobe PDF", and save the file as a PDF to the file system. This newly saved PDF will accept Inserted pages as it is no longer deemed interactive with Fixed Pages, where the original with Fixed Pages will not accept insertions.
I have not been able to find a way of doing this via Javascript.
My goal is to find a way to flatten or image the document, then insert the attachments into the main document to create one compound instrument that records the licensure filing, and can be printed off and sent to the government, and retained for proof of filing.
Any ideas of how to replicate the print to "Adobe PDF" function and retain a handle to the new document object would be greatly appreciated. The fileName feature on the print method seems to be limited to ".ps", and ".prn" extensions.
Thank You
MarkI have not been able to Add Pages to a form that has Fixed Pages - either through the UI, or JavaScript. Options are greyed out in the UI.
Could you expand on what you mean by "You can set the Designer properties to Print Form"?
Thanks
Mark
Maybe you are looking for
-
Ical is frozen due to error message that I can't resolve
I received an error message that has frozen I call when I attempted to cut and paste notes. I cannot erase, delete, or any way resolve the error message to hopefully enable ical to function again. Any help would be great!
-
Printing in black and white from an ipad on a deskjet 2540 without going through a router
My wife purchased a HP Deskjet 2540 all in one so that she can print directly from her ipad. She is going directly to the printer not through our router. It works great except that everything is printed in color? And unable to adjust the size such as
-
here is the problem: [Window Title] C:\Program Files (x86)\Adobe\Adobe Dreamweaver CS5\Dreamweaver.exe [Content] C:\Program Files (x86)\Adobe\Adobe Dreamweaver CS5\Dreamweaver.exe You can not start the program because its side-by-side configuration i
-
Tab Form LOV uses one of the other columns in that report.
Hi All. i created a Tabular Form using the Wizard. i want to change one of the columns in the report to be an LOV. the LOV has a WHERE that uses one of the other columns in that report. i tried to do something like that: SELECT <display_value>, <retu
-
Iphone 4s couldn't find carrier 3G; restore failed. Help??
I only received the iPhone 4S a week ago. Yesterday, it stopped being able to find service and the ever so intelligent AT&T Support guy suggested I backup and restore my phone because no one else was experiencing this problem. Enter my problem: I bac