Txn: QM02:    ABAP Debugging: Found 'swc_set_element'

Hi all,
  My Client has asked to enhance the Transaction QM02 by adding some Notification Information in the <b>Action Box</b> especially Editable window that comes after clicking <i><b>Send Standard Email</b></i> .
In this Editable Window, we are able to enter some details that are to be sent to the recipent.
But my requirement is to put some details about the Notification in this Screen Automatically!!! (ie when SAP brings this Editable Window, it should contain some information about the Notification.)
So When I looked in the DEBUGGing, I found a FM (QM06_FM_TASK_SEND_PAPER_ATTACH) that handles the Email manangement.
After having a deep look, I found some statements such as
     SWC_SET_ELEMENT
     SWC_SET_TABLE .....
I am really not sure about these statement.
Question:
1. Could anybody help me out in exploring the details about these statements  ???
2. What should I do to bring some predefined information in this Editable Screen automatically ??
Thanks
Kam

I am not able to check this Xn at the moment but my guess is that inside the FM , it will be using method Create of Business Object 'MESSAGE'.( Check the FM and also see the object type 'MESSAGE' using Xn SWO1 )
swc_set_element is to pass the single line parameters..like a variable ..to the method.
This stmt sets the parameter in container.
Like parameter - type of the message should be 'RAW'.
while the swc_set_table_....is used for setting multi-line parameters ( like itab - may be in this case the content of the message will be an ITAB).
you can copy the FM to a Z FM and then try this to call somehow ...may be within a user exit..
However, I am not sure if you would be able to display the text in mail-editor automatically.
But yes, you can probably set the whole /part of the message automatically ( without being able to show it to the user ).
You can check an example code on creating a message using MESSAGE.Create method in my weblog:
/people/rammanohar.tiwari/blog/2005/10/10/generic-object-services-gos--in-background
Cheers,
Ram
Message was edited by: Ram Manohar Tiwari

