‎2006 Mar 06 4:41 AM
dear friends,
Can anyone give me customize sap script/smarform code for invoice rather then standard sap script progmram.
‎2006 Mar 06 5:21 AM
Vishal, since you seem to work with forms, you yourself would know that smart forms doesnt have much code. So there little chance that this is going to help you. However undertaking the following things might help,
1. The standard program for invoice is RLB_INVOICE.
2. Standard SmartForm is LB_BIL_INVOICE.
3. RLB_INVOICE passes a table with the structure LBBIL_INVOICE to the smart form.
4. If you intend you make your own smart form for an invoice, make a copy of LBBIL_INVOICE (so that your own SF would have the same interface)
5. In your own smart form if you dont want the custom design at, just delete all nodes.
6. Go to the transaction V/40, choose the output type 'RD00 - Invoice' and double click on 'processing routines' in the box on the left side. You can replace the standard smart form with your own newly created one.
7. The important thing here is that if you want to utilize the standard data extraction program RLB_INVOICE you have to keep the interface in line with it.
8. Under normal circumstances you wouldnt need to make your own data extraction program because RLB_INVOICE provides an awful lot of data through the structure LB_BIL_INVOICE.
For more help of smart forms, refer to the following links,
http://www.sap-img.com/smartforms/sap-smart-forms.htm
http://www.ossincorp.com/Black_Box/Black_Box_2.htmhttp://www.sap-basis-abap.com/sapsf001.htm
Regards,
Ahsan
‎2006 Mar 06 5:24 AM
HI vishal
you can customize the standard INvoice as per your requirement. for that you have copy the standard invoice program and the form to a Z program and FOrm and then modify the code.
SAPSCRIPT:
SAPSCRIPT: program RVADIN01
form RVINVOICE01
- SMARTFORM: program RLB_INVOICE
smart LB_BIL_INVOICE
just copy these program and modify.
after doing this GOTO NACE txn. there change the print program and the form.
regards
ksihore
reward if helpful
‎2006 Mar 06 5:26 AM