2011 Apr 08 3:53 PM
Hi All,
If we create a Application Fom it gets data from Form Class. So the form is data binded using From Class. However we use the EFG_PRINT and supply the application form and form class name in a executable program. Correct me if my understanding is wrong. And the code is in a executable abap program. I read the documentation it says it should be configured in NACE. So if we put the ZPROGRAM in driver program then what would we put in Form Name ?
Thanks in advance.
Rgds,
AK
2011 Jul 28 5:46 AM
Hi AK,
You no need to maintain Application form in NACE.You should maintain Application from name at contract account level(Field BIll Fomr).Then generate printdocument for that contract account. Now to print the print document by using your Application form in your driver program please follow the below steps.
Step 1 : Get the name of generated function module of your application form , use FM "EFG_DB_FORM_SELECT" by passing x_formkey as your application form name. In import parameter y_formlog-genfunc you will get generated function module of your application form.
Step 2 : Call FM by passing you printdocument number(to export parameter x_tab_gendata) in you driver program.
Thanks
Rajesh