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

conversion routine for sign '-'.

Former Member
0 Likes
1,060

Hi all,

I added some userdefined fields for material master transaction with the domain ZUABMASS.

My requirement is here when user enter value in these fields.

for ex:

enter value display value

1 1,000(but i want like +1,000)

-2 2,000-(but i want like -2,000)

So, Iam writing conersion routine(ZDECS) for the domain ZUABMASS which has data type dec and decimal places 3 using function modules.


CONVERSION_EXIT_ZDECS_OUTPUT
CONVERSION_EXIT_ZDECS_INPUT

So any body please give me some code how to go abt it in those function modules.

Thanks and regards

Chandu.

Message was edited by: Sai Chand Pullepu

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
666

Hi Sai,

Refer the standard fm

for eg:

CONVERSION_EXIT_ALPHA_INPUT or CONVERSION_EXIT*

Thanks

Eswar

4 REPLIES 4
Read only

Former Member
0 Likes
667

Hi Sai,

Refer the standard fm

for eg:

CONVERSION_EXIT_ALPHA_INPUT or CONVERSION_EXIT*

Thanks

Eswar

Read only

0 Likes
666

Hi eshwar,

I treid but those are not helpful for my situation.

Thats why i created new routine.

Read only

0 Likes
666

Hi,

the fm CLOI_PUT_SIGN_IN_FRONT puts the -ve sign in front..

Regards,

Suresh Datti

Read only

0 Likes
666

Hi,

check this code :

CONVERSION_EXIT.....input

data : ws_output(6) type c.

ws_output = input.

concatenate ws_output ',' '000' into ws_output.

output = ws_output

CONVERSION_EXIT....output

data : ws_input(2) type c.

ws_input = input+0(2).

WRITE: ws_input TO output .

if any changes required , try to change.

Laxman