Parking & Releaseing a transaction by using T code F-38

Dear Friends,
I would like to know whether we should park and release a statistical entry of Bank Guarantee thru T Code F-38. The same user will create then superior will release it.
Thanks & regards,
Vinayak S Vaidya

Hi,
First of all..why would system need a Exchange gain/Loss Account..If your local currency is INR and you posted a debit and a credit document both in INR..then there is no question of a foreign exchange gain/loss account..
BUT, if you have posted the document in any currency other than INR, ie: your local currency...then the system would need a exchnage gain/loss account when you try to clear the debits and credits.. i am giving an example below to explain better..
You posted a debit of 100 USD @ 40 = Rs. 4000.00
You posted a Credit of 100 USD @ 42 = Rs. 4200.00
Now, if you clear this debit and credit then there is no difference in 100 USD, as the debit and credit is netting off.. but if you see INR there is a difference of Rs. 200.00 which system posts to Exchange gain/loss account..which we maintain in OB09.
Hope it is clear to you now..
Regards,
SAPFICO.

Similar Messages

  • Error "Balance in transaction currency" using T.code J1iex

    Hello all,
                When i am capturing an excise invoice using T.code J1iex, the excise invoice is getting captured, but when we are trying to post the vendor using the same T.code j1iex,it is giving an error"Balance in transaction currency". Please help me and try to solve my problem asap.

    Hai,
    1.Flag the check box for rounding duty on procurement in IMG - Logisitics general - Tax on goods & mvts - India - Basic settings - Company code settings.
    2. Manually round off the excise values to next value in J1IEX - Change mode - item level - excise values.

  • Transaction resources not released across program invocations using MVCC

    I'm evaluating Berkley DB XML v2.4.13 for use in a new software product and have encountered problems with multiversion concurrency control.
    I'm using the Java API and JRE 1.6.0_07. The platform is Windows XP Professional SP3.
    When I create a transaction with snapshot isolation enabled, execute some XQueries that read/update the contents of a document and then commit or abort it, the resources allocated to the transaction do not appear to get released. I've used EnvironmentConfig.setTxnMaxActive() to increase the number of active transactions allowed but this just allows me to run my program more times before it eventually hangs.
    When I set EnvironmentConfig.setTxnMaxActive() to a small number the program hangs before completing the first time I run it. When I set
    EnvironmentConfig.setTxnMaxActive() to a high value then I can run my program several times before it hangs. Note that the program runs to
    completion and exits cleanly. I used the task manager to verify that all processes started by the program are gone when it completes. So
    it appears that the resources allocated to a transaction are persisted in the database across program invocations. As a result the program
    eventually hangs after running it several times. The number of times it can be run before hanging is directly proportional to how many active
    transactions I've set with EnvironmentConfig.setTxnMaxActive(). It appears as if I'm not shutting down the environment cleanly but I've
    read the documentation several times and am following the examples exactly. I've committed every transaction and have closed the XmlContainer,
    XmlManager and the Environment.
    When I use read-uncommitted, read-committed or serializable transaction isolation everything works fine. I'm only seeing this problem when
    I use snapshot isolation. Am I doing something wrong or is this a known problem? If this is a known problem is there a work around?
    Here's a copy of the program source code. Thanks in advance for any help you can provide.
    package dbxml;
    import java.io.File;
    import com.sleepycat.dbxml.*;
    import com.sleepycat.db.*;
    public class txn
    public static void main(String args[])
    double partId = Double.parseDouble(args[0]);
    int partCnt = Integer.parseInt(args[1]);
    XmlTransaction txn = null;
    Environment myEnv = null;
    XmlManager myManager = null;
    XmlContainer parts = null;
    XmlQueryExpression qe;
    XmlResults results;
    XmlQueryContext context;
    String readQry = "collection('parts.dbxml')/part[@number=$partId]";
    String updQry = "replace value of node collection('parts.dbxml')/part[@number=$partId]/description with $desc";
    try
    EnvironmentConfig envConf = new EnvironmentConfig();
    // If the environment doesn't exist, create it.
    envConf.setAllowCreate(true);
    // Turn on the transactional subsystem.
    envConf.setTransactional(true);
    // Initialize the in-memory cache
    envConf.setInitializeCache(true);
    // Initialize the locking subsystem.
    envConf.setInitializeLocking(true);
    // Initialize the logging subsystem.
    envConf.setInitializeLogging(true);
    envConf.setLockDetectMode(LockDetectMode.MINWRITE);
    envConf.setLockTimeout(5000);
    envConf.setTxnMaxActive(200);
    envConf.setCacheMax(10000);
    envConf.setMaxLocks(10000);
    envConf.setMaxLockers(10000);
    envConf.setMaxLockObjects(10000);
    File envHome = new File("./dbxml/src/dbxml/dbhome");
    myEnv = new Environment(envHome, envConf);
    XmlManagerConfig managerConfig = new XmlManagerConfig();
    managerConfig.setAdoptEnvironment(true);
    myManager = new XmlManager(myEnv, managerConfig);
    XmlContainerConfig containerConf = new XmlContainerConfig();
    containerConf.setTransactional(true);
    containerConf.setAllowCreate(true);
    // Turn on container-level multiversion concurrency control
    containerConf.setMultiversion(true);
    parts = myManager.openContainer("parts.dbxml", containerConf);
    TransactionConfig txnConfig = new TransactionConfig();
    // set the transaction isolation-level
    txnConfig.setSnapshot(true);
    for (int i = 0; i < partCnt; i++, partId++)
    // start a transaction
    txn = myManager.createTransaction(null, txnConfig);
    context = myManager.createQueryContext();
    context.setVariableValue("partId", new XmlValue(partId));
    context.setVariableValue("desc", new XmlValue(System.currentTimeMillis()));
    qe = myManager.prepare(txn, readQry, context);
    results = qe.execute(txn, context);
    while (results.hasNext())
    String part = results.next().asString();
    System.out.println(part);
    results.delete();
    qe.delete();
    // Prepare (compile) the query
    qe = myManager.prepare(txn, updQry, context);
    results = qe.execute(txn, context);
    txn.commit();
    results.delete();
    qe.delete();
    txn.delete();
    txn = myManager.createTransaction(null, txnConfig);
    qe = myManager.prepare(txn, readQry, context);
    results = qe.execute(txn, context);
    while (results.hasNext())
    String part = results.next().asString();
    System.out.println(part);
    txn.commit();
    results.delete();
    context.delete();
    qe.delete();
    txn.delete();
    catch (Exception e)
    try
    if (txn != null)
    txn.abort();
    catch(XmlException xe)
    xe.printStackTrace();
    e.printStackTrace();
    finally
    try
    System.out.println("Shutting Down ...");
    if (parts != null)
    System.out.println("Closing Container");
    parts.close();
    if (myManager != null)
    System.out.println("Closing Manager");
    myManager.close();
    System.out.println("Shut Down Complete");
    catch (Exception xe)
    xe.printStackTrace();
    }

    From the documentation I linked for you:
    The environment should also be configured for sufficient transactions
    using [DB_ENV-&gt;set_tx_max|http://www.oracle.com/technology/documentation/berkeley-db/db/api_c/env_set_tx_max.html]. The maximum number of transactions
    needs to include all transactions executed concurrently by the
    application plus all cursors configured for snapshot isolation.
    Further, the transactions are retained until the last page they created
    is evicted from cache, so in the extreme case, an additional transaction
    may be needed for each page in the cache. Note that cache sizes under
    500MB are increased by 25%, so the calculation of number of pages needs
    to take this into account.As you can see, to calculate the maximum number of transactions you should configure for, you should use the following formula:
    number_of_txns = cache_size / page_size + number_of_concurrently_active_transactionsThis will give you a worst case figure - in practice you may find that a lower number will suffice.
    You'll also notice that transactions remain allocated "until the last page they created is evicted from the cache", so you should find that checkpointing will also reduce the number of transactions necessary at any one time.
    Using snapshot semantics only on read-only operations will give you the full value provided by MVCC. This means that the read-only (snapshot) transactions will take copies (snapshots) of the pages that are write-locked, but the transactions that write will wait on the write-lock. Using snapshot semantics this way will reduce deadlocks as intended - using snapshot semantics for write transactions just introduces [a new way to get a deadlock|http://www.oracle.com/technology/documentation/berkeley-db/db/api_c/txn_begin.html#DB_TXN_SNAPSHOT]:
    The error DB_LOCK_DEADLOCK will be returned from update operations if a snapshot transaction attempts to update data which was modified after the snapshot transaction read it.John

  • Need BAPI to update posting date for parked documents in transaction FBV2?

    Hi All,
    I am retrieving records from table VBKPF and I have to update the posting date for parked documents in transaction FBV2.
    I am doing it with BDC , working fine in foreground, but it is not workung fine in back ground.I want to do this with bapi.
    Can any one suggest me corrct BAPI?
    TYPES : BEGIN OF It_vbkpf,
             bukrs LIKE vbkpf-bukrs,            "Company Code
             belnr LIKE vbkpf-belnr,            "document number
             gjahr LIKE vbkpf-gjahr ,           "Fiscal year
             budat LIKE vbkpf-budat,            "Posting date
             bldat LIKE vbkpf-bldat,            "Document date
             blart LIKE vbkpf-blart,            "Document type
             xblnr LIKE vbkpf-xblnr,            "Reference
             tcode LIKE vbkpf-tcode,            "Transaction Code
             bktxt LIKE vbkpf-bktxt,            "Document header text
             usnam LIKE vbkpf-usnam,            "User Name
             xwffr LIKE vbkpf-xwffr,            "Release necessary
             xprfg LIKE vbkpf-xprfg,            "Document complete
             xfrge LIKE vbkpf-xfrge,            "Release takes place
            END  OF it_vbkpf.
    Thanks,
    Suresh.

    Hi ,
    Thanks for your response.
    PRELIMINARY_POSTING_UPDATE seems working good,But my requirement here , to update the posting date with last working day . how can i do this?
    thanks,
    Suresh.

  • Number of parked invoice call transaction

    Hi
    I use this code in my programme and i want to catch th number of parked invoice generated.
    invoice is succfully parked but wt_message is empty ( no line)
    Can you halp me.
    DATA opt type CTU_PARAMS.
    opt-NOBINPT = 'X'.
    opt-DISMODE = 'N'.
    opt-UPDMODE = 'A'.
        CALL TRANSACTION 'FB60' USING BDCDATA
                            OPTIONS  FROM opt
                             MESSAGES INTO WT_MESSTAB.
    best regard

    read the Internal table WT_MESSTAB with success message and show the message with number of success message as an message to the user..
    Raghav

  • Creating a long text using ABAP code.. fm SAVE_TEXT

    When you create an order via IW31 one of the options is to click on the text button and create a long text. I am basically trying to mimic this action from within my ABAP code.
    The text id details are as follows:
    Text Name       500000015000046  which is (5000000 + order number)
    Language        EN
    Text ID            KOPF         Order header text
    Text Object      AUFK       Order text
    If i manually create the text within the transaction i am then able to view and update it via function modules READ_TEXT and SAVE_TEXT. But if the text has not already been created READ_TEXT obviously returns nothing as it does not exist and SAVE_TEXT does not seem to created it!
    Anyone know how i would go about creating this text using ABAP code?
    Hope this make a bit of sense
    Thanks in advance
    Mart

    I have implemented the code as i think it should be. See below, can any see what is wrong. If i add init_text it makes no difference and adding the commit_text just makes it hang
    DATA: IT_TEXTS type standard table of TLINE,
           wa_texts like line of it_texts,
           wa_txtheader type THEAD.
    wa_txtheader-TDID     = 'KOPF'.
    wa_txtheader-TDSPRAS  = 'EN'.
    wa_txtheader-TDNAME   = '500000015000056'.
    wa_txtheader-TDOBJECT = 'AUFK'.
    wa_texts-tdformat = '*'.
    wa_texts-tdline = 'hello'.
    append wa_texts to it_texts.
    wa_texts-tdformat = '*'.
    wa_texts-tdline = 'hello'.
    append wa_texts to it_texts.
      wa_texts-tdformat = '*'.
    wa_texts-tdline = 'hello'.
    append wa_texts to it_texts.
    wa_texts-tdformat = '*'.
    wa_texts-tdline = 'hello'.
    append wa_texts to it_texts.
    wa_texts-tdformat = '*'.
    wa_texts-tdline = 'hello'.
    append wa_texts to it_texts.
      wa_texts-tdformat = '*'.
    wa_texts-tdline = 'hello'.
    append wa_texts to it_texts.
    CALL FUNCTION 'SAVE_TEXT'
      EXPORTING
        CLIENT                = SY-MANDT
        HEADER                = wa_txtheader
        INSERT                = 'X'
       SAVEMODE_DIRECT       = ' '
       OWNER_SPECIFIED       = 'X'
      LOCAL_CAT             = ' '
    IMPORTING
      FUNCTION              =
      NEWHEADER             =
      TABLES
        LINES                 = IT_TEXTS
    EXCEPTIONS
       ID                    = 1
       LANGUAGE              = 2
       NAME                  = 3
       OBJECT                = 4
       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.

  • Changes to sales order item not reflected if Call Transaction is used

    I m updating another Sales Order item quantity and reason for rejection programmatically from another sales order.
    The code is working fine and the quantity does get changed as well as the reason for rejection flag get set (if required). But if I go to the change log from the menu in VA02 for the order item which has been changed. It does not record the changes.
    I have tried using both BDC call transaction method as well as BAPI_SALESORDER_CHANGE in neither case the change log for the order which has been changed reflects the programmatically made changes?
    What m I doing wrong. Here is the code.
    IF v_update_order_flg = 'X'.
          REFRESH t_bdcdata.
          CLEAR s_bdcdata.
          REFRESH t_messtab.
          PERFORM bdc_dynpro USING 'SAPMV45A' '0102'.
          PERFORM bdc_field  USING 'VBAK-VBELN' <wa_r_rtb_posnrs>-zrtbvbeln.
          PERFORM bdc_field  USING 'BDC_OKCODE' '/00'.
          PERFORM bdc_dynpro USING 'SAPMV45A' '4001'.
       For Going to  specific Item Number
          LOOP AT t_schedule_lines.
            PERFORM bdc_field  USING 'BDC_OKCODE' '=POPO'.
            READ TABLE t_item_in WITH KEY itm_number = t_schedule_lines-itm_number.
            PERFORM bdc_dynpro USING 'SAPMV45A' '0251'.
            PERFORM bdc_field  USING 'RV45A-POSNR' t_schedule_lines-itm_number.
            PERFORM bdc_field  USING 'BDC_OKCODE' '=POSI'.
            PERFORM bdc_dynpro USING 'SAPMV45A' '4001'.
            v_ro_qty = t_schedule_lines-req_qty.
            CONDENSE v_ro_qty.
            PERFORM bdc_field  USING 'RV45A-KWMENG(01)' v_ro_qty.
            PERFORM bdc_field  USING 'VBAP-ABGRU(01)' t_item_in-reason_rej.
          ENDLOOP.
          PERFORM bdc_field  USING 'BDC_OKCODE' '=SICH'.
          v_call_transaction_flg = 'X'.
          EXPORT v_call_transaction_flg TO MEMORY ID 'call_transaction'.
          CALL TRANSACTION 'VA02'
                       USING t_bdcdata
                       UPDATE 'S'
                       MODE   'N'
                       MESSAGES INTO t_messtab.
          v_call_transaction_flg = space.
          FREE MEMORY ID 'call_transaction'.

    Hi Srikrisna,
    This is a typical problem with BDC for updating QUANTITY and CURRENCY fields.
    You need to create a character variable of the same length as your quantity field. Move your quantity value to the newly created Character variable.
    Now use this new char variable in the BDC.
    This correction should solve your problem.
    NOTE: BDC RECOGNIZES CHARACTER FIELDS ONLY.
    Regards,
    Prakash Pandey

  • How to create Transaction Variant for T code F-30

    Hi
    I want to create a Transaction variant for T code F-30, so that user can't change the currency field and put any value in rate. Currency should be always in USD.
    Any input will be heighly appriciated.
    Regards
    Shiv

    Hi,
    In that case you can use transaction SHD0 to create a transaction variant for F-30 with its screen variant for screen# 122. And you also want to creat a so called Variant Transaction Z-something for F-30 using the mentioned transaction variant. You restrict users to use that Z-something. For other unrestricted process, the system will still cal F-30. Here is the documentation:
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/67/232037ebf1cc09e10000009b38f889/content.htm
    Regards

  • Validation when posting a document using T. Code FB50 or F-02

    Dear Experts
    Please let me know on how to validate when posting a Cross Company Transaction using T. Codes FB50 or F-02.  The requirement is to restrict Branches (each Branch is a Company Code in SAP) to post any Cross Company documents by selecting HO Company Code in Line Item, system has to stop the User by giving Error Message.
    We can't control this using User level Authorizations because, here the Authorization is provided to the Users to post the Transactions using T. Codes FB50 and F-02.
    To restrict this, I created a Validation as below:
    Prerequisite:
    BKPF-TCODE = 'FB50' OR BKPF-TCODE = 'F-02' AND
    BKPF-BUKRS = 'Br. Company Code' AND
    BSEG-BUKRS = 'HO Company Code'
    Check:
    FALSE
    Message:
    You Can't post Cross Company Transactions using T.Code FB50 or F-02
    And I activated the above Validation in OB28 for HO and Branch Company Codes.  But the Validation is not working properly.  Can anybody help me on how to proceed further in this regard please.

    Hi,
    I haven't tried to use a transaction code for Validation purpose. Instead, I have used document type as prerequisite and then check:
    BKPF-BUKRS = 'Br. Company Code' AND
    BSEG-BUKRS = 'HO Company Code'
    If the condition is met, it displays an error (per the message in validation) while completing the line item details on posting a document.
    Please let me know if that helps. If not, I can try to replicate your scenario and let you know if there is anything missing.
    Thanks,
    Ashish

  • What are the transactions we use day to day in the bw before go live

    what are the transactions we use most in the bw before go live?
    Tcodes for backend objects like creating infocube and so on.
    Tcodes for front end objects like creating queries and so on.
    Thank you.
    York

    Hi Les,
    check previous posting
    Transaction Codes for BW Developers
    SAP BW n R/3 transactions.
    table TSTCT contains all the transaction codes
    RSA6 Maintain DataSources
    RSA7 BW Delta Queue Monitor
    RSA8 DataSource Repository
    RSA9 Transfer Application Components
    RSD1 Characteristic maintenance
    RSD2 Maintenance of key figures
    RSD3 Maintenance of units
    RSD4 Maintenance of time characteristics
    RSDBC DB connect
    RSDDV Maintaining Aggregates
    RSIMPCUR Load Exchange Rates from File
    RSISET Maintain InfoSets
    RSKC Maintaining the Permittd Extra Chars
    RSLGMP Maintain RSLOGSYSMAP
    RSMO Data Load Monitor Start
    RSMON BW Administrator Workbench
    RSOR BW Metadata Repository
    RSORBCT BI Business Content Transfer
    RSORMDR BW Metadata Repository
    RSPC Process Chain Maintenance
    RSPC1 Process Chain Display
    RSPCM Monitor daily process chains
    RSRCACHE OLAP: Cache Monitor
    RSRT Start of the report monitor
    RSRT1 Start of the Report Monitor
    RSRT2 Start of the Report Monitor
    RSRTRACE Set trace configuration
    RSRTRACETEST Trace tool configuration
    RSRV Analysis and Repair of BW Objects
    SE03 Transport Organizer Tools
    SE06 Set Up Transport Organizer
    SE07 CTS Status Display
    SE09 Transport Organizer
    SE10 Transport Organizer
    SE11 ABAP Dictionary
    SE24 Class Builder
    SE80 Object Navigator
    RSCUSTA Maintain BW Settings
    RSCUSTA2 ODS Settings
    RSCUSTV*
    RSSM Authorizations for Reporting
    SM04 User List
    SM12 Display and Delete Locks
    SM21 Online System Log Analysis
    SM37 Overview of job selection
    SM50 Work Process Overview
    SM51 List of SAP Systems
    SM58 Asynchronous RFC Error Log
    SM59 RFC Destinations (Display/Maintain)
    LISTCUBE List viewer for InfoCubes
    LISTSCHEMA Show InfoCube schema
    DB02 Tables and Indexes Monitor
    DB14 Display DBA Operation Logs
    DB16 Display DB Check Results
    DB20 Update DB Statistics
    r/3 (bw related)
    SBIW BIW in IMG for OLTP
    BD61 Activate Change Pointers - Generally
    BDLS Convert Logical System Names
    BF11 Application Areas
    RSA2 OLTP Metadata Repository
    RSA3 Extractor Checker
    RSA5 Install Business Content
    RSA6 Maintain DataSources
    RSA7 BW Delta Queue Monitor
    RSA8 DataSource Repository
    RSA9 Transfer Application Components
    RSO2 Oltp Metadata Repository
    RSO3 Set Up Deltas for Master Data
    LO setup table
    OLI1BW INVCO Stat. Setup: Material Movemts
    OLI2BW INVCO Stat. Setup: Stor. Loc. Stocks
    OLI3BW Reorg.PURCHIS BW Extract Structures
    OLI4BW Reorg. PPIS Extract Structures
    OLI7BW Reorg. of VIS Extr. Struct.: Order
    OLI8BW Reorg. VIS Extr. Str.: Delivery
    OLI9BW Reorg. VIS Extr. Str.: Invoices
    OLIABW Setup: BW agency business
    OLIFBW Reorg. Rep. Manuf. Extr. Structs
    OLIIBW Reorg. of PM Info System for BW
    OLIQBW QM Infosystem Reorganization for BW
    OLISBW Reorg. of CS Info System for BW
    OLIZBW INVCO Setup: Invoice Verification
    Check out AHP's reply specifically in the link:
    urgent
    Assign Points if Helpful *****
    Regards,
    Ravikanth

  • CIN: Items are not displayed while updating the RG1 Register using T Code:

    Hi Experts,
    Items are not displayed while updating the RG1 Register using T Code: J1I5.
    System is not showing any error message.
    Can any one explain to update the RG1 Register?
    Thanks
    Chandra

    Hi,
    dont go the table again and again . the table is updated at intial stage only for stock update but not when SAP is running.
    In day to day bussiness the flow is as follows:
    Production - MB31 - to Unres stock
    Sales - VL02n - PGI - to customer - i.e out of unres stock
    Every day u can run TC J1i5 once in a day as decided and update the register so all transactions which have happend in that day gets updated i.e both input and output.
    and this will happen every day.
    hence dont use table as it is only for intial data upload i.e just before golive.
    Hope i am clear.
    krishna

  • Can we Use T Code MIRA instead of MIRO for posting incoming invoice?

    Hi All,
    Can we Use T Code MIRA instead of MIRO for posting incoming invoice?
    While trying to post a incoming invoice using MIRO, I am getting a error "HKONT is EMPTY". But when using MIRA i could get the invoice posted.
    And in which situations we use MIRA?
    Thanks in Advance
    Gopi Krishna

    Hello
    MIRA is for Invoice Verification in the Background
    Purpose
    This process is suitable for the following transactions:
    Posting invoices with mass amounts of data for which no item check is required
    Posting invoices referring to transactions not yet entered in the system
    Entering Invoices for Verification in the Background (Without Item List)
    When verifying invoices in the background, you enter only a small set of document header data, such as the invoice amount, the currency and the tax information. You also allocate the incoming invoice to a purchasing document or a vendor. The system saves the data and allocation criteria you enter.
    At a later point, the system verifies the invoice in the background. It uses the allocation criteria you entered to determine the item list. It then calculates the net total from the item list.
    If the net total = gross amount invoiced - tax amount (+/- tolerance), the system posts the invoice in the background.
    If the net total ¹ gross amount invoiced - tax amount (+/- tolerance), the system does not post the invoice in the background. It saves the document header data and the items determined in the background; the saved document then has to be processed manually in Invoice Verification.
    With Invoice Verification in the background, the system does not check for any quantity or price differences at item level. Since you do not enter any actual invoice item data, the system uses the default data for comparison.
    Regards
    Gregory Mathews

  • Not able to checkout Files using Java Code and SAP BAPI  from DMSServer

    Hi
    Able to download / checkout the files using T-Code SE37 (BAPI_DOCUMENT_CHECKOUTVIEW2).
    But when same RFC is executed from Java, it alsways says -
    Message ::::::::Document LGL/10000000003/000/00 does not exist
    My inputs in Java Code is as below -
    import java.io.*;
    import java.util.*;
    import com.sap.mw.jco.*;
    //CREATED ON - 10-APRIL-2010.
    public class BapiDocCheckOutview {
         public static void main(String args[]){
              try{
                   if(mConnection!=null){
    JCO.Repository repository=new JCO.Repository("AraSoft",mConnection);
    JCO.setMiddlewareProperty("jco.middleware.allow_start_of_programs", "SAPFTPA");
    JCO.Function function=repository.getFunctionTemplate("BAPI_DOCUMENT_CHECKOUTVIEW2").getFunction();
                        //End of get function.
                     System.out.println("Before execution1");
                     if(function !=null){
                   JCO.Field DOCUMENTTYPE = function.getImportParameterList().getField("DOCUMENTTYPE");
                    DOCUMENTTYPE.setValue("LGL");
                    JCO.Field DOCUMENTNUMBER = function.getImportParameterList().getField("DOCUMENTNUMBER");
                    DOCUMENTNUMBER.setValue("10000000003");
                    JCO.Field DOCUMENTPART = function.getImportParameterList().getField("DOCUMENTPART");
                    DOCUMENTPART.setValue("000");
                    JCO.Field DOCUMENTVERSION = function.getImportParameterList().getField("DOCUMENTVERSION");
                    DOCUMENTVERSION.setValue("00");
                    JCO.Field GETSTRUCTURE = function.getImportParameterList().getField("GETSTRUCTURE");
                    GETSTRUCTURE.setValue("1");
    JCO.Field GETCOMPONENTS = function.getImportParameterList().getField("GETCOMPONENTS");
                 GETCOMPONENTS.setValue("X");
    JCO.Field ORIGINALPATH = function.getImportParameterList().getField("ORIGINALPATH");
                  ORIGINALPATH.setValue("C:
    TEMP
    DMS_");
    JCO.Field GETHEADER = function.getImportParameterList().getField("GETHEADER");
                          GETHEADER.setValue("X");
    JCO.Field PF_FTP_DEST=function.getImportParameterList().getField("PF_FTP_DEST");
              PF_FTP_DEST.setValue("SAPFTPA");
    //JCO.Field PF_HTTP_DEST=function.getImportParameterList().getField("PF_HTTP_DEST");
         //PF_HTTP_DEST.setValue("SAPHTTPA");
                          System.out.println("Here Setting Values Inside Structure ::DOCUMENTFILE");
    JCO.Structure DOCUMENTFILE=function.getImportParameterList().getStructure("DOCUMENTFILE");
    DOCUMENTFILE.setValue("1","ORIGINALTYPE");
    DOCUMENTFILE.setValue("WWI","WSAPPLICATION");
    DOCUMENTFILE.setValue("ZHCL_CS","STORAGECATEGORY");
    DOCUMENTFILE.setValue("E0DF7893E2BD5DF19C07001517B4A299","APPLICATION_ID");
    DOCUMENTFILE.setValue("E0DF7893E2BD5FF19C07001517B4A299","FILE_ID");
    DOCUMENTFILE.setValue("X","CHECKEDIN");
    DOCUMENTFILE.setValue("X","ACTIVE_VERSION");
                            //DOCUMENTFILE.setValue("LGL","DOCUMENTTYPE");
                            //DOCUMENTFILE.setValue("10000000003","DOCUMENTNUMBER");
                            //DOCUMENTFILE.setValue("000","DOCUMENTPART");
                            //DOCUMENTFILE.setValue("00","DOCUMENTVERSION");
                          //JCO.Field GETCOMPONENTS = function.getImportParameterList().getField("GETCOMPONENTS");
                          //GETCOMPONENTS.setValue("X");
                          //JCO.Field GETHEADER = function.getImportParameterList().getField("GETHEADER");
                          //GETHEADER.setValue("X");
                        mConnection.execute(function);
    If anyone have an Idea on what I have missed out...
    Please do advice me.
    Thanks
    Prashant

    Hi
    To update in the initial requirement, I have added (prefixed, zeroes) in Document No., doing that, now the  application is able to find the document, but not able to transfer the same from DMS Server to my local Machine, always giving the following error -
    Type ::::::::E
    Message ::::::::File d:\dms\z_IPI_PRASHANT01.doc cannot be created
    Please let me know, if some services needed to checked in SAP System or some more information to be provided in RFC.
    Thanks
    Prashant
    Dear Experts
    Any advice on this. Still not able to download the documents from DMS Server.
    I have also added few more code in my Java program -
         private int use_sapgui;
         public void setSapGui(int use_sapgui){
              use_sapgui = 2;
    PLease help !!
    Regards
    Edited by: Prashantroy on Sep 26, 2011 12:49 PM
    Hi,
    Further to my earlier Mail, while checking the Trace suing SM59 in ECC System I got  the following Error -
    Trace file opened at 20111010 142232 India Standard Time, SAP-REL 701,0,134
    ======> cannot open SAPGUI
    ABAP Programm: SAPLSYSE (Transaction: )
    User: IPI_PRASHANT (Client: 220)
    Destination: SAPFTP (handle: 3, , )
    SERVER> RFC Server Session (handle: 1, 43220900, {5D1DF3E0-ACBD-F11F-8EA0-00A0D1
    SERVER> Caller host:
    SERVER> Caller transaction code:  (Caller Program: java)
    SERVER> Called function module: RFC_START_PROGRAM
    Error RFCIO_ERROR_SYSERROR in abrfcpic.c : 1742
    FUNCTION: 'exec_sapgui'
    cannot open SAPGUI
    PROG =sapftp erpdev sapgw00 43232164 IDX=4
    Can someone help me in getting this sorted out.
    Thanks N Regards
    Edited by: Prashantroy on Oct 10, 2011 2:32 PM

  • I am using a code based typesetting program (not WYSISYG) that outputs PDFs. I am producing 100 plus pages that have multiple graphics on each page. I need to know how to format a PDF command that I can incllude in my programming that will tag my graphics

    I am using a code based typesetting program (not WYSISYG) that outputs PDFs. I am producing 100 plus pages that have multiple graphics on each page. I need to know how to format a PDF command that I can incllude in my programming that will tag my graphics with "Alternative Text".
    I know that with a Microsoft product graphics can be tagged before a PDF is made. I need to know how to do this with my programming.

    The Acrobat SDK might be a starting point.
    From there, perhaps a plug-in (built with C+).
    Perhaps with a licensed release of a PDF Library (this could be $$).
    The viable and cost effective alternative is use the tried and true.
    Authoring in an appropriate authoring application with appropriate tag management.
    Example:  Adobe InDesign; Adobe FrameMaker or MS Word with PDFMaker (comes with install of Acrobat).
    This way you place "Alternative Text" when mastering content in the authoring file.
    Going the route and with some look-see (research) you may find programmatic approaches to placing the alt txt in the authoring file.
    Note: as discussed in the Matterhorn Protocols there is no programmatic method that provides a fully accessible PDF (specifically, that is an ISO 14289-1, PDF/UA-1 compliant PDF).
    Regardless, here you have a sub-forum for discussions on Acrobat usage.
    Consequently discussions on/of 3rd party software is rather out of scope eh.
    Be well...

  • Update Transaction(IQS2) using BDC

    Hi All,
    I am developing BAPI (using BDC) which creates quality notification in SAP which is entered via front end web application. Structure p_qmsm contain 3 lines of task in notification. The code is as given below. To avoid problem of large no of lines on screen,code lines starting with * is used. This actually for pagedown after entering every 2 lines and creates new line. so that 2 lines always push up on screen and there will not be problem for creating large no of lines on screen
    perform bdc_dynpro using 'SAPLIQS0' '7200'.
    perform bdc_field using 'BDC_OKCODE' '=10\TAB11'.
    LOOP AT p_qmsm INTO wa_qmsm.
    perform bdc_dynpro using 'SAPLIQS0' '7204'.
    perform bdc_field using 'BDC_OKCODE' '/00'.
    CONCATENATE 'VIQMSM-QSMNUM(' wa_qmsm_cntr ')' INTO wm_qmsm_qsmnum.
    CONCATENATE 'VIQMSM-MNGRP(' wa_qmsm_cntr ')' INTO wm_qmsm_mngrp.
    CONCATENATE 'VIQMSM-MNCOD(' wa_qmsm_cntr ')' INTO wm_qmsm_mncod.
    CONCATENATE 'VIQMSM-MATXT(' wa_qmsm_cntr ')' INTO wm_qmsm_matxt.
    CONCATENATE 'VIQMSM-PSTER(' wa_qmsm_cntr ')' INTO wm_qmsm_pster.
    CONCATENATE 'VIQMSM-PETER(' wa_qmsm_cntr ')' INTO wm_qmsm_peter.
    perform bdc_field using wm_qmsm_qsmnum wa_qmsm-qsmnum.
    perform bdc_field using wm_qmsm_mngrp wa_qmsm-mngrp.
    perform bdc_field using wm_qmsm_mncod wa_qmsm-mncod.
    perform bdc_field using wm_qmsm_matxt wa_qmsm-matxt.
    perform bdc_field using wm_qmsm_pster wa_qmsm_pster.
    perform bdc_field using wm_qmsm_peter wa_qmsm_peter.
    wa_qmsm_cntr = wa_qmsm_cntr + 01.
    ENDLOOP.
    CALL TRANSACTION 'IQS2' USING wt_bdc
    MODE 'N'
    UPDATE 'A'
    MESSAGES INTO P_MESSTAB.
    The same code is used in modify mode also.  web application is sending all 3 lines in modify mode even if single line is modified. It is already decided to send all rows back from web application to SAP in same sequence.  It is working fine if i comment 5 lines which is starting with *. But in modify mode,  how can i ensure that correct row is modified? and how can i achieve problem of large no of lines on screen?
    Please suggest?
    Edited by: Rob Burbank on Dec 14, 2009 3:20 PM

    Moderator message - Please respect the 2,500 character maximum when posting. Post only the relevant portions of code. And please do not try to get around this by using two posts. I was able to re-format this by simply removing your commented out code.

Maybe you are looking for

  • Function Module Related to Holiday Calender

    Hi Experts, Please provide me with FM's pertaining to Holiday Calender. Regards, IFF

  • Opening .eps files to use in Fireworks

    I have some graphics files I need to convert from .eps (Illustrator) files to .png files or jpeg files to work on in Fireworks. How can I do that? Thanks

  • Podcast Project

    Hi Guys, I'm a 3rd year IT student in college, and I'm about to begin a project on podcasting. I need to do a bit of research into them, so I was just wondering if anyone could point me in the right direction for a bit of info on things like bandwidt

  • Cursor does not change for pop-up window

    I created a link for a pop-up window. The link does work, but the cursor does not change to a pointy finger, the standard link icon. I don't know a lot of javascript, but can figure it out if it's just adding some code. Any help would be appreciated!

  • Illustrator Import to After Effects

    Hey all, Its been a while since i ever had a problem with importing things, in fact its never been a problem until now, and no-one seems to know whats wrong. + i'll post links to images as well to fully show whats wrong. Problem: Im working on a proj