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

How to divide a session type?

Former Member
0 Likes
554

Hi all.

In a program, I want to put the message into spool , If it is a dialog session.

If not, don't put the message into spool.

Let me know how to divide session type.

Best Regards,

Kil Nam

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
525

Hi,

Are you referring to foreground mode and background mode?

If yes, then, SY-BATCH = 'X' if the prog is run in background.

Regards

Subramanian

Hi all.

In a program, I want to put the message into spool , If it is a dialog session.

If not, don't put the message into spool.

Let me know how to divide session type.

Best Regards,

Kil Nam

3 REPLIES 3
Read only

Former Member
0 Likes
526

Hi,

Are you referring to foreground mode and background mode?

If yes, then, SY-BATCH = 'X' if the prog is run in background.

Regards

Subramanian

Read only

0 Likes
525

if sy-batch = 'X'.

message ....

endif.

Read only

Former Member
0 Likes
525

HI,

Check for <b>SY-BATCH = 'X'</b> if yes then put a message ...

Regards,

Santosh