ABAP, ABAP Programming

Working with Table Maintenance Generator

While maintaining the ztable through SM30 got the following error.

Maintenance dialog for ztable is incomplete or not defined

Answer:

All DB tables do not automatically have a table maintenance created.

The message indicates no table maintenance exists for the Z table.

From SE11 you need to create the table maintenance using the Table MAintenance Generator.

=============================

Go to SE11 and enter the Z table name for which the table maintenance generator has to be generated. Click on Change. 

Click on Utilities à Table Maintenance Generator

Enter Authorization group (For e.g. &NC&)
Function group (go to SE80 for creating function group)

You can select either one step or two step. Assign Screen numbers (To assign Screen numbers click on the button ‘Find Scr no’. It will propose screen no’s)

Then Create. Save 

Single step: Only overview screen is created i.e. the Table Maintenance Program will have only one screen where you can add, delete or edit records. 

Two step: Two screens namely the overview screen and Single screen are created. The user can see the key fields in the first screen and can further go on to edit further details. 

You can now create TCode for the table maintenance generator. Enter the TCode to be created and click on Create.

Select “Transaction with parameters (Parameter transaction)”


Click on save. Now you can create the table entries through the transaction created above.

ABAP, ABAP Programming

Useful SAP standard Demo & Sample programs for ABAP Beginners ( Keywords & Syntaxes)


Former Member
 January 14, 2013 1 minute read

FollowRSS feedLike25 Likes 40,105 Views 20 Comments

Hi all,

I am here by taking opportunity to mention some SAP Standard demo programs for practicing and becoming expertise with ABAP programming techniques and syntaxes.

I started adding some programs and slowly will update the document slowly one by one And by the way all of this programs we can found all the demo programs in the package SABAPDEMOS .

S.NoProgram NameDescription
1DEMO_SELECTION_SCREEN_EVENTSDemo program for Selection screen Events
2DEMO_DATA_DATE_TIMEDate and Time Calculations
3DEMO_DATA_FUNCTIONMathematical Functions
4DEMO_DATA_STRINGProcessing Strings
5DEMO_DESCRIBE_FIELDDemonstration of DESCRIBE FIELD
6DEMO_DYNPROModule pool demo program
7DEMO_DYNPRO_AT_EXIT_COMMANDConditional Exit module (Exit form the screen having required fields)
8DEMO_DYNPRO_AUTOMATIC_CHECKSDemonstration of Automatic Entry Checks on Screens
9DEMO_DYNPRO_DROPDOWN_LISTBOXDemonstration of Dropdown List Boxes on Screens
10DEMO_DYNPRO_SUBSCREENSSubscreens
11DEMO_DYNPRO_TABCONT_LOOPTable Control with LOOP – ENDLOOP
12DEMO_DYNPRO_TABLE_CONTROL_2Table Control with LOOP AT ITAB
13DEMO_DYNPRO_VALUE_SELECTSAPBC470_OUTPUT_FORMATS
14DEMO_EXTRACT_AT_NEWControl Level Processing
15DEMO_INT_TABLES_COLLECTInserting Summarized Table Lines Using COLLECT
16DEMO_LEAVE_TO_LIST_PROCESSINGCalling Lists from Screens
17DEMO_LIST_AT_LINE_SELECTIONLine Selection with PICK
18DEMO_LIST_AT_USER_COMMANDThe AT USER-COMMAND Event
19DEMO_LIST_END_OF_PAGEFormatting the Page Footer & Header
20DEMO_LIST_FORMAT_COLOR_1Possible Colors in Lists
21DEMO_ABAP_OBJECTSComplete Demonstration for ABAP Objects
22DEMO_ABAP_OBJECTS_METHODSDemonstration of Methods in ABAP Objects
23DEMO_ABAP_OBJECTS_GENERALABAP Objects Demonstration
24DEMO_SELECTION_SCREEN_F1F1 Help on the Selection Screen
25DEMO_SELECTION_SCREEN_F4F4 Help on the Selection Screen
26RSDEMO_HTML_VIEWERHTML Viewer Demo Program
27DEMO_MESSAGESDemo Program to understand behaviour of messages with various types in different scenarios.
28BCALV_TREE_DNDALV Tree Demo Program using ABAP OO Concepts
29SAPMSDM1Development WorkBench Demos ( T.Code DWDM )
30SAPBC470_DEMOCall of an SAP Smart Form
31SAPBC470_FLOWD_LABELSLabels with SAP Smart Forms
32SAPBC470_FLOWD_LOOPSmartform example with loop
33SAPBC470_OUTPUT_FORMATSOutput Formats for SAP Smart Forms
34SAPBC470_PROGSCall of an SAP Smart Form
35SAPBC470_TABLD_TICKETTicket output with SAP Smart Forms
36SAPBC470_TEXTD_CAMDemo of Business Address Services (Smarforms)
37GRBUSG_3Demo Program for Learning Graphs ( 2D / 3D / 4D )

