Posts

How to access an internal table of one program in another program

Image
How to access an internal table of one program in another program. Step 1. Declare a Data Type DATA :  ls_data  TYPE REF TO data . TYPES  DATE_RANGE  TYPE  RANGE  OF  SY - DATUM . Step 2. Declare Field Symbols. FIELD-SYMBOLS :  <lt_data>  TYPE table . Step 3. Create a Ranges and selection parameter as per your Requirement DATA ( DATE ) =  VALUE  DATE_RANGE (    (  SIGN  =  'I'  OPTION  =  'BT'  LOW  =  '20180820'  HIGH  =  '20180820' ) ). Step 4. The below code will restrict ALV to display. cl_salv_bs_runtime_info => set (  EXPORTING  display   =  abap_false                                   ...

Handle and show SQL Exception show in popup message box in SAP ABAP

Image
1. Delare a variable ( lo_exc). You can use any word. DATA   lo_exc  TYPE REF TO  cx_root . 2. Use TRY and CATCH Syntax TRY. select single MATNRR from MARA INTO (varable) UP TO 1 ROWS. CATCH    CX_SY_DYNAMIC_OSQL_SEMANTICS INTO lo_exc. MESSAGE lo_exc TYPE 'I' DISPLAY LIKE 'E'. ENDTRY. Note: This Exception (  CX_SY_DYNAMIC_OSQL_SEMANTICS  ) return SQL Query Errors. Result:

How to use GUID in asp.net C# for unique ID?

Image
What is GUID ? GUID stands for Globally Unique IDentifier. It is a string of numbers and/or letters. A GUID represents a Unique identifier - means you cannot generate the same GUID more than once. A GUID has a very low (...practically impossible) probability of being duplicated  Here is a sample code of GUID use in asp.net c#.  Guid  newGuid =  Guid.NewGuid(); string query = "INSERT INTO tbl_info (UserID ,Username ,Emailaddress  ,Password  ,country)  VALUES                 (@UserID,@Username,@Emailaddress,@Password,@country)";         cmd.CommandText = query;         cmd.CommandType = CommandType.Text;         cmd.Connection = con;         cmd.Parameters.AddWithValue("@UserID",  newGuid  .ToString()); // GUID USE HERE         cmd.Parameters.AddWithValue("@Username", UNTextBo...

What is GUID ? How to generate a GUID ?

What is GUID ? GUID stands for Globally Unique IDentifier. It is a string of numbers and/or letters. A GUID represents a Unique identifier - means you cannot generate the same GUID more than once. A GUID has a very low (...practically impossible) probability of being duplicated  GUIDs have a variety of applications. You can use a GUID as a primary key in your database table or in a several other scenarios. A good example would be, if you have a distributed application where data is generated and stored in various locations and you want to merge all those data at some intervals of time, you may use GUID as the primary key. How to write a GUID in c#. GUID newguid = GUID.NewGuid(); // this will create a 36  characters  Outputs: 12345678-1234-1234-1234-123456789abc How to apply limit the length of GUID? string character= Guid.NewGuid().ToString().Substring(0, Guid.NewGuid().ToString().IndexOf("-")); this will generate a unique alpha numeric charct...

How To Write A Simple Program in C

Image
I  am going to share that   How To Write A Simple Program in  C Program. In which you can easily understand that how   Write A Simple Program in  C.

User Interface Analysis and Design eBook(pdf)

Image
User interface design or user interface engineering is the design of websites, computers, appliances, machines, mobile communication devices, and software applications with the focus on the user's experience and interaction. The goal of user interface design is to make the user's interaction as simple and efficient as possible, in terms of accomplishing user goals—what is often called user-centered design. Good user interface design facilitates finishing the task at hand without drawing unnecessary attention to itself. Graphic design may be utilized to support its usability. The design process must balance technical functionality and visual elements (e.g., mental model) to create a system that is not only operational but also usable and adaptable to changing user needs. Interface design is involved in a wide range of projects from computer systems, to cars, to commercial planes; all of these projects involve much of the same basic human interactions yet also require some...

Download Learn HTML Free e-Book in urdu free

Image
HyperText Markup Language (HTML) is the main markup language for creating web pages and other information that can be displayed in a web browser. HTML is written in the form of HTML elements consisting of tags enclosed in angle brackets (like <html>), within the web page content. HTML tags most commonly come in pairs like <h1> and </h1>, although some tags represent empty elements and so are unpaired, for example <img>. The first tag in a pair is the start tag, and the second tag is the end tag (they are also called opening tags and closing tags). In between these tags web designers can add text, further tags, comments and other types of text-based content. The purpose of a web browser is to read HTML documents and compose them into visible or audible web pages. The browser does not display the HTML tags, but uses the tags to interpret the content of the page. HTML elements form the building blocks of all websites. HTML allows images and objects to be em...