<?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: Function module to  display the data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-display-the-data/m-p/5324877#M1227124</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;you are getting dump in the call function BAPI_PO_GETDETAIL' because the internal table which  it is trying to fill the data i.e.  i_poitem is not of the structure ekpo due to which it is going for dump as you have chenged its name from ekpo to kkblo_t_fieldcat....&lt;/P&gt;&lt;P&gt;to get rid of the dump....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the code below...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPE-pools:KKBLO.
data: i_poitem type table of ekpo.
 
 
data: tab_poitem type table of KKBLO_T_FIELDCAT.
 
 
   parameters :p_ebeln like ekpo-ebeln default '4500012164'.
*               VENDOR LIKE EKkO-LIFNR default '3000'.
 
    CALL FUNCTION 'BAPI_PO_GETDETAIL'
      EXPORTING
        PURCHASEORDER                    = P_EBELN
       ITEMS                            = 'X'
*       ACCOUNT_ASSIGNMENT               = ' '
*       SCHEDULES                        = ' '
       HISTORY                          = 'X'
*       ITEM_TEXTS                       = ' '
*       HEADER_TEXTS                     = ' '
*       SERVICES                         = ' '
*       CONFIRMATIONS                    = ' '
*       SERVICE_TEXTS                    = ' '
*       EXTENSIONS                       = ' '
*     IMPORTING
*       PO_HEADER                        =
*       PO_ADDRESS                       =
     TABLES
*       PO_HEADER_TEXTS                  =
       PO_ITEMS                         = I_POITEM
*       PO_ITEM_ACCOUNT_ASSIGNMENT       =
*       PO_ITEM_SCHEDULES                =
*       PO_ITEM_CONFIRMATIONS            =
*       PO_ITEM_TEXTS                    =
*       PO_ITEM_HISTORY                  =
*       PO_ITEM_HISTORY_TOTALS           =
*       PO_ITEM_LIMITS                   =
*       PO_ITEM_CONTRACT_LIMITS          =
*       PO_ITEM_SERVICES                 =
*       PO_ITEM_SRV_ACCASS_VALUES        =
*       RETURN                           =
*       PO_SERVICES_TEXTS                =
*       EXTENSIONOUT                     =
              .
* LOOP AT I_POITEM.
* write :/ 'PONUMBER = ' , i_poitem-po_number color col_heading,
*/ 'ITEM = ' , i_poitem-po_item,
*/ 'MATERIAL NAME = ' , i_poitem-material,
*/ 'MATERIAL = ' , i_poitem-pur_mat,
*/ 'CHANGED ON = ', i_poitem-changed_on,
*/ 'SHORT TEXT = ' , i_poitem-short_text,
*/ 'COMPANY CODE = ' , i_poitem-co_code,
*/ 'PLANT = ' , i_poitem-plant,
*/ 'MATERIAL GROUP = ' , i_poitem-mat_grp,
*/ 'QUANTITY = ' , i_poitem-quantity left-justified,
*/ 'UNIT = ' , i_poitem-unit,
*/ 'NET PRICE = ' , i_poitem-net_price left-justified.
* ENDLOOP.
 
" try filling entries in tab_poitem with the fields you want to display on the screen...
" using the code...
" tab_poitem-fieldname = 'FIELDNAME_YOU_WANT_ON_GRID'.
" append TAB_POITEM.
 
CALL FUNCTION 'MINI_TABLE_FOR_DISPLAY'
  EXPORTING
    IT_FIELDCAT                 =  tab_poitem     " This is an internal table of fieldcatalog which you had 
" defined it earlier..............
*   IT_SORT                     =
*   IS_LAYOUT                   =
*   IS_LAYOUT2                  =
*   I_LIST_TITLE                =
  TABLES
*   IT_FCAT_HLINK               =
*   IT_HLINKS                   =
    IT_DATA                     =  i_poitem      " This is an internal table of ekpo
