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

CONVERT RAWSTRING to SOLIX TABLE

Former Member
0 Likes
5,314

Hello,

I want to converte RAWSTRING to SOLIX TABLE.

how can i do that?

thank you...

4 REPLIES 4
Read only

FredericGirod
Active Contributor
0 Likes
2,197

Hi,

here an example from sending mail

it_graphics = is_job_info-xmloutput-xsfgr[].

   LOOP AT it_graphics

        INTO is_graphic.

     CLEAR w_gr_xtxt.

     LOOP AT is_graphic-content

          INTO is_gr_raw.

       CONCATENATE w_gr_xtxt

                   is_gr_raw-line

                   INTO w_gr_xtxt

                   IN BYTE MODE.

     ENDLOOP.

     w_gr_xtxt = w_gr_xtxt(is_graphic-length).

     w_offset = 0.

     w_len    = 255.

     CLEAR it_solix[].

     WHILE w_offset < is_graphic-length.

       w_diff = is_graphic-length - w_offset.

       IF w_diff > w_len.

         is_solix-line = w_gr_xtxt+w_offset(w_len).

       ELSE.

         is_solix-line = w_gr_xtxt+w_offset(w_diff).

       ENDIF.

       APPEND is_solix TO it_solix.

       ADD w_len TO w_offset.

     ENDWHILE.




Regards

Fred

Read only

0 Likes
2,197

what is is_job_info-xmloutput-xsfgr?  it's à solix table?

thank(you

Read only

0 Likes
2,197

The example  come from this doc :

Fred

Read only

rosenberg_eitan
Active Contributor
0 Likes
2,197

Hi,

Try this:

CALL METHOD cl_bcs_convert=>xstring_to_solix

    EXPORTING

      iv_xstring = xstring

    RECEIVING

      et_solix   = it_solix.

     

From:  

Regards.