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: 

Smartforms

Former Member
0 Kudos

hi Friends,

Could u please send me the Details

my problem is actually i fetch the data from some tables and store in one field i.e <b>Inco1</b>

in my smartforms Myrequirement point of view

if INOC1 = "opp", Print "FOB Origin-Prepay"

if INCO1 = "Opa", Print "FOB Origin-Prepay&Add"

if INCO1 = "Oco", Print "FOB ORigin-Collect"

in Smart forms

for I have witten Like this

Data:value(10) type c.

if INOC1 = "opp",

Value = "FOB Origin-Prepay"

endif.

if INCO1 = "Opa"

Value = "FOB Origin-Prepay&Add"

endif.

in Text I have call like this &value&

but it showing some error message like use Select-options Here

Regrads

Srinu

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Srinu

Have you declared data in Global Definitions. If this is not the case, firstly declare variables of data statement in Glaobal Definition. Then in Code's General attribute tab declare this variable as input parameter.

If this doesnt rectify you problem reply.

5 REPLIES 5

Former Member
0 Kudos

Hi Srinu

Have you declared data in Global Definitions. If this is not the case, firstly declare variables of data statement in Glaobal Definition. Then in Code's General attribute tab declare this variable as input parameter.

If this doesnt rectify you problem reply.

Former Member
0 Kudos

Hi Srinu,

In order to display the value in the Script, the variable has to be declared globally. You have declared it locally in the program lines part.

Click on the Global declaration in that declare the variable <b>"value"</b>

<b>value type char10</b>

Your value will be displayed.

Reward if helpful.

Regards,

Tushar

Former Member
0 Kudos

Hi Srinu,

Declare the variable VALUE TYPE CHAR10 in the GLOBAL DATA tab and place your code in INITILIZATION tab.

Thanks and Regards,

Bharat Kumar Reddy.V

Former Member
0 Kudos

hi,

you can use PROGRAM LINE node to solve your problem .

Regards

vikas

Former Member
0 Kudos

Hi,

Instead of coding, create 3 text elements (for example opp, Opa & Oco) and use value of INOC1 as a condition to print the correct one?

Br,

Hannu