Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Using an SAP class and method in an ABAP function

Posted on 2006-05-04
1
Medium Priority
?
833 Views
Last Modified: 2013-12-08
What is the correct syntax for using an existing SAP class and method in an ABAP function.

I'm trying to send a string to the method and get the return value.

The call is CL_HTTP_UTILITY and the method is decode_base64.

This is what I have, but I just get errors saying that the field CL_HTTP_UTILITY is unknown.

FUNCTION Z_DECODE_BASE64.
*"----------------------------------------------------------------------
*"*"Local Interface:
*"  IMPORTING
*"     VALUE(COOKIE) TYPE  STRING
*"  EXPORTING
*"     VALUE(COOKIEDECODED) TYPE  STRING
*"----------------------------------------------------------------------


CALL METHOD CL_HTTP_UTILITY->decode_base64.

EXPORTING
encoded = cookie

RECEIVING
decoded = cookiedecoded.



ENDFUNCTION.

Thanks.
0
Comment
Question by:Pemberley1
1 Comment
 
LVL 10

Accepted Solution

by:
jonvaughan earned 2000 total points
ID: 16611031
Im not an ABAP OO expert.
But i think in this case you can use the method without instantiation by doing

cookiedecoded =  CL_HTTP_UTILITY->decode_base64( cookie )

give that a go ...
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

572 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question