Main menu

Category: SAP

I admit that the header of this post is complicated enough. I will try to simplify it. Recently one of my friend was getting an error message from an external webservice because he was calling the service but some of…

In consume REST oauth service from ABAP – get access token in order to call main webservice – part 1 post, i had tried to explain how a key required by REST services can be obtained. In this step i will make use of this generated key so that i can call my real service. Here all i have to do is creating the body part of my JSON data, the rest is again using right methods of cl_http_client. After consuming service the response from the server will be processed and siutable message will be returned.

I have heard many things about REST, oauth, JSON and all these things. Finally i have to meet these terms this week. There was a third party tool which is provding a REST service and i have to consume it with ABAP. Interestingly i learnt that there is not any Enterprise Service infrastructure in order to call REST services. Therefore i had to use HTTP service objects within ABAP program library. cl_http_client is the main class for REST services. Calling a REST service is consist of two parts. In this post i will focust on the first part. It is getting access token which is required to successfully make main webservice and this is the second poart of REST service.

We take advantage of ABAP Test Cockpit in order to optimize our ABAP programs and other objects. We know that ATC can be done via SE80 with right clicking object and Check->ATC with option menu path. However if we want to control objects under a transport request and we dont want to check each object if there are many objects under the transport request, there are two alternatives for executing an ATC check over a transport request.

You may have seen requests with icon on request description and wonder how to make this. This feature arise from the fact that WRITE command forms the related icon when it meets an @ character in ABAP code. Therefore in order to generate an icon for text elements for list screens( with WRITE command) you have to find the character counterpart of the icon. You can find this code in ICON.

If you have read send email with attachment from an ABAP program post you will see how to send a mail with an attachment. Using SAP mail server and Business Communication Service namely CL_BCS we can send mails from SAP. These sent mails drop into a pool and wait to be executed by a background program. You can monitor all mails and communication related requests in SOST . The background job that executes waiting request according to period configuration by basis team. Duration period can be 15 minutes or 1 hour or any custom number according to your companys need.

In convert ABAP internal table into XML format post we saw hot to convert ABAP internal table to XML format. Now think that you are working on a XML data format in your ABAP program, you may want to see current XML data in a specific variable. For this you should follow below steps.

Recently we need to change thousands of SAP users’ passwords. Firstly we have checked for a standard way of doing this. If you want to do mass user operations, SU10 is the right way for doing this. With SU10 either you select your user list according to a criteria or you can manually add your user list in table control format(hard to copy all users). You can do many user operations like locking/unlocking users ,initializing passwords, delete users etc. with SU10. Although you can also initialize user’s passwords to SAP generated value, there is no way to set paswords to a default value and prevent it from changing when the user logon for the first time.