"bapi dms error"

import java.io.File;
import java.io.FileOutputStream;
import java.util.Properties;
import com.sap.conn.jco.AbapException;
import com.sap.conn.jco.JCo;
import com.sap.conn.jco.JCoContext;
import com.sap.conn.jco.JCoDestination;
import com.sap.conn.jco.JCoDestinationManager;
import com.sap.conn.jco.JCoFunction;
import com.sap.conn.jco.JCoFunctionTemplate;
import com.sap.conn.jco.JCoRepository;
import com.sap.conn.jco.JCoStructure;
import com.sap.conn.jco.JCoTable;
import com.sap.conn.jco.ext.DestinationDataProvider;
public class Example2
     static void createDataFile(String name, String suffix, Properties properties)
        File cfg = new File(name"."suffix);
        if(!cfg.exists())
            try
                FileOutputStream fos = new FileOutputStream(cfg, false);
                properties.store(fos, "for tests only !");
                fos.close();
            catch (Exception e)
                throw new RuntimeException("Unable to create the destination file " + cfg.getName(), e);
    public static void main(String[] args) throws Exception
           String ABAP_AS1 = "sapdev_ARD_01";
           //String no,DocType,DocNo,DocVersion,DocPart;
         Properties connectProperties = new Properties(); 
        connectProperties.setProperty(DestinationDataProvider.JCO_CLIENT, "");
        connectProperties.setProperty(DestinationDataProvider.JCO_USER,   "");
        connectProperties.setProperty(DestinationDataProvider.JCO_PASSWD, "");
        connectProperties.setProperty(DestinationDataProvider.JCO_LANG,   "en");
        connectProperties.setProperty(DestinationDataProvider.JCO_ASHOST, ");
        connectProperties.setProperty(DestinationDataProvider.JCO_SYSNR,  "01");
        connectProperties.setProperty(DestinationDataProvider.JCO_TRACE, "01");
        //  connectProperties.setProperty(DestinationDataProvider.JCO_USE_SAPGUI,  "1");
        createDataFile(ABAP_AS1, "jcoDestination", connectProperties);
        System.out.println("ABAP_AS destination is ok  1");
     //    com.sap.conn.jco.ext.Environment.registerDestinationDataProvider(myProvider);
        System.out.println("ABAP_AS destination is ok  3");
        JCoDestination destination = JCoDestinationManager.getDestination(ABAP_AS1);
        System.out.println("Attributes:");
        System.out.println(destination.getAttributes());
        com.sap.conn.jco.JCoRepository mRepository=destination.getRepository();
    System.out.println(mRepository);
                      try
                              // Get a function template from the repository
                       JCoFunctionTemplate     functiontmp = mRepository.getFunctionTemplate("BAPI_DOCUMENT_CHECKOUTVIEW2");
                      // System.out.println("ftemplate=========>"+functiontmp);
                              // if the function definition was found in backend system
                              if (functiontmp != null)
                                   System.out.println("in if condition   0"  );
                                   JCoFunction function=functiontmp.getFunction();
                                System.out.println("in if condition new"+function);
                                   //JCoParameterList input = function.getImportParameterList();
                                   System.out.println("in if condition  2 ");
                                   //   input.setValue("GETSTRUCTURE","1");
                                   System.out.println("in if condition   6 "  );
                          // System.out.println("input"+input);
                                   //File path=new File("/root/Desktop/backup");
                                   function.getImportParameterList().setValue("DOCUMENTTYPE","SPR");
                                   function.getImportParameterList().setValue("DOCUMENTNUMBER","0000000000000010000000453");
                                   function.getImportParameterList().setValue("DOCUMENTPART","000");
                                   function.getImportParameterList().setValue("DOCUMENTVERSION","00");
                                   //   input.setValue("GETSTRUCTURE","1");
                                   System.out.println("in if condition   6 "  );
                          // System.out.println("input"+input);   /root/Desktop/backup
                              //     boolean b=new File("/root/Desktop/backup/Files").mkdir();
                                   //System.out.println(b+"   b value");
                                   function.getImportParameterList().setValue("ORIGINALPATH","
root
Desktop
                                   System.out.println(function+"function");
                              //JCo.setMiddlewareProperty("JCo.middleware.allow_start_of_programs", "ftp;sapftp;sapftpa;sapkprotp;http;saphttp;saphttpa");          
                                   //JCo.setMiddlewareProperty("jco.middleware.allow_start_of_programs","sapftp;saphttp");
                                   //JCo.setMiddlewareProperty("jrfc.trace", "1");
                                   JCo.setMiddlewareProperty("jco.middleware.allow_start_of_programs", "ftp;sapftp;sapftpa;sapkprotp;http;saphttp;saphttpa");          
                                 //  JCo.setMiddlewareProperty("jco.middleware.allow_start_of_programs","sapftp");
                                   connectProperties.setProperty(DestinationDataProvider.JCO_USE_SAPGUI,  "2");
                                    destination = JCoDestinationManager.getDestination(ABAP_AS1); 
                                   JCoContext.begin(destination);
                                  System.out.println("123");
                                  try
                                      function.execute(destination);
                                  catch(AbapException e)  
                                      System.out.println(e.toString());
                                      return; 
                                   JCoTable table=function.getTableParameterList().getTable("DOCUMENTFILES");
                                   System.out.print("dms_docs in bapi1=============>"+table);     
                                   System.out.println("tdetails.getNumRows()"+table.getNumRows());  
                                   JCoContext.end(destination);
                      catch(Exception e)
                           System.out.println(e);
                           e.printStackTrace();
        System.out.println("ABAP_AS destination is ok  4");
       // JCoDestination ABAP_AS = JCoDestinationManager.getDestination("ARAsoft");
        System.out.println("ABAP_AS destination is ok  5");
        System.out.println("ABAP_AS destination is ok  6");
Dear All,
i am not downloading files  ,refer the above code
and i am running this application on linux server using sapjco3
Edited by: Sudarshan Gaikwad on Aug 11, 2010 1:42 PM

We are currently working on one interface to JAVA in that scenario,
We are using JAVA 1.5 on Linux Advance server and using SAP bapi BAPI_DOCUMENT_CHECKOUTVIEW2 we are fetching  the D M S documents from D M S Server.  B API is exesuted successfully and returns the values and that values are nothing but Document name, but we are unable to download these values (Documents name) in Linux OS due to wrong FTP syntax, because same thing if we are run same thing on windows OS we are able to download Documents.
So please give me the syntax for LINUX OS For FTP.
We are written the code for same is as follows
J Co. setMiddlewareProperty("jco.middleware.allow_start_of_programs", "ftp;sapftp;sapftpa;sapkprotp;http;saphttp;saphttpa");          
If above syntax is wrong then send me the correct syntax.
Thanks
Sudarshan Gaikwad

Similar Messages

  • DMS Error in oracle retail warehouse management

    hi team,
    i getting DMS Error in oracle warehouse management.can any one provide me solution for this regarding.
    regards
    prabhat

    It is hard to say what the issue is without knowing all the details, but I would start looking at the following:
    $ORACLE_HOME/forms/server/formsweb.cfg and in particular the FORMS_PATH variable setting. That's what stumped me in the beginning.

  • DMS Error !!

    Hello Friends,
    I am working with some forms in 10g. for some forms during execution I am getting this error "DMS Error. Contact your Database Administrator". What should I do to rectify this problem?
    Any kind of help will be highly appreciated.
    Thanks,
    Pragati.

    the migration path is 4.5 - 6i - 10g
    I think, that Pragati has done this. If not, then there is one more possible cause of the actual problem. Think about the old PL/SQL - Version, which isn't converted.
    @Pragati: Do you have used the official migration path? Or do you have used third party tools, which help you migrating 4.5 to 10g in one step ? I know, that it gives such tools
    Gerd

  • SAP Easy DMS Error in Searching a Document.

    Hello Guru,
    A user can log in in SAP Easy DMS, but when doing the search on it he gots error pop-up message "The parameters is incorrect" how can we solve this he cannot search any document in his easy DMS.

    Hi,
    Refer below mentioned links to properly use search functionality in Easy DMS
    https://help.sap.com/saphelp_edm71/helpdata/en/48/db51333aa369cae10000000a42189b/content.htm
    https://help.sap.com/saphelp_edm71/helpdata/en/48/d8f373e5975430e10000000a42189b/content.htm
    Regards,
    Deepak Kori

  • BAPI Runtime Error DBIF_RSQL_INVALID_REQUEST with module "KONV_BEARBEITEN"

    Hi Experts
    I am trying to create a sales order using BAPI FM BAPI_SALESORDER_CREATEFROMDAT1. After executing the program it shows in output screen that the sales order created and also displays the newly created sales order number. But when I want to check the order from VA03 it shows Express document "Update was terminated" received by author AAA, where AAA is login name.
    I also analysis the sort dump for which the update process was terminated. I give the error details
    Runtime Errors         DBIF_RSQL_INVALID_REQUES
    Error analysis
        An invalid request was made to the SAP database interface in a statement
         in which the table "KONV " was accessed.
    Below are the module name and report from where the error is coming.
    Function Module name  RV_SALES_DOCUMENT_ADD
    Program Name  SAPLV45U
    Include  LV45UF0K
    Row  26
    Source code from Rruntime Error
      Line  SourceCde
    1 *****************************************************************
        2 *  Unterroutinen RV-Auftragsabwicklung alphabetisch sortiert:
        3 *  ----------------------------------------------------------
        4 *  Buchstabe K:
        5 *
        6 *****************************************************************
        7
        8 *----------------------------------------------------------------
        9 *       FORM KONV_BEARBEITEN
       10 *----------------------------------------------------------------
       11 FORM KONV_BEARBEITEN.
       12
       13   CHECK: FKONV_GEAENDERT NE SPACE OR
       14          VORGANG = CHARH.
       15
       16   IF VORGANG NE 'H'.
       17     DELETE FROM KONV WHERE KNUMV = VBAK-KNUMV.
       18 ENHANCEMENT-POINT KONV_BEARBEITEN_10 SPOTS ES_SAPLV45U.
       19   ENDIF.
       20
       21   LOOP AT FXKOMV.
       22     FXKOMV-MANDT = VBAK-MANDT.
       23     FXKOMV-KNUMV = VBAK-KNUMV.
       24     MODIFY FXKOMV.
       25   ENDLOOP.
    >>>>>   INSERT KONV FROM TABLE FXKOMV.
       27   IF SY-SUBRC NE 0.
       28     MESSAGE A100 WITH
       29   ENDIF.
       30
       31 ENHANCEMENT-POINT KONV
       32 ENDFORM.
       33 *eject
    Below is my source code.
    *& Report  Z_BAPI_SALESORDER
    REPORT  z_bapi_salesorder.
    * Sales document type
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text FOR FIELD p_auart.
    PARAMETERS: p_auart TYPE auart OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    * Sales organization
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text1 FOR FIELD p_vkorg.
    PARAMETERS: p_vkorg TYPE vkorg OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    * Distribution channel
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text2 FOR FIELD p_vtweg.
    PARAMETERS: p_vtweg TYPE vtweg OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    * Division.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text3 FOR FIELD p_spart.
    PARAMETERS: p_spart TYPE spart OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    SKIP 1.
    * Sold-to
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text4 FOR FIELD p_sold.
    PARAMETERS: p_sold  TYPE kunnr OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    * Ship-to
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text5 FOR FIELD p_ship.
    PARAMETERS: p_ship  TYPE kunnr.
    SELECTION-SCREEN END OF LINE.
    SKIP 1.
    * Material
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text6 FOR FIELD p_matnr.
    PARAMETERS: p_matnr TYPE matnr   OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    * Quantity.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text7 FOR FIELD p_menge.
    PARAMETERS: p_menge TYPE dzmengc  OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    * Plant
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(20) v_text9 FOR FIELD p_plant.
    PARAMETERS: p_plant TYPE werks_d OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    * Data declarations.
    DATA: v_vbeln            LIKE vbak-vbeln.
    DATA: header             LIKE bapisdhead.
    DATA: headerx            LIKE bapisdhead1x.
    DATA: item               LIKE bapiitemin  OCCURS 0 WITH HEADER LINE.
    DATA: itemx              LIKE bapisditemx OCCURS 0 WITH HEADER LINE.
    DATA: partner            LIKE bapipartnr  OCCURS 0 WITH HEADER LINE.
    DATA: return             LIKE bapireturn1    OCCURS 0 WITH HEADER LINE.
    DATA: lt_schedules_inx   TYPE STANDARD TABLE OF bapischdlx
                             WITH HEADER LINE.
    DATA: lt_schedules_in    TYPE STANDARD TABLE OF bapisdhedu
                             WITH HEADER LINE.
    * Initialization.
    INITIALIZATION.
      v_text   = 'Order type'.
      v_text1  = 'Sales Org'.
      v_text2  = 'Distribution channel'.
      v_text3  = 'Division'.
      v_text4  = 'Sold-to'.
      v_text5  = 'Ship-to'.
      v_text6  = 'Material'.
      v_text7  = 'Quantity'.
      v_text9  = 'Plant'.
    * Start-of-selection.
    START-OF-SELECTION.
    * Header data
    * Sales document type
      header-doc_type = p_auart.
      headerx-doc_type = 'X'.
    * Sales organization
      header-sales_org = p_vkorg.
      headerx-sales_org = 'X'.
    * Distribution channel
      header-distr_chan  = p_vtweg.
      headerx-distr_chan = 'X'.
    * Division
      header-division = p_spart.
      headerx-division = 'X'.
      headerx-updateflag = 'I'.
    * Partner data
    * Sold to
      partner-partn_role = 'AG'.
      partner-partn_numb = p_sold.
      APPEND partner.
    * Ship to
      partner-partn_role = 'WB'.
      partner-partn_numb = p_ship.
      APPEND partner.
    * ITEM DATA
      itemx-updateflag = 'I'.
    * Line item number.
      item-itm_number = '000010'.
      itemx-itm_number = 'X'.
    * Material
      item-material = p_matnr.
      itemx-material = 'X'.
    * Plant
      item-plant    = p_plant.
      itemx-plant   = 'X'.
    * Quantity
      item-target_qty = p_menge.
      itemx-target_qty = 'X'.
      APPEND item.
      APPEND itemx.
    *   Fill schedule lines
      lt_schedules_in-itm_number = '000010'.
      lt_schedules_in-sched_line = '0001'.
      lt_schedules_in-req_qty    = p_menge.
      APPEND lt_schedules_in.
    *   Fill schedule line flags
      lt_schedules_inx-itm_number  = '000010'.
      lt_schedules_inx-sched_line  = '0001'.
      lt_schedules_inx-updateflag  = 'X'.
      lt_schedules_inx-req_qty     = 'X'.
      APPEND lt_schedules_inx.
      CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT1'
        EXPORTING
          order_header_in           = header
    *     WITHOUT_COMMIT            = ' '
    *     CONVERT_PARVW_AUART       = ' '
       IMPORTING
         salesdocument              = v_vbeln
    *     SOLD_TO_PARTY             =
    *     SHIP_TO_PARTY             =
    *     BILLING_PARTY             =
    *     RETURN                    =
        TABLES
          order_items_in            = item
          order_partners            = partner
    *     ORDER_ITEMS_OUT           =
    *     ORDER_CFGS_REF            =
    *     ORDER_CFGS_INST           =
    *     ORDER_CFGS_PART_OF        =
    *     ORDER_CFGS_VALUE          =
    *     ORDER_CCARD               =
    *     ORDER_CFGS_BLOB           =
         order_schedule_ex          = lt_schedules_in
    * Check the return table.
      IF v_vbeln <> space.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
        WRITE: / 'Document ', v_vbeln, ' created'.
      ELSE.
        WRITE: / 'Error in creating document'.
      ENDIF.
    I am unable to trace the exact reason. Please help and thanks in advance.
    Edited by: Joy Banerjee on Oct 12, 2009 7:47 AM

    Hi Prashant,
    Set the profile parameter abap/buffersize value to maximum.Get the virtual memory increased.
    If it doesn't work, see in transaction db02 if there is sufficient tablespace.
    Let me knoe the status of tablespaces.
    Regards,
    Sabita

  • Material Master Upload using Bapi getting error "****** not a valid unit of

    Hi Gurus,
    i am uploading material master using BAPI Material_master_save_data , where the volume and Unit of Volume is Blank, Still i am getting error as "****** not a valid unit of volume ".kindly help me to resolve the issue.Many Thanks In advance.

    Jurgen,
    I could able to solve the issue for invalid unit Error ....Now i am getting **** unit of measure is not defined , pls check your entry or else i am getting alternate unit of mesure is same as base unit of measure .
    I have used below logic for Purchase Order Unit and Base Unit of measure .
          if wa_upload-unmsr EQ wa_upload-ord_uom .
            bapi_mara1-base_uom = wa_upload-unmsr.
            bapi_mara1-po_unit = wa_upload-ord_uom .
          elseif wa_upload-unmsr NE wa_upload-ord_uom.
            wa_upload-ord_uom = wa_upload-alt_uom.
            bapi_mara1-po_unit = wa_upload-ord_uom.
          endif.
    Many Thanks for your help.

  • BAPI - BAPI_ACC_DOCUMENT_POST  Error due to Currency table.

    Hi Guys ,
    I am facing an error while posting documents using BAPI_ACC_DOCUMENT_POST.  The error occurs is in the tables parameters "currencyamount" .I am appending Amt in document currency, Amt in Local currency, Amount in 2nd Currency and Amount in 3rd Currency using Currency type (CURR_TYP)  00,10,30 and 60 respectively for every line item. All these 4 currency fields might have different values.The error in the "return" parameter says "Balance in currencies".
    Can anyone suggest an appropriate way to pass all the above 4  currency fields to the same line item ?
    Thanks,
    Venkat.

    Hi VG,
    while using this bapi...the total amount or net amount should be zero.
    Thru Txn we assign posting key  ..and system autiomatically take the sign on the basiss of Posting key..but in this bapi we dont have posting key field....so we have to give the amount with the sign...and total of all the line items should be zero ...
    Thnx
    RK

  • DMS Error - Error occurred when I try to download document from storage.

    Hi, gurus
    I'm new to DMS and using 3rd party content server now but I faced error.
    let me explain my symtom.
    First, I created Content Rep. EL
    Document area: DMS
    storage type: HTTP content server
    Version: 0046
    (note that connection test is successful.)
    then, I created storage category , using content rep. EL
    Finally, I registered document to the content server I created, using T-CODE CV01N - Display
    but after that, i can not download the registered document from content server
    I just faced error message u2193
    File c:\temp\_IT300807.pdf could not be accessed
    However, when I select storage Cat. to DMS_C1_ST(Default DMS storage),
    I can download registered document
    I think I need to make some settings to use 3rd party content server.
    Can I know what setting is necessary to use 3rd party content server?
    if there are some documents, please give me some URL link. Thanks and regard
    Kwon

    Hi kori, I typed into CSADMIN and check my repository is running
    I'll give you detailed setting information
    ContentStorageHost: localhost
    ContentStorageName: SDB
    Storage: ContentStorage.dll
    Security: 1
    ContRepDescription: Content Repository using DMS
    driver: MaxDB
    DefaultDocProt: Blank
    Thanks and regard.

  • WEB DMS Error uploading file  / create DIR

    Hi SapGurus,
    I have a problem creating new documents using WEB DMS, i remember trying to do it some time ago, and i could manually create the documents through WEB-DMS Create option choosing the configured document type,
    but right now iam not able to upload any original file and create a NEW DIR, as it gives me an error message "an Error occurred while loading file" please suggest me what may be wrong with this now.
    Also can we maintain standard SAP Object links while creating the DIR through WEBDMS, as iam not able to find the SAP Object link Tab / field while creating the DIR In WEB DMS,
    (FYI, in the find documents we could find the document based on the SAP Object link Reference,) so i think there is an option to maintain SAP Object link details for the DIR getting created.
    Thanks and regards
    Priya S

    Hi Priya,
    please note that in WebDocuments only the existing object links are displayed. Therefore not all maintained objects are visible but only those where links exists.                                                                               
    There are certain selected data sections in WebDocuments that are shown in display mode or in change mode. The following sections can only be displayed and not changed
    - Data for Document key
    - Data for Object Links
    The following sections can be changed in WebDocuments
    - Document Data
    - Additional Data
    - Originals
    - Description
    Hence when a Document Info Record is created or changed, the object links data are not shown. It is shown only in search and display mode. This is the way system is designed. You can look at the application help for more information on the web documents. Also kindly note that WebDocuments is not the complete replica of SAP GUI CV01n, CV02n or CV03n. It has some limitations when compared to SAP GUI transactions. So as no new links could be created in WebDocuments not all available objects are displayed. 
    I hope this information could be useful regarding the object link behavior in WebDMS.
    Best regards,
    Christoph

  • Sales Order Inquiry bapi uplaod Error

    Hi All..
    when iam trying to upload SO inquiry sample data through bapi iam getting these Errors :
    Material 1423 is not defined for sales org.1000, distr.chan.12,          language DE
    Error in SALES_ITEM_IN 000000
    Sales document was not changed.
    but i defined 1423 material in sales org.1000, distr.chan.12.
    after givivng Conversion-exit for material also it is not executing.
    here is my abap code.
    *& Report ZSAMPLE
    REPORT zsample.
    DATA:lt_header LIKE bapisdhd1 OCCURS 0 WITH HEADER LINE,
    lt_inquiry_items_in LIKE bapisditm OCCURS 0 WITH HEADER LINE,
    lt_inquiry_items_inx LIKE bapisditmx OCCURS 0 WITH HEADER LINE,
    lt_header_x LIKE bapisdhd1x OCCURS 0 WITH HEADER LINE,
    lt_partners LIKE bapiparnr OCCURS 0 WITH HEADER LINE,
    lt_return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
    lt_header-doc_type = 'ZSJ1'.
    lt_header-sales_org = '1000'.
    lt_header-distr_chan = '12'.
    lt_header-division = '00'.
    lt_header-purch_date = '20081121'.
    lt_header-purch_no_c = '7654321'.
    APPEND lt_header.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
    input = lt_header-doc_type
    IMPORTING
    output = lt_header-doc_type.
    APPEND lt_header.
    lt_header_x-updateflag = 'U'.
    lt_header_x-doc_type = 'X'.
    lt_header_x-sales_org = 'X'.
    lt_header_x-distr_chan = 'X'.
    lt_header_x-division = 'X'.
    lt_header_x-purch_date = 'X'.
    lt_header_x-purch_no_c = 'X'.
    APPEND lt_header_x.
    *lt_inquiry_items_in-currency = 'USD'.
    *lt_inquiry_items_in-ITM_NUMBER = '0010'.
    *lt_inquiry_items_in-plant = '0001'.
    lt_inquiry_items_in-material = '000000000000001423'.
    lt_inquiry_items_in-itm_number = '000010'.
    *lt_inquiry_items_in-exchg_rate = '1000000'.
    APPEND lt_inquiry_items_in.
    lt_inquiry_items_inx-updateflag = 'U'.
    lt_inquiry_items_inx-ITM_NUMBER = 'X'.
    lt_inquiry_items_inx-PLANT = 'X'.
    lt_inquiry_items_inx-material = 'X'.
    lt_inquiry_items_inx-itm_number = 'X'.
    APPEND lt_inquiry_items_inx.
    lt_partners-partn_role = 'SH'.
    lt_partners-partn_numb = '0000000149'.
    APPEND lt_partners.
    CALL FUNCTION 'BAPI_INQUIRY_CREATEFROMDATA2'
    EXPORTING
    SALESDOCUMENTIN = ' '
    inquiry_header_in = lt_header
    inquiry_header_inx = lt_header_x
    SENDER =
    BINARY_RELATIONSHIPTYPE =
    INT_NUMBER_ASSIGNMENT =
    BEHAVE_WHEN_ERROR =
    LOGIC_SWITCH =
    TESTRUN =
    CONVERT = ' '
    IMPORTING
    SALESDOCUMENT =
    TABLES
    return = lt_return
    inquiry_items_in = lt_inquiry_items_in
    inquiry_items_inx = lt_inquiry_items_inx
    inquiry_partners = lt_partners
    INQUIRY_SCHEDULES_IN =
    INQUIRY_SCHEDULES_INX =
    INQUIRY_CONDITIONS_IN =
    INQUIRY_CONDITIONS_INX =
    INQUIRY_CFGS_REF =
    INQUIRY_CFGS_INST =
    INQUIRY_CFGS_PART_OF =
    INQUIRY_CFGS_VALUE =
    INQUIRY_CFGS_BLOB =
    INQUIRY_CFGS_VK =
    INQUIRY_CFGS_REFINST =
    INQUIRY_TEXT =
    INQUIRY_KEYS =
    EXTENSIONIN =
    PARTNERADDRESSES =
    READ TABLE lt_return WITH KEY type = 'E'.
    WRITE : /5 lt_return-type, 20 lt_return-id , 30 lt_return-number , 50 lt_return-message.
    IF sy-subrc NE 0.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    WAIT =
    IMPORTING
    RETURN =
    ENDIF.

    Hi Madhubabu,
    Specify an explicit commit after you had created the material.. And check in the Database tables whether
    the entries are there are not.
    Good luck
    Narin

  • Need  Solution for BAPI return error: E M7 021 Deficit of PU GR quantity

    Hi SAP Gurus,
    Our client got error while executing <b>BAPI_GOODSMVT_CREATE</b>. can you please guide me under <b>which scenario</b> this BAPI will throw this kind error ...your help appreciated.....
    regards
    dinesh.a

    hi reich,
    actually we are following the scenario called intial grn cancel in side of sap custom program where it will reverse the material docs which are created with 101 movement type...it should't do the 102 reversal.....
    regards
    dinesh

  • Regarding BAPI "BAPI_FUNCLOC_CHANGE" error

    Hi All,
    I have a requirement to update IFLOT table with new 3 custom fields which i have appened in the include CI_IFLOT.
    I have copied standard BAPI "BAPI_FUNCLOC_CHANGE" and created custom Function Module "Y_BAPI_FUNCLOC_CHANGE".
    Now when I activated the same, i got one error like "Type "ILOX_T_IFLOS" is unknown". I am not getting exactly why this error comes out, please tell me how to remove this error who have already worked on this.
    Thanks,
    Jay.

    hello,
    when you copied BAPI it did not copy global objects. Open BAPI via se37 choose attribute tab strip and double click on Program name SAPL( your BAPI's Function group name) you will find it on the right bottom corner and compare include in this program with the standard BAPI's program. Include missing data and you've got the solution.
    P.s. required structure is in top include-> type pool ILOX.
    best regards,
    dez_

  • BAP Log/Error Report in case of Background Job

    Hi Friends,
    I have to develop one program where I am creating purchase orders using BAPI. This Program would be scheduled in background
    hence the Error/log report can not be seen .I have been told to use SAP Application Log for getting the Error Report.
    How this can be achieved using SAP Application log functionality. Any Help would be appreciated.
    Thanks

    >
    TANGO18 wrote:
    > I have to develop one program where I am creating purchase orders using BAPI. This Program would be scheduled in
    > background hence the Error/log report can not be seen .
    Incorrect. How are you displaying your error / log report ?
    Even if you use simple WRITE statements to display the log, the details would be there in the corresponding spool generated.
    BR,
    Suhas

  • Dms : Error using SAP-SYSTEM Storage Category

    hi guys ,
    i have  some issue related to  checkin document . 
    while  i am checkin a document using storage category KPRO ,the document is getting stored but when i use SAP-SYSTEM the Document is not getting stored
    I have used the BAPI CVAPI_DOC_CHECKIN
    CALL FUNCTION 'CVAPI_DOC_CHECKIN'
           EXPORTING
                pf_dokar           = lv_doc_type
                pf_doknr           = lv_doc_num
                pf_dokvr           = lv_doc_ver
                pf_doktl           = lv_doc_part
                pf_content_provide = 'TBL'
           IMPORTING
                psx_message        = ls_message
           TABLES
                pt_files_x         = lt_files
                pt_content         = lt_drao.
    for checkin the document
    Please let me know ASAP
    Regards
    Parin

    Dear Parin,
    based on your description I'm quite sure that in the customizing of your used document type (transaction DC10) the flag
    'Use KPRO' is set. If this flag is maintained then the originals could only be stored in the content server storage category which is not SAP-SYSTEM.
    SAP-SYSTEM is a non-KPRO storage alternative and I would recommend you to use the KPRO storage concept in DMS.
    Best regards,
    Christoph

  • DMS errors

    We are migrating a system from NW to OES2 which includes 4 DMS libraries. 3
    are ok, but one is showing some issues.
    The library dates back to 1998 under GW5.1 on NW4.11 and has been through 4
    physical boxes and is currently GW8.0.1 on NW6.5sp8, so it has some history
    A GW search indicates the highest document number is 81,979, whilst the
    properties of the DMS folder structure shows 154,615 files in 256 folders !
    The libraries are currently stored OFF the PO, and prior to moving them
    under the PO, TID 10100328, we ran a GWcheck - Analyze/Fix Library with
    Verify Library and Verify document files checked.
    This threw up the following errors:
    Error 76 - Error accessing document content: Error Code = C081
    Problem 86 - Inaccessible wordlist blob: error Code = C081
    Uncorrectable conditions encountered:
    CODE DESCRIPTION COUNT
    76 Document content access errors..................... 206
    Correctable conditions encountered:
    CODE DESCRIPTION COUNT
    86 Inaccessible wordlists marked for regeneration..... 2106
    From previous experience I know that Problem 86 can normally be circumvented
    by selecting the doc and creating a New Version, however I cannot find an
    automated means of doing this, and don't really want to do it manually 2106
    times !
    We then ran a structural check and go the following results:
    CODE DESCRIPTION COUNT
    50 Orphaned Blob files (deleted)...................... 7
    Correctable conditions encountered:
    CODE DESCRIPTION COUNT
    39 Unrecognized or invalid files in mail directories.. 2083
    66 GWCheck log files in log directory................. 356
    91 Databases in Store Catalog but not on disk.......... 63
    93 Unused blob files (deleted)........................ 194
    Does anybody have any advice or guidance on how to clear these up?
    Many thanks
    Simon

    so, you would suggest I avoid running it at 10am on a work day? ;-)
    thanks for that, will give it a go.
    Simon
    >>> On 20 October 2010 at 17:50, in message
    <[email protected]>,
    Dave Parkes<[email protected]> wrote:
    > The well known <g> option tucked away in the middle of TID 10063853
    >
    > Within the reassign orphaned docs option, and I quote
    >
    > Note:
    > A hidden operation found in this option is to
    > regenerate wordlist blobs. This is performed by putting a *wl in the
    New
    > Author field. Caution should be used in causing a wordlist regeneration.
    It
    > forces a considerable amount of indexing to be performed. It also should
    not
    > be run if you have archived documents.
    >
    >
    > You sort of have to know that one is there, but it is not selective, it
    > does all the documents and hence triggers a full reindex
    >
    > Cheers Dave

Maybe you are looking for

  • How can i hide a div in jap page

    I want to hide a <div> on selection of a combobox.And on another selection of that combo i want to show that div.

  • How do i get back tabs after f/f is closed by a crash?

    After each of the last few F/F updates and after a few Windows updates, my open session was reset. When I look for system restore I cannot find the b****y thing. And this really p****s me off!! Since F/F has recently been "improved" (like hell it has

  • Using PAP in a VPN ?

    Is there any way of using PAP in a IPSec/L2TP VPN?

  • UCCX 8.0 with Oracle Packages

    Hi All, I'm implementing a UCCX 8.0 IVR application to be integrated with Oracle 11g database. I have a requirement to call some packages on the Oracle database to retrieve some values and integrate it with the IVR script. Is there a way to call Orac

  • AIA FP 2.4 Installation in Weblogic 9.2 MP3

    AIA FP installation fails in deployment & running of AIAValidationSystem. I am getting following error- weblogic.application.ModuleException: [HTTP:101216]Servlet: "AIAValidationSystemAPIServiceSoapHttpPort" failed to preload on startup in Web applic