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

Similar Messages

  • 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

  • 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 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

    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

  • 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?

  • 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

  • How to keep multiple function modules under one Web service

    Hi Experts,
    I have Three RFC function modules and i need to create one web service for these three RFC function modules. I know How to crearte a web service for one function module.
    please suggest me How to keep multiple function modules under one Web service.
    Thanks in advance
    Lakshminarayana

    Hi Lakshmi,
    The best way to do it is to assign all the three RFC Enabled FM's to one function group. Later on the top menu in Utilities you get an option to Create a Webservice from a Function Group.
    You can create one single Webservice using all the the 3 FM's.
    I hope this helps.
    Thanks,
    Manu

  • How to use read_text function module

    Hi how to use read_text function module to read purchase order header text .what are all tht things to pass in ID,Name and Object
    thanks,
    Mahe

    Dear,
    Use below code.
    DATA:IT_LINE LIKE TLINE OCCURS 0 WITH HEADER LINE,
    V_TDNAME LIKE THEAD-TDNAME.
    V_TDNAME = PO_NUMBER.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
    *   CLIENT                        = SY-MANDT
        ID                            = 'F01'
        LANGUAGE                      = 'EN'
        NAME                          = V_TDNAME
        OBJECT                        = 'EKKO'
      TABLES
        LINES                         = IT_LINE.
    Thanks and Regards,

Maybe you are looking for