Kolkata, India.
In 4.6C there is no direct option provided in the debugger to store internal table content in local file as it is there from release 6.20 onwards (see the screen shot below).
This tip will show us how to achieve the same in release 4.6C.
Step1: When you are in debugging mode press the table push button. And enter the internal table name. Place the cursor on the table field.
Step 2: Go to the “Goto” menu. Choose ”Display data object” sub-menu. And from the Sub-menu Choose “Structure Editor”.
Step 3: When we press the ‘Structure editor’ sub-menu, screen with title “Structure editor: change [table name] from entry 1” is displayed, where all the contents of the internal table is displayed as a list. Here if we want we can add /delete/modify new rows.
Step 4: Here our main objective is to download the contents of the internal table. To accomplish this go to “Object” menu and select “Display entire list” sub-menu.
Step 5: Now go to System -> List -> Save -> Local file sub-menu.
Step 6: A pop-up screen is appeared to ask ’In which format should the list be saved?’ Just press OK button.
Step 7: When OK button is pressed again a pop-up screen is appeared where the file name has to be given. After providing the file name, press ‘Transfer’ button.
Step 8: Now if we open the file then we can see that the content of the internal table is stored in the following format. This facility will save us from tedious work of researching the internal table contents from within the ABAP debugger as we can now use a user-friendly tool (like Microsoft Excel, Notepad etc.) to check the data in the file itself.
No comments:
Post a Comment