<?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: Report, BADI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-badi/m-p/2020062#M413335</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;ur query will b better answered on "enhancements and modifications" forum.&lt;/P&gt;&lt;P&gt;go to tcode SPRO.&lt;/P&gt;&lt;P&gt;Click SAP Reference IMG.&lt;/P&gt;&lt;P&gt;then in appropriate area say (MM,SD etc) c the available business addin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please reward points if it helps...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u ve created smartform and activated it, then in environment menu of form click on function module. there ull get function module name.&lt;/P&gt;&lt;P&gt;in ur print program(report) click on Pattern tab and select call function radio button.paste the function module name in it and enter..&lt;/P&gt;&lt;P&gt;ur form call will be displayed in abap editor with required import and export parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        abapuser&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Mar 2007 11:37:33 GMT</pubDate>
    <dc:creator>former_member188827</dc:creator>
    <dc:date>2007-03-27T11:37:33Z</dc:date>
    <item>
      <title>Report, BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-badi/m-p/2020060#M413333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;I have doubts on ABAP. Please clarify me in that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)  What is the T-code for BADI&lt;/P&gt;&lt;P&gt;2)  I have a sceneriao in ALV output I have to put one pushbutton for all the records and when we click on that button it has to execute the smartform. How can i do this sceneriao and what is the function module to trigger the smartform from the report?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marks will be Awarded&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2007 11:31:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-badi/m-p/2020060#M413333</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-27T11:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Report, BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-badi/m-p/2020061#M413334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI, &lt;/P&gt;&lt;P&gt;1) SE18 - badi definition, se19 - badi implementation&lt;/P&gt;&lt;P&gt;2) Do you need to have buttons for each and every row in the alv grid or only one button on the toolbar? Smartform can be triggered using normal smartform function modules( like in driver programs ) when the button is pressed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Rashmi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2007 11:34:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-badi/m-p/2020061#M413334</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-27T11:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Report, BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-badi/m-p/2020062#M413335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;ur query will b better answered on "enhancements and modifications" forum.&lt;/P&gt;&lt;P&gt;go to tcode SPRO.&lt;/P&gt;&lt;P&gt;Click SAP Reference IMG.&lt;/P&gt;&lt;P&gt;then in appropriate area say (MM,SD etc) c the available business addin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please reward points if it helps...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u ve created smartform and activated it, then in environment menu of form click on function module. there ull get function module name.&lt;/P&gt;&lt;P&gt;in ur print program(report) click on Pattern tab and select call function radio button.paste the function module name in it and enter..&lt;/P&gt;&lt;P&gt;ur form call will be displayed in abap editor with required import and export parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        abapuser&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2007 11:37:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-badi/m-p/2020062#M413335</guid>
      <dc:creator>former_member188827</dc:creator>
      <dc:date>2007-03-27T11:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: Report, BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-badi/m-p/2020063#M413336</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;The T codes for BADI are&lt;/P&gt;&lt;P&gt;se18 and se19.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For printing the smartform use the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SSF_FUNCTION_MODULE_NAME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'SSF_FUNCTION_MODULE_NAME'&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;P&gt;    formname                 = 'ZSMARTFORM'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  VARIANT                  = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DIRECT_CALL              = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    FM_NAME                  = FM_NAME&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    NO_FORM                  = 1&lt;/P&gt;&lt;P&gt;    NO_FUNCTION_MODULE       = 2&lt;/P&gt;&lt;P&gt;    OTHERS                   = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;   WRITE: / 'ERROR 1'.&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"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function FM_NAME&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;  ARCHIVE_INDEX              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ARCHIVE_INDEX_TAB          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ARCHIVE_PARAMETERS         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CONTROL_PARAMETERS         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MAIL_APPL_OBJ              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MAIL_RECIPIENT             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MAIL_SENDER                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OUTPUT_OPTIONS             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  USER_SETTINGS              = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DOCUMENT_OUTPUT_INFO       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  JOB_OUTPUT_INFO            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  JOB_OUTPUT_OPTIONS         =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    GS_MKPF                    = INT_MKPF&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    FORMATTING_ERROR           = 1&lt;/P&gt;&lt;P&gt;    INTERNAL_ERROR             = 2&lt;/P&gt;&lt;P&gt;    SEND_ERROR                 = 3&lt;/P&gt;&lt;P&gt;    USER_CANCELED              = 4&lt;/P&gt;&lt;P&gt;    OTHERS                     = 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Britto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2007 11:39:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-badi/m-p/2020063#M413336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-27T11:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: Report, BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-badi/m-p/2020064#M413337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;SE18 --&amp;gt; BADI defination &lt;/P&gt;&lt;P&gt;SE19 --&amp;gt; BADI Implementaion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Calling SMARTFORMS from your ABAP program&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT ZSMARTFORM.

