<?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: Error while extending  MATMAS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-extending-matmas/m-p/6309498#M1392407</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's fine anout inbound FM. My Q. is how to do we debug that? Im sending a material from client 800 to client 810 (via BD10). If everything goes fine material will be posted correctly in 810. In such case even if I put break point in inbound FM (IDOC_INPUT_MATMAS01) how would i debug that. Please clarify if im not correct in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Sudhanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Nov 2009 08:03:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-04T08:03:26Z</dc:date>
    <item>
      <title>Error while extending  MATMAS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-extending-matmas/m-p/6309496#M1392405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;im have extended MATMAS05 and transferring from logical system to another. From outbound side (sender) system im not getting any error however it is giving error (code 60: Invalid sysntax check) in inbound system (reciever). I have implementad the BADI BADI_MATMAS_ALE_IN with the following piece of code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:MARAM TYPE E1MARAM,&lt;/P&gt;&lt;P&gt;       FS_MARA TYPE MARA,&lt;/P&gt;&lt;P&gt;       WA_DATA TYPE EDIDD,&lt;/P&gt;&lt;P&gt;       ZMAT1 TYPE ZEHS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT IDOC_DATA INTO WA_DATA.&lt;/P&gt;&lt;P&gt;  CASE WA_DATA-SEGNAM.&lt;/P&gt;&lt;P&gt;    WHEN 'E1MARA1M'.&lt;/P&gt;&lt;P&gt;      MARAM = WA_DATA-SDATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WHEN 'ZMAT01'.&lt;/P&gt;&lt;P&gt;      ZMAT1 = WA_DATA-SDATA.&lt;/P&gt;&lt;P&gt;      SELECT SINGLE *&lt;/P&gt;&lt;P&gt;        FROM MARA&lt;/P&gt;&lt;P&gt;        INTO FS_MARA&lt;/P&gt;&lt;P&gt;       WHERE MATNR = MARAM-MATNR.&lt;/P&gt;&lt;P&gt;      IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;        UPDATE MARA&lt;/P&gt;&lt;P&gt;           SET ZEHS_COMPLIANT = ZMAT1-ZEHS_COMPLIANT&lt;/P&gt;&lt;P&gt;           WHERE MATNR = MARAM-MATNR.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please have a look and let me know if anything wrong from coding side. Also, please let me know how to debug inbound (posting) program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Sudhanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 07:43:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-extending-matmas/m-p/6309496#M1392405</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-04T07:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error while extending  MATMAS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-extending-matmas/m-p/6309497#M1392406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can find out by debugging inbound function module for IDOC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In WE20 Partner profiles get the logical system name from which your sending data and in receiving system click on message type inbound parameters.You can see a process code assigned to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on the process code and you will see FM assigned to it.Put a breakpoint in the FM and in your code.It will stop at that point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subhashini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 07:49:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-extending-matmas/m-p/6309497#M1392406</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-04T07:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error while extending  MATMAS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-extending-matmas/m-p/6309498#M1392407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's fine anout inbound FM. My Q. is how to do we debug that? Im sending a material from client 800 to client 810 (via BD10). If everything goes fine material will be posted correctly in 810. In such case even if I put break point in inbound FM (IDOC_INPUT_MATMAS01) how would i debug that. Please clarify if im not correct in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Sudhanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 08:03:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-extending-matmas/m-p/6309498#M1392407</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-04T08:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error while extending  MATMAS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-extending-matmas/m-p/6309499#M1392408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok I got it.You can debug that using Transaction WE19.Give your IDOC Number  and execute then click on button Inbound Function Module and check the checkbox call in debugging mode in foreground and check where the error is coming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subhashini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 08:15:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-extending-matmas/m-p/6309499#M1392408</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-04T08:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Error while extending  MATMAS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-extending-matmas/m-p/6309500#M1392409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was really helpful to me in this process. however im still stuckin with the BADI (mentioned above) that im using at inbound. WE02 of recieving system showing data in segments correctly however corresponding table (MARA) not being updated. While debugging i found that till this BADI data(new material) has not been inserted into the table and since im using UPDATE stmt. it is not finding any record in MARA. I actually need to add this extra segment once posting program been inserted the material in MARA (after that my BADI/EXIT can modify/update the table based on MATNR). Any suggestion for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Sudhanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 09:37:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-extending-matmas/m-p/6309500#M1392409</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-04T09:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error while extending  MATMAS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-extending-matmas/m-p/6309501#M1392410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of update use modify statement and see..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 09:42:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-extending-matmas/m-p/6309501#M1392410</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2009-11-04T09:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error while extending  MATMAS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-extending-matmas/m-p/6309502#M1392411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem with MODIFY is that if no record found in table it will insert it and that i should not do by myself specially when standard FM has this functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Sudhanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 09:47:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-extending-matmas/m-p/6309502#M1392411</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-04T09:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error while extending  MATMAS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-extending-matmas/m-p/6309503#M1392412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I feel that you should modify the idoc data and remove the update statement. as the updation is taking care by standard SAP.. what ever the idoc data is there it will go to the corresponding tables...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i would suggest modfiy the idoc data with the data you want .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 09:53:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-extending-matmas/m-p/6309503#M1392412</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2009-11-04T09:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Error while extending  MATMAS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-extending-matmas/m-p/6309504#M1392413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Updation can not be taken care of standard SAP as i have extended the Idoc with additional fields and standard SAP posting pgm will work only for standard (or existing) fields. I must write either UPDATE or CALL TRANACTION for this but this would be done only after Idoc creation. please put any comment/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Sudhanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2009 01:45:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-extending-matmas/m-p/6309504#M1392413</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-05T01:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error while extending  MATMAS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-extending-matmas/m-p/6309505#M1392414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do not use the update statement to update the database table as it will be taken care by standard SAP for even your new segments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There will be some internal table which will directly update the database.Identify a user exit in debugging where you can directly write your code.You just fill your IDOC segment which you added and append that segment to the internal table which will directly update the dayabase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just try finding out if a user exit exists and see if your BADI is implemented in the correct place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subhashini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2009 14:16:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-extending-matmas/m-p/6309505#M1392414</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-06T14:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error while extending  MATMAS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-extending-matmas/m-p/6309506#M1392415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;without using any FM or direct sql stmt. how can it insert/update the database. are you talking about persistent classes concept. please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;sudhanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2009 14:45:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-extending-matmas/m-p/6309506#M1392415</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-06T14:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: Error while extending  MATMAS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-extending-matmas/m-p/6309507#M1392416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friend  ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see this SDN Link for the same they have solved the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See Mr.ajay rao  answer in the last .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Link :[&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="7484027"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2009 15:17:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-extending-matmas/m-p/6309507#M1392416</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-06T15:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error while extending  MATMAS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-extending-matmas/m-p/6309508#M1392417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi suda&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:
  maram   TYPE e1maram,
  fs_mara TYPE mara,
  wa_data TYPE edidd,
  zmat1   TYPE zehs.

