Application Development 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: 

change the value of parameter in smartfrom by program lines...!

Former Member
0 Kudos
106

Hi experts.........!

i want to change the value of parameter 'x1' which i import from program has a value 'ECNC' and want to display in output of smartfrom as 'ECNEC'. how i change it from program lines.

I use program lines to change its value....... use input parameter 'x1' and output paramter 'x1'

and program lines are

IF x1 = 'ECNC'.

x1 = 'ECNEC'.

ENDIF.

and in condition i use

x1 = 'ECNC'

but it doesn't effect output is same as it show the value of x1 = 'ECNC' when i execute the program.

How i change the value of x1 to 'ECNEC'

Plz help me.......!

Thanx in advance....!

7 REPLIES 7

Former Member
0 Kudos
70

Hi ,

Have you declared the Variable X1 under Global Definitions ?

please debug the Smartform by the following way.

Goto the generated Function module - > Search for your Variable X1 ( Choose Main program )- > Set Break point

Debugger will be called after giving printing parameter automatically. Check it whether value get changed ( Your Code is working or not ).

Former Member
0 Kudos
70

Hi ,

Have you declared the Variable X1 under Global Definitions ?

please debug the Smartform by the following way.

Goto the generated Function module - > Search for your Variable X1 ( Choose Main program )- > Set Break point

Debugger will be called after giving printing parameter automatically. Check it whether value get changed ( Your Code is working or not ).

0 Kudos
70
  • i declare x1 in the form interface........!

as a parameter

x1 is the field in the database tranp table 'ZFR_TB_ADM_SV' *

0 Kudos
70

Hi:

just make sure that where u are displaying the X1 value, here the value is getting changed or not. Meanz it is possible that u have changed the value in some other area and while displaying it is getting the old value.

0 Kudos
70

yes i have that issue n i resolve it..........thanx for ur help...............!

Edited by: BFawad26 on May 26, 2010 9:54 AM

arul_murugan
Active Participant
0 Kudos
70

HI,

Why you want to change the values of X1. You can declare another variable and pass the value as 'ECNEC', if the value of X1 is 'ECNC'.

Thanks

Arul

0 Kudos
70

bcz it is the demand of the client..n i didn't use other variable.............bcz x1 contain more then one value.not only 'ECNC'.......when other value condition change for x1....!