<?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: problem with BAPI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi/m-p/3183086#M757861</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Amit,&lt;/P&gt;&lt;P&gt; Did you check if the notif got created wuth a number 00000000002?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi Kanth Talagana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Dec 2007 23:25:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-19T23:25:17Z</dc:date>
    <item>
      <title>problem with BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi/m-p/3183082#M757857</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;We are using the BAPI  BAPI_ALM_NOTIF_CREATE to create a plant maintenance notification. I have populated it with the following data : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maintenance notification type&lt;/P&gt;&lt;P&gt;equipment number in header&lt;/P&gt;&lt;P&gt;functional location in header &lt;/P&gt;&lt;P&gt;coding group in header &lt;/P&gt;&lt;P&gt;coding in header &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using a wrapper bapi to house this one and am also calling a BAPI_TRANSACTION_COMMIT after this bapi is called . &lt;/P&gt;&lt;P&gt;However my problem is when the BAPI runs. The result has notification number which starts with a '%'. When i go into IW23 to check if a notification was created , none exists ! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the same data and ran transaction IW21 directly, and the notification was successfully created. That means the data im using is correct and sufficient. &lt;/P&gt;&lt;P&gt;So why is it not being created properly with the BAPI ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any and all help will be greatly appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 18:59:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi/m-p/3183082#M757857</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-19T18:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: problem with BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi/m-p/3183083#M757858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Amit,&lt;/P&gt;&lt;P&gt; Can you show your code?&lt;/P&gt;&lt;P&gt;Did you try passing an external number for the notification?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi Kanth Talagana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 19:32:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi/m-p/3183083#M757858</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-19T19:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: problem with BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi/m-p/3183084#M757859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply . I am not using external number . Heres the code im using : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION Z_MMT_WRAPPER_BAPI_PM.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local Interface:&lt;/P&gt;&lt;P&gt;*"  IMPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(NOTIFICATION_TYPE) TYPE  QMART&lt;/P&gt;&lt;P&gt;*"     VALUE(SHORT_TEXT) TYPE  QMTXT OPTIONAL&lt;/P&gt;&lt;P&gt;*"     VALUE(EQUIPMENT) TYPE  EQUNR&lt;/P&gt;&lt;P&gt;*"     VALUE(FUNCTIONAL_LOC) TYPE  TPLNR&lt;/P&gt;&lt;P&gt;*"     VALUE(CODING_GROUP) TYPE  QMGRP OPTIONAL&lt;/P&gt;&lt;P&gt;*"     VALUE(CODING) TYPE  QMCOD OPTIONAL&lt;/P&gt;&lt;P&gt;*"  EXPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(BAPIOUTPUT) TYPE  BAPI2080_NOTHDRE&lt;/P&gt;&lt;P&gt;*"  TABLES&lt;/P&gt;&lt;P&gt;*"      RETURN STRUCTURE  BAPIRET2 OPTIONAL&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data : notifheader like BAPI2080_NOTHDRI,&lt;/P&gt;&lt;P&gt;         notifexport like BAPI2080_NOTHDRE,&lt;/P&gt;&lt;P&gt;         returntab type table of bapiret2,&lt;/P&gt;&lt;P&gt;         return_commit type bapiret2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  notifheader-equipment = equipment.&lt;/P&gt;&lt;P&gt;  notifheader-funct_loc = functional_loc.&lt;/P&gt;&lt;P&gt;  notifheader-short_text = short_text.&lt;/P&gt;&lt;P&gt;  notifheader-code_group = coding_group.&lt;/P&gt;&lt;P&gt;  notifheader-coding = coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_ALM_NOTIF_CREATE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  EXTERNAL_NUMBER          =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      NOTIF_TYPE               = notification_type&lt;/P&gt;&lt;P&gt;      NOTIFHEADER              = notifheader&lt;/P&gt;&lt;P&gt;   TASK_DETERMINATION       = ' '&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SENDER                   =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ORDERID                  =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;     NOTIFHEADER_EXPORT       = notifexport&lt;/P&gt;&lt;P&gt;   TABLES&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NOTITEM                  =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NOTIFCAUS                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NOTIFACTV                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NOTIFTASK                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NOTIFPARTNR              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LONGTEXTS                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  KEY_RELATIONSHIPS        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     RETURN                   = return&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  WAIT          =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   RETURN        = return_commit&lt;/P&gt;&lt;P&gt;         .&lt;/P&gt;&lt;P&gt;bapioutput = notifexport.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im still getting the same output which goes something like this (this is the output notification header ) : &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTIF_NO                       %00000000002&lt;/P&gt;&lt;P&gt;PLANPLANT                      1000&lt;/P&gt;&lt;P&gt;LOC_ACC                        000000002215&lt;/P&gt;&lt;P&gt;EQUIPMENT                      10000000&lt;/P&gt;&lt;P&gt;ASSEMBLY&lt;/P&gt;&lt;P&gt;BREAKDOWN&lt;/P&gt;&lt;P&gt;STRMLFNDATE                    19.12.2007&lt;/P&gt;&lt;P&gt;ENDMLFNDATE&lt;/P&gt;&lt;P&gt;STRMLFNTIME                    19:49:21&lt;/P&gt;&lt;P&gt;ENDMLFNTIME                    00:00:00&lt;/P&gt;&lt;P&gt;DOWNTIME                        0,000000000000000E+00&lt;/P&gt;&lt;P&gt;UNIT&lt;/P&gt;&lt;P&gt;ISOCODE_UNIT&lt;/P&gt;&lt;P&gt;PLANGROUP                      10&lt;/P&gt;&lt;P&gt;MNTPLAN&lt;/P&gt;&lt;P&gt;MNTCALL_NO                             0&lt;/P&gt;&lt;P&gt;MAINTITEM&lt;/P&gt;&lt;P&gt;NOTIF_TYPE                     M2&lt;/P&gt;&lt;P&gt;SHORT_TEXT                     TESTING AGAIN&lt;/P&gt;&lt;P&gt;PRIOTYPE                       PM&lt;/P&gt;&lt;P&gt;PRIORITY&lt;/P&gt;&lt;P&gt;CREATED_BY&lt;/P&gt;&lt;P&gt;CREATED_ON&lt;/P&gt;&lt;P&gt;CHANGED_BY&lt;/P&gt;&lt;P&gt;CHANGED_ON&lt;/P&gt;&lt;P&gt;NOTIFTIME                      19:49:21&lt;/P&gt;&lt;P&gt;NOTIF_DATE                     19.12.2007&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not understand why the notification number is starting with a %, and also it doesnt exist in the system ! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 19:46:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi/m-p/3183084#M757859</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-19T19:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: problem with BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi/m-p/3183085#M757860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in BAPI_TRANSACTION_COMMIT, try putting WAIT = 'X' and see&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;~Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 22:10:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi/m-p/3183085#M757860</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-19T22:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: problem with BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi/m-p/3183086#M757861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Amit,&lt;/P&gt;&lt;P&gt; Did you check if the notif got created wuth a number 00000000002?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi Kanth Talagana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 23:25:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi/m-p/3183086#M757861</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-19T23:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: problem with BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi/m-p/3183087#M757862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi, thank you for your reply. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apparently, the BAPI_ALM_NOTIF_CREATE cannot be used on its own. it will generate only a temperory number which then has to be fed to BAPI_ALM_NOTIF_SAVE. This will actually post the data to the tables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2007 16:23:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi/m-p/3183087#M757862</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-20T16:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: problem with BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi/m-p/3183088#M757863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even if I fill the required components of BAPI2080_NOTHDRI&lt;/P&gt;&lt;P&gt;-BREAKDOWN = 'X'&lt;/P&gt;&lt;P&gt;-STRMLFNDATE = '20071212'&lt;/P&gt;&lt;P&gt;-STRMLFNTIME  = '123005'&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;-ENDMLFNDATE = '20071212'&lt;/P&gt;&lt;P&gt;-ENDMLFNTIME  = '133005'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;, BADI does not calculate DOWNTIME.&lt;/P&gt;&lt;P&gt;DOWNTIME returns 0. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why does it work like that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2007 21:04:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi/m-p/3183088#M757863</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-27T21:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: problem with BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi/m-p/3183089#M757864</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;got the same problem. The notification is created successful but the downtime is 0. Why? In IW21 the downtime is calculated automaticlly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Henryk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 05:45:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi/m-p/3183089#M757864</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-04T05:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: problem with BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi/m-p/3183090#M757865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This BAPI does not calculate the downtime. Try to implement a user exit QQMA0025 / EXIT_SAPLIQS0_017with the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF c_viqmel-msaus = 'X'
    c_viqmel-auszt = ( c_viqmel-ausbs - c_viqmel-ausvn ) * 24 * 60 * 60.
    c_viqmel-auszt =  c_viqmel-auszt +  ( c_viqmel-auztb - c_viqmel-auztv ).
    IF c_viqmel-auszt &amp;lt; 0 .
      CLEAR c_viqmel-auszt.
    ENDIF.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Wojciech Rutkowski on Nov 3, 2010 4:46 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Nov 2010 15:43:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi/m-p/3183090#M757865</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-03T15:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: problem with BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi/m-p/3183091#M757866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can solve the problem with this exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jul 2013 13:57:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi/m-p/3183091#M757866</guid>
      <dc:creator>gpadilha</dc:creator>
      <dc:date>2013-07-02T13:57:45Z</dc:date>
    </item>
  </channel>
</rss>

