<?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 Help with BAPI_MATINSPCTRL_SAVEREPLICA in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-bapi-matinspctrl-savereplica/m-p/1050213#M88977</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I need to update the "Inspection Setup" for some material masters. I found the fm "BAPI_MATINSPCTRL_SAVEREPLICA" which should be able to do this. But I have no idea how to use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can somebody help me with that and show me an example how to fill the fields of the BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Konrad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Dec 2005 16:06:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-12-14T16:06:08Z</dc:date>
    <item>
      <title>Help with BAPI_MATINSPCTRL_SAVEREPLICA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-bapi-matinspctrl-savereplica/m-p/1050213#M88977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I need to update the "Inspection Setup" for some material masters. I found the fm "BAPI_MATINSPCTRL_SAVEREPLICA" which should be able to do this. But I have no idea how to use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can somebody help me with that and show me an example how to fill the fields of the BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Konrad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2005 16:06:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-bapi-matinspctrl-savereplica/m-p/1050213#M88977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-14T16:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Help with BAPI_MATINSPCTRL_SAVEREPLICA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-bapi-matinspctrl-savereplica/m-p/1050214#M88978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Below code Update the 'Inspection setup' for material master&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Report zcall_bapi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Internal table to store messages returned from BAPI&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  ws_return        LIKE                " To store status&lt;/P&gt;&lt;P&gt;    bapiret2 OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal table to store Inspection details to pass&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;as parameter to BAPI&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  BEGIN OF ws_qmat OCCURS 0.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE  BAPI1001004_QMAT.&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  END OF ws_qmat.&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt; WS_INSP(2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Retrieving Quality Score procedure from TQ34 table &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; select single QKZVERF&lt;/P&gt;&lt;P&gt;   from TQ34&lt;/P&gt;&lt;P&gt;   into ws_insp&lt;/P&gt;&lt;P&gt;  where art = 'C003'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ws_qmat-insptype = 'C003'.&lt;/P&gt;&lt;P&gt;  ws_qmat-material = 'AMT1212'.&lt;/P&gt;&lt;P&gt;  ws_qmat-plant = 'DM00'.&lt;/P&gt;&lt;P&gt;  ws_qmat-IND_INSPTYPE_MAT_ACTIVE = 'X'.&lt;/P&gt;&lt;P&gt;  WS_QMAT-QUAL_SCORE_PROCEDURE = ws_insp.&lt;/P&gt;&lt;P&gt;  ws_qmat-PREFERRED_INSPTYPE = 'X'.&lt;/P&gt;&lt;P&gt;  append ws_qmat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_MATINSPCTRL_SAVEREPLICA'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    return               = ws_return&lt;/P&gt;&lt;P&gt;    inspectionctrl       = ws_qmat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;No sy-subrc check is required&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.                               " IF SY-SUBRC NE 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF ws_return-type EQ 'S' OR&lt;/P&gt;&lt;P&gt;     ws_return-type EQ 'I' OR&lt;/P&gt;&lt;P&gt;     ws_return-type EQ 'W'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To commit the transation for succesfull records&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        wait = 'X'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2006 10:23:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-bapi-matinspctrl-savereplica/m-p/1050214#M88978</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-13T10:23:27Z</dc:date>
    </item>
  </channel>
</rss>

