<?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: Input Tables on BAPI_xxx_CREATEFROMDATA in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/input-tables-on-bapi-xxx-createfromdata/m-p/1108113#M105380</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At a little higher level, any document in SAP...Sales order, Purchase order, Invoice, etc. is stored in the database in a hierarchical relationship of database tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Information about a sales document for example is stored in a number of tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VBAK is the header data table.  This contains basic information about the document.  Doc number, creation date, sales org, etc.  Basically it contains general data about the order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VBAP is the table that contains the meat of the order.  VBAP holds the actual line items of the order and data about these items.  If you enter a sales order for customer XYZ for 1 ea  Item 1 and 1 ea of item 2.  That will give you a single entry in VBAK for the order and 2 entries in VBAP (one for each line item).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition to these tables there are many others that hold data about the status of the order, related documents, delivery information, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of the easiest ways to find these tables is to look in transaction SE36 (Logical databases)  These are pre programed table joins from SAP.  Select the LDB (which for sales document I think is VAV or BRM) click the structure radio button and display.  This will give you a tree structure showing the relationship of the various tables.&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;Brent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Dec 2005 15:36:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-12-20T15:36:22Z</dc:date>
    <item>
      <title>Input Tables on BAPI_xxx_CREATEFROMDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/input-tables-on-bapi-xxx-createfromdata/m-p/1108110#M105377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm a newbie (what a surprise!) and I've been looking at various CREATEFROMDATA BAPIs.  Some of them, such as SALESDOCU look like they take a number of tables as input.  E.g. SALES_ITEMS_IN and SALES_CONDITIONS_IN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the information in those tables part of the SALESDOCUMENT-object/database-table itself, or is it storedd in some sort of subsidiary objects/database-tables?  Does that make any sense, or am I completely clueless?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2005 20:52:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/input-tables-on-bapi-xxx-createfromdata/m-p/1108110#M105377</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-19T20:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Input Tables on BAPI_xxx_CREATEFROMDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/input-tables-on-bapi-xxx-createfromdata/m-p/1108111#M105378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data you fill in these internal tables (like you fill the line item data in SALES_ITEMS_IN is used to create the sales document in R/3. So all the header and line item data eventually does gets stored in database table or the other. In the process of creating the document the BAPI also derives some calculated fields which may not get stored in the database but is calculated everytime you access the document for change or display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shounak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2005 21:28:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/input-tables-on-bapi-xxx-createfromdata/m-p/1108111#M105378</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-19T21:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Input Tables on BAPI_xxx_CREATEFROMDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/input-tables-on-bapi-xxx-createfromdata/m-p/1108112#M105379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data you pass into the "tables for input" (eg SALES_ITEMS_IN) will eventually get stored in the relevant SAP tables (eg VBAP). Don't forget the "X" tables, eg SALES_ITEMS_INX. These tables generally contain similiar field names as the non X tables (eg SALES_ITEM_IN). By putting a "X" into the relevant field in the "X" table indiocates that this field should be updated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  tbl_poitem-po_item     = tbl_item-ebelp.
  tbl_poitem-plant       = tbl_item-werks.
  tbl_poitem-stge_loc    = tbl_item-lgort.
  tbl_poitem-quantity    = tbl_item-menge.
  tbl_poitem-po_unit     = tbl_item-meins.
  APPEND tbl_poitem.

  tbl_poitemx-po_item     = tbl_item-ebelp.
  tbl_poitemx-po_itemx    = 'X'.
  tbl_poitemx-plant       = 'X'.
  tbl_poitemx-stge_loc    = 'X'.
  tbl_poitemx-quantity    = 'X'.
  tbl_poitemx-po_unit     = 'X'.
  APPEND tbl_poitemx.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This logic is common for alot of the BAPI's in SAP.&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;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2005 04:20:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/input-tables-on-bapi-xxx-createfromdata/m-p/1108112#M105379</guid>
      <dc:creator>former_member221770</dc:creator>
      <dc:date>2005-12-20T04:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Input Tables on BAPI_xxx_CREATEFROMDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/input-tables-on-bapi-xxx-createfromdata/m-p/1108113#M105380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At a little higher level, any document in SAP...Sales order, Purchase order, Invoice, etc. is stored in the database in a hierarchical relationship of database tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Information about a sales document for example is stored in a number of tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VBAK is the header data table.  This contains basic information about the document.  Doc number, creation date, sales org, etc.  Basically it contains general data about the order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VBAP is the table that contains the meat of the order.  VBAP holds the actual line items of the order and data about these items.  If you enter a sales order for customer XYZ for 1 ea  Item 1 and 1 ea of item 2.  That will give you a single entry in VBAK for the order and 2 entries in VBAP (one for each line item).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition to these tables there are many others that hold data about the status of the order, related documents, delivery information, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of the easiest ways to find these tables is to look in transaction SE36 (Logical databases)  These are pre programed table joins from SAP.  Select the LDB (which for sales document I think is VAV or BRM) click the structure radio button and display.  This will give you a tree structure showing the relationship of the various tables.&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;Brent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2005 15:36:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/input-tables-on-bapi-xxx-createfromdata/m-p/1108113#M105380</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-20T15:36:22Z</dc:date>
    </item>
  </channel>
</rss>

