Skip to Content
author's profile photo Former Member
Former Member

Abap class to write strings

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Dec 28, 2011 at 01:12 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 27, 2011 at 04:31 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 28, 2011 at 01:19 PM

    Thanks guys.

    I'm developing something using cl_abap)strings classes.

    Best regards,

    Arthur

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.