<?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: call transaction in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/4549398#M1074331</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the relevant parameter ID to see if it is populated with a document number. You may then need to read the creation date/time of this document number. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you could clear the parameter ID value before the call trans.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Sep 2008 10:08:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-30T10:08:55Z</dc:date>
    <item>
      <title>call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/4549397#M1074330</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;I have a question about call transaction. I am calling transaction MIR4. Now I want to know if user clicked on save before they left the transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My current program is .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call transacation MIR4 skip first screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I when I return in my main program, I want to know if user saved teh document or not ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any bright ideas please ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2008 10:05:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/4549397#M1074330</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-30T10:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/4549398#M1074331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the relevant parameter ID to see if it is populated with a document number. You may then need to read the creation date/time of this document number. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you could clear the parameter ID value before the call trans.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2008 10:08:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/4549398#M1074331</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-30T10:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/4549399#M1074332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;are there any standard parameters existing or will I have to create one ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2008 10:10:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/4549399#M1074332</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-30T10:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/4549400#M1074333</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 think we cannot know whether the user has saved the document or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i think, when he saves the document we will get a ssuccess message stating that " Document successfully changed ".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can capture this by FORMAT_MESSAGE    - FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkatesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2008 10:11:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/4549400#M1074333</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-30T10:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/4549401#M1074334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The easiest way is to check for the message generated at the end of the transaction and capture it using the Function Module FORMAT_MESSAGE and proceed further based on the message type received.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2008 10:28:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/4549401#M1074334</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-30T10:28: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/4549402#M1074335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;but that would mean I have to tweak the sap code, dont I  ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2008 10:34:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/4549402#M1074335</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-30T10:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/4549403#M1074336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't have to tweak the standard code. The messages raised can be captured from your program using the FM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2008 10:45:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/4549403#M1074336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-30T10:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/4549404#M1074337</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;check this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: i_msg like bdcmsgcoll occurs 1 with header line.

 LOOP AT I_MSG.

    CALL FUNCTION 'FORMAT_MESSAGE'
     EXPORTING
       ID              = I_MSG-MSGID
       LANG            = SY-LANGU
       NO              = I_MSG-MSGNR
       V1              = I_MSG-MSGV1
       V2              = I_MSG-MSGV2
       V3              = I_MSG-MSGV3
       V4              = I_MSG-MSGV4
     IMPORTING
       MSG             = W_STR
*  EXCEPTIONS
*    NOT_FOUND       = 1
*    OTHERS          = 2
              .
    IF SY-SUBRC &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

    WRITE:/ i_msg-msgnr,w_str.




  endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&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;Vishwa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: vishwa sri hari on Sep 30, 2008 12:48 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2008 10:48:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/4549404#M1074337</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-30T10:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/4549405#M1074338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;*--- Filling Screen data&lt;/P&gt;&lt;P&gt;perform fill_bdc_Data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call transaction 'XK01' using i_bdcdata&lt;/P&gt;&lt;P&gt;                 mode 'N'&lt;/P&gt;&lt;P&gt;                 update 'S'&lt;/P&gt;&lt;P&gt;                 messages into i_bdcmsgcoll.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    perform get_error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        write:/ itab , v_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;        refresh i_bdcdata.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*************************************************************&lt;/P&gt;&lt;P&gt;form get_error.&lt;/P&gt;&lt;P&gt;loop at i_bdcmsgcoll.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'FORMAT_MESSAGE'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   ID              = i_bdcmsgcoll-MSGID&lt;/P&gt;&lt;P&gt;   LANG            = sy-langu&lt;/P&gt;&lt;P&gt;   NO              = i_bdcmsgcoll-MSGNr&lt;/P&gt;&lt;P&gt;   V1              = i_bdcmsgcoll-MSGV1&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  V2              = SY-MSGV2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  V3              = SY-MSGV3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  V4              = SY-MSGV4&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   MSG             = v_text&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NOT_FOUND       = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS          = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&g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t;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2008 10:50:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/4549405#M1074338</guid>
      <dc:creator>former_member585060</dc:creator>
      <dc:date>2008-09-30T10:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/4549406#M1074339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi reena Sharma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use both of the function modules :&lt;/P&gt;&lt;P&gt;MESSAGE_TEXT_BUILD&lt;/P&gt;&lt;P&gt;FORMAT_MESSAGE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        call function 'MESSAGE_TEXT_BUILD'&lt;/P&gt;&lt;P&gt;             exporting&lt;/P&gt;&lt;P&gt;                  msgid               = sy-msgid&lt;/P&gt;&lt;P&gt;                  msgnr               = sy-msgno&lt;/P&gt;&lt;P&gt;                  msgv1               = sy-msgv1&lt;/P&gt;&lt;P&gt;                  msgv2               = sy-msgv2&lt;/P&gt;&lt;P&gt;                  msgv3               = sy-msgv3&lt;/P&gt;&lt;P&gt;                  msgv4               = sy-msgv4&lt;/P&gt;&lt;P&gt;             importing&lt;/P&gt;&lt;P&gt;                  message_text_output = w_message&lt;/P&gt;&lt;P&gt;             exceptions&lt;/P&gt;&lt;P&gt;                  others              = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    call transaction v_tcode using it_bdcdata&lt;/P&gt;&lt;P&gt;                            mode     p_mode&lt;/P&gt;&lt;P&gt;                            update p_update&lt;/P&gt;&lt;P&gt;                            messages into it_message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      read table  it_message into wa_message with key msgtyp =  'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        call function 'FORMAT_MESSAGE'&lt;/P&gt;&lt;P&gt;          exporting&lt;/P&gt;&lt;P&gt;            id  = sy-msgid&lt;/P&gt;&lt;P&gt;            no  = wa_message-msgnr&lt;/P&gt;&lt;P&gt;            v1  = wa_message-msgv1&lt;/P&gt;&lt;P&gt;            v2  = wa_message-msgv2&lt;/P&gt;&lt;P&gt;            v3  = wa_message-msgv3&lt;/P&gt;&lt;P&gt;            v4  = wa_message-msgv4&lt;/P&gt;&lt;P&gt;          importing&lt;/P&gt;&lt;P&gt;            msg = wa_error-message&lt;/P&gt;&lt;P&gt;      exceptions&lt;/P&gt;&lt;P&gt;        not_found = 1&lt;/P&gt;&lt;P&gt;        others    = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Shiva vs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2008 11:31:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/4549406#M1074339</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-30T11:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/4549407#M1074340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;should I put this code in the calling program ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2008 11:39:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/4549407#M1074340</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-30T11:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/4549408#M1074341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use after Call Transaction statement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2008 11:41:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction/m-p/4549408#M1074341</guid>
      <dc:creator>former_member585060</dc:creator>
      <dc:date>2008-09-30T11:41:01Z</dc:date>
    </item>
  </channel>
</rss>