*   IT_COLLECT00                =
*   ET_LVC_INFO                 =
*   ET_LVC_DATA                 =
* EXCEPTIONS
*   FIELDCAT_NOT_COMPLETE       = 1
*   OTHERS                      = 2
          .
IF SY-SUBRC  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;Its your previous code which you had pasted earlier....&lt;/P&gt;&lt;P&gt;just with a small change to it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Mar 2009 10:49:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-12T10:49:27Z</dc:date>
    <item>
      <title>Function module to  display the data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-display-the-data/m-p/5324866#M1227113</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 used the fm Bapi_po_getdetail to get the total data into the table.. I displayed this data using Write statement instead of that Is there any function module to display the data???...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2009 05:17:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-display-the-data/m-p/5324866#M1227113</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-09T05:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to  display the data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-display-the-data/m-p/5324867#M1227114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;POPUP_WITH_TABLE_DISPLAY - Displays internal table data in a popup table &lt;/P&gt;&lt;P&gt;MD_POPUP_SHOW_INTERNAL_TABLE - Pops up contents of internal table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2009 05:20:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-display-the-data/m-p/5324867#M1227114</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-09T05:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to  display the data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-display-the-data/m-p/5324868#M1227115</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 FM MINI_TABLE_FOR_DISPLAY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2009 05:26:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-display-the-data/m-p/5324868#M1227115</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-09T05:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to  display the data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-display-the-data/m-p/5324869#M1227116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi..&lt;/P&gt;&lt;P&gt;     When Iam calling this fm ...its getting dumb .. it is showing error analysis :- &lt;/P&gt;&lt;P&gt;The call to the function module "BAPI_PO_GETDETAIL" is incorrect:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the function module interface, you can specify only&lt;/P&gt;&lt;P&gt;fields of a specific type and length under "PO_ITEMS".&lt;/P&gt;&lt;P&gt;Although the currently specified field&lt;/P&gt;&lt;P&gt;"I_POITEM" is the correct type, its length is incorrect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; will any body help me..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abaper&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2009 06:05:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-display-the-data/m-p/5324869#M1227116</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-09T06:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to  display the data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-display-the-data/m-p/5324870#M1227117</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;PRE&gt;&lt;CODE&gt;
 data:
 t_item type  TABLE OF BAPIEKPO.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Item table type should of type BAPIEKPO.&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;Nithya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2009 06:28:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-display-the-data/m-p/5324870#M1227117</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-09T06:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to  display the data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-display-the-data/m-p/5324871#M1227118</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;You can use the function module : MINI_TABLE_FOR_DISPLAY for this purpose.&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;Sreeram Kumar.Madisetty&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2009 06:32:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-display-the-data/m-p/5324871#M1227118</guid>
      <dc:creator>sreeramkumar_madisetty</dc:creator>
      <dc:date>2009-03-09T06:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to  display the data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-display-the-data/m-p/5324872#M1227119</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 cleared that error.. but now i got  dump again from mini_table_for_display this fm...&lt;/P&gt;&lt;P&gt; An exception occurred that is explained in detail below.&lt;/P&gt;&lt;P&gt; The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_TYPE', was&lt;/P&gt;&lt;P&gt;  not caught and&lt;/P&gt;&lt;P&gt; therefore caused a runtime error.&lt;/P&gt;&lt;P&gt; The reason for the exception is:&lt;/P&gt;&lt;P&gt; It was tried to transfer the internal table "I_POITEM" to the formal parameter&lt;/P&gt;&lt;P&gt; "IT_FIELDCAT". In doing so, a type conflict occurred between the formal- and&lt;/P&gt;&lt;P&gt;  the&lt;/P&gt;&lt;P&gt; actual parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  How can i get from this....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 07:41:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-display-the-data/m-p/5324872#M1227119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-10T07:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to  display the data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-display-the-data/m-p/5324873#M1227120</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; Type of the fieldcatalog - KKBLO_T_FIELDCAT.&lt;/P&gt;&lt;P&gt; Type of the Item - According to ur code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 TYPE-pools:KKBLO.
