cancel
Showing results for 
Search instead for 
Did you mean: 

Storing Interactive PDF details filled from ABAP WD in R/3 and mailing

Former Member
0 Kudos

Hi PPl,

We need a solution for the following scenario.

1.The user fill an interactive form - XML schema interface from the ABAP WD

2.The same form has to be send to recipients and form has to be non interactive after 3 days ie from a background job.

Kindly guide on how to proceed .

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

#1) there's really no question there. that's just creating a form

#2) perhaps upon creation of your form, you could put a hidden field with the creation date. then check that date every time the form is opened. If > 3 days, lock all your fields.

Answers (5)

Answers (5)

OttoGold
Active Contributor
0 Kudos

Maybe you can share the solution with us? This is what we do here. It will help the people with the same problem to answer the questions themselves only by searching. Thank you, Otto

Former Member
0 Kudos

Resolved .

OttoGold
Active Contributor
0 Kudos

In fact you can maybe use some part of this tutorial: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c2567f2b-0b01-0010-b7b5-977cbf806...

Regards Otto

OttoGold
Active Contributor
0 Kudos

Hello,

I am not aware of any way, how to send a WD form. I think you will have to save the xml file from the filled form somewhere and us it to re-generate a printform in a standard printing program after the mentioned period. From that printing program you can get the PDF data through GETPDF and PDFSOURCE (or something), convert it and use that as SOLIX_TAB into your email attachment.

Regards Otto

Former Member
0 Kudos

Hi ,

Can u throw some ligh on sending the PDF after 3 days also.

Former Member
0 Kudos

Hi Nikhil,

Get the PDF Source from the Context Attribute and pass it tolike (Lv_data is the rawdata )

CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'

EXPORTING

BUFFER = lv_data

  • APPEND_TO_TABLE = ' '

  • IMPORTING

  • OUTPUT_LENGTH =

TABLES

BINARY_TAB = i_objbin

And pass it the as attachment in the contents_bin table parameter.

SO_NEW_DOCUMENT_ATT_SEND_API1 Funtion Module .

I have done a program in WDA which u can upload any documents allowed by the SAP and send as an attachments in mail in a similar way.

And also another way i did is attachement of PDF to workflow.

OttoGold
Active Contributor
0 Kudos

The source is a WD form, nobody needs to upload anything:)) Otto