Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

programline

Former Member
0 Likes
817

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
786

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

5 REPLIES 5
Read only

Former Member
0 Likes
787

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

Read only

varma_narayana
Active Contributor
0 Likes
786

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>

Read only

Former Member
0 Likes
786

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.

Read only

Former Member
0 Likes
786

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

Read only

Former Member
0 Likes
786

FGeeeeeeeeeeeeee