data:
 t_item type  TABLE OF EKPO,  " Not necessarily
 t_field type KKBLO_T_FIELDCAT.

CALL FUNCTION 'MINI_TABLE_FOR_DISPLAY'
  EXPORTING
    it_fieldcat                 =  t_field
  tables
    it_data                     =  t_item
    .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nithya.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Nithya Murugesan on Mar 10, 2009 9:45 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 08:44:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-display-the-data/m-p/5324873#M1227120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-10T08:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to  display the data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-display-the-data/m-p/5324874#M1227121</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;PRE&gt;&lt;CODE&gt; TYPE-pools:KKBLO.
data: i_poitem type table of ekpo.


data: tab_poitem type table of KKBLO_T_FIELDCAT.


   parameters :p_ebeln like ekpo-ebeln default '4500012164'.
*               VENDOR LIKE EKkO-LIFNR default '3000'.

    CALL FUNCTION 'BAPI_PO_GETDETAIL'
      EXPORTING
        PURCHASEORDER                    = P_EBELN
       ITEMS                            = 'X'
*       ACCOUNT_ASSIGNMENT               = ' '
*       SCHEDULES                        = ' '
       HISTORY                          = 'X'
*       ITEM_TEXTS                       = ' '
*       HEADER_TEXTS                     = ' '
*       SERVICES                         = ' '
*       CONFIRMATIONS                    = ' '
*       SERVICE_TEXTS                    = ' '
*       EXTENSIONS                       = ' '
*     IMPORTING
*       PO_HEADER                        =
*       PO_ADDRESS                       =
     TABLES
*       PO_HEADER_TEXTS                  =
       PO_ITEMS                         = I_POITEM
*       PO_ITEM_ACCOUNT_ASSIGNMENT       =
*       PO_ITEM_SCHEDULES                =
*       PO_ITEM_CONFIRMATIONS            =
*       PO_ITEM_TEXTS                    =
*       PO_ITEM_HISTORY                  =
*       PO_ITEM_HISTORY_TOTALS           =
*       PO_ITEM_LIMITS                   =
*       PO_ITEM_CONTRACT_LIMITS          =
*       PO_ITEM_SERVICES                 =
*       PO_ITEM_SRV_ACCASS_VALUES        =
*       RETURN                           =
*       PO_SERVICES_TEXTS                =
*       EXTENSIONOUT                     =
              .
* LOOP AT I_POITEM.
* write :/ 'PONUMBER = ' , i_poitem-po_number color col_heading,
*/ 'ITEM = ' , i_poitem-po_item,
*/ 'MATERIAL NAME = ' , i_poitem-material,
*/ 'MATERIAL = ' , i_poitem-pur_mat,
*/ 'CHANGED ON = ', i_poitem-changed_on,
*/ 'SHORT TEXT = ' , i_poitem-short_text,
*/ 'COMPANY CODE = ' , i_poitem-co_code,
*/ 'PLANT = ' , i_poitem-plant,
*/ 'MATERIAL GROUP = ' , i_poitem-mat_grp,
*/ 'QUANTITY = ' , i_poitem-quantity left-justified,
*/ 'UNIT = ' , i_poitem-unit,
*/ 'NET PRICE = ' , i_poitem-net_price left-justified.
* ENDLOOP.



CALL FUNCTION 'MINI_TABLE_FOR_DISPLAY'
  EXPORTING
    IT_FIELDCAT                 =  i_poitem
*   IT_SORT                     =
*   IS_LAYOUT                   =
*   IS_LAYOUT2                  =
*   I_LIST_TITLE                =
  TABLES
*   IT_FCAT_HLINK               =
*   IT_HLINKS                   =
    IT_DATA                     =  tab_poitem
