Debugging call transaction statement

hi,
I am triggering a remotely enabled function module from a webdynpro application from portal. i am debugging this process from SM50 transaction. The function module has a call transaction statement calling VA42 transaction.
I tried below options and these did not work.
I tried changing the mode in debug mode to 'A'.
I tried to complete execution of this statement in background mode only, giving a breakpoint after this statement so that i can get bdcmsgcoll table and see the details.
But at the call transaction statement, the debug operation fails and the process is end abruptly.
Please tell me whether debugging for a call transaction statement from SM50 screen is possible and how?
Thanks in advance,
Padmini
Message was edited by:
        Padmini Manickaraj

If this is a custom code, modify it to write the contents of the internal table of type BDCMSGCOLL to a file in the unix system (the files that you can view using transaction AL11). The error message will probably give you an idea as to why the BDC has failed. Make sure that this piece of code should be executable only by you. This is just for debugging. You can remove this code after you have finished analysing it.
IF sy-uname EQ <your user id>.
...code to transfer data to the unix file
endif.

Similar Messages

  • How to Debug  Call transaction  ?

    Hi ,
    I want to debug a  BDC program  . In the debug I want to  change the  MODE value to 'A '. Currently it is hard coded . Statement in the code looks like this
    CALL TRANSACTION 'VL01N' USING bdcdata
                                    MODE 'N'
                                    UPDATE 'S'
                                    MESSAGES INTO messtab.
    I dont have the  option to modify or copy the code. 
    Please let me know is theer a way to do it ? Thank you very much in advance.
    Thanks & regards
    Nanaiah

    HI,
    Put a Break point in the Call transcation and change the mode value to 'A' during the Debugging or change the mode value to 'A' for the testing part or do the below declaration
    DATA opt TYPE ctu_params.
    opt-dismode = 'E'.
    opt-defsize = 'X'.
    In that give the dismode = 'A'.
    CALL TRANSACTION 'VL01N' USING bdcdata_tab OPTIONS FROM opt
    UPDATE 'S'
    MESSAGES INTO messtab.
    While doing that take care u r not saving any data .
    With Regards,
    Sumodh.P
    Edited by: Sumodh P on May 11, 2010 11:09 AM

  • Call Transaction statement Obsolete

    Hi,
    We are upgrading our system from 4.6 B to Ecc 6.0.
    What are the statements obsolete in ECC 6.0 due to Unicode, what is the replacement for Call Transaction.
    Can any one give me a step by step procedure to use UCCHECK and SPAU?
    My email ID is [email protected]
    Regards,
    Abhishek...

    Hi,
    You can use the Function Module COPF_CALL_TRANSACTION
    CALL FUNCTION 'COPF_CALL_TRANSACTION'
            EXPORTING
              TCODE = '<tcode>'
              NEW_SESSION = ' '.
    if NEW_SESSION = 'X' then transaction will open in a new window
    Regards,
    Samson Rodrigues.

  • What is the use of Update type used with call transaction statement?

    What is the difference between following option of call transaction-
    'A' (asynchronous update)
    'S' (synchronous update)
    'L' (local update)  ???
    Regards,
    GURU

    In synchronous method incase if there is any change in the table all the related tables will be changed accordingly and then sy-subrc will be returned.In
    asynchronous method in case if there is any change in the table the s-subrc will be immediatel returned and then the related tables will be updated. the diffrence between these two is in asynchronous even if the related tables are not updated the sy-subrc will still be returned as 0.
    Reward if it is ok
    Siva Kumar

  • Debugging Call 'ThNoGet' statement

    Hi All,
    Can any please explain me the following command?
       Nummernvergabe aus Puffer aufrufen
      CALL 'ThNoGet' ID 'BNRIV'    FIELD BNRIV
                     ID 'NO'       FIELD G_NOIVBUFFER
                     ID 'QUAN'     FIELD P_QUANTITY
                     ID 'PERCENT'  FIELD TNRO-PERCENTAGE
                     ID 'NONRSWAP' FIELD TNRO-NONRSWAP.
    Also, please let me know how to debug this command.
    Many thanks in advance.
    Best Regards,
    Tarun

    hi tarun gupta,
    The one you have got is a system function. Kindly refer below for your reference.
    Kernel C System calls are really just for SAP internal use. If SAP wants to allow a customer to use one, they will generally write a released ABAP function module to expose the Kernel Call. One example of this is the function module TH_USER_INFO. The following is from the on-line help for system call:
    CALL - Call a System Function
    Note
    This statement is for internal use only.
    Incompatible changes or further developments may occur at any time without warning or notice.
    Basic form 8
    CALL cfunc.
    Addition:
    ... ID id1 FIELD f1 ... ID idn FIELD fn
    Effect
    Calls the system function cfunc. The relevant function must exist in the file sapactab.h. If you change or recreate a function, you have to compile and link the SAP kernel again. For this, you need the C source code files.
    Normally, external programs should be called by RFC with CALL FUNCTION ... DESTINATION.
    Addition
    ... ID id1 FIELD f1 ... ID idn FIELD fn
    Effect
    Passes fields to the called program by reference. With "ID id1", you specify the name of a formal parameter, and with "FIELD f1" the relevant field from the ABAP/4 program. If a formal parameter expects an internal table, the latter is passed in the form "FIELD tab[]".
    Example
    Код:
    DATA RESULT(8).
    CALL 'MULTIPLY' ID 'P1' FIELD '9999'
    ID 'P2' FIELD '9999'
    ID 'RES' FIELD RESULT. 
    Note
    With some critical C functions, the system automatically performs an authorization check. If the user does not have the appropriate authorization, a runtime error occurs. You can check the authorization with the function module AUTHORITY_CHECK_C_FUNCTION.
    Runtime errors:
    CALL_C_FUNCTION_NOT_FOUND: Specified system function unknown.
    CALL_C_FUNCTION_NO_AUTHORITY: No authorization to call this C function.
    CALL_SYSTEM-DISABLED: The system function SYSTEM is disabled (with CALL 'SYSTEM').
    These are the System functions
    ABAP_CALLSTACK
    ABAP_CRC64
    ABAP_PRECOMPILED_HEADER_USAGE
    ABSTOR_TEST AB_CALL_LITL_CHECK AB_CALL_STACK_TRACE
    AB_CREATE_SAPHFILE
    AB_DELETE_ALL_MEM
    AB_DELETE_ALL_SHARED
    AB_DELETE_MEM AB_DELETE_SHARED
    AB_FIELD_CHECKWRITEADDRESS
    AB_FIELD_INFO
    AB_FRAG_VIEW_TO_ITAB
    AB_GET_CALLER AB_GET_COUNTRY
    AB_GET_CX_DATA
    AB_GET_CX_FOR_CUSTOMIZE
    AB_GET_C_PARMS
    AB_GET_DIRECTORY_DB
    AB_GET_DIRECTORY_MEM
    AB_GET_DIRECTORY_SHARED
    AB_GET_GLOBAL_FIELDS
    AB_GET_KEYS_MEM
    AB_GET_KEYS_SHARED
    AB_GET_NEXT_LEVEL_SHARED
    AB_GET_TEXT_FROM_CLUSTER
    AB_GET_VIEW_TO_ITAB AB_IMPORT_DECOMPRESS
    AB_PRINT
    AB_PROGTEXT
    AB_P_A_CALC
    AB_READTABLE_TRACE_GET AB_READTABLE_TRACE_ON
    AB_READ_TEXTPOOL
    AB_RFC_STATISTIC_TID
    AB_RFC_X_SCRAMBLE_STRING
    AB_RTM_DUMP
    AB_RTM_LOAD_FILE
    AB_SET_CODEPAGE_IN_CLUSTER
    AB_SET_CX_DATA
    AB_SET_C_PARMS
    ThDisplay
    ThGwMon
    ThNoCall
    ThNoGet -
    this is the one you have got...
    ThNoRead ThSndDelUser
    ThSysInfo
    ThTest
    ThUsrInfo
    ThVBCall
    ThVersion
    ThWpInfo
    TrCall

  • 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

  • Getting Express document 'Update was Terminated' in Call Transaction AS02

    Hi All,
       I've written BDC for changing the Asset Master using Call Transaction Method. After the Call Transaction it it showing me the Success message that 'The Asset has been Changed'.But it is not reflecting in the Database table.When i navigate back from th e screen I'm getting the Express document as 'Update was terminated'.
    Please help me in this regard.
    Thanks and Regards.

    Hi,
    have you used commit statement after the call transaction statement, or if there is any enhancement for AS02 transaction remove the commit work statement from the enhancement.
    Regards, Qamar

  • How to handle the call transaction in method of a custom business object

    Hello all,
    There is a custom report " RPTCORAPP" for approving leaves . As per my requirement i have develop a copy of leave workflow and for approval process i have call  "RPTCORAPP" in Custom method of custom object. i have made a transaction for this custom report for approving attendances. I am calling this method though call transaction statement within method.
    Problem: while approving the attendance workitem is not disappearing from the portal. Problem is due to call transaction statement.
                   once workitem come to the user, user click on it. control goes to the report, which display all the leave to approve on
                   the portal.
                   If after approving/ rejecting attendance user close the screen.workflow remain in the "process" status.Control wont come  back after call transaction statement in the method.
                 At the same time if user clicks on back button inspite of closing the screen. it is working fine. workitem disappears from the portal.
    How to handle the scenarion. if after approving/rejecting, i want the control to come back to the NEXT STATEMENT after call transactionstatement in my method.
    Please help it out........:)

    Hi swami,
    thanks for reply. but i am not using BDC in my method. iam just calling a custom transaction thriugh statement
    Call transaction 'ZHR_APPROVE_CLINOUT'. This transaction directly run the report RPTCORAPP and display all the request.

  • How to resolve the error in bdc call transaction in ALV report

    Dear Experts, i am executing the alv report program and in alv report program one bdc is there..
    after executing output is showing in alv format but one button is there (update master)..when i am clicking update button the bdc is run but is not updated in the material master..after executing my bdc is not updated in mm02.
    how to resove it?
    CALL TRANSACTION 'MM02' USING BDCDATA MODE MODE
                                                              UPDATE 'S'
                                                      MESSAGES INTO MESSTAB.

    Hi Kaustav,
    Looking at the code you attached, it appears to me that your BDC (Form  USER_COMMAND) is not executed at all as you haven't passed the 'USER_COMMAND' in FM REUSE_ALV_GRID_DISPLAY for ALV display.
    You must pass the importing parameter  I_CALLBACK_USER_COMMAND of this FM as 'USER_COMMAND', only then this form will be executed and your BDC will run.
    Thereafter, in case your BDC update fails, you can put a break-point in the form (at CALL TRANSACTION statement) and analyze the message table MESSTAB.
    Hope it helps.
    Regards,
    Sapeksh

  • 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 in mode N fro transaction F-02

    Hi,
    The call transaction for F-02 work well in mode 'A' and it creates the FI posting. But when I execute it in mode 'N' it does not post.
    Any ideas?
    Thanks in advance.

    Hi Abel Isaac Polo,
    Welcome to SCN, as per your issue I do't thing that should happend... Can you paste wht all paramenters which you are passing to CALL Transaction statement.
    Regards,
    Suneel G

  • Call Transaction in foreground mode

    Dear friends,
    I am calling a transaction from a program inside a loop using CALL TRANSACTION statement in foreground mode.
    After processing that transaction, i need to get the control back to the loop for processing next record.
    Whether this is possible?
    Thanks,

    Tthe control will come back to the loop for processing next record but only if the transaction runs according to the recording without any error messages else it will stop at the particular screen since its running in foreground mode . Also make sure you refresh the BDCDATA for each loop pass.

  • Call Transaction In MV50AFZ1 ?

    Hi Everyone,
    I have a senario , where in based on user inputs before posting goods issue in delivery processing (vl02n),
    I need to call a Z-Transaction and update some details in it.
    Now for that i created an include for the enhancement MV50AFZ1 and tried to write Call transaction statement as follows:
    call TRANSACTION zwb01.
    which throws the following syntax error: "Field ZWB01 is unknown.it is neither in one of the specified tables nor defined by a data statement"
    Anyone has any idea on this, can i call transaction in an exit,if yes wat is it that i am missing out here??
    Thanks,
    sachin

    >
    Sachin Soni wrote:
    > even if this transaction updates some z-tables and then returns?
    exactly, in fact this is the problem itself. It will update the transaction from which it was called as well - but that transaction is only "half-ready" and this will lead to inconsistent database entries.

  • ABAP : call transaction CN22

    Hello,
    We use the call transaction to CN22 ( with MESSAGES into itab option...)  to close networks.
    Sometimes we have messages in a popup window which indicate that the closing action is not possible.
    Unfortunately, those kind of messages are not returned by the call transaction and  sy-subrc statement = 0.
    Is it possible to read these messages with the call transaction statement ?
    Thanks in advance for your answer
    Jocelyne

    Hi Guinamant,
    you can collect al lthe error messages into bdcmsgcoll structure.
    you follow the codes:
    CALL TRANSACTION c_cn22 USING i_bdcdata
                              OPTIONS FROM wa_opt
                              MESSAGES INTO i_msgcoll.
    note: i_msgcoll type standard table of bdcmsgcoll,
             wa_msgcoll type bdcmsgcoll.
    after bdc execution , all the error messages will be colllected in to i_msgcoll.
    then if you want to get the text messages, then pass it through FM:
    WRF_MESSAGE_TEXT_BUILD, OR USE FORMAT_MESSAGE
    READ TABLE i_msgcoll INTO wa_msgcoll
      WITH KEY msgtyp = c_e.
    CALL FUNCTION 'WRF_MESSAGE_TEXT_BUILD'
          EXPORTING
            p_msgid   = wa_msgcoll-msgid
            p_msgno   = l_msgno
            p_msgv1   = wa_msgcoll-msgv1
            p_msgv2   = wa_msgcoll-msgv2
            p_msgv3   = wa_msgcoll-msgv3
            p_msgv4   = wa_msgcoll-msgv4
          IMPORTING
            es_return = lwa_bapireturn1.
    Hope this can solve your problems.
    Regards,
    Tutun

  • Can not call RFC contains "call transaction"  in webdynpro

    We use Webdynpro to develope a UI that can create service orders in CRM
    system. We create an RFC funciton "ZKLEE_CRM_ORDER_MODIFY" in CRM,which
    contain a statement of "CALL TRANSACTION 'CRMD_BUS2000120' USING T_BDC
    MODE 'N' MESSAGES INTO MESSTAB.".
    But as we exacute the RFC from WEB,we got 3 error messages in the
    output "MESSTAB":
    1.MESSAGE ID = "DC",MESSAGE NUMBER = "006", MESSAGE = "Control
    Framework: Fatal error - GUI cannot be reached".
    2.MESSAGE ID = "SY",MESSAGE NUMBER = "002", MESSAGE = "Exception
    condition CNTL_ERROR raised."
    3.MESSAGE ID = "00",MESSAGE NUMBER = "359",and it is a terminate
    message.
    The problem is that we can use webdynpro to call RFCs that do not
    contain "call transaction" freely. At first we suspect that it is our
    RFC function's fault, but we tried it in ABAP enviroment,and it works
    OK. We also tried to call this RFC in JSP through JCO,the same error
    occurs.
    Our system enviroment is CRM 4.0, J2EE 640, kernel 640 patch 109.

    HI,
    Thank you for your information.
    Maybe you are right that BAPI/RFC can not contain "call transaction" statement. But two weeks ago, one of my colleagues tried to use "call transaction" in RFC through JCO in our R/3 enviroment(not in CRM),and he successed.
    So I suspect the kernel release. The kernel of R/3 is 640,while CRM is 620(I said our CRM kernel release is 640 before,and it is a mistake.).I will confirm whether what my colleague said is right by myself, and will also told you the result.
    Message was edited by: Vincent zklee

