<?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: Add pointers in BDCP_BEFORE_WRITE ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-pointers-in-bdcp-before-write/m-p/6185889#M1373909</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, that's an area that I'd also need to investigate. Based on your approach it sounds as if the outbound IDoc would get generated based on the change pointer information. (I.e. change pointers would be serving the duplicate purpose of triggering the outbound IDoc and also indicating what changed; for the latter I'd expect in general more evaluation of change documents, but in your case it seems to be just change pointers?!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since change pointers don't really do any harm (ok, performance issues, storage space aside), I'd do some test runs where you basically add the change pointers you need directly to the table in BAdI BDCP_BEFORE_WRITE. So you'd need to test which values you could/would copy (e.g. do you still want a reference to change documents, even though you don't have one) and which you could leave empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally there would be some better approach. My recommendation would be to check if that can be configured (hopefully you'll find some competent functional consultant) or otherwise to search for customer exits in the outbound IDoc generation function module. Once you have an exit, you could add the required segments there. If you don't find any suitable exit, you could still code your own change pointer evaluation module, which reads the outstanding change pointers, generates the IDocs (should be possible to call the standard SAP function module for that) and then add the missing segments that you always require.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Oct 2009 06:29:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-06T06:29:20Z</dc:date>
    <item>
      <title>Add pointers in BDCP_BEFORE_WRITE ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-pointers-in-bdcp-before-write/m-p/6185886#M1373906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i would like to add pointers in BADI BDCP_BEFORE_WRITE for message HRMD_A so that, every time, i get all informations about an employee in my idoc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i plan to user function CHANGE_POINTERS_CREATE but i'm fearing an infinite loop if i use CHANGE_POINTERS_CREATE inside BDCP_BEFORE_WRITE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could you tell me if i'm wrong or not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anyone has an exemple on how to add automatically change pointers?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2009 16:08:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-pointers-in-bdcp-before-write/m-p/6185886#M1373906</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-05T16:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Add pointers in BDCP_BEFORE_WRITE ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-pointers-in-bdcp-before-write/m-p/6185887#M1373907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Olivier,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it depends a bit what you're trying to achieve. In theory you could (ab)use the BAdI to actually add change pointers (by design I'm sure it's only supposed to be used to filter unwanted values, but depending on your scenario you might get away with simply adding new entries to the internal table &lt;SPAN __default_attr="Courier" __jive_macro_name="font"&gt;CHANGE_POINTERS&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you mention though, the functions for writing change pointers do call again the BAdI &lt;SPAN __default_attr="courier" __jive_macro_name="font"&gt;BDCP_BEFORE_WRITE&lt;/SPAN&gt;. Therefore if you trigger generation of the change pointers from within the BAdI, you'd need some additional coding to prevent endless loops.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, based on your short comment it is not clear though, if there's possibly better solutions. I.e. are you sure that you cannot configure the system to create the change pointers you want? Somehow you seem to be getting already change pointers as you're contemplating to utilize the BAdI &lt;SPAN __default_attr="courier" __jive_macro_name="font"&gt;BDCP_BEFORE_WRITE&lt;/SPAN&gt;. So why exactly do you need to code it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best wishes, harald&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2009 05:48:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-pointers-in-bdcp-before-write/m-p/6185887#M1373907</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-06T05:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Add pointers in BDCP_BEFORE_WRITE ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-pointers-in-bdcp-before-write/m-p/6185888#M1373908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Harald,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank your for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in fact, what i need is that, when an update of employee occurs, the generated idoc contains always some infotypes (0001for exemple)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is that possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2009 06:16:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-pointers-in-bdcp-before-write/m-p/6185888#M1373908</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-06T06:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: Add pointers in BDCP_BEFORE_WRITE ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-pointers-in-bdcp-before-write/m-p/6185889#M1373909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, that's an area that I'd also need to investigate. Based on your approach it sounds as if the outbound IDoc would get generated based on the change pointer information. (I.e. change pointers would be serving the duplicate purpose of triggering the outbound IDoc and also indicating what changed; for the latter I'd expect in general more evaluation of change documents, but in your case it seems to be just change pointers?!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since change pointers don't really do any harm (ok, performance issues, storage space aside), I'd do some test runs where you basically add the change pointers you need directly to the table in BAdI BDCP_BEFORE_WRITE. So you'd need to test which values you could/would copy (e.g. do you still want a reference to change documents, even though you don't have one) and which you could leave empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally there would be some better approach. My recommendation would be to check if that can be configured (hopefully you'll find some competent functional consultant) or otherwise to search for customer exits in the outbound IDoc generation function module. Once you have an exit, you could add the required segments there. If you don't find any suitable exit, you could still code your own change pointer evaluation module, which reads the outstanding change pointers, generates the IDocs (should be possible to call the standard SAP function module for that) and then add the missing segments that you always require.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2009 06:29:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-pointers-in-bdcp-before-write/m-p/6185889#M1373909</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-06T06:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: Add pointers in BDCP_BEFORE_WRITE ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-pointers-in-bdcp-before-write/m-p/6185890#M1373910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i will also investigate this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. replace RBDMIDOC with my own program &lt;/P&gt;&lt;P&gt;2. call RHALEINI from within this new program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2009 07:36:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-pointers-in-bdcp-before-write/m-p/6185890#M1373910</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-06T07:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: Add pointers in BDCP_BEFORE_WRITE ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-pointers-in-bdcp-before-write/m-p/6185891#M1373911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could also check if you want to continue using RBDMIDOC and instead create your own function module for evaluating the change pointers. E.g. within BD60 you could link message type HRMD_A to another function module for evaluating the change pointers. Per default HRMD_A points to function module MASTERIDOC_CREATE_SMD_HRMD. If you check the function you will see that it follows a common pattern that is used within the SMD (Shared Master Data) tool. You probably looked at that path already, but I thought I briefly mention it nonetheless...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2009 08:57:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-pointers-in-bdcp-before-write/m-p/6185891#M1373911</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-06T08:57:41Z</dc:date>
    </item>
  </channel>
</rss>

