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

SDATA population in IDOC

Former Member
0 Likes
798

Hi all,

I have 6 internal tables with data and I need to pass 6 internal tables to the structure SDATA in the IDOC . how to do this ?

<b><REMOVED BY MODERATOR></b>

thanks ,

veena

Message was edited by:

Alvaro Tejada Galindo

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
738

create a structure/itab having all your 6 internal table entries

then,

loop at itab.

idoc_data-sdata = itab.

APPEND idoc_data.

endloop.

declare your idoc_data as

idoc_data LIKE edidd OCCURS 0 WITH HEADER LINE

Hi all,

I have 6 internal tables with data and I need to pass 6 internal tables to the structure SDATA in the IDOC . how to do this ?

<b><REMOVED BY MODERATOR></b>

thanks ,

veena

Message was edited by:

Alvaro Tejada Galindo

3 REPLIES 3
Read only

Former Member
0 Likes
738

HI,

Build a final internal table with the structure of consolidated fields from all the 6 internal tables and pass the data into final internal table by reading the internal tables.

Regards

Kannaaih

Read only

Former Member
0 Likes
738

Hi

You can't simply pass the data into this SDATA field

this is a 1000 char single field

first note down the different segments of the Idoc and in their order of fields data you have to fill this field

because twhen you wants to fetch the data basck from this SDATA field it will be a problem

Regards

Anji

Read only

Former Member
0 Likes
739

create a structure/itab having all your 6 internal table entries

then,

loop at itab.

idoc_data-sdata = itab.

APPEND idoc_data.

endloop.

declare your idoc_data as

idoc_data LIKE edidd OCCURS 0 WITH HEADER LINE