Sales orders conversion from OR(standard) type to Directshipment orders

Hi Friends,
My requirement is like that..iam working on SD automation report it will copy standard orders(OR) and will create Direct shipment orders through bapi BAPI_SALES_ORDER_CREATEFROMDAT2.upto this its working fine....Once the OR type order has converted to Directship order ...the <b>Rejection for reason (VBAP-ABGRU)field in OR order</b> has to update some reason example factory drop shipment etc...
Please give some idea ...
Best Regards,
Srini
703-861-6521

Hi,
1. The structure BAPISDITM has field REASON_REJ to enter reason of rejection. Fill this field before passing data to BAPI.
2. First run the BAPI and create new sales order. Then chnage the field value by using BAPI_SALESORDER_CHANGE or BDC program.
Regards,
Prasanth

Similar Messages

  • Conversion from string "" to type 'Double' is not valid

    We're using BPC 7.5 MS and on patch level 111.02
    There's two front-end servers and one back-end.  we have about 100 users but concurrency is likely in the 50 range.
    We've been running extremely well for about 4 years but are now starting to run into problems.
    There are about 5-6 applications but none greater than 10 million records.  We optimize regularly.
    However over the past two months admin processes seem to take a lot longer.  Optimization now times out after about 1.25 hours and none used to take greater than 15 minutes.
    Today after processing dimensions we checked the application status and we were not able to check if it was available or not.  We got a pop up box saying
    conversion from string "" to type 'Double' is not valid
    I've processed dimensions and applications since and still this error persists.
    We're attempting a reboot to see if that helps but I've never seen this before and in combination with the slower admin processing I'm wondering if there's something drastic going to happen.
    Michael

    Hi Michael,
    for the poor performances you have to check the guides about performance on bpc if you have scheduled regurarly optimize during day and night (just verify that never factwb reach 50.000 and fac2 500.000 records) maybe you need to change some parameter on the server as MaxThreads.
    For the conversion string error on admin console see please this note 1803092 - Set application set status error
    Regards
         Roberto

  • Conversion from u0091Stringu0092 to type u0091Dateu0092

    Hi,
    I am fetching a date from DeliveryDate TextBox from Sales Order. I enter as 10/03/2007. As I need to fetch this value and store it in Production Order DueDate records through SDK Code.When I fetch this value from code,I get as 20070310. When I try to update my Production Order DueDate it gives me an Error Msgbox “Conversion from string “20070310” to type ‘Date’ is not valid.” Here is my code to update production order.
    Dim DelDt As String
    DelDt = MyForm.Items.Item("12").Specific.value
    Here DelDt shows 20070310
    Now I have created an object of ProductionOrder and try to add Records,
    sboProdOrder.DueDate = DelDt
    On the above line it gives me that messagebox.
    Can any one help me as to how can I convert this code in a working one or how to convert the string to date in VB.Net
    Thanks a lot
    Murtaza

    Hi Murtuza,
    Retrieving the value from a date-field through the value always returns the date as a string in the format yyyymmdd.
    the field DueDate is a field of type DateTime.Date. to enter the date in this field, you must convert the string to a date.
    The following line converts the date-string to a date.
    new DateTime.Date(left(DelDt,4), mid(DelDt,5,2), right(DelDt,2))
    Regards
    Ad

  • Restrict planned orders conversion according to procurement type

    Hello all,
    We would like to be able to limit the possibilities offered in MD04 for planned order conversion according to the procurement type defined for the material.
    For example for a material produced in-house (procurement type E), we would like have a button only for "Production order" or "Partial production order". Currently I have those two buttons, but also process order, partial process order and purchase requisition.
    I suppose somewhere in customizing we can change that, but I can't find where.
    Can anybody assist me?
    Thank you,

    Hi Jules,
    please have a look into Form CHECK_DELKZ_PODE in LM61RF78.
    This where standard determines which Buttons to exclude, depending on the mrp element.
    You can use the enhancement spot at the end to add functions you don't want to be available to table FCTAB via Perform FCTAB_APPEND.
    Unfortunately there is no customizing to do this.
    Uli

  • Material Return from 542 movement type without purchase order

    HI Expert
    I have a problem regaring material return from vendor through 542 mov type against purchase order.
    when i transfer material to vendor with mov type 541. and after grv if we return material from vendor against purchase order.
    system doesnot allow to return material against purchase order. it allows mov type 542 for returning material from venodr without pruchase order.
    Suppose we have 10 quality for a component to transfer vendor we take grv and issue 5 qty through 543 move type automatically. if we want to take return 5 remaining qty from vendor against purchase order .
    system doesnot allow to return component from vendor against purchase order.
    but allow  to return component from vendor without purchase order.
    vendor stocks becomes less but purchase order still open for open quantity.
    how we could control vendor's returing material with the reference of purchase order after grv.
    with regards
    sanjay agrawal

    HI,
    Are you creating return Po for subcontracting vendor with item category L.?
    we used movement type 541 to send material to vendor ,now you want movement type 542 in system means take back from vendor?
    I don't think so it will make work and make any sense
    why you are not adjust your component with subcontracting adjustment in sap mm
    check following link
    [http://help.sap.com/saphelp_470/helpdata/en/4d/2b908943ad11d189410000e829fbbd/content.htm]
    Regards
    Kailas Ugale

  • Notification data copy to Service orders created from sales order.

    Hi,
    In our business scenario, we are creating sales order from service notification & service order from sales order. Document flow will be Service Notification  -> Sales Order -> Service Order.
    Here user wants that Notification data to be copied to service order. This is possible when we create service order directly from notification. Buit in our case we are not creating service order directly from Notification, we are creating service order from sales order. in this case notifiationdata is not getting copied to service order.
    Our ABAPer's are also tried to find the exit or enhancement points, but not able to find any thing for this requirement.
    Pl. suggest, how to do it.
    Thank you in advance.

    The only way I have seen to do this kind of billing is using Resource Related Billing (RRB) and customizing of the Dynamic Item Processer Profile (DIP Profile)
    It is not exactly like a simple flow of Notification > Sales Order > Service order (with all of the problems of how to copy notification data through to Service order) but might be a possible solution for you ?
    [http://help.sap.com/saphelp_erp60_sp/helpdata/en/3c/abae15413911d1893d0000e8323c4f/frameset.htm]
    This link will take you to the main CS help but then drill down into Call Management > Billing > Resource Related Billing > Billing Scenarios.
    regards,
    Tony

  • Output type for production order

    Hi, when we save the production order, we wants to transfer the prod order header details in legacy system thru idocs. Trying to define output type for production orders in NACE t-code, could not find production order option there. Pls advise in this case how to define the output type for production order so that the header data will be taken by idoc and transfered to legacy. Pls advise.

    Hi,
    production orders don't have output types like SD orders.
    But they have status control and events. Look into the object type BUS2005 in transaction SWO1. There you find the events which are fired by SAP, eg. ProductionOrder.Released.
    Which Idoc type do you want to use?
    I think you have to programm your own method for the Idoc creation. Put it into a workflow task and assign it to the event.
    Regards
    Michael

  • Reduce Sales Order element from MRP using MIGO (Movement Types)

    Hi Folks,
    I was wondering if its possible to remove the Sales Order element from MRP through a movement type using transaction MIGO.
    Basically we don't want to use a delivery document to do this.
    Thanks in advance for your help.
    Regards,
    Gilberto Li

    to remove the Sales Order element from MRP through a movement type
    Sorry I am not sure whether I understood your requirement correctly.  You need to reduce the inventory by doing MIGO instead throgh PGI which means, the movement type will also differ.  Better if you can brief about your requirement, a suitable suggestion can be given.
    Incidentally, this is not the right forum to post.  You can post in the following forum
    [Forum: ERP - Sales and Distribution (SD) General |SAP ERP Sales and Distribution (SAP SD);
    thanks
    G. Lakshmipathi

  • Sales order migration from legacy system

    Hi,
    What are the strategies/precautions/steps to be followed for migrating sales orders or quotations from legacy system to SAP?
    Thanks

    Hi,
    Sample Code for Sales Order (VA01):
    Input File Layout:
    Sales Document Type, Sales Organisation, Distribution Channel, Division, Sold To Party, Ship To Party, Customer purchase order number, Customer purchase order date, Payment Terms(custom field), incoterms1, incoterms2, Order reason (reason for the business transaction), Material, Cumulative order quantity in sales units,.
    DATA: bdcdata LIKE bdcdata OCCURS 0 WITH HEADER LINE.
    DATA : w_auart(4) TYPE c,
    w_vkorg(4) TYPE c,
    w_vtweg(2) TYPE c,
    w_spart(2) TYPE c,
    w_kunnr(10) TYPE c,
    w_kunrg(10) TYPE c,
    w_bstkd(35) TYPE c,
    w_bstdk(10) TYPE c,
    w_kwmeng(18) TYPE c,
    w_zterm(4) TYPE c,
    w_inco1(3) TYPE c,
    w_inco2(28) TYPE c,
    w_augru(3) TYPE c.
    DATA : var1 TYPE string,
    var2 TYPE c VALUE '(',
    var3 TYPE c VALUE ')',
    num(2) TYPE c,
    flag(1) TYPE c.
    DATA : BEGIN OF it_order, " Internal table Structure
    auart(4) TYPE c, " Sales Order Type
    vkorg(4) TYPE c, " Sales Organization
    vtweg(2) TYPE c, " Distribution Channel
    spart(2) TYPE c, " Division
    kunnr(10) TYPE c, " Sold-to-Party
    kunrg(10) TYPE c, " Ship-to-Party
    bstkd(35) TYPE c, " Purchase Order No
    bstdk(10) TYPE c, " Purchase Order Date
    zterm(4) TYPE c, " Payment Terms
    inco1(3) TYPE c, " Inco Terms1
    inco2(20) TYPE c, " Inco Terms2
    augru(3) TYPE c, " Order Reason
    mabnr(18) TYPE c, " Material No
    kwmeng(18) TYPE c, " Quantity
    END OF it_order,
    itab LIKE STANDARD TABLE OF it_order WITH HEADER LINE.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETER filename LIKE rlgrap-filename.
    PARAMETER session LIKE apqi-groupid.
    SELECTION-SCREEN END OF BLOCK b1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR filename.
    Get the file path
    CALL FUNCTION 'WS_FILENAME_GET'
    EXPORTING
    def_filename = filename
    def_path = ' '
    mask = ',.,..'
    mode = 'O'
    title = 'Select File'
    IMPORTING
    filename = filename
    EXCEPTIONS
    selection_cancel = 1.
    CHECK sy-subrc = 0.
    START-OF-SELECTION.
    CALL FUNCTION 'WS_UPLOAD'
    EXPORTING
    codepage = ' '
    filename = filename
    filetype = 'ASC'
    headlen = ' '
    line_exit = ' '
    trunclen = ' '
    user_form = ' '
    user_prog = ' '
    dat_d_format = ' '
    IMPORTING
    FILELENGTH =
    TABLES
    data_tab = itab
    EXCEPTIONS
    conversion_error = 1
    file_open_error = 2
    file_read_error = 3
    invalid_type = 4
    no_batch = 5
    unknown_error = 6
    invalid_table_width = 7
    gui_refuse_filetransfer = 8
    customer_error = 9
    OTHERS = 10.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    PERFORM open_group.
    LOOP AT itab.
    CLEAR : w_auart,w_vkorg,w_vtweg,w_spart,w_kunnr,w_kunrg,
    w_bstkd,w_bstdk,w_zterm,w_inco1,w_inco2,w_augru.
    w_auart = itab-auart.
    w_vkorg = itab-vkorg.
    w_vtweg = itab-vtweg.
    w_spart = itab-spart.
    w_kunnr = itab-kunnr.
    w_kunrg = itab-kunrg.
    w_bstkd = itab-bstkd.
    w_bstdk = itab-bstdk.
    w_zterm = itab-zterm.
    w_inco1 = itab-inco1.
    w_inco2 = itab-inco2.
    w_augru = itab-augru.
    ON CHANGE OF itab-kunnr OR itab-kunrg OR itab-bstkd .
    flag = 0.
    num = 1.
    PERFORM bdc_dynpro USING 'SAPMV45A' '0101'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'VBAK-AUART'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '/00'.
    PERFORM bdc_field USING 'VBAK-AUART' " Order Type
    itab-auart.
    PERFORM bdc_field USING 'VBAK-VKORG' " Sales Organization
    itab-vkorg.
    PERFORM bdc_field USING 'VBAK-VTWEG' " Distribution Channel
    itab-vtweg.
    PERFORM bdc_field USING 'VBAK-SPART' " Division
    itab-spart.
    PERFORM bdc_dynpro USING 'SAPMV45A' '4001'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '/00'.
    PERFORM bdc_field USING 'VBKD-BSTKD' " PO Number
    itab-bstkd.
    PERFORM bdc_field USING 'VBKD-BSTDK' " PO Date
    itab-bstdk.
    PERFORM bdc_field USING 'KUAGV-KUNNR' " Sold to Party
    itab-kunnr.
    PERFORM bdc_field USING 'KUWEV-KUNNR' " Ship to Party
    itab-kunrg.
    PERFORM bdc_field USING 'VBKD-ZTERM' " Payment Terms
    itab-zterm.
    PERFORM bdc_field USING 'VBKD-INCO1' " Inco Terms1
    itab-inco1.
    PERFORM bdc_field USING 'VBKD-INCO2' " Inco Terms2
    itab-inco2.
    PERFORM bdc_field USING 'VBAK-AUGRU' " Order Reason
    itab-augru.
    ENDON.
    IF flag = 0.
    LOOP AT itab WHERE bstkd = itab-bstkd AND kunnr = itab-kunnr .
    var1 = 'RV45A-MABNR'.
    CONCATENATE var1 var2 num var3 INTO var1.
    PERFORM bdc_field USING var1
    itab-mabnr.
    var1 = 'RV45A-KWMENG'.
    CONCATENATE var1 var2 num var3 INTO var1.
    PERFORM bdc_field USING var1
    itab-kwmeng.
    PERFORM bdc_dynpro USING 'SAPMV45A' '4001'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '/00'.
    num = 2.
    ENDLOOP.
    ELSE.
    CONTINUE.
    ENDIF.
    flag = 1.
    PERFORM bdc_dynpro USING 'SAPMV45A' '4001'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=SICH'.
    PERFORM bdc_transaction USING 'VA01'.
    ENDLOOP.
    PERFORM close_group.
    WRITE : / 'Session',session, 'was Created'.
    FORM open_group.
    CALL FUNCTION 'BDC_OPEN_GROUP'
    EXPORTING
    client = sy-mandt
    group = session
    user = sy-uname
    keep = 'X'.
    ENDFORM.
    FORM close_group.
    CALL FUNCTION 'BDC_CLOSE_GROUP'.
    ENDFORM.
    FORM bdc_transaction USING tcode.
    CALL FUNCTION 'BDC_INSERT'
    EXPORTING
    tcode = tcode
    TABLES
    dynprotab = bdcdata.
    ENDFORM.
    FORM bdc_dynpro USING program dynpro.
    CLEAR bdcdata.
    bdcdata-program = program.
    bdcdata-dynpro = dynpro.
    bdcdata-dynbegin = 'X'.
    APPEND bdcdata.
    ENDFORM.
    FORM bdc_field USING fnam fval.
    IF fval <> ' '.
    CLEAR bdcdata.
    bdcdata-fnam = fnam.
    bdcdata-fval = fval.
    APPEND bdcdata.
    ENDIF.
    ENDFORM.
    Regards,
    Naveen.

  • Service order creation from sale order

    Hi Friends,
       Could you please tell me where is the setting for the automatic creation of service order from sale order.
        Iam using LEIS , TAD and CD as the sales documents and SM01 as service order document.
        Am I missing something?
        Please let me know.
        Regards,
        satish

    Hi Satish,
    The setting for creation of a service order from sales order can be found in the Requirement class configuration.
    To know how to link, check the procurement tab in the sales order, note down the requirement type associated to the line item. Requirement type is linked to requirement class. In requirement class you find the configuration.
    Standard SAP creates SM03 (refurbishment) type of service order from sales order.
    Reward points if useful.
    Regards
    Ananth

  • Getting purchase order number from sales order number

    Hi Experts,
    My requirement is to fetch the following values from a sales-order number:
    Purchase Order Number,
    Delivery Date
    Order Type(Source of Order EDI/EFAX/..)
    Ship To,
    Sold To.
    We are trying to fetch this data from the ECC system in our CRM system.We are exploring the possibilty of RFC calls to get the data from ECC system.
    Is there any standard FM present in ECC which gives the above information from the sales order number?
    Thanks in advance
    Regards
    Shilpi

    Hi,
    Check the FM BAPISDORDER_GETDETAILEDLIST
    It provides the whole data for a particular Sales order which you need to provide Sales order number in the table 'SALES_DOCUMENTS' in tables parameter.
    You have to provide the view what you need and in the import parameter 'I_BAPI_VIEW' like all the views that are in the tables parameter...
    HEADER, ITEM etc...
    The fields
    PO_METHOD
    PURCH_NO
    REQ_DATE_H
    SOLD_TO " will provide you the details you need in the table 'ORDER_HEADERS_OUT'
    SHIP_POINT in ORDER_ITEMS_OUT table provides the ship to
    Regards
    Sarves

  • Sales Order uplaod from JAVA to SAP R/3

    Hi all,
    My cousin is working on uploading Sales Order Document
    from java server to R/3.
    for that he is having a code from JCO jar.
    the below is the file from which one can upload his SO details from JAVA to R/3.
    But in this program he is  just able to upload one Item detail for one Sales document.
    but requirement is to upload 'n' item details for one Sales document.
    Here is the Java code.
    @author pega
    TODO To change the template for this generated type comment go to
    Window - Preferences - Java - Code Style - Code Templates
    Created on Jun 24, 2004
    To change the template for this generated file go to
    Window>Preferences>Java>Code Generation>Code and Comments
    package com.sap.satyam.salesorder;
    import java.sql.Timestamp;
    import java.util.Calendar;
    import com.sap.mw.jco.IFunctionTemplate;
    import com.sap.mw.jco.IRepository;
    import com.sap.mw.jco.JCO;
    public class SalesOrder {
         static final String SID = "R3";
         static final String errorID = "E";
         IRepository repository;
         //String orderNumber = orderCreation("M-01","3000","0002",3,"ST");
         int counter;
         public SalesOrder()
                   try {
                        // Add a connection pool to the specified system
                        JCO.addClientPool(SID,            // Alias for this pool
                                             10,            // Max. number of connections
                                             "800",           // SAP client
                                             "develop",  // userid
                                             "bslabap", // password
                                             "EN",         // language
                                             "172.18.33.20",    // host name
                                             "00");
                        // Create a new repository
                        repository = JCO.createRepository("MYRepository", SID);
                   catch (JCO.Exception ex) {
                        System.out.println("Caught an exception: \n" + ex);
         //     Retrieves and sales order Create
         public void createSalesOrder(String PO_NO, String MAT,String RQTY,String CUSTMAT, String SOLD_NAME, String SOLD_STREET,String SOLD_COUNTRY, String SOLD_POST_CODE,String SHIP_NAME, String SHIP_STREET,String SHIP_COUNTRY, String SHIP_POST_CODE)
              try {
                   // Get a function template from the repository
                   IFunctionTemplate ftemplate = repository.getFunctionTemplate("BAPI_SALESORDER_CREATEFROMDAT1");
                   JCO.MetaData so_metadata = new JCO.MetaData("BAPI_SALESORDER_CREATEFROMDAT1");
                   // Create a function from the template
                   JCO.Function function = new JCO.Function(ftemplate);
                   // Get a client from the pool
                   JCO.Client client = JCO.getClient(SID);
                   // Fill in input parameters
                   // Header
                   JCO.ParameterList input = function.getImportParameterList();
                   JCO.ParameterList tables = function.getTableParameterList();
                   JCO.Structure input_header = input.getStructure("ORDER_HEADER_IN");
                   // Item details
                   JCO.Table table_item = tables.getTable("ORDER_ITEMS_IN");
                   //JCO.Structure input_item = table_item.getStructure("ORDER_ITEMS_IN");
                   // Partner details
                   JCO.Table table_partner = tables.getTable("ORDER_PARTNERS");
                   // Populate the header details
                   input_header.setValue("ZAD5","DOC_TYPE"); // Document Type
                   input_header.setValue("3000","SALES_ORG"); // Sales Organization
                   input_header.setValue("10","DISTR_CHAN");  // Distribution Channel
                   input_header.setValue("00","DIVISION");  // Distribution Channel
                   input_header.setValue("20041212","REQ_DATE_H");// can be changed in yyyymmdd (Requested date)
                   input_header.setValue(PO_NO,"PURCH_NO_C");// can be changed ( Customer PO Number )
                   //Populate the item detalis
                   table_item.appendRow();
                   table_item.setRow(1);
                   table_item.setValue("000010","ITM_NUMBER");
                   table_item.setValue("AA01","PO_ITM_NO");// can be changed
                   table_item.setValue("IAD-SC3000","MATERIAL");
                   table_item.setValue(CUSTMAT,"CUST_MAT");// can be changed
                   table_item.setValue("20041212","REQ_DATE");// can be changed in yyyymmdd
                   table_item.setValue(RQTY,"REQ_QTY");// can be changed Qty * 1000
                   table_item.appendRow();
                   table_item.setRow(2);
                   table_item.setValue("000020","ITM_NUMBER");
                   table_item.setValue("AA01","PO_ITM_NO");// can be changed
                   table_item.setValue("IAD-SC3000","MATERIAL");
                   table_item.setValue(CUSTMAT,"CUST_MAT");// can be changed
                  table_item.setValue("20041212","REQ_DATE");// can be changed in yyyymmdd
                   table_item.setValue(RQTY,"REQ_QTY");// can be changed Qty * 1000
                   //Populate the Partner details
                   // Sold to Party
                   table_partner.appendRow();
                   table_partner.setRow(1);
                   table_partner.setValue("AG","PARTN_ROLE");
                   //table_partner.setValue("0000002007","PARTN_NUMB");
                   table_partner.setValue("0000100067","PARTN_NUMB");
                   table_partner.setValue(SOLD_NAME,"NAME");  // can be changed
                   table_partner.setValue(SOLD_STREET,"STREET"); // can be changed
                   table_partner.setValue(SOLD_COUNTRY,"COUNTRY");
                   table_partner.setValue(SOLD_POST_CODE,"POSTL_CODE"); // can be changed
                   // Ship to party
                  table_partner.appendRow();
                   table_partner.setRow(2);
                   table_partner.setValue("WE","PARTN_ROLE");
                   table_partner.setValue("0000100067","PARTN_NUMB");
                   table_partner.setValue(SHIP_NAME,"NAME");// can be changed
                   table_partner.setValue(SHIP_STREET,"STREET"); // can be changed
                   table_partner.setValue(SHIP_COUNTRY,"COUNTRY");
                   table_partner.setValue(SHIP_POST_CODE,"POSTL_CODE");// can be changed
                   // Call the remote system
                   client.execute(function);
                   // Print return message
                   JCO.Structure ret = function.getExportParameterList().getStructure("RETURN");
                   System.out.println("BAPI_SALES_ORDER_GETLIST RETURN: " + ret.getString("MESSAGE"));
                   // Get table containing the orders
                   //JCO.Table sales_orders = function.getTableParameterList().getTable("SALES_ORDERS");
                  JCO.Field sales_order = function.getExportParameterList().getField("SALESDOCUMENT");
                   // Print results
                   String so = sales_order.getString();
                   String message = ret.getString("MESSAGE");
                   String message_type = ret.getString("TYPE");
                   if  (message_type.equalsIgnoreCase("E"))  {
                        System.out.println("Error in Sales Order Creation:" + message);
                   else{
                        System.out.println("Sales Order " + so + " Created Succesfully");
                   // Release the client into the pool
                   JCO.releaseClient(client);
              catch (Exception ex) {
                   System.out.println("Caught an exception: \n" + ex);
         //     Retrieves and sales order Create
          public void listSalesOrders()
               try {
                    // Get a function template from the repository
                    IFunctionTemplate ftemplate = repository.getFunctionTemplate("BAPI_SALESORDER_GETLIST");
                    // Create a function from the template
                    JCO.Function function = new JCO.Function(ftemplate);
                    // Get a client from the pool
                    JCO.Client client = JCO.getClient(SID);
                    // Fill in input parameters
                    JCO.ParameterList input = function.getImportParameterList();
                    //input.setValue("0000002007", "CUSTOMER_NUMBER"   );
                    input.setValue(      "3000", "SALES_ORGANIZATION");
                    //input.setValue(         "0", "TRANSACTION_GROUP" );
                    //input.setValue("PO_NUMBER_JAVA01","PURCHASE_ORDER_NUMBER");
                    // Call the remote system
                    client.execute(function);
                    // Print return message
                    JCO.Structure ret = function.getExportParameterList().getStructure("RETURN");
                    System.out.println("BAPI_SALES_ORDER_GETLIST RETURN: " + ret.getString("MESSAGE"));
                    // Get table containing the orders
                    JCO.Table sales_orders = function.getTableParameterList().getTable("SALES_ORDERS");
                    // Print results
                    if (sales_orders.getNumRows() > 0) {
                         // Loop over all rows
                         do {
                             counter++;
                              System.out.println("--" + counter + "--
                              // Loop over all columns in the current row
                              for (JCO.FieldIterator e = sales_orders.fields(); e.hasMoreElements(); ) {
                                   JCO.Field field = e.nextField();
                                   System.out.println(field.getName() + ":\t" + field.getString());
                              }//for
                         } while(sales_orders.nextRow());
                    else {
                         System.out.println("No results found");
                    }//if
                    // Release the client into the pool
                    JCO.releaseClient(client);
               catch (Exception ex) {
                    System.out.println("Caught an exception: \n" + ex);
         public static void main(String[] argv) {
              SalesOrder so = new SalesOrder();
              so.createSalesOrder("PO_NUMBER_JAVA02", "","0000000020000","121-223-2332-1231", "SOFTWARE SYSTEME GMBH-WE", "STREET-SH","US", "53125","SOFTWARE SYSTEME GMBH-WE", "STREET-SH","US", "53125");
              //so.listSalesOrders();     
    >>>>Please if any of SDN users can help in resolving this issue. It will be very helpful to my cousin.

    Before:
    //Populate the item detalis
    table_item.appendRow();
    table_item.setRow(1);
    table_item.setValue("000010","ITM_NUMBER");
    table_item.setValue("AA01","PO_ITM_NO");// can be changed
    table_item.setValue("IAD-SC3000","MATERIAL");
    table_item.setValue(CUSTMAT,"CUST_MAT");// can be changed
    table_item.setValue("20041212","REQ_DATE");// can be changed in yyyymmdd
    table_item.setValue(RQTY,"REQ_QTY");// can be changed Qty * 1000
    table_item.appendRow();
    table_item.setRow(2);
    table_item.setValue("000020","ITM_NUMBER");
    table_item.setValue("AA01","PO_ITM_NO");// can be changed
    table_item.setValue("IAD-SC3000","MATERIAL");
    table_item.setValue(CUSTMAT,"CUST_MAT");// can be changed
    table_item.setValue("20041212","REQ_DATE");// can be changed in yyyymmdd
    table_item.setValue(RQTY,"REQ_QTY");// can be changed Qty * 1000
    Try to add:
    //Populate the item detalis
    table_item.appendRow();
    table_item.setRow(2);
    table_item.setValue("000020","ITM_NUMBER");
    table_item.setValue("AA01","PO_ITM_NO");// can be changed
    table_item.setValue("IAD-SC3000","MATERIAL");
    table_item.setValue(CUSTMAT,"CUST_MAT");// can be changed
    table_item.setValue("20041212","REQ_DATE");// can be changed in yyyymmdd
    table_item.setValue(RQTY,"REQ_QTY");// can be changed Qty * 1000
    table_item.appendRow();
    table_item.setRow(2);
    table_item.setValue("000020","ITM_NUMBER");
    table_item.setValue("AA01","PO_ITM_NO");// can be changed
    table_item.setValue("IAD-SC3000","MATERIAL");
    table_item.setValue(CUSTMAT,"CUST_MAT");// can be changed
    table_item.setValue("20041212","REQ_DATE");// can be changed in yyyymmdd
    table_item.setValue(RQTY,"REQ_QTY");// can be changed Qty * 1000
    Regards.

  • Sale order showing a discount condition type twice in conditions Tab

    Dear Experts,
    Sale order showing a discount condition type twice in conditions Tab.
    Could you resolve my issue?
    Thanks in advance.
    Regards,
    Ravi

    Hi,
        In the Sales order, go to Conditions and in the Pricing 'Analysis' , check for where the system is determining the two values of this discount condition. It may be possible that it is determining from two condition tables.
    Also in the access sequence of this condition type, please make sure that the 'exclusive' indicator is checked for the condition tables.
    Please check if it helps.
    Thanks,
    Saurabh

  • Hi All, We are in to Release 11.5.10.2.There is a specific requirement to Prevent users from creating Manual Sales Orders in oracle and yet users should be able to book the Sales Orders Imported from CRM system into Orcale.Please advise.

    Hi All, We are in to Release 11.5.10.2.There is a specific requirement to Prevent users from creating Manual Sales Orders in Oracle and  yet users should be able to book the Sales Orders Imported from CRM system into Orcale.Please advise.

    Thanks for your advise.
    However, I missed to mention that we have two set of users  One is for Finished Goods and another for Spares.
    Only Spares users need to be prevented from creating Direct/Manual Sales Orders in Oracle.
    As you suggested, if this will be done at Form level, that may Disallow FG users also to create Manula Sales Orders which should not be the case.
    Further, I tried to test one scenario through Processing Constraints but it did not work.
    Application
    OM
    Validation Type
    Entity
    Temp
    Short Name
    TBL
    Validation Semantics
    Created By
    Equal To
    User(Myself)
    Processing Cosntraint
    Application
    OM
    Entity
    Order Header
    Constraint
    Operation
    User Action
    Create
    Not Allowed
    Conditions
    Group
    Scope
    Validation Entity
    Record Set
    Validation Template
    101
    Any
    Order Header
    Order
    Above Created
    Please advise.

  • Custom fields mapping issue of sales order replication from R/3 to CRM

    Hello Experts,
    I have to replicate sales orders from R/3 to CRM system (Initial and Delta)
    The issue is I have custome fields in R/3 which are maintained in custom table(Z table) in R/3.
    We added those custom fields in CRM customer_i table to synchronise with R/3 data.
    To MAP R/3 custom fields to CRM custom fields, i have the following customization.
    1. Added the custom function module in the event CRMO_200 and moved all the custom fields into interal table  IT_OTHER_INFO.
    2. The intrnal table IT_OTHER_INFO with data is passed into CRM standard function modules.
    3. But in CRM the BADI 'CRM_DATAEXCHG_BADI' implementation does not have the input parameter of internal table TI_OTHER_INFO.
    All my custom data is in internal table TI_OTHER_INFO.
    Please suggest where can i map this data to CRM enhanced fields.
    Regards,
    Umashankar.

    Hello Vanessa,
    Thank you so much for your reply.
    I went through the Note (1053817). It is good. I understand that the custom fields should enhance in the BAPE_VBAP in R/3.
    My Scenario:
    Goal: Orders replication from R/3 to CRM along with Custom fields.
    In R/3, all the custom fields are maintained in Z table (Not VBAK or VBAP).
    All these custom fields are belongs to Item level.
    In CRM, The custom fields are maintained in CRMD_CUSTOMER_I table though AET.
    I need to MAP these custom fields to CRM while order replication from R/3 to CRM.
    Regards,
    Umashankar.

Maybe you are looking for

  • Error while creating Supplier Contact through API

    Hi, I am not able to create supplier contact through an API: ap_vendor_pub_pkg.create_vendor_contact The return status (x_return_status)from the API is 'U' and x_msg_data is 'FND'. Please help with your suggestions ! Thanks, Sambit

  • Mac Sleep Timer (through 'Energy Saver' in System Preferences) won't work

    Hello, I have a MacBook (13-inch, Mid 2009) running Mac OS X Snow Leopard 10.6.3, and it has been installed with the latest software updates possible. (The latest update is the 'Security Update 2010-003') Previously I was using Mac OS X Leopard 10.5

  • Problem with VO Extension (Urgent.......)

    Hi, I extended one VO which is not based on any VO. Is it mandatory to add the new VO to the Application module which the old VO is referencing? The problem is when I am wirting the where clause to the new VO, I am not getting any error but my VO has

  • Container crashes from time to time

    Hi there I'm running JDK 1.3.1, Tomcat 4.0.1, Borland JBuilder 6 latest update with fitting Borland Enterprise Server. The VisiBroker Smart Agent is running. So I start my container containing a few EJBs. The I start my WebApp, consuming the EJBs. I

  • Applications quitting unexpectedly

    I own a MacBook 13" and applications keep qutting on me unexpectedly, i.e., Safari, other web browsers, system preferences and most any application. Does anyone else have this problem or have a clue what might be causing it?