Maybe you are looking for

  • SOA Cluster: Managed Server startup issue

    Hi, I did the SOA clustering as follows: 10.111.122.133 – Admin Server and soa_server1 10.111.122.136 – soa_server2 Configured "soadomain" that contains Admin Server, soa_server1 and soa_server2. used pack and unpack to replicate domain structure in

  • Sync iPad to apple tv

    Why when I play my iPad it will not show up on apple tv sound no picture

  • Can't import flip video - Premiere freezes

    I'm using CS3 Premiere Pro, and am trying to import a flip .mp4 clip that is 1.07GB and roughly 30 min in length.  When I try to import the clip - Premiere just freezes and I have to end the process. I've never had a problem like this before, and whi

  • For Account assigned PO - pricing procedure key accounts are not triggering

    Hi For account assigned PO's only the account which I am assigning at the time of PO only hitting, and the other accounts are not hitting which should hit through my pricing procedure for the planned delivery costs condition types regards, Archu

  • WebLogic 5.1.0 & Oracle 8.1.7 thin driver for jdk 1.3.1

    We're currently using Oracle 8.1.6, and need to upgrade to 8.1.7. Platform: Solaris 2.6 WebLogic: 5.1 Service Pack 9 JDK : 1.3.1 Regarding the thin drivers, my understanding is that w/ 8.1.7, we can use either 8.1.7 OR 9.0.1 thin drivers. Has anyone