BAPI_SALESORDER_GETSTATUS

Hi,
I want to get the status of a Sales Order using Java/JCo programming. My SALESDOCUMENT  is '0000001234'. I want to search basing on criteria SALESDOCUMENT LIKE '1234' .
This works fine.
JCoFunction function = connect.getFunction("BAPI_SALESORDER_GETSTATUS");
function.getImportParameterList().setValue("SALESDOCUMENT", "0000001234");
But want to use LIKE operator. Is there a way to use as such?
Thank you all in advance.

Hi James,
I don't think there is any like operator for this. But you can do this for user to use like operators in the screen to search that need to coded in Java accordingly based on value received from backend.
Hope it helps
Regards
Arun

Similar Messages

  • Field value in function module BAPI_SALESORDER_GETSTATUS

    Hi Ppl,
    I am using FM BAPI_SALESORDER_GETSTATUS and for each line item a value of "B" is returned in DLV_STAT_H field, can somebody tell me where where to find the meaning of these values?
    Thanks
    Rob

    Hi,
      You can find documentation using transaction BAPI
    A Not yet processed
    <b>B</b> Partially processed
    C Completely processed
    <b>Reward points</b>
    Regards

  • Error IN BAPI_SALESORDER_GETSTATUS

    while i am trying to run the BAPI_SALESORDER_GETSTATUS i am getting the following error.
    Runtime Error 8795
    The runtime object of type Salesorder with the persistent key 110000630 could not be created in the Business object repository.
    Message-Nr:826
    Workarea:OL
    R/3 Error Message : object does not exist

    I SOLVED THIS ISSUE

  • Can't find the meaning of PRC_STAT_H value in BAPI_SALESORDER_GetStatus

    Hi All,
    Do have any idea where can i find the definition of the values for PRC_STAT_H in BAPI_SALESORDER_GetStatus? When I used the BAPI_SALESORDER_GetStatus it returned the PRC_STAT_H value of A but how do i know what "A" stands for or what are possible values i'll be getting in PRC_STAT_H?
    Thanks in advance.
    Regards,
    myra

    You can find documentation using transaction BAPI
    Field
    PRC_STAT_H
    Overall processing status of document
    Definition
    The processing status of the entire sales document.
    Use
    The system determines the status of the entire sales document by taking into account the status of all header-related information and the status of all individual items. The status message tells you whether processing of the sales document is open, in progress, or complete.

  • Open sales orders using SD_SELECT_SALES_DOCUMENTS - no POSNR

    Hi all,
    I'm trying to use SD_SELECT_SALES_DOCUMENTS to select open sales documents but have noticed that it does not seem to contain line item details, seems like it only shows open sales orders at header level. I was wondering if there was something similar for line item details?
    Regards,
    Mark.

    Marcin, thanks for the suggestion - unfortunately in import parameters didn't give me the function I needed.
    Instead i've found BAPI_SALESORDER_GETSTATUS  to be quite suitable.
    Regards,
    Mark

  • Open Order quantity in VA05

    Hi experts,
    i have a issue in VA05 colum "Confirm quantity" and "Order quantity" not matching to VBB-OMENG and VBBE-VMENG.
    it should be match?
    I required Open quantity against sales order. i delivred it partialy.
    thanks/
    anurag

    Hi Anurag,
    Try function BAPI_SALESORDER_GETSTATUS
    You can write simple program with  BAPI_SALESORDER_GETSTATUS.  In program you must  find document number with vbak or vbap. Import ur document number.
    Then you can see sales order lines;
    Order quantity,
    Open quantity,
    delivery quantity,
    Delivery number,
    and more.
    regards,
    Gorbil.

  • FM to get sales order details with billing document .

    hi ,
    is there any standard FM or BAPI to get the sales order details with input as billing document ?
    i have the billing document number now i need to get the sales order number and its details ..
    is that possible ..
    i very well know how to get it by using query, i need standard FM.
    Points will be awarded for sure , if it helps .
    Thanks and regards
    JK

    Here is the list of BAPIs
    BAPI_QUOTATION_GETDETAILBOS
    BAPI_INQUIRY_GETDETAILBOS
    BAPI_SALESORDER_GETDETAILBOS
    SALES ORDER->
    BAPISDORDER_GETDETAILEDLIST Sales Order: List of All Order Data
    BAPI_ORDER_CHANGE_STATUS_GET Change status for order
    BAPI_SALESDOCU_CREATEFROMDATA Creating a Sales Document
    BAPI_SALESORDER_CHANGE Sales Order: Change Sales Order
    BAPI_SALESORDER_CREATEFROMDAT1 Sales Order: Create Sales Order
    BAPI_SALESORDER_CREATEFROMDAT2 Sales Order: Create Sales Order
    BAPI_SALESORDER_CREATEFROMDATA Create sales order, no more maintenance
    BAPI_SALESORDER_GETLIST Sales order: List of all orders for customer
    BAPI_SALESORDER_GETSTATUS Sales order: Display status
    BAPI_SALESORDER_SIMULATE Sales Order: Simulate Sales Order

  • Requires experts help - abap report in sales order

    hello,
    for the sales order details -  to display partner function and delivery status.
    first screen contains selection screen containing sales organization and a check box.
    if i enter the sales organization without clicking check box, it displays many sale orders clicking on any sale order, (interactive)  takes me to another screen, where i have push buttons for displaying partner func and delivery status. - this output is coming correctly.
    if i enter sales org. and <b>click the check box</b>, goes to next screen where i give sale order no. in parameter and after giving i should go to the same screen where i created pushbuttons for displaying the partner functions and delivery status of that particular vbeln.
    i am not getting the output for the above thing.
    ( i am not using dialog module). ordinary report only.
    can anybody help me in this regard.
    thank you.

    Hello Akilandeswari
    Sorry to say that but your application is an example of a poor user interface (UI).
    The following sample report <b>ZUS_SDN_TWO_ALV_GRIDS_SO</b> shows you how to display all sales order for a given sales organisation. Double-clicking on a sales order fills the second ALV list with the partner functions. Obviously, it would be a piece of cake to display the statusinfo in another ALV list (-> Alv).
    *& Report  ZUS_SDN_TWO_ALV_GRIDS
    *& Screen '0100' contains no elements.
    *& ok_code -> assigned to GD_OKCODE
    *& Flow logic:
    *  PROCESS BEFORE OUTPUT.
    *    MODULE STATUS_0100.
    *  PROCESS AFTER INPUT.
    *    MODULE USER_COMMAND_0100.
    REPORT  zus_sdn_two_alv_grids.
    DATA:
      gd_okcode        TYPE ui_func,
      go_docking       TYPE REF TO cl_gui_docking_container,
      go_splitter      TYPE REF TO cl_gui_splitter_container,
      go_cell_top      TYPE REF TO cl_gui_container,
      go_cell_bottom   TYPE REF TO cl_gui_container,
      go_grid1         TYPE REF TO cl_gui_alv_grid,
      go_grid2         TYPE REF TO cl_gui_alv_grid,
      gs_layout        TYPE lvc_s_layo.
    DATA:
      gt_outtab        TYPE STANDARD TABLE OF vbak,
      gt_partner       TYPE STANDARD TABLE OF vbpavb.
    *       CLASS lcl_eventhandler DEFINITION
    CLASS lcl_eventhandler DEFINITION.
      PUBLIC SECTION.
        CLASS-METHODS:
          handle_double_click FOR EVENT double_click OF cl_gui_alv_grid
            IMPORTING
              e_row
              e_column
              es_row_no
              sender.
    ENDCLASS.                    "lcl_eventhandler DEFINITION
    *       CLASS lcl_eventhandler IMPLEMENTATION
    CLASS lcl_eventhandler IMPLEMENTATION.
      METHOD handle_double_click.
    *   define local data
        DATA:
          ls_outtab      LIKE LINE OF gt_outtab.
        CHECK ( sender = go_grid1 ).
        READ TABLE gt_outtab INTO ls_outtab INDEX e_row-index.
        CHECK ( ls_outtab-vbeln IS NOT INITIAL ).
        CALL METHOD go_grid1->set_current_cell_via_id
          EXPORTING
    *        IS_ROW_ID    =
    *        IS_COLUMN_ID =
            is_row_no    = es_row_no.
    *   Triggers PAI of the dynpro with the specified ok-code
        CALL METHOD cl_gui_cfw=>set_new_ok_code( 'DETAIL' ).
      ENDMETHOD.                    "handle_double_click
    ENDCLASS.                    "lcl_eventhandler IMPLEMENTATION
    PARAMETERS:
      p_vkorg    TYPE vkorg  DEFAULT '1000'.
    START-OF-SELECTION.
      SELECT        * FROM  vbak INTO TABLE gt_outtab
             WHERE  vkorg = p_vkorg.
    * Create docking container
      CREATE OBJECT go_docking
        EXPORTING
          parent                      = cl_gui_container=>screen0
          ratio                       = 90
        EXCEPTIONS
          OTHERS                      = 6.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * Create splitter container
      CREATE OBJECT go_splitter
        EXPORTING
          parent            = go_docking
          rows              = 2
          columns           = 1
    *      NO_AUTODEF_PROGID_DYNNR =
    *      NAME              =
        EXCEPTIONS
          cntl_error        = 1
          cntl_system_error = 2
          OTHERS            = 3.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * Get cell container
      CALL METHOD go_splitter->get_container
        EXPORTING
          row       = 1
          column    = 1
        RECEIVING
          container = go_cell_top.
      CALL METHOD go_splitter->get_container
        EXPORTING
          row       = 2
          column    = 1
        RECEIVING
          container = go_cell_bottom.
    * Create ALV grids
      CREATE OBJECT go_grid1
        EXPORTING
          i_parent          = go_cell_top
        EXCEPTIONS
          OTHERS            = 5.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * Set event handler
      SET HANDLER: lcl_eventhandler=>handle_double_click FOR go_grid1.
      CREATE OBJECT go_grid2
        EXPORTING
          i_parent          = go_cell_bottom
        EXCEPTIONS
          OTHERS            = 5.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * Display data
      gs_layout-grid_title = 'Sales Orders'.
      CALL METHOD go_grid1->set_table_for_first_display
        EXPORTING
          i_structure_name = 'VBAK'
          is_layout        = gs_layout
        CHANGING
          it_outtab        = gt_outtab
        EXCEPTIONS
          OTHERS           = 4.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      gs_layout-grid_title = 'Partner Functions'.
      CALL METHOD go_grid2->set_table_for_first_display
        EXPORTING
          i_structure_name = 'VBPA'
          is_layout        = gs_layout
        CHANGING
          it_outtab        = gt_partner  " empty !!!
        EXCEPTIONS
          OTHERS           = 4.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * Link the docking container to the target dynpro
      CALL METHOD go_docking->link
        EXPORTING
          repid                       = syst-repid
          dynnr                       = '0100'
    *      CONTAINER                   =
        EXCEPTIONS
          OTHERS                      = 4.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * NOTE: dynpro does not contain any elements
      CALL SCREEN '0100'.
    * Flow logic of dynpro (does not contain any dynpro elements):
    *PROCESS BEFORE OUTPUT.
    *  MODULE STATUS_0100.
    *PROCESS AFTER INPUT.
    *  MODULE USER_COMMAND_0100.
    END-OF-SELECTION.
    *&      Module  STATUS_0100  OUTPUT
    *       text
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'STATUS_0100'.  " contains push button "DETAIL"
    *  SET TITLEBAR 'xxx'.
    * Refresh display of detail ALV list
      CALL METHOD go_grid2->refresh_table_display
    *    EXPORTING
    *      IS_STABLE      =
    *      I_SOFT_REFRESH =
        EXCEPTIONS
          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.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    *       text
    MODULE user_command_0100 INPUT.
      CASE gd_okcode.
        WHEN 'BACK' OR
             'END'  OR
             'CANC'.
          SET SCREEN 0. LEAVE SCREEN.
    *   User has pushed button "Display Details"
        WHEN 'DETAIL'.
          PERFORM entry_show_details.
        WHEN OTHERS.
      ENDCASE.
      CLEAR: gd_okcode.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Form  ENTRY_SHOW_DETAILS
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM entry_show_details .
    * define local data
      DATA:
        ld_row      TYPE i,
        ld_title    TYPE lvc_title,
        ls_outtab   LIKE LINE OF gt_outtab,
        lt_sadrvb   TYPE STANDARD TABLE OF sadrvb.
      CALL METHOD go_grid1->get_current_cell
        IMPORTING
          e_row = ld_row.
      READ TABLE gt_outtab INTO ls_outtab INDEX ld_row.
      CHECK ( syst-subrc = 0 ).
      REFRESH: gt_partner.
      CALL FUNCTION 'SD_PARTNER_READ'
        EXPORTING
          f_vbeln                = ls_outtab-vbeln
    *     OBJECT                 = 'VBPA'
          no_master_adress       = 'X'
        TABLES
          i_xvbadr               = lt_sadrvb  " dummy, obligatory
          i_xvbpa                = gt_partner.
      CONCATENATE ls_outtab-vbeln 'Partner Functions' INTO ld_title
        SEPARATED BY ': '.
      go_grid2->set_gridtitle( ld_title ).
      CALL FUNCTION 'BAPI_SALESORDER_GETSTATUS'
        EXPORTING
          salesdocument       = ls_outtab-vbeln
    *   IMPORTING
    *     RETURN              =
    *    TABLES
    *     STATUSINFO          = gt_status
    ENDFORM.                    " ENTRY_SHOW_DETAILS
    Regards
      Uwe

  • Function Module for open Purchase Order & Sales Order?

    Hi, commonly I read the data from tables and calculate the open quantity for sales order and purchase order, but I want to know, are there any standard function modules for getting the list of open "purchase order" and "sales order" respectively?
    Thanks and Regards.

    hi Ren,
    u can check all these bapi's related to salesorder
    BAPI_SALESORDER_CHANGE Sales order: Change Sales Order
    BAPI_SALESORDER_CONFIRMDELVRY Sales Order: Confirmation of Delivery; Document Flow Update
    BAPI_SALESORDER_CREATEFROMDAT1 Sales order: Create Sales Order
    BAPI_SALESORDER_CREATEFROMDAT2 Sales order: Create Sales Order
    BAPI_SALESORDER_CREATEFROMDATA Create Sales Order, No More Maintenance
    BAPI_SALESORDER_GETLIST Sales order: List of all Orders for Customer
    BAPI_SALESORDER_GETSTATUS Sales Order: Display Status
    BAPI_SALESORDER_SIMULATE Sales Order: Simulate Sales Order
    May be this FM can help you
    MB_ADD_PURCHASE_ORDER_QUANTITY (Reading and adding open purchase order quantities)
    Regards,
    Naveen

  • Standard BAPI Names Requires

    Experts,
    Can you please tell me the 2 standarad BAPIS names available in R/3...
    1st.............................
    Input: Sales order no (req), date of order (optional)
    Output:
    1.     Status
    2.     Dispatch date
    3.     Why not dispatched yet?
    4.     Is material on DO?
    5.     Vehicle no, if dispatched
    6.     Expected delivery date
    2nd.......................
    Input: customer name or no
    Output: List of open sales orders for that customer
    Please help me
    Regards,
    Chintan.

    Hi Chintan,
    Use Tcode Bapi i.e. BAPI Explorer. In this Tcode, in the hierarchical view you will find:
    Sales and Distribution->Sales->Sales Order.
    When you got to Sales order you will find two function modules which you can use for your requirement.
    1. Method: GetList.
        Business Object: Sales Order.
        Description: List of all orders for Customers.
        Function Module: BAPI_SALESORDER_GETLIST.
    2. Method:GetStatus.
        Business Object: Sales Order.
        Description: Display Sales Order Status.
        Function Module: BAPI_SALESORDER_GETSTATUS.
    Hope this helpful .

  • Function module to retrieve the account number linked to an SD invoice item

    Hi all,
    I should retrieve the gl account number linked to a certain SD invoice item. The
    program starts from VBRK and VBRP data. Is there a function module which
    enables to get it starting from these header lines? I already used the function
    module: RV_INVOICE_ACCOUNT_DETERM ( release: 4.0 ), but in some cases it
    doesn't seem to function properly ( the export table TKOMV doesn't contain a
    value for the SAKN1 field ). For the invoices for which the function isn't able to
    retrieve the account number, the standard accounting analysis functionality returns
    the following message: account determination carried out via KOFI type. So I'm
    searching for a function module that's able to retrieve the account number in these
    cases also.
    Thanks in advance.
    Adriano.

    Dear Adriano,
    Try with Function Module 'SD_DETERMINE_ACCOUNT_INVOICE '.
    Additional Info:
    BAPIs related salesorder:
    BAPI_SALESORDER_CHANGE Sales order: Change Sales Order
    BAPI_SALESORDER_CONFIRMDELVRY Sales Order: Confirmation of Delivery; Document Flow Update
    BAPI_SALESORDER_CREATEFROMDAT1 Sales order: Create Sales Order
    BAPI_SALESORDER_CREATEFROMDAT2 Sales order: Create Sales Order
    BAPI_SALESORDER_CREATEFROMDATA Create Sales Order, No More Maintenance
    BAPI_SALESORDER_GETLIST Sales order: List of all Orders for Customer
    BAPI_SALESORDER_GETSTATUS Sales Order: Display Status
    BAPI_SALESORDER_SIMULATE Sales Order: Simulate Sales Order
    FM:
    MB_ADD_PURCHASE_ORDER_QUANTITY (Reading and adding open purchase order quantities)
    SD_SALES_ORDER_STATUS_WWW for complete details including the delivery information.
    Hope this will help.
    Regards,
    Naveen.

  • Purpose of bapi

    what is the purpose of bapi and how it wil work?pls giv me brief information

    <b>BAPI (Business Application Program Interface)</b>
    BAPI is a set of interfaces to Object- oriented programming methods that enable a programmer to integrate 3rd party software into the proprietary R/3 product from SAP.
    CL_HTTP_CLIENT --- By activating this class we can provide connectivity between R/3 and any other legacy system.
    JCO (Java), COM/DCOM (Microsoft) connectors are used.
    The adapter provides local transaction support for the BAPI. The following BAPI calls support local transactions
    BAPI_TRANSACTION_COMMIT
    BAPI_TRANSACTION_ROLLBACK
    <b>BAPI Creation</b>
    Define a Function Group -- SE37
    Write RFC-FM --  SE37
    Create an object --  SWO1
    Make the FM as an API method within the object.
    Transfer Request Release -- SE09
    <b>BAPI Types</b>
    GetList()
    GetDetail()
    Create()
    Change()
    Delete()
    Add<subobject> , Remote<subobject>
    Replicate() , SaveReplicate()
    <b>Some Standard BAPIs</b>
    Bapi_salesorder_change
    Bapi_salesorder_createfromdat1
    Bapi_salesorder_getlist
    Bapi_salesorder_getstatus
    Bapi_creditcard_check
    Bapi_bpcontact_change
    Bapi_billingdoc_confirm
    Bapi_po_create
    Award points if this was helpful
    Thanks and regards.

  • Reading R3 table in JSP Dyn Page...URGENT

    Hi All,
    I have created an JSP Dynpage Application after reading this thread:
    <a href="https://www.sdn.sap.com/irj/sdn/thread?messageID=3417619#3417619">https://www.sdn.sap.com/irj/sdn/thread?messageID=3417619#3417619</a>
    <b>My PortalApp.xml file is:</b>
    <?xml version="1.0" encoding="utf-8"?>
    <application>
      <application-config>
        <property name="PrivateSharingReference" value="com.sap.portal.htmlb"/>
      </application-config>
      <components>
        <component name="InteractiveList">
          <component-config>
            <property name="ClassName" value="com.abb.InteractiveList"/>
            <property name="ComponentType" value="jspnative"/>
            <property name="JSP" value="pagelet/InteractiveList.jsp"/>
          </component-config>
          <component-profile>
                <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
          </component-profile>
        </component>
      </components>
      <services/>
    </application>
    My InteractiveList.java file contains:
    package com.amit;
    import java.util.Vector;
    import com.sap.engine.lib.xml.signature.Data;
    import com.sap.mw.jco.IFunctionTemplate;
    import com.sap.mw.jco.JCO;
    import com.sapportals.htmlb.page.DynPage;
    import com.sapportals.htmlb.page.PageException;
    import com.sapportals.htmlb.table.DefaultTableViewModel;
    import com.sapportals.portal.htmlb.page.JSPDynPage;
    import com.sapportals.portal.htmlb.page.PageProcessorComponent;
    import com.sapportals.portal.prt.component.IPortalComponentProfile;
    import com.sapportals.portal.prt.component.IPortalComponentRequest;
    public class InteractiveList extends PageProcessorComponent {
      public DynPage getPage(){
        return new InteractiveListDynPage();
      public static class InteractiveListDynPage extends JSPDynPage{
        private DataBean DataBean = null;
        public void doInitialization(){
          IPortalComponentProfile profile = ((IPortalComponentRequest)getRequest()).getComponentContext().getProfile();
          Object o = profile.getValue("DataBean");
          if(o==null || !(o instanceof DataBean)){
               System.out.println("In the IF ");
            DataBean = new DataBean();
            profile.putValue("DataBean",DataBean);
          } else {
              DataBean = (DataBean) o;
           String name = "Amit ";
           DataBean.setname(name);
          // fill your bean with data here...
           //InteractiveList interactive_list = new InteractiveList();     
        public void doProcessAfterInput() throws PageException {
        public void doProcessBeforeOutput() throws PageException {
          this.setJspName("InteractiveList.jsp");
      public DefaultTableViewModel getData(String USER, String PWD,String R3ip) {
                     com.sap.mw.jco.IRepository repository;
                     JCO.Pool pool = JCO.getClientPoolManager().getPool("R3");
                     if (pool == null) {
                          //JCO.removeClientPool("R3");
                          JCO.addClientPool(
                               "R3",
                               10,
                               "120",
                               USER,
                               PWD,
                               "EN",
                               "138.223.4.106",
                               "00");
                     repository = JCO.createRepository("TTL", "R3");
                     JCO.Client client = null;
                     //               Get a function template from the repository
                     IFunctionTemplate ftemplate =
                          repository.getFunctionTemplate("BAPI_SALESORDER_GETSTATUS");
                     //           Create a function from the template
                     JCO.Function function = ftemplate.getFunction();
                                    client = JCO.getClient("R3");
                                    JCO.ParameterList input = function.getImportParameterList();
                     input.setValue("0053100700", "SALESDOCUMENT");
                                    client.execute(function);
                     JCO.Table sales_orders =
                          function.getTableParameterList().getTable("STATUSINFO");
                     Vector row = new Vector();
                     Vector tbl = new Vector();
                     Vector colNames = new Vector();
                     //     Loop over all rows
                     do {
                          //     Loop over all columns in the current row
                          for (JCO.FieldIterator e = sales_orders.fields();
                               e.hasMoreElements();
                               JCO.Field field = e.nextField();
                               row.add(field.getString());
                               //System.out.println(field.getName() + ":\t" + field.getString());
                          } //for
                          tbl.add(row);
                     } while (sales_orders.nextRow());
                     sales_orders = null;
                     sales_orders =
                          function.getTableParameterList().getTable("STATUSINFO");
                     sales_orders.nextRow();
                     for (JCO.FieldIterator e = sales_orders.fields();
                          e.hasMoreElements();
                          JCO.Field field = e.nextField();
                          colNames.add(field.getName().toString());
                     DefaultTableViewModel dtvModel =
                          new DefaultTableViewModel(tbl, colNames);
                     JCO.releaseClient(client);
                     return dtvModel;
    And my Bean Class contains following code:
    package com.amit;
    import java.io.Serializable;
    import com.sapportals.htmlb.table.DefaultTableViewModel;
    public class DataBean implements Serializable {
         public DefaultTableViewModel model;
         public String name;
         public DefaultTableViewModel getModel() {
              System.out.println("Hi There ");
              return model;
         public void setModel(DefaultTableViewModel model) {
              this.model = model;
         public String getname(){
              return name;
         public void setname(String name){
              this.name = name;
    When I try  to Run the par file I am getting the Static Text in TextView but Text from myBean.getname() is not coming.
    Can you tell me the reason. Is there any problem in the code.
    Thanks in Advance,
    Amit
    Message was edited by:
            Amit

    Double post http://forum.java.sun.com/thread.jspa?threadID=647550&tstart=0

  • Problem in BDC for VA01 transaction TEXTS tab(Upgrading from 4.5b to ECC6)

    Hi All,
    I am working in upgrade project from 4.5b version to ECC6 version.
    I am facing problem in TEXTS tab of VA01 transaction. In earlier version it is a table control containing of Language, Description & First line but, in ECC6 the screen is modified with texteditor, a list box for language key and a Text type at the left.
    Now my problem is how to record this in BDC and how to read the text in the texteditor?
    Thanks in Advance,
    Ravi Kiran.

    Hi Seshagiri,
    In this case i would suggest the use of BAPI if there's no compulsion to use BDC.
    BAPI_SALESORDER_CHANGE                     Sales order: Change Sales Order
    BAPI_SALESORDER_CONFIRMDELVRY
    BAPI_SALESORDER_CREATEFROMDAT1    Sales order: Create Sales Order
    BAPI_SALESORDER_CREATEFROMDAT2    Sales order: Create Sales Order
    BAPI_SALESORDER_CREATEFROMDATA    Create Sales Order, No More
    BAPI_SALESORDER_GETLIST        Sales order: List of all Orders for Customer
    BAPI_SALESORDER_GETSTATUS      Sales Order: Display Status
    BAPI_SALESORDER_SIMULATE       Sales Order: Simulate Sales Order
    try using these for creation or change of orders instead of bdcs.
    hope this helps and revert for more clarifications if any.
    <b>Always reward points to useful suggestions.</b>
    regards,
    Vikas

  • Creating sales order using web dynpro JAVA

    Hello everyone,
    i am new to web dynpro. Can any one tell me how to creating sales order by web dynpro JAVA using BAPI.
    Thanks.
    Vinita Sharma

    Hi...
    you can use Adaptive RFC methodology in web dynpro java to work with BAPIs..... these are standard bapi's provided
    Here are required Bapis... select which one you want....
    BAPISDORDER_GETDETAILEDLIST Sales Order: List of All Order Data
    BAPI_ORDER_CHANGE_STATUS_GET Change status for order
    BAPI_SALESDOCU_CREATEFROMDATA Creating a Sales Document
    BAPI_SALESORDER_CHANGE Sales Order: Change Sales Order
    BAPI_SALESORDER_CREATEFROMDAT1 Sales Order: Create Sales Order
    BAPI_SALESORDER_CREATEFROMDAT2 Sales Order: Create Sales Order
    BAPI_SALESORDER_CREATEFROMDATA Create sales order, no more maintenance
    BAPI_SALESORDER_GETLIST Sales order: List of all orders for customer
    BAPI_SALESORDER_GETSTATUS Sales order: Display status
    BAPI_SALESORDER_SIMULATE Sales Order: Simulate Sales Order
    check this thread SALES ORDER creation using BAPI
    sample java program which will call SAP bapi function sales order create
    PradeeP

Maybe you are looking for

  • Why won't my computer recognize my iphone 5?

    I have an iphone 5 that in the past has had no trouble connecting to my windows computer. Recentlly though, it is syncing my pictures and music just fine though wifi, but when I try to plug it in through the USB port, my computer nor itunes recognize

  • JMSCorrelationID

    Hi, I have created communication channel called CLIX_JMSQueue_Sync_In with a JMSCorrelationID "XI-Message- ID". So, the existing mapping convert idoc to xml and the JMS-CorrelationID should also exist in the xml-file. How can I get access to JMSCorre

  • Application name for SDA Deployment(Custom Adapter)

    hi Experts, I am trying to deploy an SDA file using SDM. I had created an EAR project using NWDS and then converted this into an SDA file using CECLT. Now while deploying this file using SDM, it is asking for application name and vendor name. Vendor

  • BEx analyzer - report execution error

    Hi all, while running on BEx Analyzer we encountered an error which gives communication error with the Bw server failed due to RSR_NET_RESULTSET_GET_S error. anyone has an idea to resolve this issue? Thanks in advance.

  • Multiple file associations

    I would like to open NEFs in either Photoshop or Nikon Capture NX2 (depending on the picture). I would like to be able to have Photoshop as my default application, so that if I double-click on the thumbnail, the picture will open in Photoshop. But I