Similar Messages

  • ABAP Debug Mode in SAP and webMethods

    HI,
    Can anyone help resolve why I am receiving this message when I set the ABAP debug mode to yes on the SAP server? com.sap.mw.jco.JCO$Exception: (105) ERROR_NO_DIALOG_USER: ERROR_NO_DIALOG

    HI,
    Very possibly the webMethods generic "SAP User" is set up as a "CPI-C" user in SAP. This means that this user can never log directly onto the SAP system, or participate in a 'dialog process' (actual GUI interraction). This is a common approach to ensure that no one can actually log onto the SAP system using this user id (other licensing issues may apply).
    Reward Points if found helpfull..
    Cheers,
    Chandra Sekhar.

  • Basic ABAP Debugging

    What is the best way to start learning ABAP debugging. I have very limited knowledge of programming. Are there any good books to start of.
    Edited by: Kumar Reddy on Dec 17, 2007 3:05 PM

    Dear Kumar,
    You can check the following links:
    www.sappro.com/downloads/Settings&SystemAreas.pdf
    http://www.sap-img.com/abap/testing-and-debugging-abap-codes-functions.htm
    Well I feel that debugging is nothing else but an understanding of the functioning of the code.
    So to to really debug a code it is better to have a good understanding of the codes and what they are suppossed to do.
    Hope this helps you.
    Do award points if you found them useful.
    Regards,
    Rakesh

  • What is the utility of watch point and break point in ABAP DEBUGGING !

    What is the utility of watch point and break point in ABAP DEBUGGING !
    PLEASE TELL ME IN DETAILS AND IF POSSIBLE WITH SCREEN SHOTS !

    Hi,
    Breakpoints, Watchpoints, and Checkpoints
    Summary
    The standard Breakpoints tool is always located on the Breakpoints desktop. With this tool, you can manage breakpoints, watchpoints and checkpoints. In addition, you can monitor the current status of the different breakpoint types.
    Detailed Description
    Breakpoints
    In the Breakpoints area, you will see a list of all the breakpoints set so far. If one of the breakpoints has just been reached, this is marked with a yellow arrow. The visibility (Debugger, session, user) and type (line, ABAP command, …) is displayed for each breakpoint.
    If you double click the Navigation() column, the system will display the breakpoint in the respective source code.
    The visibility of a breakpoint can be changed through the dropdown list. To change the visibility of several breakpoints, mark them and select the pushbutton Save as Session Breakpoint or Save as User Breakpoint.
    You can change the visibility of all Debugger breakpoints using the menu path Breakpoints-> Save Debugger BPs as -> ....
    In addition, you have functions for creating, changing, activating and deactivating breakpoints at your disposal.
    Watchpoints
    In the Watchpoints area, you will see a list of all the watchpoints set so far. The watchpoint last set is highlighted with a yellow arrow.
    For each watchpoint you will see not only the current value but the value before the last changed. (Technically speaking, each time you create the watchpoint and each time the watchpoint variable is changed, a clone of this variable is created.)
    In this way, you can always determine what changes have been made to the monitored variable. For complicated data structures, such as internal tables or structures, select the pushbutton „Compare Variables“( ) and choose the Diff tool to compare the old and new variable values.
    In addition, you have functions for creating, changing, activating and deactivating watchpoints at your disposal.
    Checkpoints
    In addition, you can edit conditional and unconditional checkpoints using the Breakpoints tool. This function is provided in the new Debugger only. Conditional checkpoints are set first in the source code using the ASSERTstatement; unconditional checkpoints are set using the BREAK-POINT statement. These have the effect that programs will be continued only if a preset condition is fulfilled. In the following window, these checkpoints can be searched for, activated, or deactivated.
    Pls refer to :
    http://help.sap.com/saphelp_nw70/helpdata/en/e2/5f5a42ed221253e10000000a155106/frameset.htm
    Regards,
    Renjith Michael.

  • What is utility of watch points and break point  in ABAp debugging !

    What is utility of watch points and break point  in ABAp debugging !

    Hi,
    Breakpoints, Watchpoints, and Checkpoints
    Summary
    The standard Breakpoints tool is always located on the Breakpoints desktop. With this tool, you can manage breakpoints, watchpoints and checkpoints. In addition, you can monitor the current status of the different breakpoint types.
    Detailed Description
    Breakpoints
    In the Breakpoints area, you will see a list of all the breakpoints set so far. If one of the breakpoints has just been reached, this is marked with a yellow arrow. The visibility (Debugger, session, user) and type (line, ABAP command, …) is displayed for each breakpoint.
    If you double click the Navigation() column, the system will display the breakpoint in the respective source code.
    The visibility of a breakpoint can be changed through the dropdown list. To change the visibility of several breakpoints, mark them and select the pushbutton Save as Session Breakpoint or Save as User Breakpoint.
    You can change the visibility of all Debugger breakpoints using the menu path Breakpoints-> Save Debugger BPs as -> ....
    In addition, you have functions for creating, changing, activating and deactivating breakpoints at your disposal.
    Watchpoints
    In the Watchpoints area, you will see a list of all the watchpoints set so far. The watchpoint last set is highlighted with a yellow arrow.
    For each watchpoint you will see not only the current value but the value before the last changed. (Technically speaking, each time you create the watchpoint and each time the watchpoint variable is changed, a clone of this variable is created.)
    In this way, you can always determine what changes have been made to the monitored variable. For complicated data structures, such as internal tables or structures, select the pushbutton „Compare Variables“( ) and choose the Diff tool to compare the old and new variable values.
    In addition, you have functions for creating, changing, activating and deactivating watchpoints at your disposal.
    Checkpoints
    In addition, you can edit conditional and unconditional checkpoints using the Breakpoints tool. This function is provided in the new Debugger only. Conditional checkpoints are set first in the source code using the ASSERTstatement; unconditional checkpoints are set using the BREAK-POINT statement. These have the effect that programs will be continued only if a preset condition is fulfilled. In the following window, these checkpoints can be searched for, activated, or deactivated.
    Regards,
    Renjith Michael.

  • Abap debugging

    Dear All
    Could anyone guide me about abap debugging for sd and user exits and their role.
    Regards
    KAPIL MORE

    It depends on what you exactly want to do.
    There are ways by which you can go into the program and debug.
    a. You can go to the program, put a '/h' in the ok code. Then execute the program. In the Menu >> Environment >> Break point, put the break point on say for example on Messages. Then press F8. You can reach the message where the program errors out. You can also set the watch points for the values.
    b. You know a program. You know why the program may be erroring out. Say for example, you are not getting the company code on the invoice print. Then, go to the invoice print program. Search for field BURKS. Put a break point there and then try to print the invoice. The program will stop where you have put a break point. You can check from there why it is not working.
    There are many other ways and means but it only comes by repeatedly doing it...
    You can find the user exit for SD in SPRO >> Sales and Distribution >> System Modification >> User Exit in SD... There is a lot of documentation in these nodes which you will have to read..
    MV45AFZZ is the widely used userexit in Sales order...
    I would say an ABAPer can be your best teacher...
    Hope this helps...
    Regards,
    Mukund S

  • Callback invoked only if abap-debug set to true

    I use NCo ver 2.0.1 and VS.NET 2003
    I instantiate a sapproxy object of type client and one of type server.
    After that i've set the .callback property of the <b>sapproxy-client</b> to the <b>sapproxy-server</b> instance.
    If I call sample functions Stfc_Connection and Stfc_Connection_Back I report no problems.
    I have to use another function (<b>CDesk_Show</b>) calling more then one callback function on the sapproxy-server instance.
    I put breakpoints on these function.
    If I invoke the main function (the one internally calling callback functions i.e Cdesk_show) without ABAP-DEBUG option set to true, I get an exception and execution don't  stop on callback-function-breakpoints.
    If I set ABAP-DEBUG to true, execution stops at these breakpoints(i.e in Visual studio) and everything works fine and no exception is thrown.

    Hi,
    Obviously, your function module or the callback function needs to somehow access SAPGUI. In this case, the option use_sapgui=1 should be used. The option abap_debug also enables SAPGUI access in addition to turning on the ABAP debugger.
    Regards,
    Guangwei

  • ABAP debugging : excel to internal table

    Hi ,
    I would like to know if there is any way to copy excel sheet data into internal table during Debugging? Any pointers to this are highly appreciated.
    Thank you in Advance.
    Sravan.

    Here is one technique if you have Basis 640 or higher - you can use the advanced debugger (New ABAP Debugger). I have done this many times.
    1) Select the tables tab when you are at a place in the code where you wnat to change the internal table
    2) Use a single table versus the split screen within the tables tab to maximize fields on the screen
    3) Select the tools for the service (wrench) on the right side of the screen - pop up window will appear and select 'Change row content'. Note there is a change column but I have not tried that to see if the entire table column changed or if only the visible rows column changed.
    4) Align excel fields in the same order as the internal table fields and copy the data
    5) Place cursor in the first position of the starting field and paste
    This can only be done for the rows that are visible on the screen so you will need to page down to continue to paste. Perhaps since you work for SAP you can suggest a better way to paste in an internal table. Also there is a limitation with the number of records that can be displayed/changed in the advanced debugger.
    Andy

  • Regarding ABAP Dump found when saving the job.

    Hi all,
    Generally we create a job and once the job is created,we rasie Sales Order,Purchase Order and so on.
    When we create a job we give the details of the Sold -to-party,client,parent and child job text,advertising category,project type, sales organisation,Cost and profit center,person incharge and purchase division.
    After submitting these details the job gets created and the job number will be generated.
    But now we have created a new Sales Organisation, which is leading to ABAP Dump.
    The functional people have concluded that there is nothing wrong in the configaration settings.
    If we enter an existing sales organisation in the job creation process the job is getting created and the job number is displayed.
    But if we try to enter a new sales organisation the ABAP Dump is comming.
    After debugging we came to know that BAPI function Module called
    Bapi Project Maintain Call and inside that there is another bapi call called
    BAPI_PROJECT_MAINTAIN which is taking some structures as inputs among them
    this new sales org is there.

    Hi all,
    Is there any answer regarding this question.
    Thanx in advance

  • WD ABAP: debugging?

    Hi,
    need to know how to debug a ABAP WD prog... breakpoint is set but ignored... is there a special debug mode to run the program with?

    >as in wd for Java ...for a server there is a debugging port and it is to be set as debugging ON ....so find is there any debugging port in WD for ABAP .....
    There is no debug port or debug setting that must be set for the ABAP engine.  The ABAP Virtual Machine has the capability to dynamically switch a running process in and out of debug mode - including the ability to remotly attach a debug session to an already running process.

  • Finding Screen Number for a Popup Window using ABAP debug

    Hi Guys
    IPlease could you tell me how to find the screen number of a pop-up window using debug as opposed to F1 Help?
    Thanks
    Edited by: Brett Cunliffe on Sep 14, 2011 9:37 PM

    Hi,
    You can create a short cut for debugging on desktop and drag n drop the debugging icon from desktop to pop up screen, then it will be available for debugging.
    or copy the below code in a notepad and save it. If you want to debug pop ups then drag and drop this file.
    The code is
    [FUNCTION]
    Command=/H
    Title=Debugger
    Type=SystemCommand
    [more info wiki|http://wiki.sdn.sap.com/wiki/display/ABAP/SAPGUI+shortcuts]
    Shiva

  • ABAP debugging, catch exception

    Hello, experts!
    Is there any way for catching exception from "insert <tabname> from table itab" during debugging, if there's no any exception handling in code? I want to know what is the error text to analyze it in more detail. I can't modify a program, because it has been generated automatically (it is a data loading program for BW extractor), so I need any case to insert error handling or get the error message while debug before program exit.
    Any suggestions would be appreciated.
    Thanks,
    Andrew.

    hi andrew,
    There is a catchable exception which you can try
    TRY.
         insert <tabname> from table itab
        CATCH CX_SY_ITAB_DUPLICATE_KEY.
    ENDTRY.
    There are also non-catchable exceptions which you can refer at
    ABAP Keyword Documentation

  • ABAP debugging in xRPM

    Hi ,
       I'm trying to use a BADI in xRPM and was wondering whether anyone knew how to debug the badi on the abap side when an action is done on the portal in xRPM.
    I know that similarly for cProjects, there is a webdynpro(DPR_MAINFRAME) that can be used for debugging. As xRPM is on Java webdynpro, is there any way to debug the code written in BADIs?
    Regards,
    Aravind

    Hi,
      Thanks for your response. I'm not using a BAPI. I'm using a BADI.
        I also tried putting external breakpoints( we are on ECC 6.0) but hasn't helped either.
    Any other suggestions?
    Regards,
    Aravind

  • Problem to use new abap editor and new abap debug.

    HI experts.
    currently using 640(patch 19) and GUI 640(patch 23).
    but when I activate new abap editor in se80 server dumps error
    ' Runtime Errors         MESSAGE_TYPE_X
    The current application program detected a situation which really
    should not occur. Therefore, a termination with a short dump was
    triggered on purpose by the key word MESSAGE (type X).'
    and new debug does not activating even though I switch to new debug.
    it works well both new editor and debug if I turn on new options when  I connect ECC6.0 with same GUI
    guess 640 server has not propery installed new editor and debug or something has to be checked.
    can anyone help me to activating these new functions?
    thank you.
    Lee

    There is a separate forum for the SAP GUI, please post your question over there and close this thread here.
    Thx

  • ABAP debugging in CRM ISA B2C application

    Hi gurus !
    I need to debug FM 'CRM_ISA_BASKET_ORDER' to monitor some values in a CRM ISA 4.0 B2C application. The FM is stateful and I have set the necessary parameters in modification-config.xml file. However, when running the CRM ISA 4.0 B2C application from a remote client, I do not get the SAPGUI popping up as given in the SAP_ISA4DevExtG10.pdf documentation. Have I missed any setting ? Is there anything else that I need to complete to get the SAPGUI to popup to debug the FM ?
    Cheers,
    Ashok.

    - Did you set an external break point or just a session break point?
    - Did you set the RFC-user in SAPGUI as debug user? Utilities -> Settings -> ABAP Editor -> Debugging -> External Debugging: Here should be the RFC user of the B2C application.
    Florian

Maybe you are looking for

  • Text replacements no longer working correctly after Mavericks install.

    Since upgrading to Mavericks (MBA2011 13inch) only a select few of the text replacements still work. For example, I can still write (c) and tm and have them change to what they should be, but the fractions, and custom ones like gmc, omw, or the apost

  • PlayBook local calendar and address book no longer works

    I took delivery of a brand new BBC Bold 9900 today. The setup went very well and all seems to be working fine, including the bridge. I am registered with Gmail and have also used my Gmail address and password as a BB registration ID. My PlayBook cale

  • After installing itunes on my Dell 570 PC every icon on my screen becomes an itunes icon

    After installing iTunes on my Dell 570 PC every icon on the screen becomes an iTunes icon and which ever icon you select it becomes an iTunes page.  Help

  • Images in Gallery Lost

    Hi, I need someone who could assist me. Im using Nokia 5800 XM tube. Previously all my pictures can be viewed in Gallery (which is stored in memory card E:/Images) but after few days, when i upload new pictures it cant be viewed in Gallery. It's empt

  • Experiencing problem with image display in LR5

    I have an intermittent problem with images displaying and exporting in LR. It just began a couple of months ago and is totally random - will do it with RAW (CR2) or JPG. It displays this way in all modules - Library, Develop, Slideshow....The image d