Difference Between Type, Types, and TYPE-POOL in SAP ABAP Programming

Sai Subramanyam
Updated on 30-Jul-2019 22:30:20

953 Views

TYPE keyword is used for Data or FIELD Symbol declaration You use TYPES keyword for defining local types TYPE POOL is used for grouping local types so that you can use them without duplication TYPES: BEGIN OF z_t000, Name TYPE c Length 10. N_id TYPE i. TYPES END OF z_t000. One of the common examples of TYPE POOL is Type Group ABAP. Navigate to Transaction SE11 and select Type Group and type ABAP there then press F7. You will see the body of the type group which is defined by the keyword TYPE-POOL.

Best Tutorial Site to Learn JavaScript

Abhinanda Shri
Updated on 30-Jul-2019 22:30:20

217 Views

JavaScript is a dynamic computer programming language. It is lightweight and most commonly used as a part of web pages, whose implementations allow a client-side script to interact with the user and make dynamic pages. It is an interpreted programming language with object-oriented capabilities.To learn JavaScript, refer to the following tutorial. It explains the below-given JavaScript concepts perfectly.OverviewSyntaxVariablesOperatorsLoop ControlFunctionsEventsCookiesDialog BoxesIt also explains the following advanced topics with live examples.Error HandlingValidationsAnimationMultimediaDebugging

Convert Byte Array to Image in Java

V Jyothi
Updated on 30-Jul-2019 22:30:20

20K+ Views

Java provides ImageIO class for reading and writing an image. To convert a byte array to an image.Create a ByteArrayInputStream object by passing the byte array (that is to be converted) to its constructor.Read the image using the read() method of the ImageIO class (by passing the ByteArrayInputStream objects to it as a parameter).Finally, Write the image to using the write() method of the ImageIo class.Exampleimport java.io.ByteArrayOutputStream; import java.awt.image.BufferedImage; import java.io.File; import javax.imageio.ImageIO; public class ByteArrayToImage { public static void main(String args[]) throws Exception { BufferedImage bImage = ImageIO.read(new File("sample.jpg")); ... Read More

Trigger Hover Event from Another Element using jQuery

Amit D
Updated on 30-Jul-2019 22:30:20

693 Views

Trigger a hover event from another element, using the hover() method over the selected element.You can try to run the following code to learn how to trigger a hover event from another element using jQuery:

Convert Image to Byte Array in Java

Priya Pallavi
Updated on 30-Jul-2019 22:30:20

22K+ Views

Java provides ImageIO class for reading and writing an image. To convert an image to a byte array –Read the image using the read() method of the ImageIO class.Create a ByteArrayOutputStream object.Write the image to the ByteArrayOutputStream object created above using the write() method of the ImageIO class.Finally convert the contents of the ByteArrayOutputStream to a byte array using the toByteArray() method.Exampleimport java.io.ByteArrayOutputStream; import java.awt.image.BufferedImage; import java.io.File; import javax.imageio.ImageIO; public class ImageToByteArray { public static void main(String args[]) throws Exception{ BufferedImage bImage = ImageIO.read(new File("sample.jpg")); ... Read More

BAPI to Upload Documents to SAP System Exception Handling

Swarali Sree
Updated on 30-Jul-2019 22:30:20

463 Views

As mentioned in exception message, it seems that the function module tries to access GUI related function and it doesn’t support BAPIs. So it seems to be a custom RFC module or there is some bug in SAP coding and you should open a support ticket with SAP.Also, you shouldn’t use GUI services in non-GUI operations, and it is not suggested to use class cl_gui_frontend_services and functions GUI_* and you should use OPEN_DATASET FOR INPUT/OUTPUT instruction in RFC function.

Callback Not Working on Remote but Working Locally in SAP CRM

Samual Sam
Updated on 30-Jul-2019 22:30:20

262 Views

The issue lies in the class you are using for making a method call. This class is basically making RFC callback with the help of SAP GUI. SO, when you are using the function builder, it works well because it has an SAP GUI connection present.But when you are using an external system, the GUI is missing and it doesn’t works. What you can try is to use some other method which does not have an RFC callback and thus will not have any problem. Try to use ‘create_with_table’ in place of your used method.

Print Data of Specific Element from an Array in Java

Monica Mona
Updated on 30-Jul-2019 22:30:20

14K+ Views

An array is a data structure/container/object that stores a fixed-size sequential collection of elements of the same type. The size/length of the array is determined at the time of creation. The position of the elements in the array is called as index or subscript. The first element of the array is stored at the index 0 and, the second element is at the index 1 and so on. Each element in an array is accessed using an expression which contains the name of the array followed by the index of the required element in square brackets. You can access an ... Read More

Internal Table Declaration in SAP and Differences Explained

Rahul Sharma
Updated on 30-Jul-2019 22:30:20

258 Views

As per my understanding, the key difference between two statements is that in first you are reserving memory space for storing 5 lines of the customer_tab table.If you consider performance, the 2nd statement should be better.

LDAP SEARCH Function Not Returning Photos in SAP BSP Application

Lakshmi Srinivas
Updated on 30-Jul-2019 22:30:20

184 Views

I would recommend to use LDAP_READ instead of LDAP_SEARCH and you will see thumbnail photo should be available in a convenient form to be from “XSTRING”.LDAP_SEARCH is mentioned as obsolete in SAP documentation. To see full documentation of this FM, you can use T-code SE37 to open Function Builder. Navigate to Goto ->Documentation -> Function Module Documentation.Function Module: LDAP_READ  Function Group: FSLDAP_EXTProgram Name: SAPLFSLDAP_EXTINCLUDE Name: LFSLDAP_EXTU01

Advertisements