Leave Transaction ECC 6 error

This piece of code was used to refresh alv data automatically for every 3 minutes and it worked perfectly in sap 4.7
But in SAP 6 I am getting runtime error :RPERF_ILLEGAL_STATEMENT
Statement LEAVE TO TRANSACTION is not allowed in this form
FORM f_call_rfc_wait .
  DATA lv_mssg(80).                                         "#EC NEEDED
  CALL FUNCTION 'RFC_PING_AND_WAIT' STARTING NEW TASK '0O1'
    PERFORMING f_task_end ON END OF TASK
    EXPORTING
      seconds               = 180        " Refresh time
      busy_waiting          = space
    EXCEPTIONS
      RESOURCE_FAILURE      = 1
      communication_failure = 2  MESSAGE lv_mssg
      system_failure        = 3  MESSAGE lv_mssg
      OTHERS                = 4.
ENDFORM.                    " f_call_rfc_wait
FORM f_task_end USING taskname.
  DATA lv_mssg(80).                                         "#EC NEEDED
  RECEIVE RESULTS FROM FUNCTION 'RFC_PING_AND_WAIT'
     EXCEPTIONS
      RESOURCE_FAILURE      = 1
      communication_failure = 2  MESSAGE lv_mssg
      system_failure        = 3  MESSAGE lv_mssg
      OTHERS                = 4.
  CHECK sy-subrc EQ 0.
  SET USER-COMMAND '&NTE'.             "Refresh
LEAVE TO CURRENT TRANSACTION AND SKIP FIRST SCREEN.
ENDFORM.                    " f_task_end
*&      Form  user_command1
*       text
*      -->UCOMM      text
*      -->SELFIELD   text
*      for detailed list and automatic refreshing
FORM area_prod_alv.
  TYPE-POOLS: slis.
  DATA t_fieldalv  TYPE slis_t_fieldcat_alv.
  DATA: ls_slis_fieldcat  TYPE slis_fieldcat_alv.
  PERFORM f_call_rfc_wait.
  PERFORM initial_alv_fieldcat CHANGING t_fieldalv[].
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      i_bypassing_buffer      = 'X'
      i_buffer_active         = ' '
      i_callback_program      = 'ZMPQ203_SHOP_HONEW'
      i_callback_pf_status_set = 'PF_STATUS'
      i_callback_user_command = 'USER_COMMAND1'
      it_fieldcat             = t_fieldalv[]
      i_save                  = 'X'
      it_events               = gt_event[]
      is_layout               = lo_layout
    TABLES
      t_outtab                = itab3
    EXCEPTIONS
      program_error           = 1
      OTHERS                  = 2.
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
ENDFORM.                    " area_prod_alv
instead of LEAVE TO CURRENT TRANSACTION AND SKIP FIRST SCREEN.
i have also tried LEAVE to TRANSACTION TRASACTION_NAME AND SKIP FIRST SCREEN.
& also CALL TRANSACTION  TRASACTION_NAME AND SKIP FIRST SCREEN.
but i got same error

Hi
try with below methods and FM in your object
*call screen 0.
  LEAVE TO CURRENT TRANSACTION AND SKIP FIRST SCREEN.
Usually this command is enough to call PAI/PBO by force
CALL METHOD CL_GUI_CFW=>SET_NEW_OK_CODE
  EXPORTING
    NEW_CODE = 'DUMMY'.
CALL FUNCTION 'SAPGUI_SET_FUNCTIONCODE'
  EXPORTING
    FUNCTIONCODE                 = '/00'
EXCEPTIONS
   FUNCTION_NOT_SUPPORTED       = 1
   OTHERS                       = 2.
IF SY-SUBRC <> 0.
Implement suitable error handling here
ENDIF.
CALL METHOD CL_GUI_CFW=>FLUSH
might be your issue will solve the  above solution.
Thanks and Regards,
Syfulla

