How to debug the LSMW coding???

Hi Experts,
Any one please tell how to debug the lSMW codings?
Thnx,
Mohana

Hi,
Go to the 5th Step that is
"5 Maintain Field Mapping and Conversion Rules"
select this radio Button and execute then
you will maping your defining fields to source structure fields
then where ever you want to write validations
you just select that field and click on RULES tab
then select radio-button User defined routine
then you will get a window
you just click on continue button
then you will get a PERFORM opposite to your selected field
save and come back
then select the 6th radio button
that is " 6 Maintain Fixed Values, Translations, User-Defined Routines"
and execute
there you will find your user defind routine
you just double click on the routine
then you will get a editor for writing your code for validations
you just pass p_in as input and you will get the result in p_out parameter
then you will put a Break point or put command like "BREAK-POINT"
then it will automatically triggered while running this project.
To view your generated code, you need to bring it up in the initial screen of your object.To do so,
click on the User Menu button & check the Display Read Program & Display Conversion Program will take
you into the generated code. Place your soft breakpoint as you normally do.
Another option: go to the step DISPLAY READ PROGRAM or DISPLAY CONVERTION PROGRAM.
Now you will see the ABAP editor with the code. Place the breakpoint (soft break point using STOP button on application tool bar) where ever you desire.
Regards.

Similar Messages

  • LSMW VD51 , Validations in Begin of Transaction; how to Debug the code?

    Hi All,
    I have written code for validations i Begin of Transaction in the field mapping 5th step of LSMW for VD51.
    Now this code not getting triggered at the time of Conversion of Data. How to debug the code. I have put a static break point 'BREAK-POINT' still not getting triggered.
    Any suggestion / solution for this issue.
    Thanks and Regards,
    Narsimha Kulkarni

    Hi Narshimha,
    Make any mapping error during mapping and check the syntax of mapping it will drag you to the lsmw report there you can put your break point. You can check the report name from transaction code as well.
    Remember this mapping block will execute when you execute the step Convert Data in LSMW.
    Regards
    Dhirendra

  • How to debug the smart forms

    Hi All,
    Can any body guide me how to debug the smart forms.
    Thanks & Regards,
    Satish.

    Hi,
    The the best way to debug the form is to put a breakpoint in the function module generated by the smartform.
    Procedure:
    Open the smartform we want to debug.
    Goto Environment -> Function module name.
    Open the function module in SE37. From the menu GOTO -> main program. Open the last include.
    This incude contains the entire code ie the code we have written in initalization + form routines + program lines + sap generated code.
    Even we can search for the text nodes, folders, templates, tables, graphics, address nodes etc with their names.
    Put a breakpoint at any point you want.
    If we issue any doc which triggers this form, when the control reaches the break point it will stop.
    Please note that hard-coding the break points in the code ( Program lines ) is not recommended and it can´t be done unless if it is development server.
    So, always put a session break point in the related function module.
    We can use SFTRACE transaction to know the sequence of the control flow.
    If you want to break at each and every text that is printed on the output form put the break points in the forms.
    1. %write_text  to break at text element.
    2. %WRITE_TEXT_MODULE  to break at text module.
    3. %WRITE_INCLUDE_TEXT  to break at include text.
    Please put a break point at the first sy-subrc check.
    If the control reaches this point, you can find the name of the element in the varible NAME and the content in the text node in %TEXT.
    Its easy to understand the sequence of the printing if we put a breakpoint as stated above.
    Regards,
    Satish.

  • How to debug the BADI - BBP_CREATE_BE_RQ_NEW

    Hi Experts,
    Help me how to debug the BADI in order to validate my coding.
    I have put a break point in the BADI and run the  class CL_BBP_SC_TRANSFER_CLASSIC Instance DO by giving the SC no and the GUID but still the BADI is not getting triggered.
    Suggest me any other way to debug the BADI.
    Regards
    Paul

    Hi,
    You can put an endless loop in your BADI BBP_CREATE_BE_RQ_NEW ,as shown below and force the program to stop there. Now go to SM50 and switch to debug mode for the program and start debugging(take process that keeps hangs in your endless loop).
    Data: l_flag.
    do.
    if l_flag eq 'X'.
    exit.
    endif.
    enddo.
    BR,
    Disha.
    DO reward points for useful answers.

  • How to debug the background job in ABAP

    Hi Guys,
    Can anyone let me know how to debug the background job in ABAP.
    Thanks in advance
    peter

    Hi,
    Goto SM37 and see the log if any is there and based on that you can check the code.
    you can't debug background job.
    Create a Variant for the Program and
    Schedule JOB in background:
    Go to SM36 create a Job
    enter Program and Variant for that program in STEP..
    click on Start Condition
    Click on DATE and TIME enter date scheduled Start and END times
    click on Period Values
    Click on HOURLY/WEEKLY etc
    CLick on RESTRICTIONS also to use further criteria.
    so your job will be scheduled and run as per your requirement.
    and in SM37 Transaction check the status of that JOB
    Check this link for scheduling jobs..
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c4/3a7f87505211d189550000e829fbbd/content.htm
    Check this
    http://jplamontre.free.fr/SAP/Debug%20background%20process.htm
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/abap+debugger&
    Regards,
    Padmam.

  • How to debug the report which isrunning in Background?

    Hi all,
    1.How to debug the report which is running in Background?
    thanks & regards
    vishnuvardhan

    Hello,
    Do like this.
    Create an infinite loop before the line u want debug.
    data: lf_flag.
    do.
    if lf_flag = 'X'.
    exit.
    endif.
    enddo.
    Now execute the report in background. In Tcode SM37 select ur job and in menu job--> Capture Active Job
    IT will stop at the point of infinite loop.
    Regards,
    Vasanth

  • How to debug the method in abap program

    How to debug the method in abap program ?
    Could you please give the solution.
    Thanks
    sai

    Hi ,
    Place break point at call method .
    It takes u in to the method implementation .
    Here u can analyse the method implementation ...
    Reward if useful
    Thanks
    Jagadeesh.G

  • How to debug the routines in the transformations as well as start,endroutin

    Hi all,
    Can anyone explain me how to debug the routines in the DTP, as well as the how to debug the start and end routines>?
    I am new to bi 7 ?
    thanks
    Pooja

    Hi,
    In Execute tab change the processing Modes to 'serially in the dialog process for debugging' . then you can see the option 'simulate'.
    http://help.sap.com/saphelp_nw70/helpdata/en/45/8594ebd17f1956e10000000a11466f/content.htm
    Step by step doc,
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0038ad7-a0c7-2c10-cdbc-dd674682c8e7?quicklink=index&overridelayout=true

  • How to debug the update FM

    Hi,
    I am facing a problem with the debugging of the update FM. I have enabled the update debugging and the system says that update debuging is on . even though the control did not go into the FM.
    Do i need to check in any other transaction . Please give me the details steps on how to see the what is happening in the update FM.
    Full marks are guaranteed.
    thanks
    sankar

    Hi
    I have got a clue from SAP help on how to debug the update FM see the below information from SAP
    When you debug a program that calls function modules using the IN BACKGROUND TASK addition, they are processed in a background work process (additional internal session). If you set the In background task: Do not process option, the system collects the function calls, but does not start the background work process. The Debugger assigns a transaction ID, which identifies the background work process uniquely. You can now start the Debugger for the background work process using transaction SM58. You can select the function module concerned here, and then execute it via the Edit menu.
    I have done everything that is said above , but could not find any entries in SM58
    any suggestions
    thanks
    sankar

  • How to Debug the Outbound IDOC

    Dear SDN Members,
    How to debug the outbound idoc please.
    Thanks in advance
    Yerukala Setty

    Hi,
       IDocs are processed by a function module, which are mapped against in table EDIFCT. When you process an IDoc in transaction BD87 you can put a breakpoint in the function module and it will stop there.For outbound processing it depends on which program is sending the IDoc. For transactional data like purchase orders, the IDoc is created via RSNAST00 which in turn calls a function module assigned to the processing code (BD41).
    Thanks,
    Asit Purbey.

  • HI how to debug the whole SC creation process

    Hi
    I need small help from all you great guys.
    I am working with EBP application.
    I want to know the process of creation of shopping cart to the creation of PO in the r/3 system.
    How to debug the whole process. I can create a shopping cart in the EB web. I want to know what is hapening in the backend during the creation of shopping cart.
    I know the web transaction for the creation of the shopping cart. I tried to debug the process by going SE80 and giving the web transaction , but it is very cumbersome process and i was confused. Is there any way i can know what is happening in the backend and how the SC data is transferred to the bacend and how PO is created in the R/3 system
    sankar

    Hi Sankar Rao
    we can debug the shopping cart from sap GUI via tran.  /nBBPSC01
    1 Click on internal Goods/services  and select the product for which you want to create a SC and press enter.
    2 In command window input  /h and press enter
    3 Click on the button Order it will go in debug mode.
    4 Insert break points on Statement - Select
    5 Insert break points on Statement - Insert
    6 Insert break points on Statement -  update
    and press F5 key to move one step ahead and F8 key to halt directly at each break point.This way go upto the save mode and order your SC at run time in debug mode.
    regards,
    Nimish Sheth
    NB Do rewards points for helpful anwsers.

  • How to debug the workflow

    dear friends,
      please tell me how to debug the workflow, if you have time then you just see the workflow WS99900212 . in this i have done Leave Approver Notification . but i want to debug on that how to flow step by step .
    please you tell me on same workflow , where i am going to take breakpoint.
    Thanks in Advance for help.
    Cheers.
    Puneet.

    You can try first of all to enable more logging. (I assume you are running release ERP 2005 since you are not saying what your release is.)
    In the workflow builder, select menu item "Goto", "Basic data"
    Select the "Version-dependent (current workflow version)" tab
    Select the "Control" tab within the version-dependent subscreen
    Select the "Performance optimization" tab within the control subscreen
    Change the "Settings" drop-down value to "No restrictions on logging".
    That will give you much more information in the workflow log. The description of this choice says "All the messages are logged. All runtime operations can be traced." As also noted: don't keep this setting in a production system.

  • How to debug the function separately which is added in the package

    Hi Friends, I want to know how to debug the function separately, by taking it from package,. and i dont no where to add begin and end. and dont no how to give input to the function. ANd how to find the error which is detected from production, so i want to find from which statement its failing. So please guide me to proceed further. thanks in advance.

    { FUNCTION fn_get_trail_id (p_incr PLS_INTEGER DEFAULT 1) RETURN PLS_INTEGER IS
    p_trail_id tb_xop_orders_trail.trail_id%TYPE;
    BEGIN
    IF p_incr >= 1 THEN
    SELECT sq_xop_trail_id.NEXTVAL INTO p_trail_id FROM DUAL;
    RETURN p_trail_id;
    ELSIF p_incr = 0 THEN
    SELECT sq_xop_trail_id.CURRVAL INTO p_trail_id FROM DUAL;
    RETURN p_trail_id;
    END IF;
    END;
    -- $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
    BEGIN
    ppr_openlog('AQ');
    ppr_request_lock(v_cb_handle, v_cb_lock);
    pr_xop_log_errors('AQ: ==== cb started ('||descr.msg_id||') ====');
    my function is like this, how i can i in clude it in declare statement, and how to assign values for that.. and where i have to include "begin".plz help me

  • How to Debug the Failed Data loads?

    Hi..All
    Can Any one plz explain How to Debug the different types of Failed Data Loads?
    Thanks & Regards
    Jonn

    Hi Jonn,
             If any data failed ....1st analyze where it occurs according to that what we have to decide...
    Analysis:
    1.Check the Status Tab in RSMO--here we can get error information
    2.Check the Details Tab in RSMO--here we can get whether extraction is completed,and where it is exactly failed i.e while updating from PSA or in Update rules etc
    3.Check the corresponding request job log in SM37.
    4.Check whether any shortdump in ST22.
    5.Check the Request status in the Target...some times activation job failed in SM37 but in the Target we found as activated.
    6.Check BD87 Transaction for any IDOC errors.
    7.Check SM58 for TRFCs
    Hope this helps u.....
    Mohan

  • How to do the lsmw with bapi?

    hi
    while upload the vendor master data using (xk01) from nonsap to sap
    how to do the lsmw with bapi? pls could u give the steps with scren shot to me.
    regards
    eswar.

    Hi
    BAPI - BAPIs (Business Application Programming Interfaces) are the standard SAP interfaces. They play an important role in the technical integration and in the exchange of business data between SAP components, and between SAP and non-SAP components. BAPIs enable you to integrate these components and are therefore an important part of developing integration scenarios where multiple components are connected to each other, either on a local network or on the Internet.
    BAPIs allow integration at the business level, not the technical level. This provides for greater stability of the linkage and independence from the underlying communication technology.
    LSMW- No ABAP effort are required for the SAP data migration. However, effort are required to map the data into the structure according to the pre-determined format as specified by the pre-written ABAP upload program of the LSMW.
    The Legacy System Migration Workbench (LSMW) is a tool recommended by SAP that you can use to transfer data once only or periodically from legacy systems into an R/3 System.
    More and more medium-sized firms are implementing SAP solutions, and many of them have their legacy data in desktop programs. In this case, the data is exported in a format that can be read by PC spreadsheet systems. As a result, the data transfer is mere child's play: Simply enter the field names in the first line of the table, and the LSM Workbench's import routine automatically generates the input file for your conversion program.
    The LSM Workbench lets you check the data for migration against the current settings of your customizing. The check is performed after the data migration, but before the update in your database.
    So although it was designed for uploading of legacy data it is not restricted to this use.
    We use it for mass changes, i.e. uploading new/replacement data and it is great, but there are limits on its functionality, depending on the complexity of the transaction you are trying to replicate.
    The SAP transaction code is 'LSMW' for SAP version 4.6x.
    Check your procedure using this Links.
    BAPI with LSMW
    http://esnips.com/doc/ef04c89f-f3a2-473c-beee-6db5bb3dbb0e/LSMW-with-BAPI
    For document on using BAPI with LSMW, I suggest you to visit:
    http://www.****************/Tutorials/LSMW/BAPIinLSMW/BL1.htm
    <b>Reward points for useful Answers</b>
    Regards
    Anji

Maybe you are looking for

  • Search report - error-no data found when printing to csv format

    Hi all, I have a search report, I have 4 select list and two text field and two date field to search for the result. I have even put the computation for the select list items in on load - before header ie setting the items to default value. Still whe

  • After updating to Mavericks, I can no longer navigate to individual folders to save a file. HELP!

    When I wanted to save a file before, I just chose "Save As" and the menu would appear that allowed me to navigate to the folder where I wanted to save the file. If the folder name didn't show up, then I could just double-click (say for example, "Docu

  • Imac Overheating

    I have a major overheating problem in my 24" imac. When the problem began I suspected the hard disk, but I have ruled it out. The behavior of my machine had become sluggish and sporadic over the last month. This week it became nearly useless. It woul

  • Dispatcher not starting up ::Shared library version mismatch

    Hi, System is SAP ECC 6.0, AIX and Oracle 10g. We upgraded the Kernel Level from 201 to Level 221. <hostname>/root$ su - <sid>adm [YOU HAVE NEW MAIL] .profile[30]: 1:  not found. <hostname>:sidadm> disp+work disp+work information kernel release      

  • GOPRO Hero 2 720 60 FPS, settings/presets and export settings.

    I use a gopro hero 2 to make some short films.   I made this http://www.youtube.com/watch?v=BwWU83oGGx0  video with DSLR 720 60 FPS preset, and let the program choose export. I don't like the black bars on the side of the video. How do I get rid of t