<?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 Call Transaction in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/6276177#M1387434</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do you recover a key that was generated during a call transaction.  Specifically, I ran IW31 via call transaction (as opposed to batch input).  After the execution I tried to get the generated work order number using GET PARAMETER ID 'ANR'.  I got a return code of 4. It seems that GET PARAMETER ID is not the correct way to get the generated key. HOW then?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;mki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Oct 2009 10:09:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-26T10:09:09Z</dc:date>
    <item>
      <title>Call Transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/6276177#M1387434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do you recover a key that was generated during a call transaction.  Specifically, I ran IW31 via call transaction (as opposed to batch input).  After the execution I tried to get the generated work order number using GET PARAMETER ID 'ANR'.  I got a return code of 4. It seems that GET PARAMETER ID is not the correct way to get the generated key. HOW then?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;mki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2009 10:09:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/6276177#M1387434</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-26T10:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Call Transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/6276178#M1387435</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;Did you use &lt;STRONG&gt;SET PARAMTER ID&lt;/STRONG&gt; before using &lt;STRONG&gt;CALL TRANSACTION&lt;/STRONG&gt; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2009 10:11:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/6276178#M1387435</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-10-26T10:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Call Transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/6276179#M1387436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why dont u collect the BDC message after call transaction....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will contain the document no. genrated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please try....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2009 10:18:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/6276179#M1387436</guid>
      <dc:creator>RahulKeshav</dc:creator>
      <dc:date>2009-10-26T10:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Call Transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/6276180#M1387437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with Function Module &lt;STRONG&gt;ABAP4_CALL_TRANSACTION&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2009 10:19:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/6276180#M1387437</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-10-26T10:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Call Transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/6276181#M1387438</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;Collect the messages from the BDC and find out the success message class and number being used. You should be able to get the number in one of the variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Saachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2009 10:24:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/6276181#M1387438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-26T10:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Call Transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/6276182#M1387439</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;&lt;/P&gt;&lt;P&gt;When u call the transaction at that time u can colllect the message into an internal table and then u will get the work order number &lt;/P&gt;&lt;P&gt;in internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first u declare internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: itab type standard table of BDCMSGCOLL .&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 transaction " Trans name "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGES INTO itab &lt;/P&gt;&lt;P&gt;&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;shambhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2009 10:33:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/6276182#M1387439</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-26T10:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Call Transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/6276183#M1387440</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;In this with the CALL TRANSACTION statement,&lt;/P&gt;&lt;P&gt;you can include BDCMSGCOLL Structure also like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data itab like bdcmsgcoll.
*.CALL TRANSACTION (Tcode Name).. { {[MODE mode] [UPDATE upd]} 
    | [OPTIONS FROM opt] } 
    [MESSAGES INTO itab] ... .*

if sy-subrc = 0.

* use FORMAT_MESSAGE to read the complete description of message
* based on the message-id (msgid) and message-number(msgnr)
  CALL FUNCTION 'FORMAT_MESSAGE'
    EXPORTING
      id        = messtab-msgid
      lang      = sy-langu
      no        = messtab-msgnr
*          v1        = messtab-msgv1   
*          v2        = messtab-msgv2    "In one of these variables your work order will get captured
*          v3        = messtab-msgv3
*          v4        = messtab-msgv4
    IMPORTING
      msg       = wa_message-msg
    EXCEPTIONS
      not_found = 1
      OTHERS    = 2.

  IF sy-subrc &amp;lt;&amp;gt; 0.
    MOVE w_aufnr TO wa_message-aufnr.
    APPEND wa_message TO it_message.   "Final Internal table
  ELSE.
    MOVE w_aufnr TO wa_message-aufnr.
    APPEND wa_message TO it_message.
  ENDIF.
endif.

&lt;/CODE&gt;&lt;/PRE&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;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mansi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2009 10:33:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/6276183#M1387440</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-26T10:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: Call Transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/6276184#M1387441</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;Please use MESSTAB internal table for call transaction. You will get the document number as the last line of the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use below code - &lt;/P&gt;&lt;P&gt;CALL TRANSACTION XXXX&lt;/P&gt;&lt;P&gt;USING BDCDATA&lt;/P&gt;&lt;P&gt;MESSAGES INTO MESSTAB&lt;/P&gt;&lt;P&gt;MODE N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the correct way getting document data. If the transaction fails you will get the error message/warning messages into this table as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try it,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vivekanand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2009 10:36:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/6276184#M1387441</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-26T10:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Call Transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/6276185#M1387442</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;CALL TRANSACTION XXXX&lt;/P&gt;&lt;P&gt;USING BDCDATA&lt;/P&gt;&lt;P&gt;MESSAGES INTO MESSTAB&lt;/P&gt;&lt;P&gt;MODE N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here you will get all the messages. Then do like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; go to debugging mode there you will find message id and message number for successful message and error messages.&lt;/P&gt;&lt;P&gt;  take that sucessful message and message id and do like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   READ TABLE MESSATAB INTO WA_MESSTAB WITH KEY MSGID = 'message id'  MSGNR = 'message no'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Then  Document Number = WA_MESSTAB-MSGV1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Hope it will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rami Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2009 10:45:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/6276185#M1387442</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-26T10:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Call Transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/6276186#M1387443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to all who responded.  They are all very helpful answers.  I hope I didn't miss awarding points to anyone.  I don't know if all the points are awarded after I clicked on 1 that solved the problem.  There were several !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2009 10:51:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/6276186#M1387443</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-26T10:51:32Z</dc:date>
    </item>
  </channel>
</rss>

