cancel
Showing results for 
Search instead for 
Did you mean: 

How to call Custom Smartform through Std Prog RVADOR01

raj_kumar86
Participant
0 Kudos

hi,

I want to call custom smartform through RVADOR01. is it possible or not? if yes can u provide some inputs how to call . if no can u explain why we cannt call ?

advanced thanks to all

Regards,

Raj

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi raj,

we can use custom smartform but you have to do some changes in driver program for that.

first of all i want to know that you changed the standard smartform or you developed the form from scratch.

provide information to helpyou.

raj_kumar86
Participant
0 Kudos

hi venkat,

custom smartform is not yet created. but requirement is by using smartform only display the data. there is no standard form for this, but sample form is availiable.

Edited by: raj on Jun 3, 2009 7:01 PM

Former Member
0 Kudos

Hello,

Without changing the driver program you want to call custom form. Yes its possible by changing the config in the NACE transaction with the custom form. But, you need have all the import parameters in your custom smartform, which are exported in the dynamic function call from the driver program.

If you dont need all the parameters and you know what you need to fetch from database, i prefer you to develop custom program, instead copying the standard and making the changes.

Dont' forget to do error handling after each function module you use in the custom program, if not you will get express document terminated messages, when there is any error while you executing you form from standard transaction.

Answers (5)

Answers (5)

raj_kumar86
Participant
0 Kudos

thanks to all.

Former Member
0 Kudos

Hi,

As per my knowledge It is not possible to print smart form using program RVADOR01. Because it is Standard program to print Script layout only. If you want to display then you must modify the program and call the Smart form using FM SSF_FUNCTION_MODULE_NAME and generated function module of smart form. Then configure both in NACE. Fist check the print program whether it have SSF_FUNCTION_MODULE_NAME function module or not. if it didnt had then it is not possible to print Smart Form.

Edited by: MR Venkat on Jun 5, 2009 1:51 PM

Former Member
0 Kudos

hmmm i think you are mixing things up.

RVADOR01 is SAP standard print program for sapscript. i dont think it will work with smartforms.

Since in sapscript the FM OPEN_FORM is used to trigger the form, while in smartforms the generated FM is beeing called.

If´ I´m wrong and you RVADOR01 is a standard smartforms print program, then yes you can use it, just be sure you have the right form in customizing for your output type.

Former Member
0 Kudos

Hi,

Ask your functional consultant to create output type for your requirement and then configure that output type in NACE tcode as follows.

1) Copy the program RVADOR01 into a custom Z-program.Go to Nace Tcode and give the created Z-program in the Program name column.

2) Give the Smartform name in the PDF/Smartform name .

3) Give Get_data in the Form Routine column.

And then in the Z-program and in the subroutine Perform Get_data.

Give the condition as

if Nast-kschl = YOUR Created output type. There write your driver program coding and afterwards save and activate.

Hope this will help you.

Regards,

Venkat.

Former Member
0 Kudos

You need to change the driver program to Z as it is written to call a sap script. You will need a separate driver program and a smartform and configure it in nace.

Regards,

Abdullah