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

smartform:standard text

Former Member
0 Likes
646

hi,

i have one standard text in smart form , in standard text i have data as follows:

&IDES_FORM-MSATZ(6)& &IDES_FORM-MDSHB& &IDES_FORDMSHB& &IDES_FORM&

now my requirement is : the sign for IDES_FORM-MSATZ has to be ignored, i.e. ir-respective of it being negative or positive it should always be displayed as positive.

Secondly as of now it is max 6 characters, it should allow 7..

thanks

rahul

Edited by: RAHUL SHARMA on Nov 5, 2008 5:44 AM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
613

&IDES_FORM-MSATZ(7)& <--OUTPUTS 7 CHAR

&IDES_FORM-MSATZ(S)& <-- REMOVES -VE SIGN

&IDES_FORM-MSATZ(7S)& <--ABOVE BOTH

hi,

i have one standard text in smart form , in standard text i have data as follows:

&IDES_FORM-MSATZ(6)& &IDES_FORM-MDSHB& &IDES_FORDMSHB& &IDES_FORM&

now my requirement is : the sign for IDES_FORM-MSATZ has to be ignored, i.e. ir-respective of it being negative or positive it should always be displayed as positive.

Secondly as of now it is max 6 characters, it should allow 7..

thanks

rahul

Edited by: RAHUL SHARMA on Nov 5, 2008 5:44 AM

3 REPLIES 3
Read only

Former Member
0 Likes
613

Hi,

USe shift keyword to delete the negative sign at the beginning of your value as shown in the simple example.

Declare the number of characters as 8 since -ve sign also holds a character.

data: a(8) value '-1234'.

shift a left deleting leading '-'.

write: a.

Cheers!!

VEnk@

Edited by: Venkat Reddy on Nov 5, 2008 10:24 AM

Read only

prasanth_kasturi
Active Contributor
0 Likes
613

hi,

Put programlines before printing the value &IDES_FORM-MSATZ(6)&

and then write a code in the in the following way



if IDES_FORM-MSATZ LT 0.

IDES_FORM-MSATZ = IDES_FORM-MSATZ *  -1.

endif.

to allow 7 digits

insted of &IDES_FORM-MSATZ(6)&

give it as &IDES_FORM-MSATZ(7)&

regards

prasanth

Read only

Former Member
0 Likes
614

&IDES_FORM-MSATZ(7)& <--OUTPUTS 7 CHAR

&IDES_FORM-MSATZ(S)& <-- REMOVES -VE SIGN

&IDES_FORM-MSATZ(7S)& <--ABOVE BOTH