*   IT_COLLECT00                =
*   ET_LVC_INFO                 =
*   ET_LVC_DATA                 =
* EXCEPTIONS
*   FIELDCAT_NOT_COMPLETE       = 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.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  this is my code... Iam getting the same type of error .. where I did the mistake .. Will u help me plz...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 04:56:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-display-the-data/m-p/5324874#M1227121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-12T04:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to  display the data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-display-the-data/m-p/5324875#M1227122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TYPE-pools:KKBLO.&lt;/P&gt;&lt;P&gt;data: i_poitem type KKBLO_T_FIELDCAT,&lt;/P&gt;&lt;P&gt;        tab_poitem type table of EKPO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'MINI_TABLE_FOR_DISPLAY'
  EXPORTING
    IT_FIELDCAT                 =  i_poitem
*   IT_SORT                     =
*   IS_LAYOUT                   =
*   IS_LAYOUT2                  =
*   I_LIST_TITLE                =
  TABLES
*   IT_FCAT_HLINK               =
*   IT_HLINKS                   =
    IT_DATA                     =  tab_poitem
*   IT_COLLECT00                =
*   ET_LVC_INFO                 =
*   ET_LVC_DATA                 =
* EXCEPTIONS
*   FIELDCAT_NOT_COMPLETE       = 1
*   OTHERS                      = 2
          .
IF SY-SUBRC  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;Fieldcatalog is used format our output like which fields we want, which order.just double click on KKBLO_T_FIELDCAT from the sap,there u can find all the details.In the above coding i have given the declaration part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For any more clarification,revert back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nithya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 09:07:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-display-the-data/m-p/5324875#M1227122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-12T09:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to  display the data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-display-the-data/m-p/5324876#M1227123</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 changed the declarations.... but still its getting dump....&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;P&gt;                 An exception occurred that is explained in detail below.&lt;/P&gt;&lt;P&gt; The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_TYPE', was&lt;/P&gt;&lt;P&gt;  not caught and&lt;/P&gt;&lt;P&gt; therefore caused a runtime error.&lt;/P&gt;&lt;P&gt; The reason for the exception is:&lt;/P&gt;&lt;P&gt; The call to the function module "BAPI_PO_GETDETAIL" is incorrect:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; In the function module interface, you can specify only&lt;/P&gt;&lt;P&gt; fields of a specific type and length under "PO_ITEMS".&lt;/P&gt;&lt;P&gt; Although the currently specified field&lt;/P&gt;&lt;P&gt; " " is the correct type, its length is incorrect.&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;Abaper.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 10:29:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-display-the-data/m-p/5324876#M1227123</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-12T10:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to  display the data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-display-the-data/m-p/5324877#M1227124</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;you are getting dump in the call function BAPI_PO_GETDETAIL' because the internal table which  it is trying to fill the data i.e.  i_poitem is not of the structure ekpo due to which it is going for dump as you have chenged its name from ekpo to kkblo_t_fieldcat....&lt;/P&gt;&lt;P&gt;to get rid of the dump....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the code below...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPE-pools:KKBLO.
data: i_poitem type table of ekpo.
 
 
data: tab_poitem type table of KKBLO_T_FIELDCAT.
 
 
   parameters :p_ebeln like ekpo-ebeln default '4500012164'.
*               VENDOR LIKE EKkO-LIFNR default '3000'.
 
    CALL FUNCTION 'BAPI_PO_GETDETAIL'
      EXPORTING
        PURCHASEORDER                    = P_EBELN
       ITEMS                            = 'X'
*       ACCOUNT_ASSIGNMENT               = ' '
*       SCHEDULES                        = ' '
       HISTORY                          = 'X'
*       ITEM_TEXTS                       = ' '
*       HEADER_TEXTS                     = ' '
*       SERVICES                         = ' '
*       CONFIRMATIONS                    = ' '
*       SERVICE_TEXTS                    = ' '
*       EXTENSIONS                       = ' '
*     IMPORTING
*       PO_HEADER                        =
*       PO_ADDRESS                       =
     TABLES
*       PO_HEADER_TEXTS                  =
       PO_ITEMS                         = I_POITEM
