on 12-19-2006 6:09 PM
Hi all,
I have problems with an extractor for InfoObject 0MATRIAL.
We have an old material <u>with a blank space at the end of material</u>, for example 103680<u></u> . The R/3 people create a new material in R/3 but they cant delete the old one.
The error is in Processing with errors in the Warehouse, the process cancels and the material doesn't update, if I see the PSA the error is:
<b> Value '103680 ' for characteristic 0MATERIAL contains invalid characters.
Data record 2881 & with the key '103680 &' is invalid in value '103680 &' of the attribute/characteristic 0MATERIAL.</b>
Can anybody tell me how can I what and where can I change for solve this without changing things in R/3?
Thanks.
Thanks for the help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can do that as banu said.
The best way is to go with the transfer routine.
Try the below code.
CONDENSE TRAN_STRUCTURE-MATERIAL NO-GAPS.
RESULT = TRAN_STRUCTURE-MATERIAL.
If this doesn't work then you have to loop the material & delete the sapces.
Regards, Siva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try this code code first in the transfer rules.
CONDENSE TRAN_STRUCTURE-MATERIAL NO-GAPS.
RESULT = TRAN_STRUCTURE-MATERIAL.
If the above doesnt work then go with the below.
NOTE: THE BELOW CODE IS WRITTEN ASSUMING THAT YOU'LL HAVE ONLY ALPHABETS FROM A TO Z & NUMERICS 0-9.
******************************************************************************
data: temp_mat type /BI0/OIMATERIAL.
data: mat,
count type i,
cnt type i.
clear temp_mat.
count = 0.
cnt = strlen( TRAN_STRUCTURE-MATERIAL ).
do cnt times.
clear mat.
mat = TRAN_STRUCTURE-MATERIAL+count(1).
if mat CA '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'.
temp_mat+count(1) = mat.
endif.
count = count + 1.
enddo.
RESULT = temp_mat.
**********************************************************************
Assign point if this is useful.
Regards, Siva
Hi federico,
If you have loaded through the PSA then you can edit this record in the PSA to remove the space and then upload the data.
Hope this helps...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.