HI,
I am facing one problem.
In Samart form i am facing one problem, Some materials are not displaying correctly. They are displaying like
Material Code:: BM5x.696975 .
It is displaying like 5x.696975.
So, Before displaying i had written some code like below.
SHIFT MATNR LEFT DELETING LEADING MATNR+0(2).
CONCATENATE 'BM' MATNR INTO MATNR.
Now Everything is fine. But My problem is i had found that some material are also have the same problem,
I can mentioned like 'CM' 'PM' 'DM' for that materials. My problem will be solved. But in feature may be other materials also give the same problem. So, i would like to use dynamic word.
Like below.
MATNR2 = MATNR+0(2)
SHIFT MATNR LEFT DELETING LEADING MATNR+0(2).
CONCATENATE MATNR2 MATNR INTO MATNR.
I am using the above code. I am taking the first 2 characters of the material then i would like to concatenate to the material again.
But if i use above not working , Reasons i am not able to find out.
If i mentioned particularly like 'pm' 'dm' 'sm' it is working fine.
but pm dm sm not working.
i put the break point it is getting the value like pm dm sm .
if i give the single quotation like 'pm' 'dm' 'sm' working fine.
but i need dynamically.
If i use ' ' ' ' 'MATNR2' ' ' ' ' NOT WORKING.
AND ~' MATNR2 ~' the output will come like
' BM'5x.696975 but i need like BM5x.696975
My question is the work 'pm', i would like to get dynamically from the starting of the material two characters.
Need your Valuable suggestions.