Graphic in ABAP Adobe form from SE78
Hi All,
I am trying to display image(SE78) in ABAP Adobe interactive form.
But it is not displaying any image in run time.
I use following code. Can any one guide what could be the problem
method WDDOINIT .
DATA lo_nd_adobe TYPE REF TO if_wd_context_node.
DATA lo_el_adobe TYPE REF TO if_wd_context_element.
DATA ls_adobe TYPE wd_this->element_adobe.
* navigate from <CONTEXT> to <ADOBE> via lead selection
lo_nd_adobe = wd_context->get_child_node( name = wd_this->wdctx_adobe ).
* get element via lead selection
lo_el_adobe = lo_nd_adobe->get_element( ).
* get all declared attributes
lo_el_adobe->get_static_attributes(
IMPORTING
static_attributes = ls_adobe ).
*---------Code To select LOGO & PERNR
CONSTANTS: c_graphics TYPE tdobjectgr VALUE 'GRAPHICS',
c_bmap TYPE tdidgr VALUE 'BMAP' ,
c_bcol TYPE tdbtype VALUE 'BCOL'.
DATA: lv_logo TYPE tdobname.
*--pernr
ls_adobe-pernr = '80000086'.
*--Get the Logo
lv_logo = 'OURSOURCE_LOGO'.
CALL METHOD cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp
EXPORTING
p_object = c_graphics
p_name = lv_logo
p_id = c_bmap
p_btype = c_bcol
RECEIVING
p_bmp = ls_adobe-logo
EXCEPTIONS
not_found = 1
internal_error = 2
OTHERS = 3.
*--Send the values back to the node
lo_el_adobe->set_static_attributes(
EXPORTING
static_attributes = ls_adobe ).
endmethod.
I'm assuming you want a different logo per document? Otherwise, you could just use an image object in Adobe for your logo.
does the code return the appropriate subrc when you grab your logo? Do you have your context bound to an image object in Adobe?
EDIT: also, what does your Context look like?
Edited by: robert phelan on Feb 19, 2009 10:01 PM
Similar Messages
-
Calling adobe form from Web Dynpro ABAP
Hi Friends,
This is the following error, which i got when i tested my application. Calling adobe form from Web Dynpro ABAP.
WebDynpro Exception: ADS: Request start time: Tue Nov 16 14:00:22 YEKT
2010(200,101).
Can some one tell me how to solve this....
Regards
SankarHi,
Please refer to this same link in forum
WebDynpro Exception: ADS: Request start time, start Interactive Form
WebDynpro Exception: ADS: Request start time
Thanks
Pradeep -
Calling and manipulating data on an Interactive Adobe form from ABAP report
Dear All,
Can you please tell me how to call an interactive adobe from from a custom adobe form?
If so how can we pass and receive data between the interactive adobe form and the abap report program?
Thank you.
Regards,
Prosenjit.Hi,
It is possible to call an Interactive Adobe form from ABAP report and pass data into the form. If you search the forum, you will get many threads explaining the process. Let me know if you have any specific questions on this.
Regards,
Sanoosh -
Call XML Schema based Adobe form from ABAP Program
Hi,
I have a scenario where an online Interactive form is designed and its working fine. Now i have a requirement to call the same Adobe form from a report for viewing purpose. Since it is XML Schema based Interface, is it possible to call the same form instead of creating a new one with the same template? Because i tried to call the same Adobe form by passing the values and converting those to XML(By Creating Transformation). Then i converted the XML to XSTRING and passed to the Generated Function Module for Input paramter "/1bcdwb/docxml". This resulted in an error "com.adobe.ProcessingException: com.adobe.Processin".
Please help me out in solving this and check the attachment for code.
Thanks,
RajHi,
outputparams-NODIALOG = 'X'.
outputparams-PREVIEW = 'X'.
outputparams-dest = 'LP01'. "give ur printer name.
CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
ie_outputparams = outputparams
EXCEPTIONS
cancel = 1
usage_error = 2
system_error = 3
internal_error = 4
OTHERS = 5.
and Now call the generated function module
pass the following in docparams
docparams-langu = 'E'.
docparams-country = 'US'.
and finally close the job.
It should work.
Please let me know if u need further details.
Regards,
sasi -
Dropdown code in ABAP adobe form
Hi All,
I am trying to desing a dropdown can any one help in writing code for it.
1) I designed ABAP Adobe form with ZCI layout & display type as activeX
2) In layout editor I tried to use Standard->Drop-down list or
WebDynpro ActiveX->Value Help->drop down list or
WebDynpro native->Value Help->drop down list.
3) I bind drop down with context element ($record.NODE1.DATA[*].PERNR)
contect structure is as:
---Node1
Pernr
3) Then I tried to write code in 'WDDOINIT', but it is giving error
>>>>Access via 'NULL' object reference not possible
Please guide me in completing code for dropdown value help.I want to fill itab-a into node1-pernr:
method WDDOINIT .
DATA lo_nd_node1 TYPE REF TO if_wd_context_node.
DATA lo_el_node1 TYPE REF TO if_wd_context_element.
DATA ls_node1 TYPE wd_this->element_node1.
* navigate from <CONTEXT> to <NODE1> via lead selection
lo_nd_node1 = wd_context->get_child_node( name = wd_this->wdctx_node1 ).
* @TODO handle not set lead selection
IF lo_nd_node1 IS INITIAL.
ENDIF.
* get element via lead selection
lo_el_node1 = lo_nd_node1->get_element( ).
* @TODO handle not set lead selection
IF lo_el_node1 IS INITIAL.
ENDIF.
* get all declared attributes
lo_el_node1->get_static_attributes(
IMPORTING
static_attributes = ls_node1 ).
DATA: BEGIN OF itab,
a TYPE persno,
END OF itab.
DATA: wa_itab LIKE itab.
DATA: t_itab TYPE STANDARD TABLE OF itab.
wa_itab-a = '1'.
APPEND wa_itab TO t_itab.
wa_itab-a = '2'.
APPEND wa_itab TO t_itab.
wa_itab-a = '3'.
APPEND wa_itab TO t_itab.
wa_itab-a = '4'.
APPEND wa_itab TO t_itab.
******--pernr
***** ls_node1-pernr = '80000086'.
******--Send the values back to the node
lo_el_node1->set_static_attributes(
EXPORTING
static_attributes = ls_node1 ).
endmethod.}
-
Default email subject for Adobe Form from Netweaver Guided Procedure
Hi everyone.
When we generate an Adobe form from a Netweaver Guided Procedure, a default subject of "Interactive Form {xxxxxxxx}" is used where xxxxxxxx is the Process ID of the Guided Procedure. Is this default subject configurable? Where can I change it?
If we define a custom email template for the form, the subject of the email becomes our custom subject concatenated with the Process ID. Where is it defined that the Process ID must be included in the email subject?
Thanks,
.. CraigHello,
I have no experience regarding the table of pictures, but you could try a workaround if you don´t insist of displaying the images. You could attach the pictures as attachments (you know, the little attachments icon on the left in your Reader). The ABAP coding for this can be found in SE38 FP_* and when you check the descriptions you should be able to find the one working with the attachments.
Would be better than nothing I guess,
Otto -
Problem activating simple adobe form from SFP
Hi
I created a simple adobe form from transaction SFP....2 steps ...created interface then form.
the problem is when try to activate the form there are no syntax errors but iam getting a message
1,275 bytes transmitted, code page 0000
Message no. FES032
and the form is still inactive...
any idea why iam getting this error? is configuration from basis not configured properly?
Please advise
Govi1. Create RFC (ABAP system side) destination through SM59 called as ADS which should of type G
u2022 RFC Destination : ADS
u2022 Connection Type :G(HTTP Connection to External services)
u2022 Destination 1 : ADS connection to SID (Java system)
Target System settings:
u2022 Target HOST : JAVA system Host
u2022 Port : java system port
u2022 Path prefix : this defaults(/AdobeDocumentServices/Config?style=rpc)
2. Login to Visual Administration
Navigate to Server Services Destinations and select HTTP drop down.
Create the RFC destination as FP_ICF_DATA_<SID>.
Destination Name: FP_ICF_DATA_<SID>
Destination Type: HTTP
Connection settings:
u2022 URL :http://<hostname>:<ABAP-portno>
u2022 system Id :--NIL
u2022 client : ABAP system client no(200 or 300)
u2022 Language :--NIL
Logon Data:
u2022 Authentication: BASIC
BASIS Authentication:
u2022 Username:ADS_AGENT
u2022 Password:xxxxx
3. Please activate SOAP service:
Login your ABAP System
u2022 Use transaction: SICF execute and Select default hostselect sap---select bcu2014select-SOAP Select and activate -
Call standard adobe form from a WD application
Hi All,
I have a requirement of displaying a standard adobe form from a click of a button in a WDA portal,
I am an ECC developer and have no idea of WD. I created a function module which uses submit statement to invoke the driver program and displays the PDF output, but when this function module is invoked from the portal on the click of button it gives and error FP job open error.
I understand that displaying PDF wont work in this way on portal, so can anyone please guide me the correct procedure on how to achieve this.
I came across this thread
[Regarding adobe form using Webdynpro ABAP|Regarding adobe form using Webdynpro ABAP]
which mentions of feeding the complete PDF document to the UI element as an XSTRING context node bound to the pdfSource property, but the help link provided in the thread is not opening.
Thanks in advance.
Regards,
KartikHi karthick , creat a button in the view and assign a action to it .
inside that action eventhandeler method call the method for prepare_adobe _form for dislay PDF .
method ONACTIONSHOW_ADOBE_FORM .
data : l_pdfstring type xstring.
" Select for print
wd_this->prepare_adobe_forms( importing p_pdf = l_pdfstring ). " coding is given below
" Call print
cl_wd_runtime_services=>attach_file_to_response(
i_filename = 'adobe_form.pdf'
i_content = l_pdfstring
i_mime_type = 'application/pdf'
i_in_new_window = abap_false
i_inplace = abap_false ).
endmethod.
prepare PDF
method prepare_adobe_forms.
data: lv_funcname type funcname.
data: ls_outputparams type sfpoutputparams.
data: ls_formoutput type fpformoutput.
call function 'FP_FUNCTION_MODULE_NAME'
exporting
i_name = 'FP_TEST_DATE'
importing
e_funcname = lv_funcname.
ls_outputparamsu2010nodialog = 'X'. " suppress printer dialog popup
ls_outputparamsu2010getpdf = 'X'. " launch print preview
call function 'FP_JOB_OPEN'
changing
ie_outputparams = ls_outputparams
exceptions
cancel = 1
usage_error = 2
system_error = 3
internal_error = 4
others = 5.
call function lv_funcname
* exporting
* /1bcdwb/docparams = fp_docparams
importing
/1bcdwb/formoutput = ls_formoutput
exceptions
usage_error = 1
system_error = 2
internal_error = 3
others = 4.
call function 'FP_JOB_CLOSE'
exceptions
usage_error = 1
system_error = 2
internal_error = 3
others = 4.
p_pdf = ls_formoutputu2010pdf.
endmethod .
Regards
Chinnaiya P -
Adobe forms from scratch - Standard programs?
Hi,
I have just begun trying to implement Adobe forms from scratch at my company. Previosly we have used an external printing solution so I can't convert anything. My plan is to create a new output medium and let the users select the new type by themself. But I have a couple of questions:
1. How do I create a new medium (Examples: Print output/Fax/Telex, as found in t-code NACT - Processing routines)
2. I guess there are SAP standard printing programs, interfaces and forms, but I can't find them. I need to be able to print all the usual docs from orders, deliveries and invoices. All I have in NACT are old home-made (Z*) programs so if you know what SAP think we should use now, please let me know!
We have ERP6 ehp4 on netweaver 7 ehp1 and I have created one "Adobe form" myself so I can confirm that it works. but I don't want to invent the wheel twice...
Thanx in advance!
Br Linus HellsingHi Linus,
I was wondering if you had a moment to comment on an opportunity that I am having regarding Adobe forms development efforts?
If so, please read on:
Our offshore team has worked on a development effort to replace Smart Forms PO's and Contracts with Adobe forms. They created new output types for these Adobe forms. In testing I noticed that the only way I can get them to print - is if I go into Print Preview and print -or- use SP01 and click on the .pdf icon and print. In both cases it uses Adobe Acrobat to perform the actually printing.
We cannot seem to get them to print using the normal SAP message utility. Our users would expect to continue to:
1. Use the Messages button while in the PO document - and select the new output type along with Meduim= Printed Output...
2. Then they select Further data button - to specify Send Immediately.
3. Then they use the Communication Method tab and specify the Logical Destination (as LOCL) and click on the Check box for Print immediately.
They get what appears to be an rambling of Adobe error lines followed by many blank pages....
At this point I am not sure if the print program is working correctly - or if the problem is with Adobe Document Services?
Have you ever encountered a situation like this during your Adobe development efforts?
Any suggestions would be appreciated.
Regards,
Steve -
How to put water mark in web dynpro abap Adobe forms
Hi
Can any body tell me how to put water mark in web dynpro Abap adobe forms ,
actually I need to print water mark as back ground in gray color.
Points will be rewarded of Helpful answer..!
Regards,
SidramHi,
for more information about layout options in forms, go to your form in transaction SFP, layout view and choose Help -> Adobe LifeCycle Designer Help. There you find information on page layout, e.g. " Objects can be placed anywhere on a master page, inside or outside the content area. As a general rule, do not place objects inside the content area unless your intention is to have other objects laid down on top of the master page objects when the form is rendered. If you are setting up a watermark, place it inside the content area. "
Besides, there's an Adobe forum where you might get more information for such Adobe questions.
Regards, Heidi -
Picking of Adobe forms from application server
Hi Gurus
We have SAP ECC 6.0. So far in our system we have text files and CSV excel files which comes from external system and lies in application sever and these are being picked up automatically by system and gets processed in SAP.
1)The requirement is to "pick the adobe forms from application server and read some fields in the form and update the fields (required) in customer master data in SAP". How can we achieve this?
Any kind of help is appreciated.
Thanks
AleemHi Aleem,
I tried to work on a similar scenario couple of months back. But it was not successful. Will you please let me know if you get any solution???
Thanks in advance
Poornima -
Calling adobe form from webdynpro abap view
Hi,
I need some help. The situation is: I have created a Adobe form interface as well as a form using the SFP transaction. Now, I have a webdynpro screen with a button, which upon pressed must give the output of the PDF form.
I tried the following steps:
1. Call function 'FP_FUNCTION_MODULE_NAME'
2. Call 'FP_JOB_OPEN'
3. Call the generated function module name
4. Call FP_JOB_CLOSE.
The procedure works fine when I use the same code in a report program. It opens a dialog box where there is a option for Print preview and it displays the PDF.
But when I try to replicate the same, it does not work in Webdynpro for ABAP. Any suggestions as to how to go about this problem?
regards,
Praveen KumarHi Praveen
there is documentation on the Web Dynpro for ABAP integration of Interactive Forms in the SAP Help Portal at http://help.sap.com/saphelp_nw2004s/helpdata/en/aa/940ee5331b4b8fa0a6cb6714dc5db4/frameset.htm which should answer most of your questions.
You specify the form to be used during the design of your Web Dynpro application (you are prompted to determine it when you insert the UI element).
You can save the form from the Reader toolbar, the question would be why would you want to do this and not use a proper download screen.
A proper tutorial is planned to be available in June. Until then, check the ABAP page in SDN for some e-learning / webinar recording), or directly here: https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/c766e918-0b01-0010-99b1-c2b78cd059b3
Cheers,
Markus -
Select alternate tray when printing Adobe form from an ABAP prograram
I had a Smart Form where I printed to an alternate tray for 4 by 7 paper stock. I need to know how to do this in Adobe when printing a from from an ABAP program. I have printer types ZLX4039, HPLJ4 and HPLJ5SI to which I need to print my form to an alternate 4 by 7 tray.
Does anyone know how to set it up in the Adobe form and what I need to do in SPAD to handle it?
Thanks for any help,
James UgrinHi,
Go for the Device type AZPL300 : ZPL300 for PDF Documents only for the Interactive Forms
Take the Help of ur BASIS Team...in SPAD settings
Regards,
Vijaya Lakshmi.T
Edited by: Vijaya Lakshmi on Mar 25, 2009 5:49 AM -
Display Standard Program Graphic Report in Adobe Form
Hi All,
I'm new this field and really need you all expertise..
I have requirement which is to display Standard Program SAP Business Graphic Report (eg: Profile Matchup) in Adobe Form.
I also have read this blog but there is something i'm not clear...
/people/alex.liu/blog/2009/08/12/how-to-display-a-dynamically-generated-business-chart-from-igs-in-webdynpro-for-abap-application-and-adobe-interactive-form
What are the steps I should do:-
Looking forward for any reply..tqvm
Edited by: ahmad azlan on Jun 20, 2010 3:37 PMWhen you need to send a picture into the offline form:
another image question - using Regular ABAP not web dynpro and
Display a logo dynamically in adobe form
When you need to send a picture into the online form:
/people/bhawanidutt.dabral/blog/2007/11/15/how-to133-integrate-adobe-form-on-webdynpro-for-abap-and-deploy-it-on-portal
Otto
p.s.: refine your question, please -
Fetching a image in the adobe form from sap server/appliaction layer
hi all,
i want to fetch a logo/image from the application layer/ sap server, so that everyone can use it in adobe form. i have already upload the image using SE78.
I try to add the image into library, it works. But the problem is that, only from my login i can access that image, other can't. I want that image to be shared by everybudy like we use in smartform.
But i want to fetch that image from SAP server/application layer.
plzz help me out...
and tell me the steps for fetching the image from sap server/application layer into the adobe form layout.Hi rahul,
I too have the same requirement. Can you please tell me the steps.
Maybe you are looking for
-
IPod won't sync photos and never stops syncing
60GB iPod Video. I recently updated to software version 1.2. I had tons of trouble with this update, so I did a restore. Now, I'm still running the same version, but at least it doesn't crash when looking at videos or podcasts now. However, after it
-
Hi, Can anyone tell me the treatement of MM price difference account in Controlling. According to me we need to create it as a cost element and capture to one cost center to track the price difference account and allocate it to production cost center
-
How many times apple replace lock phone within warranty period.
how many times apple replace lock phone within warranty period . How to buy an apple warranty extended in india.
-
How can I make a Packet Sniffer in Java?
Is there anyone who can tell me where to start to look for the information needed to make a packet sniffer in Java? I've already programmed internet-type applications before, but I would like to know how to access the recieved data packets before the
-
Warning-Variable If automatically Converted
Friends, I am executing a Bw report through Portal.I changed name of Variable .When i run the report through it is giving the warning message 'variable if automatically Converted' I did try with RSRT and also Supress warnings from Server.Still warin