Adobe form as a attachment in workflow
Hi,
i have attached adobe form in my workflow as a attachment in decision step .the requirement is he will open the adobeform and he will edit some values and that form i have to save that values and update the database.. my problem is he will open the attachment and make changes to that how can i able to get the edited form into workflow this is a 3 level approval process at every stage approvers will edit the adobe form so any one please suggest me..
Hi,
Your adobe forms opening in the T.code IQS2 right.
Create a method, call this T.code & pass the notification number using the call transaction Method.
Assign this method in the workflow via task and send it to the approver.
Regards,
Surjith
Similar Messages
-
Hi,
We are having a requirement where I need to send the adobe form as an attachment in email. The existingform can be displayed by a URL in a browser. Now I have following queries:
Can we convert this URL based form into PDF document and send the same document as an attachment in a email? For email, we are using standard RFC.
Regards
Abhinav Sharmaif you create your pdf (in abap) you have to call function module FP_JOB_OPEN. There in the interface structure "outputparams" set parameter "getpdf" to 'X' (abap_true).
Then there will be the pdf data in the output structure of the generated funstion module "formoutput" in the variable "pdf".
Use class "cl_bcs" to send mails....
norbert -
Send Adobe form as email attachment
Hello Experts,
Recently iu2019m facing a problem regarding Adobe form PDF attachment and sending an e-mail along with the PDF attachment to customer mail id.But when i execute the RFC Function module, in customer side no mail is comming. And when i check the transaction SBWP then i found that the PDF attachment hold only 1KB of data which is not right.For that iu2019m sending my code which i was declared in my program.Can anybody Please help me to overcome this problem?
FORM print_form USING p_disp TYPE char1
drb_mail TYPE char1
p_email LIKE itcpo-tdcovtitle
p_email1 LIKE itcpo-tdcovtitle.
DATA ds_recipient TYPE swotobjid.
CLEAR: dg_funcnam, dg_outputparams.
*--Call generated function module
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
EXPORTING
i_name = c_form
IMPORTING
e_funcname = dg_funcnam.
dg_outputparams-nodialog = 'X'.
dg_outputparams-getpdf = 'X'.
Job Open for PDF
CALL FUNCTION 'FPCOMP_JOB_OPEN'
CHANGING
ie_outpar = dg_outputparams
EXCEPTIONS
cancel = 1
usage_error = 2
system_error = 3
internal_error = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
EXIT.
ENDIF.
dg_docparams-langu = 'X'.
dg_docparams-country = 'US'.
dg_docparams-fillable = 'X'.
form CONVERT_PDF_BINARY .
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
BUFFER = FP_FORMOUTPUT-PDF
APPEND_TO_TABLE = ' '
IMPORTING
OUTPUT_LENGTH =
TABLES
BINARY_TAB = t_att_content_hex .
endform. " CONVERT_PDF_BINARY
*& Form MAIL_ATTACHMENT
text
--> p1 text
<-- p2 text
form MAIL_ATTACHMENT USING p_email LIKE itcpo-tdcovtitle
p_email1 LIKE itcpo-tdcovtitle.
CLASS cl_bcs DEFINITION LOAD.
DATA:
lo_send_request TYPE REF TO cl_bcs VALUE IS INITIAL.
lo_send_request = cl_bcs=>create_persistent( ).
Message body and subject
DATA:
lt_message_body TYPE bcsy_text VALUE IS INITIAL,
lo_document TYPE REF TO cl_document_bcs VALUE IS INITIAL.
APPEND 'Dear,' 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 = 'Personnel Information 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 = 'Personnel Information Form'
I_ATTACHMENT_SIZE =
I_ATTACHMENT_LANGUAGE = SPACE
I_ATT_CONTENT_TEXT =
I_ATTACHMENT_HEADER =
i_att_content_hex = t_att_content_hex ).
CATCH cx_document_bcs INTO lx_document_bcs.
ENDTRY.
Add attachment
Pass the document to send request
lo_send_request->set_document( lo_document )."* Create sender
DATA:
lo_sender TYPE REF TO if_sender_bcs VALUE IS INITIAL,
l_send type ADR6-SMTP_ADDR value ' here mail id '.
l_send = P_email.
l_send = P_email1.
lo_sender = cl_cam_address_bcs=>create_internet_address( l_send ).
lo_sender = cl_sapuser_bcs=>create( sy-uname ).
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.
lo_recipient = cl_sapuser_bcs=>create( sy-uname ).
lo_recipient = cl_cam_address_bcs=>create_internet_address( l_send ).
lo_recipient = cl_cam_address_bcs=>create_internet_address( l_send ).
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 Personnel Information form has been emailed to the Employee' type 'I'.
endform. " MAIL_ATTACHMENT
*--Call Function module
CALL FUNCTION dg_funcnam
EXPORTING
/1bcdwb/docparams = dg_docparams
im_logo = dg_logo
im_user_address = dt_user_address
im_ship_to_addr = dt_imp_data
im_text = ds_text
im_sales_text = dt_sales_text
im_item_data = dt_item_data
IMPORTING
/1BCDWB/FORMOUTPUT = FP_FORMOUTPUT
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4.
IF sy-subrc <> 0.
ENDIF.
CALL FUNCTION 'FPCOMP_JOB_CLOSE'
IMPORTING
e_jobresult = l_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.
DATA : dl_msg TYPE string.
CONCATENATE 'Successfully mailed to' p_email p_email1 INTO dl_msg SEPARATED BY space.
IF drb_mail = 'X'.
COMMIT WORK.
MESSAGE dl_msg TYPE 'I' .
MESSAGE i000 WITH 'Successfully mailed to' p_email1.
ENDIF.
ENDFORM. "print_form
Could you please any body help me, it's very uregent issue.
Regards
Sandeep*& Report ZGB_ATTACHMENT
REPORT zgb_attachment.
DATA:
l_formname TYPE fpname VALUE 'ZGB_ATTACHMENT',
l_fm_name TYPE rs38l_fnam,
fp_outputparams TYPE sfpoutputparams,
fp_docparams TYPE sfpdocparams,
fp_formoutput TYPE fpformoutput.
DATA:
t_att_content_hex TYPE solix_tab.
PARAMETERS: p_pernr TYPE persno.
START-OF-SELECTION.
PERFORM get_function_module.
PERFORM create_document.
PERFORM convert_pdf_to_binary.
PERFORM mail_attachment.
*& Form GET_FUNCTION_MODULE
* text
* --> p1 text
* <-- p2 text
FORM get_function_module .
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
EXPORTING
i_name = l_formname
IMPORTING
e_funcname = l_fm_name
* E_INTERFACE_TYPE =
* EV_FUNCNAME_INBOUND =
ENDFORM. " GET_FUNCTION_MODULE
*& Form CREATE_DOCUMENT
* text
* --> p1 text
* <-- p2 text
FORM create_document .
*JOB OPEN
CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
ie_outputparams = fp_outputparams
EXCEPTIONS
cancel = 1
usage_error = 2
system_error = 3
internal_error = 4
OTHERS = 5.
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.
fp_docparams-langu = 'X'.
fp_docparams-country = 'US'.
fp_docparams-fillable = 'X'.
CALL FUNCTION l_fm_name
EXPORTING
/1bcdwb/docparams = fp_docparams
pernr = p_pernr
IMPORTING
/1bcdwb/formoutput = fp_formoutput
* EXCEPTIONS
* USAGE_ERROR = 1
* SYSTEM_ERROR = 2
* INTERNAL_ERROR = 3
* OTHERS = 4
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.
*JOB CLOSE
CALL FUNCTION 'FP_JOB_CLOSE'
* IMPORTING
* e_result =
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4.
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.
ENDFORM. " CREATE_DOCUMENT
*& Form CONVERT_PDF_TO_BINARY
* text
* --> p1 text
* <-- p2 text
FORM convert_pdf_to_binary .
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = fp_formoutput-pdf
* APPEND_TO_TABLE = ' '
* IMPORTING
* OUTPUT_LENGTH =
TABLES
binary_tab = t_att_content_hex
ENDFORM. " CONVERT_PDF_TO_BINARY
*& Form MAIL_ATTACHMENT
FORM mail_attachment .
CLASS cl_bcs DEFINITION LOAD.
DATA:
lo_send_request TYPE REF TO cl_bcs VALUE IS INITIAL.
lo_send_request = cl_bcs=>create_persistent( ).
* Message body and subject
DATA:
lt_message_body TYPE bcsy_text VALUE IS INITIAL,
lo_document TYPE REF TO cl_document_bcs VALUE IS INITIAL.
APPEND 'Dear,' 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 = 'Personnel Information 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 = 'Personnel Information Form'
* I_ATTACHMENT_SIZE =
* I_ATTACHMENT_LANGUAGE = SPACE
* I_ATT_CONTENT_TEXT =
* I_ATTACHMENT_HEADER =
i_att_content_hex = t_att_content_hex ).
CATCH cx_document_bcs INTO lx_document_bcs.
ENDTRY.
* Add attachment
* Pass the document to send request
lo_send_request->set_document( lo_document ).
* Create sender
DATA:
lo_sender TYPE REF TO if_sender_bcs VALUE IS INITIAL,
l_send TYPE adr6-smtp_addr VALUE '[email protected]'.
* lo_sender = cl_cam_address_bcs=>create_internet_address( l_send ).
lo_sender = cl_sapuser_bcs=>create( sy-uname ).
* 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.
* lo_recipient = cl_sapuser_bcs=>create( sy-uname ).
lo_recipient = cl_cam_address_bcs=>create_internet_address( l_send ).
** 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 Personnel Information form has been emailed to the Employee' TYPE 'I'.
ENDFORM. " MAIL_ATTACHMENT -
Send pdf (Adobe Form) as email attachment using BCS
Hello everybody!
I want to send a pdf, generated by Adobe Forms function module, as an email attachment to a certain external mail receiver. I have read that the methods of the Business Communication Services can render this, but I couldn't create a working solution. Can somebody give me a coding example for this scenario?
I would be very happy if somebody could help me!
Best regards,
MarkusHello Alex!
your link to this document was very helpful. The scenario described in the pdf is almost what I was looking for. The only problem is, that the mail is sent to the Business Workplace Inbox. I want to send it to an external e-mail address. When I change the programm part where the recipient is defined like this:
Create recipient
DATA lo_recipient TYPE REF TO if_recipient_bcs VALUE IS INITIAL.
DATA l_reci TYPE adr6-smtp_addr VALUE 'somemailaddress'.
lo_recipient = cl_cam_address_bcs=>create_internet_address( l_reci ).
Set sender
lo_send_request->add_recipient(
EXPORTING
i_recipient = lo_recipient ).
then no mail is sent to the recipients mailbox. I tried several variants but no mail is sent. Does somebody know how to set an external e-mail as recipient in this case?
Best regards!
Markus -
Adobe Form print/email - Attach IXOS .tif images via string table param?
I am attempting to create an Adobe Form print/e-mail output for Invoices, with zero, one or many attached pages from the IXOS archive. (TIFF files.) So far I have managed to attach exactly one IXOS image. Now I need to make the number of attached images dynamic.
This is in Netweaver 7.0 / ECC 6.0 ehp 3 / LiveCycle Designer 8.1.
My ABAP driver program is a copy of SD_INVOICE_PRINT01. In pseudocode, I've added:
Logic to identify correct IXOS image.
Logic to extract IXOS image to application server's file system.
OPEN DATASET image.tif FOR INPUT IN BINARY MODE.
READ DATASET image.tif INTO xstring.
CALL FUNCTION 'SSFC_BASE64_ENCODE' EXPORTING xstring IMPORTING string.
APPEND string TO string_table.
CALL FUNCTION form_name EXPORTING attachments = string_table.
The form interface is a copy of INVOICE_INTERFACE (ABAP dictionary-based.) I've added import param. ATTACHMENTS type STRING_TABLE.
In the form's context tab, interface import param. ATTACHMENTS was dragged & dropped onto the context pane, yielding:
- Table ATTACHMENTS
-- Structure DATA
--- Field ITEM.
In Adobe LiveCycle Designer 8.1, I *can* create an image field with binding ATTACHMENTS.DATA[1].ITEM - that prints the TIFF from IXOS just fine.
What *does not* work is placing ATTACHMENTS on the form as a table of image fields. I've tried several combinations - most look like this:
- Table or Subform ATTACHMENTS, binding ATTACHMENTS, repeat for each data item max = 1.
-- Row or Subform DATA, binding DATA[*], repeat for each data item min = 1.
--- Image field ITEM, binding ITEM.
The result is consistently one blank page. No more, no less.
Can anyone help?
Edited by: Eric Hopp on May 12, 2010 12:09 AMHello,
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 -
Adobe form as input to approval workflow
I have not used Adobe form before, so please bare with me! I have a couple of basic questions.
Do I have to download the Adobe designer software from sap marketplace, or is it on the SAPGUI install cd?
Do I need the Adobe designer s/w or is there a sap transaction equivalent?
Can the 'pull downs' in the form get their 'allowed' values from the backend ECC6 system or do they have to be set when creating the form.?
Is there a transaction in ECC6 which a user can run to see all the different forms that have been created?
The intention is to have a form which will be filled in by a user as a request to proceed with a contract specification document, this doc will be a word doc, held in ECC6 in DMS. But the initial form though will go to a number of managers for approval, can a form be 'workflowed' easily, if so, how?
Thanks for your patience.
JonHi John,
Yah, as Surya said,you need ADLC for Adobe forms design. And this available in Service place or even in your SAPGUI CD(You gotta check in FORMS Option enabled).
You can create/change/delete Adobe forms in SAP using SAP Form Painter(SFP txn).
You can create the dropdowns from ECC data.
You can achieve your requirement either using ISR's or using WebDynpro based Adobe forms. Check out my old threads for further information.
Hope this helps.
Regards
<i><b>Raja Sekhar</b></i> -
Hi Experts,
I am using xml based Adobe forms (ordinary print form) in WebDynpro component. I got one requirement to send that form as an attachment to dynamic email id either from form or from WebDynpro component.
I tried using email submit button in adobe form , which allows to specify only static email id.
Please suggest your ideas to send that to dynamic email id.
Regards,
Kiruba.Hi Kiruba,
This question was addressed multiple times, you sud have searched it first.
have a hidden field in your form
set email id to this field.
have the belocode on click event of the email button.
this.resolveNode("#event.#submit").target = "mailto:"+<your emalid field's rawvalue>
Re: Dynamic E-Mail address in Interactive Forms?
this is the post with the solution and it worked.
Cheers,
Sai -
Attachments in Adobe form for ISR in Employee Interaction center
Hi Experts,
I have a requirement to attach a document to Adobe form which uses ISR scenario.
I am using the attachment option of PDF but the attachment is not going through.
I am using standard ISR scenarion SEIC.
Can anyone please let me know if there is any other method for attaching the doc. to Adobe form and send the Adobe form to agents inbox using Workflow.Hi Jarret,
For first option {1. You may be able to use the custom event in the adobe form, and attach a script routine to this event to link the attachment to the PDF form.}
Can you please let me know how we can add a custom Event for scripting?
Also i dont know Java script so can you please provide me any reference from where we can start the coding/ writing a Script to add the attachments.
For the second option { 2. Trigger a custom process instead of the ISR from the ESS.}
What custom process can we use. Can we go ahead with HCM forms and processes to achieve the functionality? -
Dear experts,
There is no standard leave request form provided by SAP. We are developing an adobe form which lists the employee's quota and leaves taken earlier along with the current leave details. This form should be displayed to the approvers from the leave workflow.
When the approver clicks on the work item, the leave request form should popup. There are two technical challenges in this requirement -
1. This requirement is similar to the standard ones for travel request and expense request - In travel request and expense request, SAP has provided standard forms and the workflow container is a standard importing parameter in these adobe forms. This container is helpful in deriving most of the content on the adobe form. However, there is no such link in case of leave request. How does the workflow information be passed to the adobe form? ( i will have to display employee details, quota, current leave, approvers list, approvers comments, etc).
2. For leave request, the approval task is TS12300097 that has "Java Webdynpro" as visualization type. Whereas for travel and expense workflow approval tasks, the visualization type is "ABAP Webdynpro". I am assuming the "JAVA WD" will make it really tough to call the adobe form from the work item.
Any thoughts, suggestions on this requirement will be of great help.
ThanksHi Abdul
which version u r currently working on?? check in swfvisu t-code where you can find the below task
I'm not that good at technical level, but still I try to help you with my limited knowledge.Instead of trying from binding rule, try with Function Module via BOR Object Method. you can get that function module at the time Adobe form creation. Can't you consider that Adobe form as a attachment in the work item???
Check this links
Adobe forms using Workflow with normal SAP | SCN
Calling the Adobe form in a workflow step for A... | SCN
Hope this Info will be Helpful
Cheers
Pradyp -
Offline Integration of Adobe Forms with CRM System using Web Service
Hi Experts,
I have a business requirement in which the end user us given an Application Form.
The user can save the form locally and fill the data.
Now the requirement is that when the end user clicks on Submit Button on the form, a web service is called and the entire data in the form is sent to CRM System.
I want to know is it possible to capture the entire data filled in the form in a web service???
Also the other major requirement is that i need to send the application form also to the CRM system.
I need to store the form as attachement for a Business Partner Record.
Is it possible to capture the data in the adobe form and still attach the form as attachement in an Offline Scenario????
Is it possible that a Web Service can be called on click of button in the form and still be able to attach the form itself as attachment???
Thanks and Regards
Gaurav Kumar RaghavI have collected some links for WebServices for you:
https://cw.sdn.sap.com/cw/servlet/JiveServlet/download/38-51084/saptech_webservice.pdf
Re: Adobe forms with Web Service - nothing happens when clicking button.
/people/rudy.clement2/blog/2010/03/10/how-to-use-the-postexecute-event-in-sap-interactive-forms-to-retrieve-a-table-from-a-webservice
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/148ec26e-0c01-0010-e488-decaafae3b26
Usage of webservice in offline adobe scenarios
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0d0a250-ccd1-2c10-9e9f-b9d5cf259a6d?quicklink=index&overridelayout=true
cheers Otto -
Attach ADOBE form to transaction code.
Dear All,
I have a solution to be implemented wherein I need to attach an offline Interactive Abobe form to a transaction code.
The scenario is the end user has access to this custom transaction code which when he executes should open the form for him. He would then fill in the contents and submit it which would trigger an custom workflow process.
We do not wish to use WebDynpro application and hence would appreciate if any useful information is provided.
Appreciate your help.
Thanks & Regards,
Kavita D.I am not sure if that is what you want, but what I would do:
1) create a transaction code
2) create a printing program (trivial), set printing settings to immediate preview
3) create an interface and adobe form layout
4) link the transaction and the program together, now when a person runs the transaction, the printing proram gets triggered and as an output it provides a blank (or pre-filled) adobe form
5) now you have the UI ready but miss the way how to trigger the WF from the form
6) to get 5) you need to create a web service and connect the webservice with your adobe form, there are plenty resources on how to do this
7) you should be able to trigger the workflow through a simple adobe form protected as a custom transaction
Hope that suits your needs,
cheers Otto -
Adobe form as attachment to user decision step
Hi,
i need to add adobe form as attachement to user decision step in workflow.
1. i created activity step which call business object method with parameters workitem id
i am using FM SAP_WAPI_ATTACHMENT_ADD’ which will return attribute id
i am passing that attribute with document id to 'ZSOFM'
ZSOFM <-----------------------------------ZSOFM (Method to task)
Bindings 'Attach_objects' <------------- ZSOFM(Task to Workflow).
2. i created user decision step
Bindings 'Attach_objects' --------------------> 'Attach_Objects'( Workflow to user decision task).
but when we execute first activity step in background i am not getting any PDF output .but when we execute same method from class i can see pdf data is coming is it due to user name WF-Batch.
when i execute activity step in back ground which will have sy-uname as WF-Batch i am not getting any PDF output data.
please help how to solve .
Thanks,
PhaniIn transaction SWO1 create a z-object lets say zmyobjpdf (you might want to use it as a sub object of your standard object without delegation since they will probably have the same key).
create a method in that object calling the adobe form.
set it as the default method in the object header.
now create an instance of the zmyobjpdf in the workflow for example as an attribute of the original object) and transfer it to the decision task.
It will be displayed as an attached object pressing it will call the default method - your adobe form.
If your question was about how to create a function module to display the form see SAP Library - PDF-Based Forms -
Hi
I have designed the Adobe form which fills the form with table details. Do i need to convert this form into PDF to attach in my workflow work item and the receiver get has an attachment. How to do attach this form.
Regards
vijayHi shanto aloor
I not using Portal to develop guided procedure. Am using R/3 for developing the workflow. Here is my code what i have done to attach. I have converted the adobe form into pdf but i dont no how to send it now. If i use SOFM how to create the instance. If i use FM SO_NEW_DOCUMENT_ATT_SEND_API1. How to pass the bin details to this function module. Can any one say that.
Here is my code.
*"*"Local Interface:
*" IMPORTING
*" REFERENCE(PERNR) LIKE PA0001-PERNR
*" EXPORTING
*" VALUE(BINFILE) TYPE XSTRING
*" TABLES
*" RETURN STRUCTURE BAPIRETURN OPTIONAL
*" EXCEPTIONS
*" NO_ATTACHMENT_FOUNT
DATA : V_FMNAME TYPE FUNCNAME.
DATA: lv_bin_file type xstring,
gs_job_output_info TYPE FPFORMOUTPUT.
DATA : IT_TAB TYPE PA0105 OCCURS 0 WITH HEADER LINE.
DATA : DOCPARAMS TYPE SFPDOCPARAMS.
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
EXPORTING
I_NAME = 'ZEMAIL'
IMPORTING
E_FUNCNAME = V_FMNAME.
*DOCPARAMS-DYNAMIC = 'X'.
*DOCPARAMS-FILLABLE = 'X'.
CALL FUNCTION V_FMNAME " '/1BCDWB/SM00000061'
EXPORTING
/1BCDWB/DOCPARAMS = DOCPARAMS
PERNR = PERNR
IMPORTING
/1BCDWB/FORMOUTPUT = gs_job_output_info
EXCEPTIONS
USAGE_ERROR = 1
SYSTEM_ERROR = 2
INTERNAL_ERROR = 3
OTHERS = 4.
IF SY-SUBRC <> 0.
ENDIF.
BINFILE = gs_job_output_info-PDF.
CLEAR gs_job_output_info.
Regards
vijay -
Adobe Interactive Form as an Attachment
Hi we have requirement to make Adobe Interactive Form as an attachment in work item (workflow).
Does any body come across with this requirement? How we make Adobe Interactive Form as an attachment ?
Many thanksHi,
i have the same requirement. But im not able to solve this problem by the link, which is posted. I also used the search function, but no results.
I know how to send the Interactive Form via email, and it works nice, but how can i create an object out of the Interactive Form and pass it to a workflow container?
Im using FM SO_OBJECT_INSERT but there is something wrong with the conversion, everytime i try to open the attachment i get a error message that the file is broken.
Any suggestions how to solve it?
Kind Regards
Michael -
In adobe form when ever user clicks on submit button, then that form should be attached as an attachment and it should go for manager approval,if manager clicks on the attachment that attachment should open . i dnt know how to approach this situvation,how to trigger this workflow..
please any one give me suggestionsHi TCS Team,
Adobe Form:
There are two different type of adobe form are available
1. Static Form
2. Interactive form
1._Static Form_ : If a form which has been created by a initiator and which should not been changed by his approver/Manager while he is approving / Rejecting the request.
Eg: Viglence clearance certificate
2. Interactive form: If a form which has been created by a initiator can be modified by his approver/Manager for some reason while or before approving / Rejecting the request.
Eg: PR Release: Where the approver may required more clarification on the PR.
In General, both of the form may be used depends upon the requirements. And we have to take it as Adobe form.
Your Query:
"In adobe form when ever user clicks on submit button, then that form should be attached as an attachment and it should go for manager approval,if manager clicks on the attachment that attachment should open . i dnt know how to approach this situvation,how to trigger this workflow.."
I will be explaining you one by one.
1. i dnt know how to approach this situvation,how to trigger this workflow
Triggering of workflow from a EP (i.e. ESS/MSS) Can be done via a RFC calls. We call this as integration of Java webdynpro with SAP Workflow.
There are many Function module available in Standard for this purpose
SAP_WAPI_START_WORKFLOW
SAP_WAPI_CREATE_EVENT
May be used for triggering the workflow.
While Triggering the workflow you have get the PDF (ADOBE Form) into this import parameter
IFS_XML_CONTAINER as a string value, and update the same in the INPUT_CONTAINER (EVENT CONTAINER).
Then Pass the value to your workflow container.
Use the following FM to write the value in task container.
SAP_WAPI_WRITE_CONTAINER
If the same pdf has to be displayed in approvers inbox while he clicks the attachment use the followin FM
SAP_WAPI_READ_CONTAINER
For Attaching the PDF form into the Workitem
SAP_WAPI_ATTACHMENT_ADD
And for Reading the attachment in the workitem use this FM
SAP_WAPI_GET_ATTACHMENTS
If you have any further clarification, please post the same.
Thanks and Regards
Balaji K.
Maybe you are looking for
-
[SOLVED]xorg-server 1.14.4-1 - mouse wheel not responding while moving
I notice a relapse of the bug (https://bugs.archlinux.org/task/29191 and https://bugs.freedesktop.org/show_bug.cgi?id=48167) since the xorg-server upgrade. Downgrade to 1.14.3-2 solves the problem. The problem is noticed in ioQuake3 engines. UPDATE:
-
Bug: HTML table row with id on design mode does not display properly
JDeveloper studio edition version 10.1.3.3.0.4157 Created a very simple JSP file, which has a table of 3 rows, 3 columns. Added id attr to second row, JDeveloper does not recognize the row in Design mode. See sample code below. <html> <head> <title>J
-
Hi I have a workbook with a sheet that has two reports that lookup two queries. The one query provides detailed expenditure data whilst the other query provides trend data for graphing. Becuase I have two queries I have two free characteristics for c
-
Urgent Issue ALE settings in Quality
Hi I have done entries in BD51 in WE57 in developement . when i transported idoc related stuff this settings is not reflecting in quality. kindly help regards
-
No configured Airport Base Stations Have Been found-but we are connected?
Okay, Here is an odd one...actiontec DSL Modem/Router with Airport Extreme. I applied the update, and was having problems with my external hard drive being recognized, so I reset everything-modem and airport. Now that I have, when I launch the Airpor