<?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: Using BAPI  (  BAPISDORDER_GETDETAILEDLIST) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-bapisdorder-getdetailedlist/m-p/7591852#M1567337</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to pass the order number with preceeding ZEROS (Total 10 characters) while filling order number using table_sales.setValue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;table_sales.setValue("VBELN", "0000001258");&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Jan 2011 05:44:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-01-24T05:44:08Z</dc:date>
    <item>
      <title>Using BAPI  (  BAPISDORDER_GETDETAILEDLIST)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-bapisdorder-getdetailedlist/m-p/7591851#M1567336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear all my frinds &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have abroblem with BAPI  (  BAPISDORDER_GETDETAILEDLIST) when i access it from the java source code using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JCO connector. evry time i pass a value of a sales order number in the table (SALES_DOCUMENTS) and  also the parameters in &lt;/P&gt;&lt;P&gt;structure (I_BAPI_VIEW) and excute the function.i found  all the tables that i will get the data from its size is zero.&lt;/P&gt;&lt;P&gt;and some times not run and take alot of time.&lt;/P&gt;&lt;P&gt;and i try another function it work correctly in the same project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and this is my code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; public String viewsalesorder_action() {&lt;/P&gt;&lt;P&gt;        // TODO: Process the action. Return value is a navigation&lt;/P&gt;&lt;P&gt;        // case name where null will return to the same page.&lt;/P&gt;&lt;P&gt;try{&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    JCoFunction functionsaleso = getApplicationBean1().getConnect().getFunction("BAPISDORDER_GETDETAILEDLIST");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}catch(Exception ex ){&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JOptionPane.showMessageDialog(null, "error in function call");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;JOptionPane.showMessageDialog(null, "ok");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JOptionPane.showMessageDialog(null, "get function");&lt;/P&gt;&lt;P&gt;JCoStructure ssale = functionsales.getImportParameterList().getStructure("I_BAPI_VIEW");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        ssale.setValue("HEADER","X");&lt;/P&gt;&lt;P&gt;        ssale.setValue("ITEM","X");&lt;/P&gt;&lt;P&gt;        ssale.setValue("PARTNER","X");&lt;/P&gt;&lt;P&gt;        ssale.setValue("SDCOND","X");&lt;/P&gt;&lt;P&gt;JOptionPane.showMessageDialog(null, "append data to structure");&lt;/P&gt;&lt;P&gt;JCoTable table_sales = functionsales.getTableParameterList().getTable("SALES_DOCUMENTS");&lt;/P&gt;&lt;P&gt;  table_sales.appendRow();&lt;/P&gt;&lt;P&gt;  table_sales.setValue("VBELN", "1258");&lt;/P&gt;&lt;P&gt;//  textField1.getText().toString().trim()&lt;/P&gt;&lt;P&gt;// Excute the functon&lt;/P&gt;&lt;P&gt;  JOptionPane.showMessageDialog(null,"number of rows in table sales documents"+table_sales.getNumRows() );&lt;/P&gt;&lt;P&gt;  getApplicationBean1().getConnect().execute(functionsales);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JOptionPane.showMessageDialog(null, "function excuted");&lt;/P&gt;&lt;P&gt;// return the output of the function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  JCoTable tableheder = functionsales.getTableParameterList().getTable("ORDER_HEADERS_OUT");&lt;/P&gt;&lt;P&gt;  TableAdapterReader adapterheder = new TableAdapterReader(tableheder);&lt;/P&gt;&lt;P&gt;JOptionPane.showMessageDialog(null, "adabter set size = " + adapterheder.size());&lt;/P&gt;&lt;P&gt;    for (int i = 0; i &amp;lt; adapterheder.size(); i++) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  textField2.setText(adapterheder.get("DOC_DATE"));&lt;/P&gt;&lt;P&gt;  textField3.setText(adapterheder.get("REC_DATE"));&lt;/P&gt;&lt;P&gt;  textField4.setText(adapterheder.get("DLV_BLOCK"));&lt;/P&gt;&lt;P&gt;  textField6.setText(adapterheder.get("NET_VAL_HD"));&lt;/P&gt;&lt;P&gt;  textField7.setText(adapterheder.get("CURRENCY"));&lt;/P&gt;&lt;P&gt;          adapterheder.next();&lt;/P&gt;&lt;P&gt;        }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  JCoTable tablepartener = functionsales.getTableParameterList().getTable("ORDER_PARTNERS_OUT");&lt;/P&gt;&lt;P&gt;  TableAdapterReader adapterpartener = new TableAdapterReader(tablepartener);&lt;/P&gt;&lt;P&gt;JOptionPane.showMessageDialog(null, "adabter set size = " + adapterpartener.size());&lt;/P&gt;&lt;P&gt;//  adapterpartener.next();&lt;/P&gt;&lt;P&gt;//  textField5.setText(adapterpartener.get("CUSTOMER"));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; JCoTable tablecond = functionsales.getTableParameterList().getTable("ORDER_PARTNERS_OUT");&lt;/P&gt;&lt;P&gt;  TableAdapterReader adaptercond = new TableAdapterReader(tablecond);&lt;/P&gt;&lt;P&gt;JOptionPane.showMessageDialog(null, "adabter set size = " + adaptercond.size());&lt;/P&gt;&lt;P&gt;return null;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Jan 2011 22:58:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-bapisdorder-getdetailedlist/m-p/7591851#M1567336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-23T22:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using BAPI  (  BAPISDORDER_GETDETAILEDLIST)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-bapisdorder-getdetailedlist/m-p/7591852#M1567337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to pass the order number with preceeding ZEROS (Total 10 characters) while filling order number using table_sales.setValue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;table_sales.setValue("VBELN", "0000001258");&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jan 2011 05:44:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-bapisdorder-getdetailedlist/m-p/7591852#M1567337</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-24T05:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using BAPI  (  BAPISDORDER_GETDETAILEDLIST)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-bapisdorder-getdetailedlist/m-p/7591853#M1567338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you mr.Vinod Kumar  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i try that and it's working good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jan 2011 09:36:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-bapisdorder-getdetailedlist/m-p/7591853#M1567338</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-24T09:36:17Z</dc:date>
    </item>
  </channel>
</rss>