LOOP AT idoc_data INTO wa_data.
  CASE wa_data-segnam.
    WHEN 'E1MARA1M'.
      maram = wa_data-sdata.

    WHEN 'ZMAT01'.
      zmat1 = wa_data-sdata.
      SELECT SINGLE *
      FROM mara
      INTO fs_mara
      WHERE matnr = maram-matnr.
      IF sy-subrc EQ 0.
        UPDATE mara
        SET zehs_compliant = zmat1-zehs_compliant
        WHERE matnr = maram-matnr.
      ENDIF.
  ENDCASE.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please learn first how to post code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then please do not expect &lt;STRONG&gt;any serious help&lt;/STRONG&gt; on direct update of standard SAP tables. As already mentioned, changes of SAP standard tables can be done by standard SAP processes: It is just too much that has to be done, i.e. locking, follow-up-processes, change documents and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IDOC processing should be handled by professionals. Professionals will never have the idea of a direct update of MARA - except they are quacksalvers in a quality check free environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2009 15:19:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-extending-matmas/m-p/6309508#M1392417</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2009-11-06T15:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error while extending  MATMAS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-extending-matmas/m-p/6309509#M1392418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cle,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;im very well aware of senstivity of direct update on standard objects. I already got some useful comment by other blogger and moving towards a perfect solution. My concern was not around update or insert (INSERT would be more dangerous) but for the process that can be taken care by SAP itself (to avoid any insert/update). Since working on my Ides so don't want to make any further changes other than table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;sudhanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Nov 2009 14:18:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-extending-matmas/m-p/6309509#M1392418</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-07T14:18:42Z</dc:date>
    </item>
  </channel>
</rss>

