cancel
Showing results for 
Search instead for 
Did you mean: 

Attaching Z-Smartform for Invoice printing

Former Member
0 Kudos

Dear All,

We required to create new customized Z-Smartform for Invoice printing and required to attach it to VF02/VF03.

Can anyone pls tell me the full procedure for the same?

1. New Z-Program need to be created or not? If yes what should be its structure? Is it required to copy the standard program for this?

2. How to call the Form from Program?

3. How to attache the program & form to outputtype?

Best Regards.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Prasad,

Create new zprogram and zsmartform for invoice and u can assign to output type (standard one)..It will work i done this kind of smartforms..

Use this routine...Becauyse u need to assign Form routine in output type...Give as 'ENTRY' and one more thing before data retrieving check this condition.I think this will solve ur problem...

if gv_vbeln is not intial.

SELECT SINGLE vbeln

erdat

zterm

knumv

vkorg

kunrg

netwr FROM vbrk

INTO wa_vbrk

WHERE vbeln = gv_vbeln.

FORM entry USING p_retcode TYPE sy-subrc p_screen.

IF nast-objky IS INITIAL.

MESSAGE 'Please Check Billing Doument Number'(001) TYPE 'E'.

ELSEIF gv_vbeln IS INITIAL.

gv_vbeln = nast-objky.

ENDIF.

PERFORM f_fetch_data.

PERFORM clear.

ENDFORM.

Answers (7)

Answers (7)

Former Member
0 Kudos

yes....thanks a lot.

Best Regards.

Former Member
0 Kudos

hi,

As I have to attach Smartform in NACE, how can I call different Smartforms for the same output type?

pls hlp?

Best Regards.

Former Member
0 Kudos

Hi ,

I run time your form will be availble in TNAPR-FONAM (Nace configured form )

According to your invoice type u can assign the form to your requirement

Based on your invioce type u can change form name in tnapr-fonam it will cal your layout what you required

Ex: in tnapr-fonam = zlayout1

for invoicetype ztyp1

for invoice type ztyp2

assign tnapr-fonam = zlayout2

based on tnapr-fonam it will call the layout what it contains.....

Let me know if any concerns ........

Former Member
0 Kudos

HI,

This link would help u out

[;

U need to create Different Output Types for Each layout. The Driver Program Would remain the same and the Smartforms get changed and assign those to the Output types.

Regards,

Vijaya Lakshmi.T

Former Member
0 Kudos

Thanks a lot for the replies.

I need one more hlp.

I want different layouts for different Invoice types. How can I do this?

- Is it required to create new output type for each Invoice Type (Layout)? If not then, how to check Invoice type & call different layouts from VF02/VF03?

Pls hlp.

Thanks a lot.

Best Regards.

Former Member
0 Kudos

Hi ,

There is no need to create different output types .

Based on your invoice type you can call different layouts (i.e for each type you have to create different form layouts at the time of calling you can call appropriate layout)

Let me know if any concerns ...............

Former Member
0 Kudos

Hi ,

As per your requirement

=> if u want to do small changes in standard one there is no need to create new one

=> if u want to do large changes u have to create new form (i.e migrate the standard script into zform as per your requirement )

=> you can find the standard driver program and form in the nace configuration

NACE - V3 output type - RD00 processing routine

=> after your development completed you can replace the driver program & form instead of standard one.

Hope you resolve your issue

Let me if any concerns....

Former Member
0 Kudos

well thats not entireley correct.

Yeah the standard output type for invoice is really RD00.

But the standard driver program is designed for a SAP-SCRIPT form and will NOT cooperate with a SMARTFORM.

The standard form behind RD00 is as well a SAP-SCRIPT, so copying this one wont help you at creating a smartform.

Former Member
0 Kudos

Hi ,

According to your smartform u have to code it in the driver program .

After copying you have the code it what ever you want ..(instead of script calling you have to call smartform)

Former Member
0 Kudos

>

> Hi,

> This is the standard smartform name in the nace configuration , here you need to copy the standard driver program to Zprogram and if you need anty changes in the layout of the standard form then copy that also to zform and make the corrections . after doing that change the form name and the driver program name in the NACE transaction with your form and program name .

> INVOICE

Output type : RD00

ScriptForm Name : RVINVOICE01

Driver Program Name : RVADIN01

smartform name : LB_BIL_INVOICE

Smartform Driver Pgm: RLB_INVOICE

>

> for any more queries reply back.

> Best Regards.

> p. gurunath

Former Member
0 Kudos

Hi Prasad,

To create new customized Z-Smartform for Invoice printing, you will have to create new output type and attach it to tcode VF02/VF03. To aatach new output type to tcode is done by functional consultant via tcode NACE.

Thanks,

Archana