<?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: data in table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-in-table-control/m-p/1897879#M375229</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rich your suggestions helped me a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Jan 2007 21:14:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-30T21:14:02Z</dc:date>
    <item>
      <title>data in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-in-table-control/m-p/1897874#M375224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am using ME21n to upload data . but unable to scroll the table control , &lt;/P&gt;&lt;P&gt;the table control currently holds three line .. data in three lines are filled but unable to insert in 4th line (unable to scroll table control in BDC)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using a  BAPI would be difficut for me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2007 19:29:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-in-table-control/m-p/1897874#M375224</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-26T19:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: data in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-in-table-control/m-p/1897875#M375225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you don't want to use a BAPI, you should use ME21 instead of ME21N.  Here is an example of using the BAPI.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


report zrich_0001.

constants : c_x value 'X'.

data: del_date type sy-datum.

data: pohead  type bapimepoheader.
data: poheadx type bapimepoheaderx.

data: exp_head type bapimepoheader.

data: return  type table of bapiret2 with header line.
data: poitem  type table of bapimepoitem with header line.
data: poitemx type table of bapimepoitemx with header line.

data: posched  type table of bapimeposchedule with header line.
data: poschedx type table of bapimeposchedulx with header line.

data: ex_po_number type bapimepoheader-po_number.

parameters: p_matnr type ekpo-matnr.
parameters: p_werks type ekpo-werks.
parameters: p_lgort type ekpo-lgort.
parameters: p_menge type ekpo-menge.
parameters: p_lifnr type ekko-lifnr.
parameters: p_ekorg type ekko-ekorg.
parameters: p_ekgrp type ekko-ekgrp.
parameters: p_bukrs type ekko-bukrs.

* Header Level Data

pohead-comp_code = p_bukrs.
pohead-doc_type   = 'NB'     .
pohead-creat_date = sy-datum   .

pohead-vendor = p_lifnr.
pohead-purch_org = p_ekorg.
pohead-pur_group = p_ekgrp.

pohead-langu      = sy-langu   .
pohead-doc_date   = sy-datum.

poheadx-comp_code  = c_x.
poheadx-doc_type   = c_x.
poheadx-creat_date = c_x.
poheadx-vendor     = c_x.
poheadx-langu      = c_x.
poheadx-purch_org  = c_x.
poheadx-pur_group  = c_x.
poheadx-doc_date   = c_x.


* Item Level Data
poitem-po_item  = 1.
poitem-material = p_matnr.
poitem-plant    = p_werks.
poitem-stge_loc = p_lgort.
poitem-quantity = p_menge.
append poitem.

poitemx-po_item    = 1.
poitemx-po_itemx   = c_x.
poitemx-material   = c_x.
poitemx-plant      = c_x .
poitemx-stge_loc   = c_x .
poitemx-quantity   = c_x .
poitemx-tax_code   = c_x .
poitemx-item_cat   = c_x .
poitemx-acctasscat = c_x .
append poitemx.


* Schedule Line Level Data
posched-po_item        = 1.
posched-sched_line     = 1.
posched-del_datcat_ext = 'D'.
del_date = sy-datum + 1.
write del_date to posched-delivery_date.
posched-deliv_time     = '000001'.
posched-quantity       = p_menge.
append posched.

poschedx-po_item        = 1.
poschedx-sched_line     = 1.
poschedx-po_itemx       = c_x.
poschedx-sched_linex    = c_x.
poschedx-del_datcat_ext = c_x.
poschedx-delivery_date  = c_x.
poschedx-quantity       = c_x.
append poschedx.

call function 'BAPI_PO_CREATE1'
     exporting
          poheader         = pohead
          poheaderx        = poheadx
          testrun          = ' '
     importing
          exppurchaseorder = ex_po_number
          expheader        = exp_head
     tables
          return           = return
          poitem           = poitem
          poitemx          = poitemx
          poschedule       = posched
          poschedulex      = poschedx.

call function 'BAPI_TRANSACTION_COMMIT'
     exporting
          wait = 'X'.

if not ex_po_number is initial.
  call function 'DEQUEUE_ALL'.
else.
  call function 'DEQUEUE_ALL'.
*  message i036.
endif.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2007 19:43:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-in-table-control/m-p/1897875#M375225</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-01-26T19:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: data in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-in-table-control/m-p/1897876#M375226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rich , &lt;/P&gt;&lt;P&gt; Can u please guide me why to use me21 insted of me21n and what will be the process in me21&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2007 19:56:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-in-table-control/m-p/1897876#M375226</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-26T19:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: data in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-in-table-control/m-p/1897877#M375227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, ME21N is an enjoy transaction which was introduced in the Enjoy release 46c.  It contains frontend controls which the BDC does not get along with very nicely.  ME21 is the older version of the purchase order create and does not contain these controls, but anything that can be done(for the most part) in ME21N can be done in ME21.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So use ME21 instead.  but again the BAPI is the best option.  In the above code, I have done most of the work for you.  You might want to try to implement it.  There a lot of developers here that would be willing to help you thru the process if you get stuck, but you must first make the decision to go for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2007 20:05:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-in-table-control/m-p/1897877#M375227</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-01-26T20:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: data in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-in-table-control/m-p/1897878#M375228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich &lt;/P&gt;&lt;P&gt; Thanks for your  help , now i am using ME21 , please help me in  scrollig table control of ME21&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2007 16:48:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-in-table-control/m-p/1897878#M375228</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-30T16:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: data in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-in-table-control/m-p/1897879#M375229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rich your suggestions helped me a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2007 21:14:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-in-table-control/m-p/1897879#M375229</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-30T21:14:02Z</dc:date>
    </item>
  </channel>
</rss>

