<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Binary data through IDOC in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-data-through-idoc/m-p/10713217#M1872340</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rachit ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am simply filling the segment by going in we19 and creating the idoc. this is for my testing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Nov 2014 05:35:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-11-13T05:35:21Z</dc:date>
    <item>
      <title>Binary data through IDOC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-data-through-idoc/m-p/10713209#M1872332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to send binary data (TIF , PDF etc) through IDOC.&lt;/P&gt;&lt;P&gt;Which segment and type is to be used for this purpose? And what about the length of the segment. Will it take the whole length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_emote jive_macro" src="https://community.sap.com/1078/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; regards,&lt;/P&gt;&lt;P&gt;Akriti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 06:13:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-data-through-idoc/m-p/10713209#M1872332</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-12T06:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: Binary data through IDOC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-data-through-idoc/m-p/10713210#M1872333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Akriti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer to the thread "&lt;A __default_attr="1612395" __jive_macro_name="thread" class="jive_macro_thread jive_macro" data-orig-content="Send PDF output via Idoc" href="https://community.sap.com/"&gt;&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;Do let me know in case you have any questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rachit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 07:16:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-data-through-idoc/m-p/10713210#M1872333</guid>
      <dc:creator>former_member641233</dc:creator>
      <dc:date>2014-11-12T07:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Binary data through IDOC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-data-through-idoc/m-p/10713211#M1872334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for thew res[pose Rachit.:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to send the binary data and fill that binary data in segment field.&lt;/P&gt;&lt;P&gt;I specified the field as string.&lt;/P&gt;&lt;P&gt;But as the data is long and sement will take only 1000 characters , how can i send such a long data ? Can you please help to find the solution &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1078/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After receiving this data i have to store it in some table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Akriti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 07:52:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-data-through-idoc/m-p/10713211#M1872334</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-12T07:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Binary data through IDOC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-data-through-idoc/m-p/10713212#M1872335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Akriti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can break the data and add as much segments as you need. So for eg: if you have the data of 400 characters then add the segment 4 times and break the data into four parts in the idoc generation program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do let me know in case you face any difficulties.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rachit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 18:07:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-data-through-idoc/m-p/10713212#M1872335</guid>
      <dc:creator>former_member641233</dc:creator>
      <dc:date>2014-11-12T18:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: Binary data through IDOC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-data-through-idoc/m-p/10713213#M1872336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rachit ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1078/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I am doing this way .&lt;/P&gt;&lt;P&gt;But i am facing a problem now..for eg . if there are total 4 segments and the length of one segment is 1000 char but i am filling only 200 chars per segment , then it is filling the remmaining left space with 0.&lt;/P&gt;&lt;P&gt;How to deal with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks once again for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Akriti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 04:38:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-data-through-idoc/m-p/10713213#M1872336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-13T04:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Binary data through IDOC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-data-through-idoc/m-p/10713214#M1872337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Akriti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can put a check on the Idoc generation program and delete all the segments that contain only zeros.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rachit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 04:43:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-data-through-idoc/m-p/10713214#M1872337</guid>
      <dc:creator>former_member641233</dc:creator>
      <dc:date>2014-11-13T04:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: Binary data through IDOC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-data-through-idoc/m-p/10713215#M1872338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rchit ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont have to delete the whole zeroes. I want the delete the ending zeroes.&lt;/P&gt;&lt;P&gt;And as this is binary data iit mat be a posssibility that that there are 0000000000 in the end.&lt;/P&gt;&lt;P&gt;So how to delete those zeroes that are not needed or any way by which the extra zeroes are not added.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Akriti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 05:13:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-data-through-idoc/m-p/10713215#M1872338</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-13T05:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Binary data through IDOC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-data-through-idoc/m-p/10713216#M1872339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Akriti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell me the logic you have written to fill the segment?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rachit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 05:25:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-data-through-idoc/m-p/10713216#M1872339</guid>
      <dc:creator>former_member641233</dc:creator>
      <dc:date>2014-11-13T05:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: Binary data through IDOC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-data-through-idoc/m-p/10713217#M1872340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rachit ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am simply filling the segment by going in we19 and creating the idoc. this is for my testing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 05:35:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-data-through-idoc/m-p/10713217#M1872340</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-13T05:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: Binary data through IDOC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-data-through-idoc/m-p/10713218#M1872341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Akriti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For testing purpose you can manually delete the segment or the entry in the segment. You will not face this issue while actually writing the code as the segment will not be taken into consideration if it is blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you still face the issue after actually writing the code for the Idoc generation. it can be solved using either conversion exit "&lt;SPAN style="color: #333333; font-size: 12px;"&gt;CONVERSION_EXIT_ALPHA_OUTPUT" or SHIFT DELETING FM's and commands.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rachit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 06:04:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-data-through-idoc/m-p/10713218#M1872341</guid>
      <dc:creator>former_member641233</dc:creator>
      <dc:date>2014-11-13T06:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Binary data through IDOC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-data-through-idoc/m-p/10713219#M1872342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rachit ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not taking any blank segment.&lt;/P&gt;&lt;P&gt;I am not filling the segment completely . for eg if the lenght is 1000 , i am filling only 200 char.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the help. I will test it in real scenario if it will fill the left space with zeroes or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Akriti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 06:36:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-data-through-idoc/m-p/10713219#M1872342</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-13T06:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Binary data through IDOC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-data-through-idoc/m-p/10713220#M1872343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Akriti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the zeros are getting filled in the partially filled segment, is there any impact on the output?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rachit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 06:42:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-data-through-idoc/m-p/10713220#M1872343</guid>
      <dc:creator>former_member641233</dc:creator>
      <dc:date>2014-11-13T06:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Binary data through IDOC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-data-through-idoc/m-p/10713221#M1872344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes Rachit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is impacting the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose if in output i am getting a text file then the zeroes are taken as space and the output is getting effected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Akriti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 06:49:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-data-through-idoc/m-p/10713221#M1872344</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-13T06:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Binary data through IDOC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-data-through-idoc/m-p/10713222#M1872345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Akriti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Idoc generation program use the base64 encoding and while creating the PDF or TXT file use base64 decoding, then you should not face the&amp;nbsp; issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find an example below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;DATA: z&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TYPE string,&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; encode&amp;nbsp; TYPE string,&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; decode&amp;nbsp; TYPE string .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;DATA: obj&amp;nbsp; TYPE REF TO cl_http_utility,&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cref TYPE REF TO if_http_utility.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;CREATE OBJECT : obj.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;cref = obj.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;z = 'what u have to encode'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;encode = obj-&amp;gt;if_http_utility~encode_base64( z ) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;decode = obj-&amp;gt;if_http_utility~decode_base64( encode ).&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Rachit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 07:05:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-data-through-idoc/m-p/10713222#M1872345</guid>
      <dc:creator>former_member641233</dc:creator>
      <dc:date>2014-11-13T07:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Binary data through IDOC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/binary-data-through-idoc/m-p/10713223#M1872346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok Rachit &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1078/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try this. and let u know.&lt;/P&gt;&lt;P&gt;Thanks for the help. If i get any issue again i hope u will be there&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="silly" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1078/images/emoticons/silly.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 07:12:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/binary-data-through-idoc/m-p/10713223#M1872346</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-13T07:12:03Z</dc:date>
    </item>
  </channel>
</rss>

