Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Risk phrases

Former Member
0 Likes
870

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

1 ACCEPTED SOLUTION
Read only

former_member156446
Active Contributor
0 Likes
791

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.

3 REPLIES 3
Read only

former_member156446
Active Contributor
0 Likes
792

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.

Read only

0 Likes
791

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

Read only

Former Member
0 Likes
791

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