How to debug LAE function modules in ECC

Hi,
I've been trying to debug sequence of FMs called by LAE during asset creation in ECC. The asset is created for every service contract created in SAP CRM and then replicated to ECC system. While debugging the flow from CRM, I could debug upto ECC and then put external breakpoing in LAE FMs mentioned above but those FMs were not hit. 
LAFA_ASSETS_CREATE_ON_LEASE
LAFA_ASSETS_CREATE
LAFA_ASSET_CREATE
LAFA_ASSETS_RETIRED_GET
Could anybody help me debugging these FMs?
Regards,
Ravi

Hi Ravi,
this process works asynchonous. This means from CRM some entries are stored in LAE_CRM* tables with function module FILA_BUS_TRANSACTION_RECEVIE. A triggered function picks up the entreis and process them. This function runs through your mentioned function modules.
In a test system, you can call transaction FILATEST and copy the contract sent from CRM and using the simulation or execution function. This will bring you to these function modules.
Kind regards,
Steve
Edited by: Steve Trester on Mar 1, 2011 8:13 AM

Similar Messages

  • How to debug LAE function modules

    Hi FI Expert,
    I've been trying to debug sequence of FMs called by LAE during asset creation.
    LAFA_ASSETS_CREATE_ON_LEASE
    LAFA_ASSETS_CREATE
    LAFA_ASSET_CREATE
    LAFA_ASSETS_RETIRED_GET
    The asset is created for every service contract created in SAP CRM and then replicated to ECC system . While debugging the flow, I could debug upto ECC and then put external breakpoing in LAE FMs mentioned above but those FMs were not hit.
    Could anybody help me debugging these FMs?
    Regards,
    Ravi

    Hi Ravi,
    this process works asynchonous. This means from CRM some entries are stored in LAE_CRM* tables with function module FILA_BUS_TRANSACTION_RECEVIE. A triggered function picks up the entreis and process them. This function runs through your mentioned function modules.
    In a test system, you can call transaction FILATEST and copy the contract sent from CRM and using the simulation or execution function. This will bring you to these function modules.
    Kind regards,
    Steve

  • How to debug a function module using in the generic datasource?

    Hi all,
    We have created a generic data source using function modulle and have been extracting the data for a single customer it contains single records but it has pulled out more than 10,000 records. how to debug the function module used in the data source.
    since we schedule for extraction in bi and back ground job gets triggered in ecc for extraction,
    i know in se37 we can select the function module name and then debug but still need to check while the bacground job is trigered through bi.
    Thanks

    Yes you can debug the Function Module.
    Open the function module in SE37 and put a break point in the code where you want to check from, then come to RSA3 and give the datasource name and check the Debug check box on this screen, once you click on the start button it will take you the place where you have placed the break point in the FM, by pressing F5 you can see the flow of the FM.
    Let me know whether this solves your issue.

  • How to DEBUG a function module running in background mode? Please help!

    Hi Experts,
       I am calling a function module in my ABAP code in background module using the following syntax:
      CALL FUNCTION 'YBBC2_CREATE_SNAPSHOT' IN BACKGROUND TASK
              TABLES
                itab_std_format_inv = itab_std_format_inv
                itab_snapshot_inv = itab_snapshot_inv.
            COMMIT WORK.
    If I put the breakpoint in the CALL FUNCTION line and execute the program, the debugger does not take me to the valled function module. This may be because I am running the function module as background task.
    I cannot comment this  "IN BACKGROUND TASK" statement as well since i am debugging in Quality system where I don't have change access.
    So how to DEBUG a function module running in background mode? Please help!
    Thanks
    Gopal

    Hi,
    You could try to use the following trick:
    (1) Put an endless loop into the coding of your function module where you want to start debugging, e.g.
      DATA:
        lx_exit_loop(1)     TYPE c.
      lx_exit_loop = ' '.
      DO.
        IF ( lx_exit_loop = 'X' ).
          EXIT.
        ENDIF.
      ENDDO.
    (2) Call your function module in background task
    (3) Call transaction SM50 and search for the background process.
    (3) Choose from menu Program/Mode -> Program -> Debugging
    Now you the debugger should bring you right to your endless loop. Set lx_loop_exit = 'X' in the debugger and continue (F5 or F6).
    <b>Reward points</b>
    Regards

  • How to debug a function module

    hi,
    Please Tell me how to debug an Function module
    Thanks in advance
    ajay

    Hi,
    In SE37 while executing the FM there is an option to execute the same in Debugging mode. If you want to debug the FM as a stand alone code you can make use of this functionality. Provide the necessary input values and run the FM in debugging mode.
    If you intend to debug the FM from another program wherein it is called you can always set a breakpoint inside the FM and execute the code in the calling program. The control will stop for you at the point where you have set the break point inside the FM automatically.
    Hope you have a clear picture now.
    Reward if helpful.

  • How to debug a function module that is written to extend a datasource

    Hi all -
    this is BW related question.
    I have a datasource that I extended but instead of writing the code in the user exit, I created a function group and a function module to populate the custom fields. My problem is  - I want to debug the function module and when I do that, I have to give datasource, infosource and update mode as input parameters.  There is no data in the internal table C_T_DATA, how can I debug to get data into this table. 
    please let me know.
    thanks,
    Sabrina.

    Keep the Break point Before Updating.
    just click on the table c_t_data .or choose the internal table and say CTRL+F4, you can internal table content
    you can find change, append ,delete options.
    just select the row and click append they one blank row will appear. just add entries to that , and enter
    the record will be appended, do in the same way if you need more records to add...
    regards
    vijay

  • Debugging RFC function module from ECC to CRM

    Hi All,
    My requirement is to debug an RFC function module present in CRM(7.0) system from ECC(6.0) system. A report program in ECC will call CRM custom FM. I found many posts in SDN with the same issue and tried to implement suggestions provided there. But I couldn't succeed. The approach I followed is:
    I logged in to ECC report program and kept an external breakpoint just before the function module call.
    I logged in to CRM system, opened the function module and kept an external breakpoint there.
    In both the systems I provided the dialogue userid( id through which I log in to SAPGUI) in the system->settings->debugging option.
    In CRM I activated the external break point in  transaction SRDEBUG.
    Now when I execute the report program in ECC, control stops at the breakpoint. If I press F5 at the function call, control is not going to the external break point set in the CRM FM. I am getting output of FM directly.
    I tried with different settings like turning on the check box for IP matching and session breakpoint active immediate, switching to classic debugger etc. I also tried to provide the RFC user id instead of dialogue user but system throws exception saying only dialogue userids are allowed. I found that by inserting an infinite loop statement, control goes inside the RFC CRM FM but I prefer not to change the code.
    Please let me know if I missed anything.
    Thanks and Regards,
    Naren

    Hi,
    Debug RFC calls
    When an RFC function module is called it is usually not possible to debug the call, using the below techniques we can achieve the same. For this example we are calling an RFC enabled FM in ECC system from CRM system.
    Scenario 1: Calling a custom RFC FM
    STEP 1: Add an infinite loop in the remote custom Function Module (adding a u201CDO. ENDDO.u201D statement at the start of the FM would be enough).
    STEP 2: Execute your program in the CRM system. The execution stops at the RFC call, because of the infinite loop.
    STEP 3: Now login to the ECC system and go to transaction SM51 select the process which is executing the RFC and navigate to the menu: u201CProgram/Session->Program->Debuggingu201D this triggers the debugger session in a separate window.
    Scenario 2: Calling a Standard RFC FM
    When we are debugging a standard program we cannot add the infinite loop, hence we cannot go to SM51 and debug the work process. The RFC destination for the ECC system has a User specified, the RFC function module gets executed using this users credentials. Usually the basis team set up the RFC user as non Dialog user, this does not allow debugging. Contact your Basis team and get this changed to a dialog user enabling you to debug RFC function calls via the normal debugger.
    Note: User name configured in the RFC destination (transaction SM59) 
    Note: User type for the RFC User (transaction SU01D)
    Hope this will be helpful..

  • How to debug mapping function module during delta extraction?

    Hi experts,
    Somehow our delta is not working properly, and i would like to debug our mapping function module. How can i debug it during a delta extraction?
    Some info:
    Our source system is CRM and our extractor is extracting one order document (contracts in this case). I know that when we modify a contract, a bdoc is generated and then passed throught the mapping function then the extracted data to the delta queue. I just need to debug when the bdoc is being mapped to see what's wrong with the extracted data.
    Thanks in advance,
    Van

    Hi,
    Since you are using a Function Module for the Extraction. Edit the Function Module and give "BREAK-POINT" before the loop command. Check and activate the Function Module.
    Now Extract the datasource using RSA3. Now you can debug it. After checking remove the "BREAK-POINT" from the function module. Also Check and activate the same.
    Regards
    Jayaram M

  • How to debug a function module in a user exit

    Hello out there,
    I am calling a function module in the updates rules of an InfoCube.
    The function module "hangs" while running the InfoPackage - the Monitor
    shows up with "Missung Message . Update rules finished for InfoCube ...".
    How can I debug an InfoPackage or this function module run
    by the InfoPackage ?
    Thank You !
    Martin Sautter

    Hi Martin,
    well, the weblog is quite good, but for your purpose, just follow the beginning until processing stops in the code. Then, in the top menu choose Breakpoint->Breakpoint at->Function module. In the following popup enter the name of the fm close the popup and press F8. Processing will stop in the fm.
    regards
    Siggi

  • Debug a functional module

    Hi,
    Could you please tell me how to debug the function module.
    Thanks,
    Subha.

    In SE37 while executing the FM there is an option to execute the same in Debugging mode. If you want to debug the FM as a stand alone code you can make use of this functionality. Provide the necessary input values and run the FM in debugging mode.
    If you intend to debug the FM from another program wherein it is called you can always set a breakpoint inside the FM and execute the code in the calling program. The control will stop for you at the point where you have set the break point inside the FM automatically.
    check this link also
    http://help.sap.com/saphelp_nw04s/helpdata/en/d1/801f36454211d189710000e8322d00/content.htm

  • How can I debug a Function Module used by smartforms

    Hello everyone,
    i have a problem with the function module /1BCDWB/SF00000040.
    It's a module executed from a smartforms form. I need to debug this
    function module while printing an invoice. While printing it should jump
    to the place of the function module.
    Would be grateful if someone could help me.
    Best regards
    F. Hoppe

    This is exactly what i have done last time.
    The problem is that the breakpoint does not stay at the same place
    when i activate it in the module itself.
    Isn't there a transaction you can put breakpoints specific to a FM?

  • /CAB* function modules in ECC 6.0 DIMP

    Hi all,
           The /CAB 4.6 objects are does not exist in ECC 6.0. I am working on upgradation project. There are many /CAB function modules used in 4.6 version. How can i get the compatable function modules in ecc 6.0. Is there anyway to find the compatable funciton modules in ECC?
    list of missing function modules:
    /CAB/MM_MAT_PRUEFEN
    /CAB/J_4CM_READ_SINGLE
    /CAB/J_3CB_READ_SINGLE
    /CAB/READ_MRP_ALLOCATION
    /CAB/J_5CL_READ_SINGLE
    /CAB/PP_MD_MCHB_J_5CO_FILL
    /CAB/PP_MD_BDBS_ENQUEUE
    /CAB/CHANGE_MRP_STATUS
    /CAB/PP_MD_FAUF_WM_BEARBEITEN
    /CAB/READ_MRP_ALLOCATION
    /CAB/CAFM_J_5CO_AUS_J_5CX
    /CAB/PP_MD_MSKA_J_5CO_FILL_ALL
    /CAB/SYNC_ENTRIES_SELECT
    /CAB/J_5CO_READ_SINGLE
    /CAB/J_5CX_READ_SINGLE
    /CAB/PP_MD_BDBS_ENQUEUE
    /CAB/PP_MD_BDBS_CHECK_RES
    /CAB/CHANGE_MRP_STATUS
    /CAB/MRP_CONTROL_2
    /CAB/J_2CS_READ_SINGLE
    /CAB/MSLB_READ_SINGLE
    /CAB/MSKA_READ_SINGLE
    /CAB/MSKU_READ_SINGLE
    /CAB/MKOL_READ_SINGLE
    /CAB/MCHB_READ_SINGLE
    thanks,
    Prakash.
    Edited by: Prakash Reddy on Apr 28, 2010 10:32 AM

    Hi,
    Theses function modules are Cable specific as i said before. i have solved the issues by using the existing ECC function modules and is working fne.
    Thanks & Regards,
    Prakash .s

  • How to debug IDOC_OUTPUT_DESADV01 function customer exist

    Hi,
    I have requirment to add some logic on LVED2FZZ exit, I have added the logic but it is not working as expected.
    I have put the break points in IDOC_OUTPUT_DESADV01 function module   PERFORM SEGMENTS_FILL -> PERFORM SEND_SEGMENT_E1EDK07_DESADV -> PERFORM USEREXIT_E1EDK07 and triggered the output type from VL02N transaction, But program is not stopped at break points. I want analyze how data is popluting in segments urgently.
    Please provide the step by step approach to debug  IDOC_OUTPUT_DESADV01 function module from VL02N output type triggering.
    Thanks,
    Raj

    Hi,
    Put a break point in the required part of the User exit. Before saving the data in VL02N, activate debugging by '/h'. 
    When the Debugging screen appears, select the menu option, "Settings -> Update Debugging".  System will give the message
    "Update debugging turned on" in the status bar.  Proceed with executing the Tcode by pressing F8.  System will
    pause the execution on the place where you have created the break point.
    Regards
    Vinod

  • Hw to debug outbound function module

    Hi,
    I know how to debug inbound idoc using WE19 can sum1 tell how can i debug outbound function module.
    i want to debug to see as to why certain segments are not being updated in IDOC PORDCR1.PORDCR102.
    even though i put an external break-point it does't trigger .
    Regards,
    Jayaram Maganti

    >
    JAYARAM MAGANTI wrote:
    > Hi,
    >
    > I know how to debug inbound idoc using WE19 can sum1 tell how can i debug outbound function module.
    > i want to debug to see as to why certain segments are not being updated in IDOC PORDCR1.PORDCR102.
    > even though i put an external break-point it does't trigger .
    >
    >
    > Regards,
    > Jayaram Maganti
    Hi
    See this link this  is helpful for  you.[debug outbound function module|Re: Cannot debug outbound queue;

  • Debugging outbound function module

    Hi,
        I am trying to create or save sales order(va01). I am using ZWIP as the output type and transmitting the details to 3rd party system using idoc. Now Once I save, I could see the out bound idoc being generated. But when I put the break-point in the underlying function module, the process is not stopping there. I want to debug that function module. But all the time the idoc has been generated without stopping at the break-point.
    How do I debug the function module for the outbound idoc?
    Any ideas would be appreciated.
    Thanks
    Sachin

    HI,
    Before saving, put '\h' incommand line and press enter, it will go into debugging then goto settings then update debugging. Then you can press F8 to go the break-point you have create before FM.
    Reg,
    Sachin

Maybe you are looking for

  • Excel Layout by Report Builder 6i

    Hi All, I am getting blank lines in the excel output of my report. Three blank lines are coming together and are repeating after every 40 rows in the excel sheet. Can somebody please guide me over this...??

  • Styles in Premiere and Photoshop Elements not the same!

    I have Elements Premiere and Photoshop v11.  I created a menu using an image with some text in Premiere for a video..  Later on I decided to duplicate the effort using Photoshop..  In Premiere I used a text style called "Lithos Gold Strokes 52".  Now

  • Where can I download or aquire the HTML5 Pack for Illustrator CS6?

    Where can I download or aquire the HTML5 Pack for Illustrator CS6? I would like to be able to save files for HTML5 and CSS. According to the "Adobe Illustrator CS6 On Demand" book, I should be able to download the HTML5 Pack from the following link: 

  • Lightroom 5 and MAC OS X 10.7.0 issues

    I'm trying to load LIghtroom5 onto my computer but it's telling me I need Mac OS X 10.7.0 or greater to install. If I run available updateds for my computer the version I am getting is Mac OS X 10.6.8. Do I need to go elsewhere for this download? Is

  • Please help: i suddenly can't play dvds

    i'm using os 10.9.2 with an internal superdrive and external asus blu-ray drive (sbw-06d2x-u). i'm stuck with region code 3 on dvd player and use vlc to play the rest. all of a sudden, i'm having problems watching dvds. 1. inserting into internal dis