Aug 28, 2015

WebDynpro Tutorials in PDFs


Tutorial 1 - Create a Simple Web Dynpro Application
This step-by-step tutorial illustrates creating a  simple Web Dynpro component, which  consists of one view. Furthermore, it  demonstrates a Web Dynpro application for  this simple Web Dynpro component, which  can  then be run in the browser. 

This tutorial demonstrates the usage of BAPIs  and how to implement a view with input fields  and a result table using Web Dynpro for ABAP.

This tutorial demonstrates how easy it is to navigate between different views of the same Web Dynpro application.

In this tutorial, the BAPINAV component introduced in Tutorial 3 is further enhanced to display a list of bookings for a selected flight. The context that contains the flight information is enhanced with a subnode for the corresponding bookings. It also shows how the booking information is retrieved in a supply function and the context node is bound to a new table UI element in the Main View.


The fifth tutorial in the series describes component usage, personalization and configuration and offers an alternative solution to that presented in the Tutorial 3.

This tutorial demonstrates how to develop an example for component usage in Web Dynpro ABAP and further build on tutorial 4 to display customer data of a particular booking using his customer_id as a foreign key.

Tutorial 7 - How to Integrate WDA in Portal and Capture Logon User Name
This Article helps how to create iViews for Web Dynpro ABAP Application in SAP Netweaver Portal and helps how to capture portal Logon User Name in Our Web Dynpro Application.

In this tutorial, learn how to use Supply Function method in Web Dynpro Application with one simple application. Basically, Supply Function is used to fill context nodes at runtime,which can be defined by assigning a method name to the node property Supply Function in the controller at design time.


This tutorial demonstrates an efficient way to Apply Mandatory/Obligatory field Check on Input fields in a Webdynpro ABAP View.

This tutorial is written to support those ABAP consultants who want to develop their first ALV in Web Dynpro ABAP.

ref:http://webdynpro-tutorials.blogspot.com/p/web-dynpro-abap-tutorials-for-beginners.html

Aug 26, 2015

Difference between Internal and External Number Range in SAP

Each master record has a unique number in SAP.SAP needs it to display or change the
master record and to post to the vendor account.

Number ranges in SAP can be assigned with a internally or externally generated
number by the user. While defining the range in SAP this option can be selected to let
the system decide the number range to be selected while creating the master data;

Internal Number range in SAP
If you select this option then the document number will be generated by SAP
automatically in serial order within the range that you have selected while de￱ning
the
number range and will allot the next available progressive number to the next data
created. This option is selected to reduce the manual involvement of the user. The
number must be numerical.

External Number Range in SAP
While creating a master data you need to enter a number manually. With external
number range option in SAP, system will not automatically insert a number to the
document or master data. User can pick it randomly. It can be alphanumeric. Entering
the document number manually for each SAP ñnancial posting is time consuming and
risky to book transactions.
A number range can either be created as year dependent or year independent. For
year-dependent, a document number range has to be deñned for each new
accounting year as a year-end activity. You can deñne it as year independent by keying
9999 in the Year column.

Function Example: READ_TEXT ABAP Wrapper Function

by Vicky Bolster

The reason we cannot use the READ_TEXT function in an ABAP mapping is twofold:
It requires table parameters - which cannot be used in ABAP dataflows
It does raise exceptions if no data is found - a condition which would be okay for us
Therefore the solution could be to write a new SAP function module using the READ_TEXT function inside but doing exactly what we want it to do.
The code I came up with is:

FUNCTION Z_AW_READ_TEXT_ALL.
*"----------------------------------------------------------------------
*"*"Local Interface:
*"  IMPORTING
*"     REFERENCE(ID) TYPE  THEAD-TDID
*"     REFERENCE(LANGUAGE) TYPE  THEAD-TDSPRAS
*"     REFERENCE(NAME) TYPE  THEAD-TDNAME
*"     REFERENCE(OBJECT) TYPE  THEAD-TDOBJECT
*"  EXPORTING
*"     REFERENCE(TEXT) TYPE  CHAR2000
*"----------------------------------------------------------------------
DATA BEGIN OF TEXTHEADER.
        INCLUDE STRUCTURE THEAD.
DATA END OF TEXTHEADER.
DATA BEGIN OF TEXTLINES OCCURS 10.
        INCLUDE STRUCTURE TLINE.
DATA END OF TEXTLINES.
CLEAR TEXTHEADER.
data: l_name type TDOBNAME."TR
l_name = name."TR
CALL FUNCTION 'READ_TEXT'
       EXPORTING
            OBJECT                  = OBJECT
            ID                      = ID
            LANGUAGE                = LANGUAGE
            NAME                    = l_NAME "TR
       IMPORTING
            HEADER                  = TEXTHEADER
       TABLES
            LINES                   = TEXTLINES
       EXCEPTIONS
            ID                      = 1
            LANGUAGE                = 2
            NAME                    = 3
            NOT_FOUND               = 4
            OBJECT                  = 5
            REFERENCE_CHECK         = 6
            WRONG_ACCESS_TO_ARCHIVE = 7
            OTHERS                  = 8.
LOOP AT TEXTLINES.
   CONCATENATE TEXT TEXTLINES into TEXT SEPARATED BY space.
ENDLOOP.
ENDFUNCTION.

This function does not have any exceptions by itself, so even if the READ_TEXT function does raise one, it will finish successfully and return an empty text.



ref: http://wiki.scn.sap.com/wiki/display/EIM/Function+Example+READ_TEXT+ABAP+wrapper+function