*       PO_ITEM_ACCOUNT_ASSIGNMENT       =
*       PO_ITEM_SCHEDULES                =
*       PO_ITEM_CONFIRMATIONS            =
*       PO_ITEM_TEXTS                    =
*       PO_ITEM_HISTORY                  =
*       PO_ITEM_HISTORY_TOTALS           =
*       PO_ITEM_LIMITS                   =
*       PO_ITEM_CONTRACT_LIMITS          =
*       PO_ITEM_SERVICES                 =
*       PO_ITEM_SRV_ACCASS_VALUES        =
*       RETURN                           =
*       PO_SERVICES_TEXTS                =
*       EXTENSIONOUT                     =
              .
* LOOP AT I_POITEM.
* write :/ 'PONUMBER = ' , i_poitem-po_number color col_heading,
*/ 'ITEM = ' , i_poitem-po_item,
*/ 'MATERIAL NAME = ' , i_poitem-material,
*/ 'MATERIAL = ' , i_poitem-pur_mat,
*/ 'CHANGED ON = ', i_poitem-changed_on,
*/ 'SHORT TEXT = ' , i_poitem-short_text,
*/ 'COMPANY CODE = ' , i_poitem-co_code,
*/ 'PLANT = ' , i_poitem-plant,
*/ 'MATERIAL GROUP = ' , i_poitem-mat_grp,
*/ 'QUANTITY = ' , i_poitem-quantity left-justified,
*/ 'UNIT = ' , i_poitem-unit,
*/ 'NET PRICE = ' , i_poitem-net_price left-justified.
* ENDLOOP.
 
" try filling entries in tab_poitem with the fields you want to display on the screen...
" using the code...
" tab_poitem-fieldname = 'FIELDNAME_YOU_WANT_ON_GRID'.
" append TAB_POITEM.
 
CALL FUNCTION 'MINI_TABLE_FOR_DISPLAY'
  EXPORTING
    IT_FIELDCAT                 =  tab_poitem     " This is an internal table of fieldcatalog which you had 
" defined it earlier..............
*   IT_SORT                     =
*   IS_LAYOUT                   =
*   IS_LAYOUT2                  =
*   I_LIST_TITLE                =
  TABLES
*   IT_FCAT_HLINK               =
*   IT_HLINKS                   =
    IT_DATA                     =  i_poitem      " This is an internal table of ekpo
*   IT_COLLECT00                =
*   ET_LVC_INFO                 =
*   ET_LVC_DATA                 =
* EXCEPTIONS
*   FIELDCAT_NOT_COMPLETE       = 1
*   OTHERS                      = 2
          .
IF SY-SUBRC  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;Its your previous code which you had pasted earlier....&lt;/P&gt;&lt;P&gt;just with a small change to it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 10:49:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-display-the-data/m-p/5324877#M1227124</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-12T10:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to  display the data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-display-the-data/m-p/5324878#M1227125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this FM MINI_TABLE_FOR_DISPLAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 10:52:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-display-the-data/m-p/5324878#M1227125</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-12T10:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to  display the data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-display-the-data/m-p/5324879#M1227126</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;  Declare PO_ITEMS as,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data:
  po_items type table of BAPIEKPO.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nithya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 10:55:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-display-the-data/m-p/5324879#M1227126</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-12T10:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to  display the data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-display-the-data/m-p/5324880#M1227127</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;Try this FM 'MINI_TABLE_FOR_DISPLAY'&lt;/P&gt;&lt;P&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;Jyothi CH.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 10:57:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-display-the-data/m-p/5324880#M1227127</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-12T10:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to  display the data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-display-the-data/m-p/5324881#M1227128</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; The error is getting for the function module 'BAPI_PO_GETDETAIL'. The table type I_POITEM declared is different from the type BAPI will accept.&lt;/P&gt;&lt;P&gt;Declare I_POITEM as table of BAPIEKPO and check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swarna Munukoti.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 10:59:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-display-the-data/m-p/5324881#M1227128</guid>
      <dc:creator>former_member217544</dc:creator>
      <dc:date>2009-03-12T10:59:05Z</dc:date>
    </item>
  </channel>
</rss>

