System fields VI
-
SY-DATAR
-
In transaction programming this field indicates the
change of data on the screen. In the PBO part you may set default values
of the input fields of the dynpro. In the PAI part you can check if they
were changed. If SY-DATAR is set, then the user has modified or entered
new data on the screen.
-
SY-BINPT
-
This field indicates if the transaction was called
in a Batch Input session or by an online user.To test it, a batch input
session must be created. From Release 3.1g the next procedure can be used.
-
-
Create a report which displays this system field
-
Create a Transaction code for this report
-
Use transaction SHDB to record a the previous transaction
-
Press the Overview button and choose the 'generate
program' function.
-
Running the previously generated program it will
create a Batch Input session
-
Now call transaction SM35 and process the created
Batch Input in foreground. It should display an 'X' for system field SY-BINPT.
-
SY-CALLD
-
This field indicates if the transaction was called
from another transaction.
-
-
Create a report which displays this system field
-
Create a Transaction code for this report
-
Create a new report containing the next ABAP command:
CALL TRANSACTION tcode. Where tcode is the Transaction code you created.
When you run this report, it should display an 'X' for system field SY-CALLD.
Bence Toth