cancel
Showing results for 
Search instead for 
Did you mean: 

How to upload offline adobe form(PDF) to the SAP?

Former Member
0 Kudos

Hi,

I am working on adobe forms for the first time.

So I dont have much knowledge on it.

I have created the layout for the SO form in transaction SFP.

Kindly help me how to proceed further to upload the form data to the sap.

Thanks in advance,

Neha

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Neha,

Follow the rules of SDN. Search the forum before you post. You will get may answers for this.

Anyway there are different scenarios to upload an offline form to SAP.

1) Email Solution - Send filled form to SAP Inbox, Do the SCOT configurations, trigger the class handler, parse the XML data and update the SAP tables

2) Portal Upload - Use a WebDynpro application to upload the form

3) Web Service Solution - Create a web service in R/3, Do the configurations in SOAMANAGER, call the web service within the form and post data back into SAP

Thanks & Regards,

Sanoosh

Former Member
0 Kudos

Hi Neha,

The program will have the following steps:

1.Data retrieval and processing : A select statement for the pre-populated information

2.Obtain the name of the Generated Function Module of the form u2022 Start the form processing

3.Call the Generated Function Module

4.End form processing

5. Send the form to the vendor using Business communication services (BCS)

Follw this step

select single field1 field2... from table into wa where field = P_field.

call function 'FP_FUNCTION_MODULE_NAME'

call function 'FP_JOB_OPEN'

Then call the generated function module

call function fm_name

call function 'FP_JOB_CLOSE'

CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'

Extract the Data:

DATA: xml_data TYPE xstring,

lt_xml_data TYPE STANDARD TABLE OF xstring.

APPEND xml_data TO lt_xml_data.

lo_pdfobj->get_data( IMPORTING formdata = xml_data ).

Convert XML data from XSTRING format to STRING format DATA: lv_xml_data_string TYPE string.

CALL FUNCTION 'ECATT_CONV_XSTRING_TO_STRING'

EXPORTING im_xstring = xml_data

IMPORTING ex_string = lv_xml_data_string.

Thanks