<?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: Update custom fields in MARC - BAPI_MATERIAL_SAVEDATA in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-custom-fields-in-marc-bapi-material-savedata/m-p/9950466#M1798549</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chirdip,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I did all the above mentioned things. Any more pointers would be highly appreciated.&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;Cheers,&lt;/P&gt;&lt;P&gt;Shreya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Dec 2013 13:57:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-12-11T13:57:32Z</dc:date>
    <item>
      <title>Update custom fields in MARC - BAPI_MATERIAL_SAVEDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-custom-fields-in-marc-bapi-material-savedata/m-p/9950464#M1798547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did find many good replies on the similar thread but didn't work for me. Hope you could help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Req: -&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add a custom checkbox on a customer subscreen and update the same in a program via BAPI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Problem:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Screen enhanced. If the value is added manually and saved, it gets updated in MARC and works well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when i add the same value through program using BAPI_MATERIAL_SAVEDATA, the value is not getting updated in database (and obviously is not present on screen as well).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Solution already implemented: -&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;structures BAPI_TE_MARC and BAPI_TE_MARCX is updated with custom field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In tcode OMSR a new sel grp 111 is created for custom field of MARC and following values are passed:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/341101" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also tried with value of maintenance status - KDEVALBQPSZXCFG (though didn't understand the difference).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;in debugging checked at various places (following places for your convenience of reference): -&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BADI implementation of STANDARDMATERIAL_SAVE_DATA.&lt;/P&gt;&lt;P&gt;BADI implementation of badi_material_check&lt;/P&gt;&lt;P&gt;Implementation of customer exit: EXIT_SAPLMGMU_001&lt;/P&gt;&lt;P&gt;at the end of execution of FM "MATERIAL_MAINTAIN_DARK"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at all the places value of custom field was present correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BAPI_TRANSACTION_COMMIT also done.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So at the end of the BAPI I get a success message though the success of updating the field is not achieved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe, there is not much to do on technical front here (i could be wrong), possibly some customizing mistake or miss.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Would really appreciate if you could help on this.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Shreya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Dec 2013 12:28:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-custom-fields-in-marc-bapi-material-savedata/m-p/9950464#M1798547</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-11T12:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Update custom fields in MARC - BAPI_MATERIAL_SAVEDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-custom-fields-in-marc-bapi-material-savedata/m-p/9950465#M1798548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shreya,&lt;/P&gt;&lt;P&gt;Check on these structures :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.sap.com/"&gt;&lt;STRONG&gt;EXTENSIONIN&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.sap.com/"&gt;&lt;STRONG&gt;EXTENSIONINX&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I hope you have extended the structures BAPI_TE_MARC and BAPI_TE_MARCX with the field which is having same name as in your database table MARC.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Have you used data element BAPIUPDATE for your field in BAPI_TE_MARCX.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Also check , if you have passed 'BAPI_TE_MARC' in extensionin-structure&amp;nbsp; and extensioninx-structure field.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Also check if you have set indicator as 'X' in EXTENSIONINX and passed plant in BAPI_TE_MARC and BAPI_TE_MARCX.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Chirdip&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Dec 2013 13:54:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-custom-fields-in-marc-bapi-material-savedata/m-p/9950465#M1798548</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-11T13:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Update custom fields in MARC - BAPI_MATERIAL_SAVEDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-custom-fields-in-marc-bapi-material-savedata/m-p/9950466#M1798549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chirdip,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I did all the above mentioned things. Any more pointers would be highly appreciated.&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;Cheers,&lt;/P&gt;&lt;P&gt;Shreya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Dec 2013 13:57:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-custom-fields-in-marc-bapi-material-savedata/m-p/9950466#M1798549</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-11T13:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Update custom fields in MARC - BAPI_MATERIAL_SAVEDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-custom-fields-in-marc-bapi-material-savedata/m-p/9950467#M1798550</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;&lt;/P&gt;&lt;P&gt;the issue is solved. There is one catch. While using bapi we are passing header data where we are passing material number and any view.&lt;/P&gt;&lt;P&gt;it is mandatory to pass any standard field of that view in the Bapi alongwith extension field. Only passing extension field doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&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;Cheers,&lt;/P&gt;&lt;P&gt;Shreya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Editing this message to clarify one thing: -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you keep the same data as in database in the standard field, it won't work. You have to change the data. So, we have to use the BAPI twice:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First make the unintended change to standard field to achieve update of custom field in extension.&lt;/P&gt;&lt;P&gt;Secondly again remove the unintended change from standard field and make it as previous value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN __jive_emoticon_name="sad" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/408/images/emoticons/sad.gif"&gt;&lt;/SPAN&gt; &lt;SPAN __jive_emoticon_name="sad" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/408/images/emoticons/sad.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am genuinely not convinced with this solution. SAP cannot have such glitch, I must be missing something, But for the time being I am using this. If you have any pointers on this, highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would also look for the same and will post If I suceed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Shreya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: shreya tagra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Dec 2013 16:27:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-custom-fields-in-marc-bapi-material-savedata/m-p/9950467#M1798550</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-11T16:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Update custom fields in MARC - BAPI_MATERIAL_SAVEDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-custom-fields-in-marc-bapi-material-savedata/m-p/9950468#M1798551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I read some more posts and they referred settings of MAL1 and MAL2...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case, I have set MAL1 and MAL2 wih Optional Entry radiobutton. I hope it is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see many posts where only custom fields is also maintainable which is not the case for my issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please check in my descriptions above as in what i am missing ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We cannot go with the option of forcibly updating a standard field to change a custom field.... makes no sense actually &lt;span class="lia-unicode-emoji" title=":neutral_face:"&gt;😐&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your inputs are highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Shreya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2013 08:53:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-custom-fields-in-marc-bapi-material-savedata/m-p/9950468#M1798551</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-13T08:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Update custom fields in MARC - BAPI_MATERIAL_SAVEDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-custom-fields-in-marc-bapi-material-savedata/m-p/9950469#M1798552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay so finally found the Solution:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select any view in Header ... eg: Purchasing View&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so now header structure has 2 values: material number and an "X" in Purchase View.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PLANTDATA: pass plant value (key field!) and space in Purchase Org or any other char field&lt;/P&gt;&lt;P&gt;In PLANTDATAX: pass plant value (key field!) and &lt;STRONG&gt;&lt;SPAN style="text-decoration: underline;"&gt;DO NOT&lt;/SPAN&gt; &lt;/STRONG&gt;pass "X" in any of the field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Extensionin pass:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI_TE_MARC in structure and in valuepart1 pass &amp;lt;plant&amp;gt;&amp;lt;value&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in extensioninx pass:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI_TE_MARCX in structure and in valuepart1 pass &amp;lt;plant&amp;gt;X.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Execute and Commit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works!! yes it does update the custom field now without updating the standard field Purchasing Org..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SIGH!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this would be helpful for someone here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Shreya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2013 13:23:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-custom-fields-in-marc-bapi-material-savedata/m-p/9950469#M1798552</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-16T13:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Update custom fields in MARC - BAPI_MATERIAL_SAVEDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-custom-fields-in-marc-bapi-material-savedata/m-p/13800399#M2030210</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have the same problem and resolved it.&amp;nbsp;We also need to maintain the added field in OMSR tcode or t130f table (SM30).&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-08-20_15-52-21.png"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/154486iF39D6B0B9F50C724/image-size/large?v=v2&amp;amp;px=999" alt="2024-08-20_15-52-21.png" title="2024-08-20_15-52-21.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 08:53:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-custom-fields-in-marc-bapi-material-savedata/m-p/13800399#M2030210</guid>
      <dc:creator>dang_thanhdung</dc:creator>
      <dc:date>2024-08-20T08:53:13Z</dc:date>
    </item>
  </channel>
</rss>

