cancel
Showing results for 
Search instead for 
Did you mean: 

to display output in script by checking a condtion.

Former Member
0 Kudos

HI Friends,

I have a requiremnt in scripts.

in my address window.

in the text editor i have a &KNA1-NAME1&

now this is dispalying the name of the customer.

now the customer name which is displaying is &KNA1-NAME1& = 'ANDYWITTAL MEXICO'.

and that name is been displayed on the script output.

now i need to display that name 'ANDYWITTAL MEXICO ' as 'ANDYWITTAL'.

i need to remove mexico from that name.

and this should effect for only this particular name but not any other name.

How can i do this.

can any one suggest me.

Regards

Priyanka

Accepted Solutions (1)

Accepted Solutions (1)

former_member181995
Active Contributor
0 Kudos

>

> and this should effect for only this particular name but not any other name.

..Than you could use Command line like below:

/: If &KNA1-NAME1& = 'ANDYWITTAL MEXICO'.

&KNA1-NAME1(10)&

/: ENDIF.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Check the condition,

/: If &KNA1-NAME1& EQ 'ANDYWITTAL MEXICO'

ANDYWITTAL (OR) &KNA1-NAME1+0(10)&

/: Endif.

Former Member
0 Kudos

You could process the internal table inside your program before processing it in the script. That way you won't have to change the script at all.