CALL TRANSACTION in user dialog

Hi!
I'm having problem to use syntax CALL TRANSACTION in user dialog (SE80).  My syntax is as follows:
CALL TRANSACTION 'F-43' USING BDCDATA MODE 'N' UPDATE 'S'
          MESSAGES INTO t_msg.
My problem is I cannot execute this syntax in background mode although I set the MODE as N(Do not display) or P(Do not display; debugging possible).
However, if I set MODE as A(Display screen) or E(Display only if an error occurs), it works but foreground execution.
Hope to get respond from you guys.
Thank you and best regards.

Hi,
Chk this link if it can help you.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bc_aba/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d3732353531%7d
Regards,
Balaji
*Rewrds for helpful answers

Similar Messages

  • Call transaction in user exit?

    Hi
    can we say "call transaction" in the background?.while using user exit...
    regds
    gunjan

    Hi Gunjan
    I've to consider you ( or your exit) are in trx, so if you need to update some tables or another object don't belong to main trx, you make sure to do the updating only if the main trx is finished successfully.
    So it's usually placed the code for updating in a exit called before saving.
    But also you make sure the saving is done successfully, SAP usually does the saving in update tusk, so it has to call a COMMIT to start the saving action.
    When the COMMIT is called you can be sure the saving'll be done.
    So if you run your code in update tusk, you'll be sure your action'll start after saving.
    For these reason you should insert your code in a form called in update tusk.
    PERFORM UPDATE_MY_DATABASE ON COMMIT.
    So only when the system'll do the commit your code'll work.
    Max

  • Calling Transaction through User Decision step in workflow

    Hi all,
    Pls help me calling a transaction through User Decision step in workflow. I have attached two buttons to my User decision and the one of the outcomes to a task where I am calling the transaction through a method of BOR. But the problem is I am unable to see the transaction when I press the button on my User Decision at test run.
    Can you ppl let me know how can I achieve this?
    Pls reply ASAP...
    Thanks
    Sangharsh

    Hello Sangharsh ,
    Please Check the paramater of of the method which you define.
    e.g. I define CALL_TCODE_CJ03 method
          which have the parameters FLAG,ProjectDefinition,WBSElement2,User
          with export, import checkbox.            
    Pass the paratmeres in programs
    e.g.
    BEGIN_METHOD CALL_TCODE_CJ03 CHANGING CONTAINER.                      
    DATA:                                                          
          FLAG(1),                                                        
          PROJECTDEFINITION TYPE PROJ-PSPID,                              
          WBSELEMENT2 TYPE PRPS-POSID,                                    
          USER TYPE USR21-BNAME.                                                                               
    SWC_GET_ELEMENT CONTAINER 'FLAG' FLAG.                              
      SWC_GET_ELEMENT CONTAINER 'ProjectDefinition' PROJECTDEFINITION.    
      SWC_GET_ELEMENT CONTAINER 'WBSElement2' WBSELEMENT2.                
      SWC_GET_ELEMENT CONTAINER 'User' USER.                                                                               
    GET PARAMETER ID 'PSP' FIELD PROJECTDEFINITION.                       
      GET PARAMETER ID 'PRO' FIELD WBSELEMENT2.                                                                               
    SET PARAMETER ID 'PSP' FIELD PROJECTDEFINITION.                       
      SET PARAMETER ID 'PRO' FIELD WBSELEMENT2.                             
      CALL TRANSACTION 'CJ03' AND SKIP FIRST SCREEN.                                                                               
    SWC_SET_ELEMENT CONTAINER 'FLAG' FLAG.                              
      SWC_SET_ELEMENT CONTAINER 'ProjectDefinition' PROJECTDEFINITION.    
      SWC_SET_ELEMENT CONTAINER 'WBSElement2' WBSELEMENT2.    SWC_SET_ELEMENT CONTAINER 'User' USER. 
    END_METHOD.
    I hope it will help you.
    ***Assigning points is the way to say thanks in SDN.***
    Minaxi Shah

  • Calling transaction from user-defined button within cFolders

    Hi,
        I have inserted a custom field within the folder section in the cFolders. I implemented a BADI for rendering an action once the button is pressed. I am just wondering if it is possible to call a transaction (for example: CFI02) once the button is pressed. If it is not possible can anyone give me pointers how to open the transaction CFI02 from within cFolders similar to object links in cProjects?
    If there are any functional modules that would import documents into backend system from cFolders please let me know.
    thanks
    anantharam

    for Web Transaction...
    URL should be something like
    http://name.domain.ext:port/sap/bc/gui/sap/its/webgui
    Refer the foll link for specifying the transaction:
    [Maintaining ITS Service Parameters |http://help.sap.com/saphelp_nw04/helpdata/en/77/8b3d408ae01f24e10000000a1550b0/content.htm]
    Regards,
    Reema.

  • Display Report sheet names (or other arrays) in user dialog

    I'm trying to display a list of the sheet names in the user dialog box. I can get the sheet names fine, but I don't know how to get them to display in the dialog box. I want the user to be able to select one of the sheet names in the dialog box. I suppose I could create a dialog box with the editor, but I was trying to save having another SUD file around for such a simple transaction. Besides, I just want to know how to do it.
    Call GraphSheetInfos
    For i = 1 to GraphSheetCount
    call GraphSheetNGet(i)
    TV(i)= GraphSheetName
    Next
    Call UserDlgInit
    UserDlgCommand(3) = "TV()" 'THIS IS WRONG. HOW DO I DO IT?
    UserDlgOkTitle = "Continue" ' Set Ok-button caption.
    Call UserDlgOpen ' Show user dialog.

    Hi George,
    You are definitely on the right track. I used your code
    Call GraphSheetInfos
    For i = 1 to GraphSheetCount
    call GraphSheetNGet(i)
    TV(i)= GraphSheetName
    Next
    I did however add the line l1 = graphsheetcount so that I could access the number of sheets within the User Dialog.
    I then added a listbox to my User Dialog and added the following code to the EventInitialize of my listbox:
    For j = 1 To l1
    This.Items.Add TV(j), j
    Next
    This then populated a list of all the report sheets I had in DIAdem.
    Thanks,
    Caroline
    National Instruments
    Thanks,
    Caroline Tipton
    Data Management Product Manager
    National Instruments

  • Is it possible to change user in call transaction ??

    Hi experts,
    There is a custom RFC FM wich makes some call transacion (for example to ME21N) and is invoked from .NET. The user logged in that moment is 'USER1' but the client wants user 'USER2' to appear in standard tables (EKKO...) and in ME23N. It's not possible that the client loggs on with USER2 as he needs the password and we don't like to share it whith them.
    I found this:
    l_Fecha = sy-datum - 1.
      CALL FUNCTION 'BDC_OPEN_GROUP'
        EXPORTING
          client   = sy-mandt
          group    = 'maria'
          user     = 'USER2'
          keep     = space
          holddate = l_fecha.
    (code for the batch input)
      CALL TRANSACTION 'ME21N' USING i_bdcdata
                               MODE w_mode  UPDATE 'S'
                               MESSAGES INTO i_messtab.
      CALL FUNCTION 'BDC_CLOSE_GROUP'.
      SUBMIT rsbdcsub
      WITH bis = sy-datum
      WITH fehler = space
      WITH logall = space
      WITH mappe = 'maria'
      WITH von = sy-datum
      WITH z_verarb = 'X'
      EXPORTING LIST TO MEMORY
      AND RETURN.
    But when the PO is created, the user is still USER1.
    Is it possible to change the user at any moment ??
    Thanks in advance !!
    Regards,
    Marí

    Hi
    You are using ME21n which is and  ENJOY transaction.
    To update ENJOY Transactions use BAPIs instead of BDC.
    because ENJOY transactions are built on control framework which use ActiveX controls (like Grid).
    These new transactions should make life for the end user a bit easier, since SAP transactions not always accelerate in design, logic, etc. That's why SAP has introduced these new transactions which in the end, will have the same result. In these socalled 'Enjoy' transactions, SAP started using these 'new' enjoy sap controls like ALV grid, text editor, HTML viewer etc.
    For 'updating' Enjoy transaction (BTW: You are NOT updating the transactions, but rather the purchase order or whatever) you will have to use BAPI's (or FM for that matter) in stead of BDC since Enjoy Controls work with a different framework in which you can not call a certain screen and field. Like in an ALV grid, not every field has it's own screen field name. So you cannot use them in BDC.
    Hope this makes any sense for your question. As BDC is not reliable for your tcode.
    Thanks DP

  • How to replace 'CALL DIALOG' with 'CALL TRANSACTION'

    IF NOT bkpf-bukrs IS INITIAL.
        CLEAR   buztab.
        REFRESH buztab.
        buztab-zeile = bseg-buzei.
        buztab-bukrs = bkpf-bukrs.
        buztab-belnr = bkpf-belnr.
        buztab-gjahr = bkpf-gjahr.
        buztab-buzei = bseg-buzei.
        APPEND buztab.
        buztab-zeile = bseg-buzei.
        x_nochange = 'X'.
        CALL DIALOG 'RF_ZEILEN_ANZEIGE'
             EXPORTING
                  buztab
                  buztab-zeile
                  tcode        FROM 'FB03'
                  x_nochange
             IMPORTING
                  buztab
                  x_commit.
      ENDIF.
      CLEAR bkpf.
      CLEAR bseg.
    The above given is the part of a code. I need to replace the CALL DIALOG part with CALL TRANSACTION. Can any one plz suggest me how to go ahead with it?

    Javascript. window.open();

  • Call transaction BDC with different user id

    Hello,
    We have a BDC program for creating Invoice using "CALL TRANSACTION VF01" method. But there are are few user IDs accessing this program who do not have authorisation to VF01. So requirement is to create Invoice with a common user id.
    Please help if it is possible to call transaction with different user id. Please also provide you inputs if you can suggest some other way to fulfill this requirement.
    Thanks & Regards,
    Rohit

    Hi Rohit,
    if users are not authorized to post invoice, why is it required to surpass the checks?
    A Question the business should answer.
    It should not be the consultants obligation to find doubtable ways.
    Regards
    Clemens

  • CALL transaction using generic user.

    Hi experts,
    I have a   CALL TRANSACTION, which code is: 'ME54' USING BDC_TAB MODE 'E' UPDATE 'S'.
    I have previosly defines the BDC_TAB. Is is a backgroud process executes with an event. The sy-uname there is the same as the user that has lauched the event. I want this to be executed with a generic user, example GENUSER instead of the one that really launches the event.
    ¿Is this possible?
    Thank-you very much,
    Artur.

    Hi,
    The only way I can think of at the moment is to extract your CALL TRANSACTION into a separate self-contained program (which it may already be looking at your post).  Then use FM JOB_OPEN, JOB_SUBMIT (changing the parameter AUTHCKNAM to you generic user) and JOB_CLOSE (with STRTIMMED = abap_true).
    This obviously gives rise to other problems such as knowing when the job finished etc but this depends on your overall design and if this is important or not.
    Looking at your overall process this does not sound like a problem.  Simply change the background job step for the event - have it call a new program to perform the JOB* FM steps instead which calls your original program that was registered against the event.
    Thanks,
    Pete

  • CALl Transaction Failing in ABAp Proxy

    Hi All,
    We are trying to CALL the VL02n Transaction in our ABAP Proxy Class Code. But the System is somehow not able to CALL The Transaction.
    But if we create a BDC Session the session is getting created.
    Any inputs as to why this is falling.
    Regards,
    Arunava

    Hi there,
    Arun and I are working on this issue together.
    We have tried the Call Transaction with mode 'N', and it does not work.  We get sy-subrc = 1,001 from the Call transaction statement.  We we run it in Mode 'A', we get kicked out from the session completely.  The user we are using to connect from XI to ECC has SAP_ALL, and is also a Dialog user.
    Any help/ideas would be very well apprciated...
    Regards,
    Jawwad

  • Call Transaction Through RFC

    Hi ,
    I am trying to do a call transaction through RFC call from a Middleware which is a CPIC user (only communication Non dialog User ) . 
    Call  transaction does gets executed without any error but it does not update any data.But when I run it through my user id it works absolutely fine .
    I am not sure what is causing the issue
    Security authorization?
    RFC through Non Dialog user ?
    Paramters missing in RFC  ?
    Paramatertes missing in call transaction option?
    If anyone of you has faced a similiar issue then please let me know the path forward.
    Thanks
    Vikas

    Hi Vikas,
        The problem is in Authorization? And check the mode of Process Synchoronus or asynchoronous? Both the RFC and CALL transaction should be Same /
    Thanks
    MAnju

  • Statement "CALL TRANSACTION" is not allowed in this form.

    Hi
    I have a form in which i want to call a transaction:
      CALL TRANSACTION 'VL32N'  USING bdc_tab
                                                       MODE    'E'
                                                       UPDATE  'S'
                                                       MESSAGES INTO mestab.
    I call this report from within a message and when reaching this statement it fails.
    Now i get this error in ST22:
    POSTING_ILLEGAL_STATEMENT
    Statement "CALL TRANSACTION" is not allowed in this form.
    and afterwards this error:
    DYNPRO_SEND_IN_BACKGROUND
    Screen output without connection to user.
    As i read,it is not allowed to call this kind of statement from within a form and we should use something like:
    RECEIVE RESULTS FROM FUNCTION but i do not know how because i have never before used such call statements.
    thanks

    Hi,
    The bdc table is filled correctly but the CALL TRANSACTION is not alllowed.I think it is because of the call from the Form ENTRY which is called when issuing an message from my transaction.I have read that it is not allowed to have any call transaction,submit or any other statements like these in a function call,and i think that my form ENTRY is seen as a sort of function module.
    Any other opinions?
    With my "call transaction" statement i wanted to open the VL32N Transaction and post a goods receipt.Is there any other way to do this?
    I get this message in the ST22 Transaction:
    This program is triggered in the update task. There, the   
    following ABAP/4 statements are not allowed:                                                                               
    -  CALL SCREEN                                             
    -  CALL DIALOG                                             
    -  CALL TRANSACTION                                        
    -  SUBMIT                                                  
    But i do not know what is ment by update task.All i use are some "export to memory"  statements and this is all.
    Any ideas?
    thanks.
    Edited by: seba seba on Jul 28, 2009 11:22 AM

  • CNTL_ERROR call transaction miro

    In a project I developed a z fm   that integrate a idoc that  execute a  call transaction in miro. If I execute (in we19 in background mode) the fm does not give me ningun mistake, but if the entry is by external idoc i get the  following dump "CNTL_ERROR".
    I have been looking the sap not  311440 and my question is..
    I understand that when a extrenal idoc is  integrated in R3 the FM is executed s in background ??  because if i execute the same  code in a program in background mode i get the same error.
    why if  execute it via we19 in background mode it does not give me ningun mistake?
    Can you be that the user RFC who integrates the idoc does not have permissions?
    Or that directly as says the note 311440 cannot I execute call transaction to enjoy transactions an i have to use bapi ?
    Thanks

    Hi Gonzalez,
    You must not use a call transaction in any case if you have a BAPI as a working alternative. I suggest you check functions BAPI_INCOMINGINVOICE_*. This is more true for enjoy transactions.
    There are severall reasons for it, I guess in your case the system is trying to create an unexpected foreground screen object. I don't know why it would work in WE19 in background. There might be some differences in user parameters, for instance, some default user data might not be set (like company code, that would be typical).
    If you have to continue using call transaction, I suggest you set interface user for dialog and use it at least once to access MIRO directly to see if you can make all steps in your code.
    regards,
    Edgar

  • GRC 10 ALERT MONITOR: FALSE/POSITIVES BIAS CALL TRANSACTION

    Hi, everybody. I had an Issue related with GRC AC 10 alert monitor that is reporting that some users triggered SoD risks TR54 , TR01 and TR03 originated by transactions: ML81N - service entry against purchase order and FB05 - post with clearing. Both transactions are not available for those users because they don´t have the authorization profiles in the UMR or available in dialog mode.
    Nevertheless we observed that both actions (ML81N and FB05) were invoked by a "CALL TRANSACTION" instruction from another program report.
    I believe that this is a false positive alarm that were triggered even though the users have not assigned roles or functions of risk.
    I will appreciate your comments.
    Best Regards.
    Victor Sarabia
    IT GRC Manager

    1) How do I not alert on first failure but initiate an immediate retry in 30 seconds and if retry fails then alert.  This prevents false positives and is a feature that products such as uptrends performs as default
    SCOM has no that kind of feature
    2) How do I alert on with just one alert of transaction failure instead of each of the components of the transaction monitor failure.  Example our first failure threw 10 alerts encompassing each part of the transaction
    a) Right click web application transaction Monitoring object --> View Management Pack Object --> View Monitors
    b) Expanse the web application transaction monitor --> entity Health --> Availability --> Web Application XXXX
    c) Open the monitor properties of Request X -XXX and uncheck "Generate alerts for this monitor"
    3) How do I create an uptime report to show monthly and quarterly uptime for the website based on the transaction monitoring.
    a) go to Monitoring workspace --> Web Application Transaction Monitoring --> Web Application State
    b) select the web application transaction entity and click Availability Report task on task pane
    c) Select the report period and run
    Roger
    Roger

  • Call transaction doubt?

    hi experts,
    I want to call a transaction and to invoke a function code in the called transaction without any user interaction. Is it possible to use <b>call transaction "Tcode" </b>statement and pass a fuction code along with it. else suggest me how to over come this problem.
    with regards,
    James....
    valuable answers will be rewarded..........

    this is one more addtion of the CALL TRANSACTION statement
    ... <b>USING bdc_tab [bdc_options]</b>
    Effect
    Use this addition to pass an internal table bdc_tab of row type BDCDATA from the ABAP Dictionary to a dialog transaction. The additions bdc_options control the batch input processing. When a transaction with addition USING is called, the system field sy-binpt is set to value "X" in the called program - while this transaction is running, no other transaction can be called with this addition.
    The internal table bdc_tab is the program-internal representation of a batch input session and must be filled accordingly. The structure BDCDATA has the components shown in the table below.
    Component Description
    PROGRAM Name of the program of the called transaction
    DYNPRO Number of the dynpro to be processed
    DYNBEGIN Flag for the beginning of a new dynpro (possible values are "X" and " ")
    FNAM Name of a dynpro field to be filled or batch input control statement, for example, to position the cursor
    FVAL Value to be passed to the dynpro field or to the control statement
    Using the internal table bdc_tab, you can provide any number of screens of the called transaction with input and user actions.
    System Fields
    sy-subrc Description
    0 The batch input processing of the called transaction was successful.
    < 1000 Error in the called transaction. If within the transaction a message was sent, you can receive it using the addition MESSAGES.
    1001 Error in batch input processing.
    Note
    Outside of ABAP Objects you can specify the additions AND SKIP FIRST SCREEN and USING together. However, this does not make sense, because the addition AND SKIP FIRST SCREEN is desigend only to fill the mandatory input fields using SPA/GPA parameters, while the batch input table specified with USING controls the entire transaction flow including the display of the screens.
    Example
    Call of the Class Builder (transaction SE24) and display of class CL_SPFLI_PERSISTENT. The internal table bdcdata_tab contains the input for the batch input processing of the first dynpro (1000) of the transaction. Using structure opt, the batch input processing is set to suppress the first screen and to display the next screen in the standard size.
    DATA class_name(30) TYPE c VALUE 'CL_SPFLI_PERSISTENT'.
    DATA: bdcdata_wa  TYPE bdcdata,
          bdcdata_tab TYPE TABLE OF bdcdata.
    DATA opt TYPE ctu_params.
    CLEAR bdcdata_wa.
    bdcdata_wa-program  = 'SAPLSEOD'.
    bdcdata_wa-dynpro   = '1000'.
    bdcdata_wa-dynbegin = 'X'.
    APPEND bdcdata_wa TO bdcdata_tab.
    CLEAR bdcdata_wa.
    bdcdata_wa-fnam = 'BDC_CURSOR'.
    bdcdata_wa-fval = 'SEOCLASS-CLSNAME'.
    APPEND bdcdata_wa TO bdcdata_tab.
    CLEAR bdcdata_wa.
    bdcdata_wa-fnam = 'SEOCLASS-CLSNAME'.
    bdcdata_wa-fval = class_name.
    APPEND bdcdata_wa TO bdcdata_tab.
    CLEAR bdcdata_wa.
    bdcdata_wa-fnam = 'BDC_OKCODE'.
    bdcdata_wa-fval = '=CIDI'.
    APPEND bdcdata_wa TO bdcdata_tab.
    opt-dismode = 'E'.
    opt-defsize = 'X'.
    CALL TRANSACTION 'SE24' USING bdcdata_tab OPTIONS FROM opt.

Maybe you are looking for