* Calling SMARTFORMS from your ABAP program.
* Collecting all the table data in your program, and pass once to SMARTFORMS
* SMARTFORMS
* Declare your table type in :-
* Global Settings -&amp;gt; Form Interface
* Global Definintions -&amp;gt; Global Data
* Main Window -&amp;gt; Table -&amp;gt; DATA
*

TABLES: MKPF.

DATA: FM_NAME TYPE RS38L_FNAM.

DATA: BEGIN OF INT_MKPF OCCURS 0.
        INCLUDE STRUCTURE MKPF.
DATA: END OF INT_MKPF.

SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.

SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
   MOVE-CORRESPONDING MKPF TO INT_MKPF.
   APPEND INT_MKPF.

ENDSELECT.

* At the end of your program.
* Passing data to SMARTFORMS

call function 'SSF_FUNCTION_MODULE_NAME'
  exporting
    formname                 = 'ZSMARTFORM'
*   VARIANT                  = ' '
*   DIRECT_CALL              = ' '
  IMPORTING
    FM_NAME                  = FM_NAME
  EXCEPTIONS
    NO_FORM                  = 1
    NO_FUNCTION_MODULE       = 2
    OTHERS                   = 3.

if sy-subrc &amp;lt;&amp;gt; 0.
   WRITE: / 'ERROR 1'.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.

call function FM_NAME
* EXPORTING
*   ARCHIVE_INDEX              =
*   ARCHIVE_INDEX_TAB          =
*   ARCHIVE_PARAMETERS         =
*   CONTROL_PARAMETERS         =
*   MAIL_APPL_OBJ              =
*   MAIL_RECIPIENT             =
*   MAIL_SENDER                =
*   OUTPUT_OPTIONS             =
*   USER_SETTINGS              = 'X'
* IMPORTING
*   DOCUMENT_OUTPUT_INFO       =
*   JOB_OUTPUT_INFO            =
*   JOB_OUTPUT_OPTIONS         =
  TABLES
    GS_MKPF                    = INT_MKPF
  EXCEPTIONS
    FORMATTING_ERROR           = 1
    INTERNAL_ERROR             = 2
    SEND_ERROR                 = 3
    USER_CANCELED              = 4
    OTHERS                     = 5.

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.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Push button in ALV&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="338823"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="349439"&gt;&lt;/A&gt;&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; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2007 11:40:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-badi/m-p/2020064#M413337</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-27T11:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: Report, BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-badi/m-p/2020065#M413338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if u ve created smartform and activated it, then in environment menu of form click on function module. there ull get function module name.&lt;/P&gt;&lt;P&gt;in ur print program(report) click on Pattern tab and select call function radio button.paste the function module name in it and enter..&lt;/P&gt;&lt;P&gt;ur form call will be displayed in abap editor with required import and export parameters&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2007 12:03:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-badi/m-p/2020065#M413338</guid>
      <dc:creator>former_member188827</dc:creator>
      <dc:date>2007-03-27T12:03:30Z</dc:date>
    </item>
  </channel>
</rss>

