<?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: Enhancement-ABAP Code-Customized Field issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/enhancement-abap-code-customized-field-issue/m-p/7647314#M1572773</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;Any suggestions. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;RR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Feb 2011 07:26:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-02-17T07:26:29Z</dc:date>
    <item>
      <title>Enhancement-ABAP Code-Customized Field issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enhancement-abap-code-customized-field-issue/m-p/7647313#M1572772</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;Currently I am working on the BW3.5 version. We are using the standard SRM standard extractor 0BBP_TD_SC_1 and we enhance same extractor(populate the filed through CMOD - ABAP Code) with one customized field also. We are having issue on the customized field data which post from SRM system. I have verified the field value and value is fine in RSA3 in SRM source system. But while posting into the BW(PSA itself), its loading correct &amp;amp; wrong value. When i check the PSA for the particular load, It looks little strange. In the PSA, I can see correct value on my first record of the same SC and then next records has incorrect value of the same SC. Currently I am using the ODS as a data target. So finally i am getting the incorrect value on the customized field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex Scenario:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex Customized Field: ZORGID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SRM source system RSA3 Extractor Checker value:&lt;/P&gt;&lt;P&gt;Shopping Card No: 100&lt;/P&gt;&lt;P&gt;Customized Field: ZORGID=1&lt;/P&gt;&lt;P&gt;Shopping Card No: 200&lt;/P&gt;&lt;P&gt;Customized Field: ZORGID=2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In BW posting-PSA:&lt;/P&gt;&lt;P&gt;Shopping Card No: 100&lt;/P&gt;&lt;P&gt;Customized Field: ZORGID=2&lt;/P&gt;&lt;P&gt;Shopping Card No: 200&lt;/P&gt;&lt;P&gt;Customized Field: ZORGID=2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the same time, if i do the selective deletion of the particular Shopping Card or group of SC in BW and do the full repair, then it gets a correct ZORGID=1 for the same Shopping Card.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I strongly believe, something wrong in the ABAP code. But when we tried to debug the customized filed value in RSA3. The value is fine. so we unable to trace out the issue. Please help me to fix the code. Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CMOD ABAP Code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Populate approver ID even though it doesn't require approval this is required to make sure BW reports have restrict access to respective Org Unit approvals only&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF l_s_bbp_sc-approver_id IS INITIAL AND l_s_bbp_sc-itm_guid IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'Z_BBP_FIRST_APPROVALGET'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;iv_header_guid = l_s_bbp_sc-guid&lt;/P&gt;&lt;P&gt;iv_itm_guid = l_s_bbp_sc-itm_guid&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;approver_no = l_s_bbp_sc-approver_id&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;no_data = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;IF sy-subrc 0.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To ensure that the Org Unit passed in into the field&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;l_s_bbp_sc-zzapprov_orgunit belongs to the Actual Level 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Budget Owner and not any other manager such as Added Approver.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;CLEAR : ls_ln_approvers, l_userid, lv_bpartner_guid.&lt;/P&gt;&lt;P&gt;DATA : lv_f_apprv_part TYPE BU_PARTNER.&lt;/P&gt;&lt;P&gt;READ TABLE lt_ln_approvers INTO ls_ln_approvers&lt;/P&gt;&lt;P&gt;WITH KEY INITIAL_INDEX = '0000000001'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;MOVE ls_ln_approvers-approval_agent+2(12) TO l_userid.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BP_CENTRALPERSON_GET'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;iv_username = l_userid&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;ev_bu_partner_guid = lv_bpartner_guid&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;no_central_person = 1&lt;/P&gt;&lt;P&gt;no_business_partner = 2&lt;/P&gt;&lt;P&gt;no_id = 3&lt;/P&gt;&lt;P&gt;OTHERS = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BUPA_NUMBERS_GET'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;iv_partner_guid = lv_bpartner_guid&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;ev_partner = lv_f_apprv_part.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;We get the BP number of the first Budget Owner 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Here, we superseed the field l_s_bbp_sc-approver_id&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;whereby it may be wrong due to Added Approver.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IF l_s_bbp_sc-approver_id IS NOT INITIAL.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF lv_f_apprv_part IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;IF l_s_bbp_sc-itm_guid IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'RH_STRUC_GET'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;act_otype = 'BP'&lt;/P&gt;&lt;P&gt;act_objid = lv_f_apprv_part&lt;/P&gt;&lt;P&gt;act_wegid = 'EBP-UP'&lt;/P&gt;&lt;P&gt;act_begda = sy-datum&lt;/P&gt;&lt;P&gt;act_endda = sy-datum&lt;/P&gt;&lt;P&gt;act_tdepth = 4&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;result_tab = lt_result_tab&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;no_plvar_found = 1&lt;/P&gt;&lt;P&gt;no_entry_found = 2&lt;/P&gt;&lt;P&gt;OTHERS = 3&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;READ TABLE lt_result_tab INTO ls_result_tab WITH KEY&lt;/P&gt;&lt;P&gt;otype = 'O'.&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;l_s_bbp_sc-zzapprov_orgunit = ls_result_tab-objid.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;RR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Feb 2011 12:38:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enhancement-abap-code-customized-field-issue/m-p/7647313#M1572772</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-16T12:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Enhancement-ABAP Code-Customized Field issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enhancement-abap-code-customized-field-issue/m-p/7647314#M1572773</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;Any suggestions. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;RR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 07:26:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enhancement-abap-code-customized-field-issue/m-p/7647314#M1572773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-17T07:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Enhancement-ABAP Code-Customized Field issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enhancement-abap-code-customized-field-issue/m-p/7647315#M1572774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;Any idea for this question?&lt;/P&gt;&lt;P&gt;I will appreciate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 15:36:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enhancement-abap-code-customized-field-issue/m-p/7647315#M1572774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-17T15:36:02Z</dc:date>
    </item>
  </channel>
</rss>

