2006 Dec 25 5:45 AM
I have one input field like MATNR (Module pool),if i enter invalid Material no , i need error message with what we given in input field . I have done it this way. Example: This Material no 000000000204004990 does not exit in MARA.
But Now i want remove the leading zeros in the message.like Example: This Material no 204004990 does not exit in MARA
2006 Dec 26 4:49 AM
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
input = wf_matnr
IMPORTING
output = wf_matnr.
Example:
input = 00000000000123
output = 123
I have one input field like MATNR (Module pool),if i enter invalid Material no , i need error message with what we given in input field . I have done it this way. Example: This Material no 000000000204004990 does not exit in MARA.
But Now i want remove the leading zeros in the message.like Example: This Material no 204004990 does not exit in MARA
2006 Dec 25 5:49 AM
Assign the material number to a character variable (say data v1(18)).
v1 = mat_no.
pack v1 to v1.
Then use v1 in message
2006 Dec 25 3:29 PM
Hi,
Convert material number to character format. Use conversion_exit_aplha_output function module. Pass material no to this function module.
Ashven.
2006 Dec 25 4:33 PM
Hi,
You can also use the shift command..
Example..
-
DATA: V_MATNR TYPE MATNR.
V_MATNR = '0000TESTMATERIAL'.
SHIFT V_MATNR LEFT DELETING LEADING '0'.
WRITE: / V_MATNR.
Thanks,
Naren
2006 Dec 26 3:54 AM
Hi ramudu ,
Use the function module
CONVERSION_EXIT_ALPHA_OUTPUT.
Pls. reward points for useful answers
2006 Dec 26 4:49 AM
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
input = wf_matnr
IMPORTING
output = wf_matnr.
Example:
input = 00000000000123
output = 123
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |