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

Unicode - OO Mapping BAPI structure to an IDoc

Former Member
0 Likes
437

I am working in a unicode 4.7 system where I have a method that is populating the sdata field in the idoc, structure edi_dd40, with the bapi segment, in this case bapiacgl09.

I originally had this code ....

LOOP AT accountpayable_tab ASSIGNING <fs>.

lstr_idoc-segnam = 'E1BPACAP09'.

lstr_idoc-sdata = <fs>.

APPEND lstr_idoc TO idoc_data_tab.

ENDLOOP.

when I execute the method I get a unicode error UC_OBJECTS_NOT_CONVERTIBLE.

So I dug around and found reference to cl_abap_container_utilities=>fill_container_c, this parses the data into the LCAR field sdata, but the fields that are not populated end up with #.

Any suggestions?

Thanks,

Andrew

I am working in a unicode 4.7 system where I have a method that is populating the sdata field in the idoc, structure edi_dd40, with the bapi segment, in this case bapiacgl09.

I originally had this code ....

LOOP AT accountpayable_tab ASSIGNING <fs>.

lstr_idoc-segnam = 'E1BPACAP09'.

lstr_idoc-sdata = <fs>.

APPEND lstr_idoc TO idoc_data_tab.

ENDLOOP.

when I execute the method I get a unicode error UC_OBJECTS_NOT_CONVERTIBLE.

So I dug around and found reference to cl_abap_container_utilities=>fill_container_c, this parses the data into the LCAR field sdata, but the fields that are not populated end up with #.

Any suggestions?

Thanks,

Andrew

1 REPLY 1
Read only

Former Member
0 Likes
372

Look at OSS Note 509898.