2008 May 29 4:31 PM
Dear friends,
when you run transaction S_SH8_84000002
there will shown a list named "Hazardous substance
inventory" . There is a column which is named "Risk phrases". It may contain literals like
R39/26 R39/27 R39/28 R60 R62
per line if your search results any match.
Originally are these Risk phrases stored alone as R39/26
and not consisting of many phrases.
To sum up they are being concatenated and having this look
R39/26 R39/27 R39/28 R60 R62 finally.
Due to a select-options field a user may be able to find e.g
all datas which have e.g. only the risk phrase R39/27.
There are for me two possibilities:
Either hack them into pieces or findout that location exactly
inside coding where this operation with concatenation
is done.
Do have an idea where this location can be in the abap
code ?
Please help me in this regard!
Thanks
Erdem Sas
2008 May 29 6:21 PM
if you would like to split then you can use this code:
string = 'R39/26 R39/27 R39/28 R60 R62'.
split at space into f1 f2 f3 f4 f5.
2008 May 29 6:21 PM
if you would like to split then you can use this code:
string = 'R39/26 R39/27 R39/28 R60 R62'.
split at space into f1 f2 f3 f4 f5.
2008 May 29 6:29 PM
thanks, but how can I be sure that my
string variable has always this length. ?
string = 'R39/26 R39/27 R39/28 R60 R62'.
How many f1 f2 f3 f4 f5 variables must be declared ?
What happens whether the string looks like this:
string = 'R39/26 R39/27 R39/28 R60 R62 R44 R98 R12 R098
R98 R56/56 ....'.
Regards
sas
2008 May 29 8:00 PM
dear sas,
please check include INCLUDE "LCBIH_RP01_DISPF08"
especially these lines ->
LOOP AT i_assign_tab WHERE ( epid = i_erh_iotab-epid ).
CASE i_assign_tab-atnam.
WHEN lc_subchar-rset.
CONCATENATE e_slave_tab-rphrases
i_assign_tab-string
INTO e_slave_tab-rphrases SEPARATED BY space.
CONDENSE e_slave_tab-rphrases.
WHEN lc_subchar-sset.
CONCATENATE e_slave_tab-sphrases
i_assign_tab-string
INTO e_slave_tab-sphrases SEPARATED BY space.
CONDENSE e_slave_tab-sphrases.
WHEN lc_subchar-hsym.
CONCATENATE e_slave_tab-hazsymbol
i_assign_tab-string
INTO e_slave_tab-hazsymbol SEPARATED BY space.
CONDENSE e_slave_tab-hazsymbol.
WHEN lc_subchar-whcl.
CONCATENATE e_slave_tab-waterhazclass
i_assign_tab-string
INTO e_slave_tab-waterhazclass SEPARATED BY space.
CONDENSE e_slave_tab-waterhazclass.
ENDCASE.
ENDLOOP.
reagards
sas
Edited by: erdem sas on May 29, 2008 9:00 PM