<?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: ABAP : call transaction CN22 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-call-transaction-cn22/m-p/6038575#M1350504</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Unfortunately, I have only a message which indicate that the network was modified. I expected to receive an error message.&lt;/P&gt;&lt;P&gt;We use CN22 =&amp;gt; when we try to close a specific network, it's not possible because of standard rules (Balance of NWA is not zero).&lt;/P&gt;&lt;P&gt;This message appears in the entitled popup window  "Error log from status check:displayed message". It explains why the user can't closed the network.&lt;/P&gt;&lt;P&gt;When we use the ''call transaction CN22" this kind of messages is not returned =&amp;gt; no error detected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer&lt;/P&gt;&lt;P&gt;Jo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Aug 2009 13:46:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-18T13:46:59Z</dc:date>
    <item>
      <title>ABAP : call transaction CN22</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-call-transaction-cn22/m-p/6038572#M1350501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We use the call transaction to CN22 ( with MESSAGES into itab option...)  to close networks.&lt;/P&gt;&lt;P&gt;Sometimes we have messages in a popup window which indicate that the closing action is not possible.&lt;/P&gt;&lt;P&gt;Unfortunately, those kind of messages are not returned by the call transaction and  sy-subrc statement = 0.&lt;/P&gt;&lt;P&gt;Is it possible to read these messages with the call transaction statement ? &lt;/P&gt;&lt;P&gt;Thanks in advance for your answer&lt;/P&gt;&lt;P&gt;Jocelyne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2009 07:37:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-call-transaction-cn22/m-p/6038572#M1350501</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-17T07:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP : call transaction CN22</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-call-transaction-cn22/m-p/6038573#M1350502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;we can't read the system messages to call transaction method...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can try with this  BAPI  BAPI_BUS2002_CREATE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2009 10:29:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-call-transaction-cn22/m-p/6038573#M1350502</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-17T10:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP : call transaction CN22</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-call-transaction-cn22/m-p/6038574#M1350503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guinamant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can collect al lthe error messages into bdcmsgcoll structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you follow the codes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL TRANSACTION c_cn22 USING i_bdcdata&lt;/P&gt;&lt;P&gt;                          OPTIONS FROM wa_opt&lt;/P&gt;&lt;P&gt;                          MESSAGES INTO i_msgcoll.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;note: i_msgcoll type standard table of bdcmsgcoll,&lt;/P&gt;&lt;P&gt;         wa_msgcoll type bdcmsgcoll.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after bdc execution , all the error messages will be colllected in to i_msgcoll.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then if you want to get the text messages, then pass it through FM:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRF_MESSAGE_TEXT_BUILD, OR USE FORMAT_MESSAGE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; READ TABLE i_msgcoll INTO wa_msgcoll&lt;/P&gt;&lt;P&gt;  WITH KEY msgtyp = c_e.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WRF_MESSAGE_TEXT_BUILD'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        p_msgid   = wa_msgcoll-msgid&lt;/P&gt;&lt;P&gt;        p_msgno   = l_msgno&lt;/P&gt;&lt;P&gt;        p_msgv1   = wa_msgcoll-msgv1&lt;/P&gt;&lt;P&gt;        p_msgv2   = wa_msgcoll-msgv2&lt;/P&gt;&lt;P&gt;        p_msgv3   = wa_msgcoll-msgv3&lt;/P&gt;&lt;P&gt;        p_msgv4   = wa_msgcoll-msgv4&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        es_return = lwa_bapireturn1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this can solve your problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tutun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2009 12:35:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-call-transaction-cn22/m-p/6038574#M1350503</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-17T12:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP : call transaction CN22</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-call-transaction-cn22/m-p/6038575#M1350504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Unfortunately, I have only a message which indicate that the network was modified. I expected to receive an error message.&lt;/P&gt;&lt;P&gt;We use CN22 =&amp;gt; when we try to close a specific network, it's not possible because of standard rules (Balance of NWA is not zero).&lt;/P&gt;&lt;P&gt;This message appears in the entitled popup window  "Error log from status check:displayed message". It explains why the user can't closed the network.&lt;/P&gt;&lt;P&gt;When we use the ''call transaction CN22" this kind of messages is not returned =&amp;gt; no error detected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer&lt;/P&gt;&lt;P&gt;Jo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2009 13:46:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-call-transaction-cn22/m-p/6038575#M1350504</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-18T13:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP : call transaction CN22</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-call-transaction-cn22/m-p/6038576#M1350505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BEGIN OF METHOD ZNET CHANGING CONTAINER.&lt;/P&gt;&lt;P&gt;DATA: net TYPE aufnr.&lt;/P&gt;&lt;P&gt;swc_get_property self 'NET' net.&lt;/P&gt;&lt;P&gt;REFRESH bdcdata.&lt;/P&gt;&lt;P&gt;PERFORM bdc_fill USING :&lt;/P&gt;&lt;P&gt;***&lt;/P&gt;&lt;P&gt;'X' 'SAPLCOKO' '2000',&lt;/P&gt;&lt;P&gt;' ' 'BDC_CURSOR' 'CAUFVD-AUFNR',&lt;/P&gt;&lt;P&gt;' ' 'CAUFVD-AUFNR' net,&lt;/P&gt;&lt;P&gt;' ' 'BDC_OKCODE' '=LIST',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Next Screen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;'X' 'SAPLCOVG' '2000',&lt;/P&gt;&lt;P&gt;' ' 'BDC_CURSOR' 'AFVGD-VORNR(01)',&lt;/P&gt;&lt;P&gt;' ' 'RC27X-FLG_SEL(01)' 'X',&lt;/P&gt;&lt;P&gt;' ' 'BDC_OKCODE' '=INFV',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Next Screen to AOd User Fields&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;'X' 'SAPLCONW' '2700'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****&lt;/P&gt;&lt;P&gt;REFRESH messtab.&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'CN22' USING bdcdata&lt;/P&gt;&lt;P&gt;MODE 'E'&lt;/P&gt;&lt;P&gt;UPDATE 'S'&lt;/P&gt;&lt;P&gt;MESSAGES INTO messtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END_METHOD.&lt;/P&gt;&lt;P&gt;FORM bdc_fill USING var1&lt;/P&gt;&lt;P&gt;var2&lt;/P&gt;&lt;P&gt;var3&lt;/P&gt;&lt;P&gt;CLEAR bdcdata.&lt;/P&gt;&lt;P&gt;IF var1 IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;bdcdata-program = var2.&lt;/P&gt;&lt;P&gt;bdcdata-dynbegin = var1.&lt;/P&gt;&lt;P&gt;bdcdata-dynpro = var3.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;bdcdata-fnam = var2.&lt;/P&gt;&lt;P&gt;bdcdata-fval = var3.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;APPEND bdcdata.&lt;/P&gt;&lt;P&gt;ENDFORM.&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;Shweta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2009 14:03:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-call-transaction-cn22/m-p/6038576#M1350505</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-18T14:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP : call transaction CN22</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-call-transaction-cn22/m-p/6038577#M1350506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to use&lt;/P&gt;&lt;P&gt;- BAPI_NETWORK_MAINTAIN (old) or BAPI_BUS2002_CHANGE (new)&lt;/P&gt;&lt;P&gt;- BAPI_BUS2002_SET_STATUS Set/Revoke Status for BUS2002 (Network)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2009 14:22:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-call-transaction-cn22/m-p/6038577#M1350506</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2009-08-18T14:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP : call transaction CN22</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-call-transaction-cn22/m-p/6038578#M1350507</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;Unfortunately, the evoked Bapis don't exist in our system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the call transaction function, it seems that we can't access to the following screens (example for CN22)=&amp;gt;&lt;/P&gt;&lt;P&gt;SAPLCO01	0400 X                                                                                &lt;/P&gt;&lt;P&gt;BDC_CURSOR SPOP-TEXTLINE1&lt;/P&gt;&lt;P&gt;    BDC_OKCODE	=OPT1&lt;/P&gt;&lt;P&gt;SAPMSSY0	0120	X&lt;/P&gt;&lt;P&gt;   BDC_OKCODE	=&amp;amp;ONT&lt;/P&gt;&lt;P&gt;SAPLCO01	0400	X&lt;/P&gt;&lt;P&gt;   BDC_CURSOR	SPOP-TEXTLINE1&lt;/P&gt;&lt;P&gt;   BDC_OKCODE	=OPT2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(these lines are displayed only in 'not batch input mode' in SM35).&lt;/P&gt;&lt;P&gt;and so, no messages are returned with the 'MESSAGES into ..." option ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 09:04:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-call-transaction-cn22/m-p/6038578#M1350507</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-20T09:04:57Z</dc:date>
    </item>
  </channel>
</rss>

