Application Development 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: 

Abap class to write strings

arthur_fuscella
Participant
0 Kudos

Hello all,

Does anybody knows if exists an abap-class to write strings in SAP console ? I'm looking something similar of System.out.println() in JAVA.

Regards,

Arthur

1 ACCEPTED SOLUTION

matt
Active Contributor
0 Kudos

Consider key word WRITE (to output to the report screen), or MESSAGE (to write to a log for background jobs).

There is no class (unless you create one). Strings are basic types in ABAP Object. A major difference between Java and ABAP is class libraries. The concept in ABAP is rather different. Classes exist where the need was identified, not as almost part of how the language works. There are few general purpose classes in ABAP.

3 REPLIES 3

sreenivas_pachva
Participant
0 Kudos

Hi

as per my knowledge its not possible to write ABAP classes in console like java..but we can run the programs through the console for that follow the below syntax..its very time consuming process..

check the below syntax it may be helpful for you...

C:\Program Files\SAP620\SAPGUI\rfcsdk\bin>startrfc

RFC command line interface

Syntax :
         startrfc [connect options] <function options>

where
function options =
          -F <function module
          -E <parameter>=<value>
          -T <table name>,<width>,[r=<file>][,w=<file>]
             where <file> is a path name to read from (r)
             or write to (w) the internal table.
             If <file> is -, stdin or stdout is used

Thanks&Regards

Sreenivas Pachva

matt
Active Contributor
0 Kudos

Consider key word WRITE (to output to the report screen), or MESSAGE (to write to a log for background jobs).

There is no class (unless you create one). Strings are basic types in ABAP Object. A major difference between Java and ABAP is class libraries. The concept in ABAP is rather different. Classes exist where the need was identified, not as almost part of how the language works. There are few general purpose classes in ABAP.

arthur_fuscella
Participant
0 Kudos

Thanks guys.

I'm developing something using cl_abap)strings classes.

Best regards,

Arthur