Regards,

Mayure

Assigned tags

Related Blog Posts

Related Questions

20 CommentsYou must be Logged on to comment or reply to a post.

  •  Sijin ChandranJanuary 15, 2013 at 5:13 amHello Chitturi , Must say a very helpful document.Very much required.I had to maintain a list whenever I use to encounter with such helpful DEMO SAP codes , now bookmarking this Document gonna make things easier.Keep it updated.And am sure the list gonna be a bit more long.I would like to suggest you some more : RSDEMO_HTML_VIEWER : For HTML Viewer Demo DEMO_MESSAGES : Very helpful to understand behaviour of messages with various types in different scenarios.And please format 23rd and 25 row its looking odd.
    • Like(0)
  •  Former MemberJanuary 15, 2013 at 6:40 amHi Chitturi, Yeah is very helpful document for SAP fresher.Add this T-code also “DWDM”  (Development Workbench Demos) .  Regard’sSmruti
    • Like(0)
    •  Former Member Post authorJanuary 18, 2013 at 7:03 pmHi smruti, If you can please kindly add those tcodes in the document from your side as I am presently facing the problem with my browser it was not taking me to ADVANCED EDITOR mode to eidt the doucment. I sent a mail on this one to sapnetwork technical team. Thanks in advance. Regards,Praveen Chitturi
      • Like(0)
  •  Former MemberJanuary 21, 2013 at 4:22 amHi Chitturi, What ever Demo Programs you mentioned in  your above document all are belongs to one T-code i.e. ‘ABAPDOCU‘ and i am also added “DWDM” is T-code but Not a Program . like Example : your first program name “DEMO_SELECTION_SCREEN_EVENTS”go to ‘ABAPDOCU’–>ABAP Documentation and Example –> BC- ABAP Programming–> ABAP User Dialogs—>Selection Screens—>Processing Selection Screen –>Selection Screen Events .  T-code :  DWDM   Program Name :  SAPMSDM1 Under this T-code you can find Some Sample programs which also given by SAP .  Regard’sSmruti
    • Like(0)
  •  Former MemberJanuary 21, 2013 at 11:08 amHi Chitturi, Add these Some Sample Smartform Driver Programs with Sample Smartforms. SAPBC470_DEMOSAPBC470_FLOWD_LABELSSAPBC470_FLOWD_LOOPSAPBC470_OUTPUT_FORMATSSAPBC470_PROGSSAPBC470_TABLD_TICKETSAPBC470_TEXTD_CAM Regard’sSmruti
    • Like(0)
    •  Former Member Post authorJanuary 22, 2013 at 12:35 amHi smruti, Thank you and these smart form demo programs are very helpful to get know about the various techniques in smartfoms. Regards,Praveen Chitturi.
      • Like(0)
  •  Subeesh KannottilJanuary 27, 2014 at 2:05 pmHi, Good document .Really helpful Thanks and Regards, Subeesh Kannottil
    • Like(0)
  •  Former MemberMay 20, 2014 at 6:43 amHi,, I want to download the code of SABAPDEMO programs.How do I do it. Please help. Thanks,Anwesha
    • Like(0)
  •  Former MemberSeptember 10, 2014 at 12:34 pmHi Chitturi Praveen, I want to download the code of SABAPDEMO programs.How do I do it. Please help. Thanks,partha.
    • Like(0)
    •  Former Member Post authorSeptember 11, 2014 at 9:19 amHi partha, Run the report REPTRAN from SE38 then give the package name SABAPDEMOS and give the path name where to store the program code. It will download all the demo programs into your path given earlier. Regards,P Ch.
      • Like(0)
  •  Former MemberAugust 21, 2015 at 8:20 am3rd one is Not Correct 3    DEMO_DATA_FUNCTION              Mathematical FunctionsThe correct one isDEMO_NUMERICAL_FUNCTION Regards,Trilok
    • Like(0)
  •  Former MemberSeptember 27, 2015 at 10:02 amWhere I can find the programs for the above list ? Please add if there is any other helpful link.
    • Like(0)
  •  Horst KellerAugust 17, 2017 at 7:10 am Why so complicated?All demo programs of SABAPDEMOS are part of and described in the ABAP Documentation and are listed here.ABAP Examples
    • Like(0)
