2009 Jul 16 9:02 AM
Hi To All,
Problem is:
if material is with less than 10 characters.. Im unable to retriving from mara table. Means for example
matnr = 12345678, remaining two charater a space.
beacuse of this sapce unable to retrive from mara table..eventhough the material is exists in Mara table.
if i remove two character space then I can retrive.
How to remove varaible space right side.
thanks you,
Anu.
Hi To All,
Problem is:
if material is with less than 10 characters.. Im unable to retriving from mara table. Means for example
matnr = 12345678, remaining two charater a space.
beacuse of this sapce unable to retrive from mara table..eventhough the material is exists in Mara table.
if i remove two character space then I can retrive.
How to remove varaible space right side.
thanks you,
Anu.
2009 Jul 16 9:04 AM
HI,
To remove the Leading space from the variable you can use the CONDENSE statement. or leading zeros use this FM CONVERSION_EXIT_ALPHA_INPUT / CONVERSION_EXIT_MATN1_INPUT.
2009 Jul 16 9:06 AM
2009 Jul 16 9:06 AM
Hi,
Try using
shift matnr left deleting leading space.
Hope this helps.
Regards,
Dhasarathy.
2009 Jul 16 9:07 AM
2009 Jul 16 9:07 AM
Hi Anitha ,
The leading space can be deleted with the following code'
shift t_mara-matnr left deleting leading space.
Regards,
Vik
2009 Jul 16 9:15 AM
hi than q very much for ur replays and ..
left side space we can use condense or left deleting leading space. but i want to delete the sapce right side.
how to do that,
thank you
2009 Jul 16 9:19 AM
Hi,
Use
SHIFT matnr RIGHT DELETING TRAILING space.
Dhasarathy K
2009 Jul 16 9:21 AM
Hi ,
The right side space can be removed with the same statement using trailing.
eg: shift t_mara-matnr deleting trailing space.
regards,
Vik
2009 Jul 16 9:08 AM
Hi
Use the fm CONVERSION_EXIT_MATN1_INPUT in order to convert the material code to internal format.
Max
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |