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

Error while generating IDOC

Former Member
0 Likes
417

hi! Friends

Using IDOC I'm transferring the data from one server to another. While Creating RFC to generate an IDOC " are not mutually convertible

Bellow are the steps followed,

1. Declared the Segment parameters as ZSACL_KANBAN LIKE EDIDD in Tables section of Function Module

2. Since I'm transferring the records which has been customized for our org. i have created a structure similar to the structure defined in the Segment

3. after fetching the Data from the database assigned the Segment name and Data to the Table defined in the Function module

zkanban-segnam = 'ZSEG_KANBAN'.

zkanban-sdata = wa_finaldata.

append zkanban.

but it throws error as wa_finaldata and zkanban are not mutually convertible.

but if i pass only one column IDOC is generating, but i want to pass 10 columns

how to define according to the Data Segment.

Regards

Kv

1 ACCEPTED SOLUTION
Read only

jyotheswar_p2
Active Participant
0 Likes
371

Hi

Move wa_finaldata that into a string varaibale and then try moving that into SDATA.

Regards

Jyo

3 REPLIES 3
Read only

jyotheswar_p2
Active Participant
0 Likes
372

Hi

Move wa_finaldata that into a string varaibale and then try moving that into SDATA.

Regards

Jyo

Read only

0 Likes
371

hi! Thanks for your reply.

Now I'm able to 10 columns into SDATA but there are mismatch in field size while uploading.

Tried by removing (or) including the preceding zeros for the field but then the data are merging up.

how to concatenate the 10 different columns with the constant field size.

Regards

Kv

Read only

Former Member
0 Likes
371

Hi..

Try by giving hierarchy level also

zkanban-segnam = 'ZSEG_KANBAN'.

zkanban-sdata = wa_finaldata.

zkanban-sdata -hlevel = 2.

append zkanban.

please let me know if you need more info on this.

Thank you.

Regards,

Lokeswari.