ABAP.Difference

Difference between Select-Options and Parameters

Tips by: Binnodon Thomas

The main difference between select-options and parameters is that the select-option creates a selection table consisting of 4 fields.

Please go thru the following details to learn more bout it…

Description of the individual components:

SIGN 
The data type of SIGN is C with length 1. The contents of SIGN determine for each row whether the result of the row condition is to be included in or excluded from the resulting set of all rows.

Possible values are I and E.

– I stands for “inclusive” (inclusion criterion – operators are not inverted)

– E stands for “exclusive” (exclusion criterion – operators are inverted)

OPTION 
The data type of OPTION is C with length 2. OPTION contains the selection operator. The following operators are available:

– If HIGH is empty, you can use EQ, NE, GT, LE, LT,CP, and NP. These operators are the same as those that are used for logical expressions. Yet operators CP and NP do not have the full functional scope they have in normal logical expressions. They are only allowed if wildcards ( ‘*’ or ‘+’ ) are used in the input fields.

If wildcards are entered on the selection screen, the system automatically uses the operator CP. The escape character is defined as #.

– If HIGH is filled, you can use BT (BeTween) and NB (Not Between). These operators correspond to BETWEEN 
and NOT BETWEEN that you use when you check if a field belongs to a range. You cannot use wildcard characters.

– LOW 
The data type of LOW is the same as the column type of the database table, to which the selection criterion is linked.

– If HIGH is empty, the contents of LOW define a single field comparison. In combination with the operator in OPTION, it specifies a condition for the database selection.

– If HIGH is filled, the contents of LOW and HIGH specify the upper and lower limits for a range. In combination with the operator in OPTION, the range specifies a condition for the database selection.

– HIGH 
The data type of HIGH is the same as the column type of the database table, to which the selection criterion is linked. The contents of HIGH specify the upper limit for a range selection.

The parameter statement does not create a selection table .

The second thing is select-option gives us a range for selection, whereas parameter doesn’t .

Using the parameter you can define radio buttons and checkboxes where as select-options can’t .

ABAP, ABAP Programming

Debugging Program with ABAP Debugger

Activate the Debugger before executing your ABAP program

System -> Utilities -> Debug ABAP/4

The purpose of the debugger is to allow you to execute your program line by line.  It also allow you display the data as you execute the program. (double click on the varaible field name and it will be display)

or after program have been executed,

Run transaction SM66 and find your work process. 
Select the line of your work process and double click on it 
Click the debugging option. 
If this is a custom program, you can put a wait statement in the code to buy yourself some time.

————————————————————————————-

1) To understand the Watchpoint, you have to play with it. 
a) Debug your program. 
b) Place your cursor on the field you want to watch 
c) Press Shift+F8, or click the Create Watchpoint button 
d) Select the LOCAL WATCHPOINT checkbox if you want the watchpoint to be active for the immediate program only (and not includes etc. By default, you want to leave this unchecked). 
e) Drop down on the relational operator, and choose one. They are self-explanatory. (For this example, use ‘=’) 
f) Select the COMPARISON FIELD checkbox if you want to check the field against another field, else leave unchecked if you want to check your field against a static value. 
g) Enter your comparison field (if you checked the previous box) or your check value in the last box. Once your selected field equals the selected value, the program will break as if a breakpoint was reached. It is possible that the program never breaks, meaning your watchpoint criteria was never satisfied (For example if you check Itab-Field = VALUEA, if Itab-field never have a value equal to VALUEA the program will NOT break.)

2) I use SQL Trace is used for analysis, then based on the information retrieved I do manual tuning.

Sam Hearn – Business Analyst

————————————————————————————-

I have another tip for 1 which is very handy (I’ve been using it for several months).

1. Create and save a file name AbapDebugParaPopUps.ini with the following contents using Notepad:

[System] 
Name=MLP 
Client=001 
Description=MLP 
[User] 
Name=D000328 
Language=D 
Password= 
[Function] 
Command=/h 
Title=/h in Popup aktivierbar 
Type=SystemCommand

2. Add a link to it in the start menu of windows (or in a place of your desk accesible from a modal window)

3. Whenever you need to debug a modal window in abap, you just drag and drop the file onto the modal window and press enter or a function code that completes the screen. After that you’ll enter in debug mode.  <<AbapDebugparaPopUps.ini>>

Horacio.