Application Development 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: 

Splitting the field sdata to poppulate segment e1edp01

Former Member
0 Kudos
368

Hi All,

I have declared an internal table t_e1edp01 which refers to the structure of the segment E1EDP01.I need to populate this internal table (t_e1edp01) by taking values from another internal table t_edidd which refers to the structure EDIDD.

Now the problem is the internal table t_edidd has one field sdata which is of length 1000 characters, and this field has got all the values that needs to be poppulated in the my internal table (t_e1edp01).

Can anyone tell me,How to split this field 'sdata' and poppulate the values into the corresponding fields of the table t_e1edp01.

Waiting for your reply,

Muzammil.

2 REPLIES 2

Former Member
0 Kudos
55

DATA : t_edidd TYPE STANDARD TABLE OF edidd,

wa_idoc_data TYPE edidd.

LOOP AT t_edidd INTO wa_idoc_data.

CASE wa_idoc_data-segnam.

WHEN e1edp01.

wa_ e1edp01 = wa_idoc_data-sdata.

APPEND wa_e1edp01 TO t_e1edp01.

ENDLOOP.

Former Member
0 Kudos
55

Hi,

Always the data in any segment will be stored in SDATA field of the EDID4 table only.

If you want to what value is there in what field then you need to move the SDATA field in to that particular segment for example:-

Now I want the data of the E1EDP01 segment then

data k_e1edp01 like e1edp01.

move int_edidd-sdata to k_e1edp01.

Then you will have data in field wise in the structure k_e1edp01.

Thanks,

Mahesh.