‎2007 Aug 22 10:27 AM
hi guru's,
in smart form desining, if we go for program line their we will find inputparameter, output parameters. what is the use of these parameters.
explaine me brief.
thanks in advance
‎2007 Aug 22 10:30 AM
Hi,
Even if the programline coding makes use of form interface fields or global fields,
you still have to make them known to the programline coding. Enter those fields
that you read from under Input Parameters, and those that you set under Output Parameters. You can also work with local variables that you create with the DATA
statement.
Regards,
Sankar
‎2007 Aug 22 10:30 AM
Hi,
Even if the programline coding makes use of form interface fields or global fields,
you still have to make them known to the programline coding. Enter those fields
that you read from under Input Parameters, and those that you set under Output Parameters. You can also work with local variables that you create with the DATA
statement.
Regards,
Sankar
‎2007 Aug 22 10:31 AM
Hi Surendra..
Any field that we use in the code must be either in INPUT or OUTPUT
The INPUT parameters are the fields that are <b>READ</b> in the Code.
The OUTPUT parameters are the fields that are <b>Returned</b> by the Code.
For Eg:
Input: A , B
Output : C
Code:
C = A * B.
This Code returns the Product of A and B in the Form of C.
If the Same field is given in both INPUT and OUTPUT , that means it will be READ as well as MODIFIED and RETURNED.
<b>Reward points if Helpful</b>
‎2007 Aug 22 10:33 AM
Hi,
During <b>initialization</b>, data coming from the program can be changed before it
is sent to the form. In forms that have not been migrated from Smart Forms,
initialization is the only time when ABAP coding can be executed.
Even if the initialization coding makes use of form interface fields or global fields,
you still have to make them known to the initialization coding. Enter those fields
that you read from under Input Parameters, and those that you set under OutputParameters. You can also work with local variables that you create with the <b>DATA</b> statement. Note, however, that these local variables are not known outside theinitialization coding. In particular, they cannot be used in the form layout.
The distinction between input parameters and output parameters is made only for
structuring purposes. It has no effect on the potential for modifying parameters,
as both input and output parameters are passed to the initialization coding by
reference. As a consequence, changes of input parameters are permanent.
Reward if it helps..
Regards,
Omkar.
‎2007 Aug 22 10:33 AM
Hi Surendra,
The program line node is nothing but a Subroutine in our normal programs.
ie, when smartform gets activated, one function module gets generated, in the function module, these program lines are treated as subroutine, and those input and output parameters are the input and output values coming in and going out of the subrounte respectively.
Input parameters are the varibles which are declared globally in the smartform and can be used in the program lines. without passing the varaibles, we cant use them in the program lines.
Output parameters are the varaibles , that are declared globally and they are output coming out from the subroutine, and these parameters are not mandatory.
Hope you understood the concept.
Regards,
Sujatha
‎2007 Aug 22 10:52 AM