on 02-23-2010 4:03 AM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yes....thanks a lot.
Best Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
As I have to attach Smartform in NACE, how can I call different Smartforms for the same output type?
pls hlp?
Best Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 ........
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
>
> 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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.