Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ABAP FAQs

Former Member
0 Likes
628

Hi,

Can anyone give---

1) difference between 'at new' and 'on change of' comands.

2) Where can we declare Tables in SMARTFORMS

3) Events in Classical and interactive reports

4) Use of output type in scripts

5) Use of NACE transaction

thanks

Revanth

Hi,

Can anyone give---

1) difference between 'at new' and 'on change of' comands.

2) Where can we declare Tables in SMARTFORMS

3) Events in Classical and interactive reports

4) Use of output type in scripts

5) Use of NACE transaction

thanks

Revanth

4 REPLIES 4
Read only

Former Member
0 Likes
607

Hi,

1) difference between 'at new' and 'on change of' comands.

On change of works on variabels. The 1st time the statement is reached a memory copy is made of the value. The next time the statement is reached, the current value is compared to the stored value. If there is a difference, the coding between ON... and ENDON. is executed. You can use this for a table workarea field, but if you have the table loop in a routine and the routine called several times, you can get unwanted results. (Check the value of the last loop with the value of the first new loop.)

The AT NEW (and others like AT END OF...) are specially for table loop processing. The coding between AT new FIELD and ANDAT is triggerd whenever a the field or any field defined to the left is changed. Your table should be sorted by all fields from the left up to the considered FIELD. Btw all fields to the right contain *, so it can be usefull to have a second workarea filled to be printed or what ever you want.

3) Events in classical and interactive reports.

Classical Report:

These are the most simple reports. Programmers learn this one first. It is just an output of data using the Write statement inside a loop.

Classical reports are normal reports. These reports are not having any sub reports. IT IS HAVING ONLY ONE SCREEN/LIST FOR OUTPUT.

Events In Classical Reports.

INTIALIZATION: This event triggers before selection screen display.

AT-SELECTION-SCREEN: This event triggers after proccesing user input still selection screen is in active mode.

START OF SELECTION: Start of selection screen triggers after proceesing selection screen.

END-OF-SELECTION : It is for Logical Database Reporting.

Interactive Report:

As the name suggests, the user can Interact with the report. We can have a drill down into the report data. For example, Column one of the report displays the material numbers, and the user feels that he needs some more specific data about the vendor for that material, he can HIDE that data under those material numbers.

And when the user clicks the material number, another report (actually sub report/secondary list) which displays the vendor details will be displayed.

We can have a basic list (number starts from 0) and 20 secondary lists (1 to 21).

Events associated with Interactive Reports are:

AT LINE-SELECTION

AT USER-COMMAND

AT PF<key>

TOP-OF-PAGE DURING LINE-SELECTION.

HIDE statement holds the data to be displayed in the secondary list.

sy-lisel : contains data of the selected line.

sy-lsind : contains the level of report (from 0 to 21)

4) Use of output type in scripts

To link/assign print program and form for output control of an application.

5) Use of NACE transaction.

Control output determination for all applications.

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
607

Hi Ferry Lianto ,

Thanks for the response.

Points awarded.

Read only

Clemenss
Active Contributor
0 Likes
607

Hi Revanth,

I appreciate your questions. Everything is answered in this forum thousands of times. Please use the Forum Search before posting.

Use the search form to search the forum content. You can choose to search all content or restrict it to certain forums or dates. Also, you can filter the results by a username or user ID.

Many contributors will be glad to read the remaining really unanswered questions.

Thank you for your cooperation.

Regards,

Clemens

Read only

Former Member
0 Likes
607

2) Where can we declare Tables in SMARTFORMS

In Form Interface, u will have a tab called Tables. There u can declare the tables.