‎2010 Feb 05 3:43 AM
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
‎2010 Feb 05 4:01 AM
Hi
Move wa_finaldata that into a string varaibale and then try moving that into SDATA.
Regards
Jyo
‎2010 Feb 05 4:01 AM
Hi
Move wa_finaldata that into a string varaibale and then try moving that into SDATA.
Regards
Jyo
‎2010 Feb 05 9:41 AM
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
‎2010 Feb 05 7:27 AM
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.