Open transaction in SAPgui

I want to display a transaction such as MM01 in SAP gui from Visual Basic. I tried to use function RFC_DISPLAY_MATERIAL_MASTER (without any parameters), but it works only in ABAP debugger. Without debugger, it returns SYSTEM_FAILURE.
Here is the code:
theFunc = functionCtrl.Add("RFC_DISPLAY_MATERIAL_MASTER")
returnFunc = theFunc.Call
If returnFunc = True Then
Return 0
Else
callException = theFunc.Exception
Return -1
End If
How about transaction such as SD62(change order bom)? I couldn't find RFC-function to display it. Is there a general function to display a transaction in SAPgui? RFC_CALL_TRANSACTION seems to do it only in backround.

Thanks for your help Sanjeev,
I tried to use ABAP4_CALL_TRANSACTION, but it works only if I run it in ABAP debugger. Do I have to call some other functions before it to open SAPgui? I only call
functionCtrl = CreateObject("SAP.Functions")
sapConnection = functionCtrl.Connection
before function ABAP4_CALL_TRANSACTION.

Similar Messages

  • Migrating open transactions to a new CoA

    Hi
    I have a new CoA migration.But can by any chance the complete AR transactions be migrated.
    Putting it briefly,can i migrate closed and open transactions as well as applied and unapplied receipts of the previous CoA
    Regards
    Sthita
    Edited by: user601634 on Feb 25, 2009 5:02 AM

    Hello.
    I think you can find all the information you need in the AR_PAYMENT_SCHEDULES_ALL table. So, for the new CoA you can get the amounts like this:
    Receivable-> AMOUNT_DUE_REMAINING
    Revenue->AMOUNT_LINE_ITEMS_REMAINING
    Tax ->TAX_REMAINING
    This way you just have to worry with the transaction itself and forget about the receipt.
    Octavio

  • Open Transactions in ECC for Master Data changes in MDM

    Hi All,
    I have a basic Design question on how to handle the impact of Data changes in MDM for any open transactions with that Master object. For eg if we have a Material set up in MDM and in ECC and there are open Purchase Orders for that Material, now if the Base Unit of Measure is changed in MDM and gets harmonized to ECC(After Workflow approval of the Change) how will it impact the PO attached to the material . Can we do any configuration in ECC that will restrict any Open PO s not to take the new changed value and any new POs taking up the new Base Unit of Measure , or can we set up an alert/notification that will trigger for a PO whenever any Master Data is changed and the PO takes the new changed value on the fly . What will be the best approach from a solution point of view .
    Thanks ,
    Prabuddha

    Hi Prabuddha,
    In ECC if a change happens to a master data not all the changes are reflected automatically in the open documents like open PO or open Sales order. Some fields values have to be redetermined for eg: "pricing procedure", some of them needs to be changed manually for eg: "Description". Moreover specific to your eg of Base unit of measure, this is a sensitive field and has lot of impact on the process so there for changing such fields it is necessary to close all the open documents against the Master data record in consideration. This fact is regardless whether the change happens through an IDoc or directly by MM02/XK02/XD02
    Prabudha, Please revert if you have further questions.
    Best Regards
    P T Manoj
    Edited by: PT MANOJ on Sep 2, 2011 10:25 PM

  • How to COMMIT all open transactions?

    Hi,
    I have 10.2.0.4 on Windows.
    I need to run a critical month-end DataPump export of 1 schema. Easy enough. The system will be in-use by the end users when this runs. Not many maybe 10 users will be connected and it is not a very large db - 10 GB.
    My concern is that there may be a few uncommitted transactions hanging around that may not be written to the dump file. If I run COMMIT; that only commits for my session, right? How can I force all open transactions for all users to be committed just before I run the DP export?
    -OR- is DataPump so sophisticated that it will auto. commit them first?
    Thanks for your ideas. John

    user629010 wrote:
    Thanks, Justin.
    This is a 24 hour system so I don't want to interrupt the users unless there is no other option.
    Yes the RMAN backups are complete but I just need the export for purposes of refreshing my reporting database at each month-end. So I will use impdp to do the import. This is the way we have been doing it for awhile.
    We only recently became aware of some out-of-balance issues (money) and we thought uncommitted transactions may be partly responsible.
    I know the application code controls when the commit takes place but, in general, is this something you would be concerned with?
    Another question if I may: how can I see how many open transactions there are at a given time?
    Thanks, JohnIf you think about what constitutes a "transaction" (and financial balances are the textbook example of such) then you realize that it is absolutely the responsibility of the transaction to decide when to commit. An outside process (like an evil DBA) can safely force a rollback of an incomplete transaction (say, by killing the session), but to force a COMMIT? Suppose the session had only updated 2 of 4 tables that needed to be updated to consitute a complete transaction and guarantee your account balances? How do you suppose your "force" will know what the other two table updates are?
    Maybe you could explain in more detail how you intend to use this export, particularly in relation to where it was you found the out of balance issues..

  • Open Transactions in External Statement

    In SAPB1 8.8 SP00 PL10, when I go to Banking->Bank Statements and External Reconciliations->Reconciliation and then choose "Manual", there is a window labeled "Open Transactions in External Statement".  How do you input data into this window?  BSP is not supported in the USA, so I don't think I can install that module.  I don't have the option to install BSP under Administration->System Initialization->Company Details->Basic Initialization.  Is there any other way to import external bank transactions into SAP?  Thanks.

    There is an add on available from a company called Enprise that we use in NZ for importing bank statements.
    Another option is to key the data into the OBNK table under the Process External Bank Statement form (this is usually hidden)

  • Open transactions (Total Balance due = 0)

    dears, i need your help with the following :
    we want a query which provide us with open transactions...
    what i mean with open transactions is the transactions where their Total Balance due = 0 from transaction screen..
    i tried to get the tables from the screen but nothing returned this value
    can you help me with that??
    thanks

    Hi.
    Run the following query:
    SELECT
    trx_number,
    amount_due_original,
    amount_due_remaining
    FROM ar_payment_schedules_all
    WHERE status = 'CL'
    AND class in ('INV', 'DM', 'CM')
    Octavio

  • How to view Open transactions through Report

    Hello,
    APplication : 11.5.10.2
    required for Financials
    We have different types of GL Accounts,Customer & Supplier transactions.
    Assuming we carry out several transactions with one party and it gets squared off subsequently either by payment or receipt.
    So,Is there any possiblity to view only the open transactions at any point of time for a customer or supplier or GL account.
    Is there any standard report available?
    Thanks

    Hello,
    APplication : 11.5.10.2
    required for Financials
    We have different types of GL Accounts,Customer & Supplier transactions.
    Assuming we carry out several transactions with one party and it gets squared off subsequently either by payment or receipt.
    So,Is there any possiblity to view only the open transactions at any point of time for a customer or supplier or GL account.
    Is there any standard report available?
    Thanks

  • How to Abort all opened Transactions at once?

    Hi,
    Is there any way to abort all open transactions at once ?
    Thanks for any help.
    Thanks,
    reddy

    Reddy,
    No, you need to call Transaction.abort() on each transaction individually.
    Regards.
    Linda

  • Open Transactions of GL

    Hi,
    I want to know how can we find out the open transactions in GL for Balance sheet items.
    e.g. If there is a loan item is available in Balance sheet and there are regular transactions happens then how can I find out which are the line items relate to the balance lying in the balance sheet.

    Hello.
    I'm not sure if i unsderstood your need at 100% but, just to give you an example, the amount of the customers debts shown in the GL Trial Balance should match with the total of any of the Aging Reports of AR.
    Octavio

  • Open Transactions

    Dear all,
           Is there any open transactions template created for PP just like creating open PR in MM during implementation...???
    regards,
    Joseph.

    HI,
    If it is fresh implementation then you need to check whether any open Production orders are existing with any other system which your client is using i.e. legacy system. If they exist then either they need to close them and start afresh in SAP with Production planning. Alternately, if you decide to bring open production orders then you need to maintain necessary master data for it i.e. BOM , Routing etc. and create Production orders in system. Generally it is recommended to close open production orders etc of legacy system.
    If your project is rollout / upgradation from earlier version, then you can bring open orders etc, through separate order type maintaining for previous version so you can recognise them as older orders of previous version migrated to new system.
    Take decision based on your project situation since you've not mentioned details about project.
    Hope this helps.
    Regards,
    Tejas

  • GL_BALANCES open transactions in R12

    Hi,
    Could you tell me how to drill down data from gl_balances table for open transactions.
    should i check any balances column > 0.
    any advice?
    Thanks.

    Hello.
    I'm not sure if i unsderstood your need at 100% but, just to give you an example, the amount of the customers debts shown in the GL Trial Balance should match with the total of any of the Aging Reports of AR.
    Octavio

  • Sessions that I killed in kill status, but no open transactions

    I killed two sessions. My understanding is that they stay in kill status until they rollback. However, I checked v$transaction and I don't have any open transaction. Isn't a transaction open if it is killed and rolling back?
    This is in 10.2

    Hi,
    >>my understanding is that in order to end a transaction you have to commit or rollback
    Right.
    >>So before the rollback completes the transaction is open
    Exactly. Commit or rollback commands ends a transaction, so the entry in v$transaction is removed after either command completes.
    >>in my case, the session is clearly rolling back because v$session says the session is "killed",. but I don't see any transactions in v$transactions.
    Why did you get this conclusion? In fact, might the PMON background process has not yet cleaned up the server process at that time and this may not happen for several hours.
    Cheers
    Legatti

  • Open transaction after getbykey

    Hi, I have just aplied path 18 in SBO 2005 A, and now I execute this code:
    MsgBox(SBO_Company.InTransaction())
    oi = TryCast(SBO_Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices), SAPbobsCOM.Documents)
    oi.GetByKey(-1)
    MsgBox(SBO_Company.InTransaction())
    The first msgbox show me "FALSE" but the second "TRUE", is this behaivor normal??. Before the patch it doesn´t open the transaction.
    Thanks.

    Well, I am not sure whether it is normal to use GetByKey with -1 as a parameter... (why do you do that???)
    ASFAIK the internal keys are always incremented - starting from 1...
    I suspect that you might put the DI into an undefined state - what certainly should be prevented by throwing an exception...
    ...but obviously there shouldn't be an open transaction when you used GetByKey...
    Is it just the property that's wrong now - or does really a transaction get opened?
    Thx.

  • Open SAP Transaction in SAPGUI window from Other programs

    Hi,
      We have an intresting requirement in which we have to run an SAP transaction, like SE37,in SAPGUI  from a Web application.
    In detail:
      When an user clicks on a particular link, say an account number, in a web application, we need to open SAPGUI and run a partucluar transaction in SAP to get account detials and show it in SAPGUI.
    That means we need to fo the following steps behind the scence.
    Case1:
    -1 Open SAPGUI
    -2 Login the User
    -3 Run sap transaction with parameters
    -4  Display the results in SAP R/3 GUI
    Case 2: Assume, If the SAPGUI is already launched by the user (i.e. steps 1 & 2) , Can we do steps 3 and 4?
    I am new to SAP and not sure wether this will be possible at all or not. Please advice.
    Thanks,
    Sree

    check the code given by thomas jung in this thread
    Calling a R3 transaction in BSP
    he has also mentioned of  Java SAPGui which can be opened as an applet in a web browser
    кu03B1ятu03B9к

  • SAP GUI taking too much time to open transactions

    Hi guys,
    i have done system copy from Production to Quality server completely.
    after that i started SAP on Quality server, it is taking too much time for opening SAP transactions (it is going in compilation mode).
    i started SGEN, but it is giving time_out errors. please help me on this issue.
    MY hardware details on quality server
    operating system : SuSE Linux 10 SP2
    Database : 10.2.0.2
    SAP : ECC 6.0  SR2
    RAM size : 8 GB
    Hard disk space : 500 GB
    swap space : 16 GB.
    regards
    Ramesh

    Hi,
    >i started SGEN, but it is giving time_out errors. please help me on this issue.
    You are supposed to run SGEN as a batch job and so, it should be possible  to get time out errors.
    I've seen Full SGEN lasting from 3 hours on high end systems up to 8 full days on PC hardware...
    Regards,
    Olivier

Maybe you are looking for