<?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: About Two BAPI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-two-bapi/m-p/770413#M38199</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i got it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have MSN , Could you like chatting with me. &lt;/P&gt;&lt;P&gt;I am from SAP China.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kevin,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Sep 2004 16:13:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2004-09-13T16:13:56Z</dc:date>
    <item>
      <title>About Two BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-two-bapi/m-p/770409#M38195</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;     BALW_BAPIRETURN_GET, BALW_BAPIRETURN_GET2,how to use them. what case and which will be used.&lt;/P&gt;&lt;P&gt;     Plz give me some sample and description.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some code. i don't it is right ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  SET_RETURN_MESSAGE&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;This routine is used for setting the BAPI return message.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;The routine is a standard routine for BAPIs that handles the message&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;structure for the BAPIRETURN structure. It has been copied from the&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;BAPI Company Code Getlist&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;P_MESSAGE  text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     &amp;lt;--P_RETURN  text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM set_return_message USING    value(p_message)   LIKE message&lt;/P&gt;&lt;P&gt;                        CHANGING p_return  LIKE bapireturn.&lt;/P&gt;&lt;P&gt;  CHECK NOT message IS INITIAL.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BALW_BAPIRETURN_GET'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            type       = p_message-msgty&lt;/P&gt;&lt;P&gt;            cl         = p_message-msgid&lt;/P&gt;&lt;P&gt;            number     = p_message-msgno&lt;/P&gt;&lt;P&gt;            par1       = p_message-msgv1&lt;/P&gt;&lt;P&gt;            par2       = p_message-msgv2&lt;/P&gt;&lt;P&gt;            par3       = p_message-msgv3&lt;/P&gt;&lt;P&gt;            par4       = p_message-msgv4&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         LOG_NO     = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         LOG_MSG_NO = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            bapireturn = p_return&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            OTHERS     = 1.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " SET_RETURN_MESSAGE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  SET_RETURN_MESSAGETABLE&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;P_MESSAGETABLE  text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     &amp;lt;--P_RETURN  text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM set_return_messaGetable&lt;/P&gt;&lt;P&gt;                      USING&lt;/P&gt;&lt;P&gt;                         value(p_message)   LIKE messagetable&lt;/P&gt;&lt;P&gt;                      CHANGING&lt;/P&gt;&lt;P&gt;                         prs_return  LIKE bapiret2.&lt;/P&gt;&lt;P&gt;  CHECK NOT message IS INITIAL.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BALW_BAPIRETURN_GET2'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            type       = p_message-mstty&lt;/P&gt;&lt;P&gt;            cl         = p_message-mstid&lt;/P&gt;&lt;P&gt;            number     = p_message-mstno&lt;/P&gt;&lt;P&gt;            par1       = p_message-mstv1&lt;/P&gt;&lt;P&gt;            par2       = p_message-mstv2&lt;/P&gt;&lt;P&gt;            par3       = p_message-mstv3&lt;/P&gt;&lt;P&gt;            par4       = p_message-mstv4&lt;/P&gt;&lt;P&gt;            LOG_NO     = p_message-log_no&lt;/P&gt;&lt;P&gt;            LOG_MSG_NO = p_message-log_msg_no&lt;/P&gt;&lt;P&gt;            parameter  = p_message-parameter&lt;/P&gt;&lt;P&gt;            row        = p_message-row&lt;/P&gt;&lt;P&gt;            field      = p_message-field&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            bapiret2   = prs_return&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            OTHERS     = 1.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " SET_RETURN_MEGTABLE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Sep 2004 15:11:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-two-bapi/m-p/770409#M38195</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-09-13T15:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: About Two BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-two-bapi/m-p/770410#M38196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kevin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are writing a new function module that you have a message returned back from this new function in a format of BAPIRETURN or BAPIRET2, then you can use those function modules to format your return message. Otherwise, I don't think you will need to use it at all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Sep 2004 15:25:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-two-bapi/m-p/770410#M38196</guid>
      <dc:creator>nablan_umar</dc:creator>
      <dc:date>2004-09-13T15:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: About Two BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-two-bapi/m-p/770411#M38197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;YES, i have define an function module, one of parameter is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABALES messagetable like bapiret2.&lt;/P&gt;&lt;P&gt;another is RETURN like BAPIRETURN.&lt;/P&gt;&lt;P&gt;like below&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;*"     REFERENCE(ORDER_HEADER_IN) LIKE  VBAK STRUCTURE  VBAK&lt;/P&gt;&lt;P&gt;*"     REFERENCE(CALENDER_ID) LIKE  SCAL-FCALID&lt;/P&gt;&lt;P&gt;*"  EXPORTING&lt;/P&gt;&lt;P&gt;*"     REFERENCE(RETURN) LIKE  BAPIRETURN STRUCTURE  BAPIRETURN&lt;/P&gt;&lt;P&gt;*"  TABLES&lt;/P&gt;&lt;P&gt;*"      ORDER_ITEMS_TAB STRUCTURE  VBAPVB&lt;/P&gt;&lt;P&gt;*"      MESSAGETABLE STRUCTURE  BAPIRET2&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but, above  is return struture ,nor internal table. right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to add all message to MESSAGETABLE, and the last message save into RETURN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Sep 2004 15:42:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-two-bapi/m-p/770411#M38197</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-09-13T15:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: About Two BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-two-bapi/m-p/770412#M38198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kevin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at your codes, MESSAGETABLE is an internal table. You are doing it correctly. Now when you faced with any kind of messages in your function module, you can call those function modules to convert the message you have into the internal table MESSAGETABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example in your code, you call a function module that can return an exceptions&lt;/P&gt;&lt;P&gt;   CALL FUNCTION 'ANY_FUNCTION'&lt;/P&gt;&lt;P&gt;      EXPORTING &lt;/P&gt;&lt;P&gt;          PARA1   = lv_para1&lt;/P&gt;&lt;P&gt;          PARA2   = lv_para2&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;          PARA3   = lv_para3&lt;/P&gt;&lt;P&gt;          PARA4   = lv_para4&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;          ERROR1  = 1&lt;/P&gt;&lt;P&gt;          ERROR2  = 2.&lt;/P&gt;&lt;P&gt;Then, you should consolidate the exceptions from this function module calls into your messagetable.&lt;/P&gt;&lt;P&gt;     IF SY-SUBRC ne 0.&lt;/P&gt;&lt;P&gt;        CLEAR MESSAGETABLE.&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'BALW_BAPIRETURN_GET2'&lt;/P&gt;&lt;P&gt;           EXPORTING &lt;/P&gt;&lt;P&gt;              TYPE   = sy-msgty&lt;/P&gt;&lt;P&gt;              CL     = sy-msgid&lt;/P&gt;&lt;P&gt;              NUMBER = sy-msgno&lt;/P&gt;&lt;P&gt;              PAR1   = sy-msgv1&lt;/P&gt;&lt;P&gt;              PAR2   = sy-msgv2&lt;/P&gt;&lt;P&gt;              PAR3   = sy-msgv3&lt;/P&gt;&lt;P&gt;              PAR4   = sy-msgv4&lt;/P&gt;&lt;P&gt;           IMPORTING&lt;/P&gt;&lt;P&gt;              RETURN = messagetable.&lt;/P&gt;&lt;P&gt;        APPEND messagetable.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should do this for all function modules call, message statements and any kind of messages you want to return to the calling program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Sep 2004 16:02:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-two-bapi/m-p/770412#M38198</guid>
      <dc:creator>nablan_umar</dc:creator>
      <dc:date>2004-09-13T16:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: About Two BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-two-bapi/m-p/770413#M38199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i got it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have MSN , Could you like chatting with me. &lt;/P&gt;&lt;P&gt;I am from SAP China.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kevin,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Sep 2004 16:13:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-two-bapi/m-p/770413#M38199</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-09-13T16:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: About Two BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-two-bapi/m-p/770414#M38200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't have MSN. I have Yahoo but not at my current customer site. You can post your question here and I will answer as much as I can.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Sep 2004 16:34:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-two-bapi/m-p/770414#M38200</guid>
      <dc:creator>nablan_umar</dc:creator>
      <dc:date>2004-09-13T16:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: About Two BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-two-bapi/m-p/770415#M38201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you very much&lt;/P&gt;&lt;P&gt;i will sleep. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My email : xiaoyao76320@163.com&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you send me a mail  ,using mailbox you use frequently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kevin,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Sep 2004 16:47:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-two-bapi/m-p/770415#M38201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-09-13T16:47:33Z</dc:date>
    </item>
  </channel>
</rss>

