How To Debug Smartform in Production System - ABAP Thinkers

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4
At a glance
Powered by AI
The article discusses a technique to debug a smartform in the production system without interfering with the actual code.

The article discusses using function modules to set breakpoints and debug specific parts of a smartform in production.

The steps outlined are to find the function module name, determine the part to debug, use transaction SE37 to set a breakpoint, and run the program to activate debugging.

BL OG

H OW TO

Search

FORMS > SMA RTFORMS > HOW TO DEBUG SMA RTFORM IN PRODUCTION SY STEM?

Sap ABAP

Sap Query

Debug

Sap R 3

How to debug smartform in production system?


by L EV I PA L MER on 0 3 / 2 5 / 2 0 1 2 2 COMMENTS Like 9

Sap Programming Import Sap Data Sap in Memory


CA TE GORIE S

ABAP Code
12 1

ABAP Query ABAP Tips ALV ALV Grid ALV OOP Beginners Class Data Dictionary Debugging Dialog Programing Enhancement Forms Function Modules How To Implicit Enhancement Intermediate Lock Object Maintenance Generator Performance Sapscripts Selection Screen

Recolocao Profissional
qualitytrainingrh.com.br Consultoria de Carreira Completa p/ Voc Evoluir. Quality Training RH

Catho - Vagas de Emprego Competitive Intelligence Emprstimo Consignado Consultoria SAPremoto Concurso INSS 2014 Calcule Seguro de Carros AdWords para vdeo
Have you encountered now a logical bug in your smartform which only appears when transported in the production system? Then we cannot replicate the same issue in our development box. So in this case, we have no option but to debug the form directly in production system, right? But we all know that setting a debugging point in the smartform is prohibited in this system. So do you have any idea how to debug it to detect the issue? In this tutorial, I will discuss a simple technique on how to debug the form even on the production system without any interference on the actual code. I have detailed some simple steps to follow below.

Steps:
1.Run tcode Smartform and open your form. If you are not authorized in your production system to open your form, go back into your development system and open it there.

Smartforms Table

S UB S CRIB E TO B LOG V IA E M A IL

Enter your email address to subscribe to this blog and receive notifications of new posts by email. Join 10 other subscribers

E m a i lA d d r e s s 2. Once your form is open, go to main menu, click on Environment>Function Module Name .
S UB S CR IB E

TA GS
&SE16N

ABAP Code ABAP

Query ABAP Tip


3. In this screenshot, you will see the function name of this form. Take note that every smartform you created, a function name is generated unlike in Sapscript that no FM is created.

Tips ABAP Tricks ALV FM

ABAP

REUSE_ALV_GRID_DISPLAY ALV

Grid ALV OOP ALV Report


Context Menu Data Dictionary

Beginners Tutorial
Debugger Debugging Debugging Tips Delete Implicit Enhancement Dequeue 4. So in the previous step, we get the name of the function module generated for this form. Our next goal is to determine which part of the form will it going to stop. So in my sample as you see below, I need to debug the program lines under %CODE1. Please take note the name of the program lines since we will use this later.

Dialog Programming Dow nload


Dow nload Tables Structures Enqueue

Enhancement

Function Group Function Module Function Modules Hilite.me Hotspot How To Implicit Enhancement

Intermediate Tutorial Link Click


Lock Objects Number Range PDF PF

Status

popup screen Query SAP Query SAP_EDIT SNRO Syntax Highlighter Transport Variants UserGroup Variants

5. After getting the function module name of the form and determining the part where we will going to debug, we are ready to set the breakpoint now. Go to tcode SE37 and input the FM name generated above. Then click display the button. Perform this procedure in your production system. If you dont have any access in SE37, then ask your Basis people to provide you.

levi aliangan
google.com/+levialiangan Seguir 158 seguidores

6. Then on the toolbar, select the find button with plus sign.

RE CE NT P OS TS

How to execute SQL Statement without changing ABAP Code? How to escape ABAP line in Debug Mode? Dumps in Range The Solution How to create an Infosets in ABAP Query? How to create a User Group in ABAP Query?

7. Then on this screen, input the name of the program lines you want to debug. Then select the option In main program. Then click ok.

RE CE NT COM M E NTS

levali2001 on Dumps in Range The Solution burberry pas cher france on Dumps in Range The Solution levi aliangan on How to access a TCODE without authorization? levi aliangan on How to create a function group in SAP? hasilaa on How to create a function group in SAP?

8. In this screen, it will show what lines contains your search word. Just double click it so you will be directed in the actual code.

9. Finally, you will see now your code and you can put a breakpoint just like below. Run your program again and debugging mode will then be activated. You can now do the actual debugging and find the issue on your form.
CONNE CT@F A CE B OOK

ABAP Thinkers
Curtir

263 pessoas curtiram ABAP Thinkers.

Have you find this article useful and interesting? Please consider sharing it to your friends using the Social Buttons below. Always remember that SHARING is CARING. Thank you and I invite everyone to connect with me on my facebook page ABAP Thinkers or follow me on twitter @ABAPTHINKERS. You can subscribe also to keep updated with latest posts. Enjoy reading this blog

Post to Facebook 9 9 9 9 9 9 Post to Add 2 2 to LinkedIn 2 Twitter Post to Google+


You may also like:

Plug-in social do Facebook

M E TA

Add to Google Bookmarks

Log in Entries RSS Comments RSS WordPress.org

Post StumbleUpon How to download the data structure of to tables in SE11?


How to activate &SAP_EDIT in SE16N? ABAP Code: ALV Report using FM ALV_GRID_DISPLAY How to implement a Lock object in ABAP? How to delete Implicit Enhancement Implementation? How to create a User Group in ABAP Query?
[ what's this ]

S EA R CH

Tagged with: Debugger Debugging Production System Debugging Smartforms Debugging Techniques Debugging Tips Forms Smartforms

How to transport a variant set in ALV Grid?

How to implement different PF-STATUS types?

2 Responses to how to debug smartform in production system?


ni.ski.y says:
09/05/2013 at 4:47 pm

Perfect
LOG IN TO REPLY

Uday Patnaik says:


09/13/2013 at 12:14 pm

superbbbb.
LOG IN TO REPLY

You must log in to post a comment.

ABAP Thinkers

PAGES

TH E L ATEST

MOR E

2014 ABAP Thinkers

About Me Contact Me Copyrights Disclaimer Privacy Policy

How to execute SQL Statement without changing ABAP Code?


Last week, I was asked to investigate an issue in the production []

Thanks for dropping by! Feel free to join the discussion by leaving comments, and stay updated by subscribing to the RSS feed.

You might also like