‎2009 Feb 24 9:05 AM
Hi,
I have to create a Adobe form, it has to be designed and connected to internal table.
but when i run my programe it gives a message "ADOBE FORM HAS BEEN GENERATED"
but it not shows in the screen.
Thanks in Advance...........
Regards,
Shri
‎2009 Feb 24 9:14 AM
Hi,
To develop Adobe forms go to tcode SFP. First you need to create form interface then assign that form interface to Form. In form layout you need to design the form.
Regards,
Sathish
‎2009 Feb 24 9:15 AM
Hi,
Could please send code so that i can analyse why its getting this error.
Thanks
Srilatha
‎2009 Feb 24 9:36 AM
Hi,
I am send here my code............
REPORT ztest_adobe.
Data Decleration----
DATA : fm_name TYPE rs38l_fnam,
fp_docparams TYPE sfpdocparams,
fp_outputparams TYPE sfpoutputparams.
Table Decleration----
TABLES : mara,marc,makt,mbew.
DATA : itab TYPE STANDARD TABLE OF zmaterial_tab WITH HEADER LINE.
DATA : i_makt TYPE STANDARD TABLE OF makt WITH HEADER LINE.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE title.
PARAMETERS : p_werks LIKE marc-werks OBLIGATORY.
PARAMETERS : p_matnr LIKE marc-matnr OBLIGATORY.
SELECTION-SCREEN END OF BLOCK b1.
SELECT a~mtart a~matkl b~werks b~matnr a~matnr
INTO CORRESPONDING FIELDS OF TABLE itab
FROM mara AS a INNER JOIN marc AS b
ON a~matnr = b~matnr
WHERE b~werks = p_werks AND
a~mtart EQ 'ZFGS' AND
a~matnr = p_matnr.
SELECT * FROM makt INTO CORRESPONDING FIELDS OF TABLE i_makt
FOR ALL ENTRIES IN itab
WHERE matnr = itab-matnr.
LOOP AT itab.
READ TABLE i_makt WITH KEY matnr = itab-matnr.
IF sy-subrc = 0.
itab-maktx = i_makt-maktx.
MODIFY itab TRANSPORTING maktx.
CLEAR : i_makt.
CLEAR : itab.
ENDIF.
ENDLOOP.
BREAK-POINT.
First get name of the generated function module----
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
EXPORTING
i_name = 'ZTEST_ADOBE_FORM'
IMPORTING
e_funcname = fm_name.
E_INTERFACE_TYPE =
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.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Set form language and country (->form locale)----
fp_docparams-langu = 'E'.
fp_docparams-country = 'US'.
fp_docparams-fillable = 'X'.
Now call the generated function module----
CALL FUNCTION fm_name
EXPORTING
/1bcdwb/docparams = fp_docparams
itab = itab
IMPORTING
/1bcdwb/formoutput = fp_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.
Close spool job----
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.
plssss find the problem.
Regards,
Shri
‎2009 Feb 24 10:24 AM
Hi,
I didnt get any error in the same program, but some changes i made it now i am getting the output also.Let me know one thing did u generate the function module ie execute the layout.check the below changes and let know if its working or not?
In output parameters comment the below line
*fp_outputparams-getpdf = 'X'. " launch print preview
And the below line
fp_outputparams-PREVIEW = 'X'.
I think it should work.
Thanks
Srilatha
‎2009 Feb 24 10:45 AM
Thanks Srilatha,
That Changes was help full for me. my pdf has been printed now,
but there are some problems it prints only my form layout but not the value which i want to print.
Is this connection problem or anything else.
pls find this problem.
Thanks
Regards,
Shri
‎2009 Feb 24 11:29 AM
Hi,
Could you please give more explanation on this?
Thanks
Srilatha
‎2009 Feb 24 11:47 AM
Hi,
First I have to create a interface in which i have assigned the table itab in Import option.
then i have create a adobe form which include that interface and designed layout.
Now i want to print that values in pdf which i have in itab.
‎2009 Feb 24 12:40 PM
Hi,
Design the layout first then do the binding each and every field.
select the object and then goto-> palettes->layout,here you have to do the binding
Thanks
Srilatha
‎2009 Feb 26 9:19 AM
Hi,
Now my problem is that i want to submit my adobe form.
How it is passible.
Thanks in advance
Regards,
Shri