‎2010 Aug 26 12:15 PM
Hi,
RVADIL01-Driver program is working for scripts.
How to make it work for smarform for LR00 output type.
Regards,
Renuka.
‎2010 Aug 26 3:55 PM
Hello Renuka,
To assign a smartform to the output type,follow the below steps
1.Go to transaction code : NACE.
2.Select your application,for you it is V3.
3.Click on output types and position the cursor on output type LR00.
4.Click on processing routines and click on change button.
5.Here under the PDF/Smartform tab you can assign your smartform.
Hope these steps solve your problem.
Best Regards
Santosh
‎2010 Aug 27 6:29 AM
hi,
Easiest way is to copy the standard driver program and change the code where
it calls the SAPScript form to call your custom SMARTFORM.
Depending on how the original was written you may need to also alter some
data retrieval routines.
Hope this will helps..
regards,
kiran
‎2010 Aug 30 7:37 AM
Hi Renuka,
To use standard print program to call a smartform, you will need to copy the standard print program.
Analyze the program, where they are calling the standard script in the print program.
Comment out that code. Add a code to call your smartform for the same print program.
You need to configure this print program and smartform from NACE. It will be done by functional consultant.
Let me know if you need more help on this.
Thanks,
Archana
‎2010 Aug 31 7:52 AM
Hi Renuka,
Driver prog are diff for Script & Smartform. (Only the logic is same in diff format.)
Copy the RVADIL01 in Zprog.
Change the format as -->
TABLES : VBCO3.
DATA: XSCREEN(1) TYPE C. "Output on printer or screen
INCLUDE RVADTABL.
*-- definition of forms
INCLUDE RLE_DELNOTE_FORMS.
INCLUDE RLE_PRINT_FORMS.
* Then take table NAST.
FORM ENTRY USING RETURN_CODE US_SCREEN.
DATA: LF_RETCODE TYPE SY-SUBRC.
IF nast-objky+10(6) NE space.
VBCO3-vbeln = nast-objky+16(10).
ELSE.
VBCO3-vbeln = nast-objky.
ENDIF.
VBCO3-mandt = sy-mandt.
VBCO3-spras = nast-spras.
" like this take required fields in table
ENDFORM.
Then call your Smartform in driver prog.
FORM PROCESSING USING PROC_SCREEN
CHANGING CF_RETCODE.
* determine smartform function module for delivery note
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING FORMNAME = 'Z_EXC_N_TAX_INV_SF'
* variant = ' '
* direct_call = ' '
IMPORTING FM_NAME = LF_FM_NAME
EXCEPTIONS NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
* error handling
CF_RETCODE = SY-SUBRC.
PERFORM PROTOCOL_UPDATE.
ENDIF.
ENDIF.
IF CF_RETCODE = 0.
* call smartform delivery note
CALL FUNCTION LF_FM_NAME
EXPORTING
ARCHIVE_INDEX = TOA_DARA
ARCHIVE_PARAMETERS = ARC_PARAMS
CONTROL_PARAMETERS = LS_CONTROL_PARAM
* mail_appl_obj =
MAIL_RECIPIENT = LS_RECIPIENT
MAIL_SENDER = LS_SENDER
OUTPUT_OPTIONS = LS_COMPOSER_PARAM
USER_SETTINGS = ' '
IS_DLV_DELNOTE = LS_DLV_DELNOTE
IS_NAST = NAST
VBCO3 = VBCO3
Now attach this Zreport with Zsmartform in NACE Transaction.