Similar Messages

  • ECC Transaction iView Error on Browser Resize

    Hello.
    I have created hundreds of SAP ECC Transaction iViews in the portal.  After doing some testing, I realized that any time a browser window is modified when an ECC transaction iView is within display, the resize causes the transaction iView to refresh.  Upon refreshing, the transaction throws error or works as if the user submitted the transaction on the backend, instead of just remaining in the same state.
    For instance, if you have an SAP Transaction iView to an ECC system for tcode QM01 and it is accessible through the Detailed Navigation, this iView can be opened either in its own browser window, or within the desktop inner page.  If configured to pop-up in a new browser window and you click or drag to resize the browser window, the transaction refreshes, and throws the error: "Fill in all required entry fields."  This is the same error that is thrown in ECC when a user submits the transaction with no data.  Similarly, if you have the iView configured to open within the portal framework and you click on the transaction it opens in the desktop inner page.  If you maximize/restore down the browser window displaying the portal, the transaction refreshes within the desktop inner page and throws this same error, like it was submitted.
    It happens with every ECC transaction iView that I have created, but does not happen with SRM IAC iViews, Web DynPro iViews, or SUS functionality iViews.  This leads me to believe it is a problem in ITS.  Does anyone know what is going wrong, or how to fix this?
    Thanks for any help!
    Alexa

    Hi,
       Super admin has permission for end user for all the iViews. So he will be able to view the iView. As mentioned, please check if the end user permission is given for the end user to access the iView. Also check if the permission is given for that particular system. To check permissions, go to System Administration -> Permissions -> Portal permissions -> Portal Content. Check for iView and system that you have created.
    Regards,
    Harinin S

  • Balance in transaction currency error for AUC settlement

    I was trying to perform AUC settlement and hit Balance in transaction currency error. When i open up the line items I found that there are 2 sets (duplicate) of data posted to the depreciation area. The second set is with value 0 except depreciation area 01 posted as 100000EUR.
    so now i have 2 line with 100000EUR for depreciation area 01. I guess this is the main culprit of generating the error Balance in transaction currency.
    I'd glad if someone can tell me why they are 2 sets of data generated in line items? I only post the vendor invoice against the AUC once.
    Or perhaps am I heading to the right way in identifying the root cause of this issue?
    This is part of the AC010 course part of asset accounting that teaching on AUC aasets.
    Any positive reply is welcomed!
    I attached the line item image. Please note that there are some lines hidden for dep area beyond 03. and all are with amount 0.
    [Line Item Image|http://www.bnl.com.my/photos/aucsettle.jpg]
    Edited by: Kam Weng Leong on Dec 13, 2009 5:00 AM

    I was trying to perform AUC settlement and hit Balance in transaction currency error. When i open up the line items I found that there are 2 sets (duplicate) of data posted to the depreciation area. The second set is with value 0 except depreciation area 01 posted as 100000EUR.
    so now i have 2 line with 100000EUR for depreciation area 01. I guess this is the main culprit of generating the error Balance in transaction currency.
    I'd glad if someone can tell me why they are 2 sets of data generated in line items? I only post the vendor invoice against the AUC once.
    Or perhaps am I heading to the right way in identifying the root cause of this issue?
    This is part of the AC010 course part of asset accounting that teaching on AUC aasets.
    Any positive reply is welcomed!
    I attached the line item image. Please note that there are some lines hidden for dep area beyond 03. and all are with amount 0.
    [Line Item Image|http://www.bnl.com.my/photos/aucsettle.jpg]
    Edited by: Kam Weng Leong on Dec 13, 2009 5:00 AM

  • Get error from SQL AGENT: The SSIS Runtime has failed to enlist the OLE DB connection in a distributed transaction with error 0x8004D024

    I am running SQL Agent that executes an SSIS process from sql server1. The SSIS process executes its SQL/tables/sp’s  against another sql server2.
    I get an error after adding data flow tasks with transaction supported within a sequence with transaction required. The error, “The SSIS Runtime has failed to enlist the OLE DB connection in a distributed transaction with error 0x8004D024 "The transaction
    manager has disabled its support for remote/network transactions"
    Prior to adding this sequence everything was working from sql agent, and there were other sequences with oledb destinations.
    Everything works when running within SSIS Package.
    I see this article on similar issue,
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/0bfa2569-8849-4884-8f68-8edf98a9b4fe/problem-to-execute-a-package-and-tasks-with-a-certain-transactionoption-property-i-need-help?forum=sqlintegrationservices
    “I had similar issue and solved by setting the following on both the machines. Allow Remote Clients, Allow Remote Administration,
    Allow Inbound Clients, Allow Outbound Clients, and TIP are enabled in Component Services/My Computer/Properties/MSDTC/Security Configuration.”
    I don’t want to remove transaction required for the “Remove Duplicates from Staging” sequence.
    Anyone seen this?
    Greg Hanson

    DTC was running on remote computer. The problem was it was no longer accepting transactions from remote servers. This was in SSIS so I had to turn to "Transaction Supported" for all Data Flow Transactions.
    Greg Hanson

  • Yum install Oracle-Validated Transaction Check Error:

    Doing a yum install oracle-validated command with CentOS 5.3 and got these errors:
    Running rpm_check_debug
    Running Transaction Test
    Finished Transaction Test
    Transaction Check Error:
    file /etc/issue from install of enterprise-release-5-0.0.17.x86_64 conflicts with file from package centos-release-5-3.el5.centos.1.x86_64
    file /etc/issue.net from install of enterprise-release-5-0.0.17.x86_64 conflicts with file from package centos-release-5-3.el5.centos.1.x86_64
    file /etc/redhat-release from install of enterprise-release-5-0.0.17.x86_64 conflicts with file from package centos-release-5-3.el5.centos.1.x86_64
    file /usr/share/eula/eula.en_US from install of enterprise-release-5-0.0.17.x86_64 conflicts with file from package centos-release-5-3.el5.centos.1.x86_64
    file /usr/share/firstboot/modules/eula.py from install of enterprise-release-5-0.0.17.x86_64 conflicts with file from package centos-release-5-3.el5.centos.1.x86_64
    file /usr/share/firstboot/modules/eula.pyc from install of enterprise-release-5-0.0.17.x86_64 conflicts with file from package centos-release-5-3.el5.centos.1.x86_64
    file /usr/share/firstboot/modules/eula.pyo from install of enterprise-release-5-0.0.17.x86_64 conflicts with file from package centos-release-5-3.el5.centos.1.x86_64
    Error Summary
    Did the yum update work? Should I procede with the oracle install?
    Thanks in advance

    Hi Tom,
    Could you please help me as im trying to install ORACLE OID 10.1.4.0.1 on OEL 5 n trying to use yum to load the default RMP
    ]# yum install oracle-validated
    Loaded plugins: security
    el5_oracle_addons | 951 B 00:00
    primary.xml.gz | 1.6 kB 00:00
    el5_oracle_addons 10/10
    epel | 2.3 kB 00:00
    primary.sqlite.bz2 | 2.0 MB 00:05
    el5_ga_base | 1.1 kB 00:00
    Setting up Install Process
    Parsing package install arguments
    No package oracle-validated available.
    repo file :
    [el5_ga_base]
    name=Enterprise Linux $releasever GA - $basearch - base
    baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/0/base/$basearch/
    gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
    gpgcheck=1
    enabled=1
    [el5_u1_base]
    name=Enterprise Linux $releasever U1 - $basearch - base
    baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/1/base/$basearch/
    gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
    gpgcheck=1
    enabled=0
    [el5_u2_base]
    name=Enterprise Linux $releasever U2 - $basearch - base
    baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/2/base/$basearch/
    gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
    gpgcheck=1
    enabled=0
    [el5_u3_base]
    name=Enterprise Linux $releasever U3 - $basearch - base
    baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/3/base/$basearch/
    gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
    gpgcheck=1
    enabled=0
    [el5_addons]
    name=Enterprise Linux $releasever - $basearch - addons
    baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/addons/$basearch/
    gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
    gpgcheck=1
    enabled=0
    [el5_oracle_addons]
    name=Enterprise Linux $releasever - $basearch - oracle_addons
    baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/oracle_addons/$basearch/
    gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
    gpgcheck=1
    enabled=1
    best regards,

  • J1IEX: Balance in Transaction Currency ERROR

    All SAP Gurus,
    While doing J1IEX: Balance in Transaction Currency ERROR occurs.
    This happens only when figures are not even in case of capital goods credit.
    Which SAP Note to be applied so that, system will accept odd figures too.
    Regards,

    Hi Rajan, Check the following threads :
    Balance in transaction currency
    Re: Balance in transaction currency Error

  • Balance in transaction currency error

    Hi Friends,
    In order to ressolve "Balance in transaction currency"  error during J1IIN, we have applied oss notes 1018071 & 978186. However we are getting same promblem
    Please help on this.

    Hi shiv,
    Kindly refer this threads,
    Balance in transaction currency
    Error : Balance in Transaction Currency
    Error F5702 Balance in transaction currency VF01
    Re: Balance in  Transaction Currency
    error in Balance in transaction currency
    Balance in transaction currency
    Thanks,
    Swamy H P

  • Transaction Processor Error in View Pending Transactions

    Dear All,
    I am getting the Error: "Transaction Processor Error" in View Pending Transactions.
    How can I identify due to what reason, this error had occured
    because of this I am not able to close the inventory period for these transaction months..
    and also I am having the following Error msg for another item in view Pending Transactions..,
    How can I clear this ..?
    Please update...
    Many Thanks in advance....
    Edited by: santark on Nov 10, 2009 6:46 PM

    Hi,
    This is not really and error. Oracle processes transaction in a batch. If one record will fail because of some error, other records/transaction in the batch fails with this error. For this error you really need to get the ERROR_EXPLANATION to find out the exact message as to why it is possibly failing. These can usually have their three flags reset and re-submitted as this error is usually attached to those records in a group where one of the records has been erred with one of the more severe errors.
    I believe you can resubmit the transactions which are failed with the below script
    Update mtl_material_transactions_temp
    set      process_flag = ‘Y’,
         lock_flag = 'N',
         transaction_mode = 3,
    error_code = NULL
    Where organization_id = &org_id
    Thanks,
    Raghav

  • Transact RFC error

    Hi Gurus,
    I am getting one issue while loading the data thru infopackage.
    While loading the data in 3.5 flow for some souce system it is taking long time
    and givig me transact RFC error. I have checked the source system connectivity and it is fine.Although  the status is yellow during the load but at the end of the load it turns to red and it gives me below mentioned error:
    Missing data packages for No selection information arrived from the source s
    Diagnosis
    Data packets are missing from No selection information arrived from the source s. BI processing does not return any errors. The data transport from the source system to BI was probably incorrect.
    Procedure
    Check the tRFC overview in the source system.
    You access this log using the wizard or following the menu path "Environment -> Transact. RFC -> Source System".
    Error handling:
    If the tRFC is incorrect, resolve the errors listed there.
    Check that the source system is connected properly to BI. In particular, check the remote user authorizations in BI.
    Kindly let me know your suggestion in this issue.
    Thanks in advance.
    Amit

    Hi
    This error would normally occur, if at the time of processing, the data packets get stuck
    To check for stuck trfc follow the path
    Environment -> Transact. RFC -> Source System
    there, check if trfc recorded, then it means, it is stuck, slecect that particular record and press F6 to execute the LUW.
    If this is not the case, check the job overview in the source system.
    IF you find ARFCSTATE = loading/sysfail, it means the trfc is stuck ..
    you can check the datapacket number from there, and try mannual update for those partiular data packets.
    Or else, sometimes, the packet itself doesnt arrive in BW, because of connection problem during the processing of few packets, ands later when you check, it seems fine.
    In such cases simply repeat the load
    Hope this helps
    Regards
    Shilpa

  • Transaction Control Error

    Hi,
    i am getting "Transaction Control Error" in newly created Client while executing any tcode. can you please give the solution for this.
    venkat

    Hi,
    i copied from 000 client to new client. it was successfully completed. After that if execute mm01 or mm02 transactions this type error i am getting. Can you please give the solution..
    venkat

  • Transaction Demarcation Error

    Hi,
    I have written entity bean and tried to verify it in J2EE 1.4 SDK in Deploytool.
    It's giving me one error about findByPromaryKey() and findBySalary() methods in SalaryHome interface and description of error is something like "...Transaction Demarcation Error...".
    Any idea when it comes and how to resolve it?
    Any help is appreciated.
    Thanks
    Rajeev.

    These methods should have container-transaction attributes defined for them in the ejb deployment descriptor, ejb.xml.
    <container-transaction>
    <method>
    <ejb-name>TestBeanEJB</ejb-name>
    <method-intf>Home</method-intf>
    <method-name>findByPrimaryKey</method-name>
    <method-params>
    <method-param>java.lang.Integer</method-param>
    </method-params>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>

  • Transaction processor error in Misc. Transaction

    Hi,
    When i perform Misc transaction in Inventory module then system shows “Transaction processor error” at save Transaction.
    can anyone guide about the error.
    Regards,
    Aman

    HI Raghav,
    Thanks for the note ids.
    I have read all 3 metalink notes & solution written in note id: 412110.1 is applicable but that is for 11i and i am working in R12.0.4. It is some sort of bug.
    i.e "the existing items can be fixed by unchecking and checking again the costing enabled flag and the inventory asset value flag."
    But there is one problem with the solution that when i try to uncheck both flags system shows error:
    "APP-INV-0557: You can't update this field when:
    - On-hand quantities, pending & uncosted transactions exists"
    Now there are onhand quantities exists for the item and i cannot uncheck or check the costing and asset value flag. Its working only for items with no onhand quantities as number of items are increasing and i can't clear on-hand quantities for every item.
    Plz guide if i can avoid error and process misc. transactions without removing onhand quantities.
    Regards,
    Fahd

  • "Balance in transaction currency" Error in Depreciation Posting Run-AFAB

    Hi,
    We are having unit testing going on during ECC6.0 upgrade.I am getting following error while posting Asset Depreciation -AFAB.
    Balance in transaction currency
    Message no. F5702
    Diagnosis
    A balance has occurred in transaction currency 'AUD' with the following details:
    Exchange rate '00', amount '           467.00-' and currency key 'AUD'.
    The data in the transaction currency were transferred from the calling application.
    System Response
    Your data cannot be processed in FI.
    Procedure
    The error is probably in the calling application.
    Please advise what can be the reason of this issue.
    Thanks & Regards,
    Prince Kochhar

    Hi shiv,
    Kindly refer this threads,
    Balance in transaction currency
    Error : Balance in Transaction Currency
    Error F5702 Balance in transaction currency VF01
    Re: Balance in  Transaction Currency
    error in Balance in transaction currency
    Balance in transaction currency
    Thanks,
    Swamy H P

  • Transaction DeadLock Error

    Hi,
       I am trying to execute a transaction in WorkBench and it gives me an Error
    "com.sap.xmii.illuminator.logging.LHException:com.microsoft.sqlserver.jdbc.SQLServerException:Transaction (Process ID 62) was deadlocked on lock resources with another process and has been choosen as the deadlock victim. Rerun the transaction"
    This error is coming while executing a SQL action inside the transaction. This Sql action will call a stored procedure on External System to write some data.
    These are the server Parameter of this data server.
    PoolMax: 100
    PollSize: 1
    There are already 2 open connections to the same database which are also writing some data using the same Stored Procedure.
    Thanks,
    Gowtham K.

    That error is from your database.  There may be ways to mitigate this, just search for the error on google.  If using mssql check
    [http://social.msdn.microsoft.com/Forums/en-US/sqlintegrationservices/thread/194f18b0-03b2-4e8f-8c67-5c92373c3efd]
    Regards,
    Jamie

  • Transaction processor error

    Hi all,
    Appreciate your help in resolving the below issue.
    I'm trying to use the MTL_TRANSACTIONS_INTERFACE table for issuing an inventory item with lot & serial control as disabled. I had tried the same earlier and found to be working fine but now the "Inventory transaction worker" (INCTCW) request is giving me status=Error. The interface record gives Error Code as Transaction processor error and Error explanation is null. The concurrent request log file doesnt provide any specific info and just shows "No completion options were requested.". I know if there was any record related error then error code and error explanation would be clear enough to have a resolution but here i cant find where to get the hint on resolving the issue. The request "Process transaction interface" works as per defined in set up.
    Thanks in advance.
    Best Regards
    Zameer

    Which forum should i post this in

Maybe you are looking for

  • Why am I getting an URL error when iCal tries to access my google apps calendar?

    My previously synced and normal google calendar for work was syncing fine with OSX's native Calendar app. Then I updated to to Mavericks, now my Calendar app is showing a URL error when trying to access my work calendar. Our company uses a google app

  • At user-command & At Line-selection

    Hi, I am using ECC5 ver. of ABAP. Can I use AT USER-COMMAND and AT LINE-SELECTION in the same report? I have used it but only At user command works, not At line selection. When I remove Set pf-Status, At line selection works. Here is my code. REPORT

  • Customer payment terms issue

    Hi I need one urgent solution In customer master data the payment terms is znz8 which is due 20th of the following month. But they want it if we do invoice  11/06/2008(today) the due date shpuld be 11/07/2008. for that in customer masta we need to ch

  • Profile activating error after solution manager 4.0 installation

    dear sap experts by using RZ10, i tried to change some parameters of profiles... http://itedu24.net/solman/activate_profile_error.jpg At first, i got "No Profile Found". Finally i could import them. However, whenever i tried to ativate or save them,

  • BUG: IE11, windows 8.1 enhanced protected mode prevents pages from loading. Slow browsing experiece

    if enhanced protected mode is enabled in IE11 on windows 8.1 it prevents many pages from loading in a timely manner. eg. TechNet.microsoft.com; dotnetcurry.com this is reproducible on multiple machines. please resolve.