‎2005 Aug 24 1:23 PM
Hi Friends,
I have a requirement where i have to capture the value of MBLNR(Material document number)and pass the value to a report where it will call the smartform.
In transaction MB03 an output type will be cofigured and when i execute this output type the smartform will be executed.
I don't know how to pass the value of MBLNR thru the Report. Is there any standard program available like RLB_INVOICE where billno will be passed to activate the smartform.
‎2005 Aug 24 2:17 PM
When you are configuring things for transaction MB03, you will enter a program name and a subroutine(form name). The form name has a typical structure, something similar to this:
form entry_aufb using ent_retco ent_screen.
endform.
The print program will be of type INCLUDE. The form will have the above parameters and the NAST structure will already be populated with the MBLNR value.
MB03 --->
Print Program(your report program of type include) -
>
Subroutine -
>
Function Module generated after creating Smartform
Usually, there is another function module,<b>SSF_FUNCTION_MODULE_NAME</b> where you give the <b>name of the smartform</b> as input, and it returns the name of the function module to be called.
HOpe things are clear, now.
Regards,
Subramanian V.