Saturday, January 16, 2010

Drop down in ALV








Remember there are two main classes regarding ALV grid control CL_GUI_ALV_GRID and CL_GUI_CUSTOM_CONTAINER . where so many methods are defined....that we can do any thing with alv what ever we wanna do.

Monday, January 11, 2010

Working with BAPI ???

First i created a structure from t-code SE11 like below.

Then i created a function module ZBAPI_FM001 in function group ZBAPI_FG001.

Function module must be remotely enabled like it is being displayed.

There must be a return parameter the function module. And then release the function module.

Now goto t-code SWO1 there you follow the usual procedure finally what will a class and a method will be automatically generated like below.

Now for testing click the below icon.

Below screen will come out with the displayed input field.

The below output will come.

Now the question is what is difference between RFC and BAPI ? The answer is when create a BAPI that will be stored a BOR (Bussiness object repository) so in that case you need to give the direct system call like in RFC , you can directly use BOR objects in NON-SAP systems (VB / JAVA). T-code for this normally BOR but in my system it was CLBOR so alway pass *BOR* . :)

Thursday, January 7, 2010

constructor and static constructor in ABAP oops!!!!!




Every class can have no more than one (instance) constructor. Constructor methods are basically used to initialize the program variable values.
As soon as you create the object of the class in which constructor method is defined , constructor will automatically be called.
--------------------------------------------------------------------------------------