Posts

Showing posts from August, 2017

Using Cursor in ABAP

Image
Declare the Cursor: ·           The cursor is declared by the DATA statement with keyword CURSOR. Open Cursor Statement: ·           Open cursor opens a database cursor for a specific selection, defined after FOR. ·           It links the cursor variable (cr_spfli) to the database cursor. ·           If the cursor variable is already opened then it cannot be reopened. ·           The statement takes the cursor position at the first row of the resulting set. ·           The select statement declared after FOR doesn’t enter any record into any table or work area. ·           Select single statement cannot be used here. ·       ...

Parameter as LIST BOX

Image
Dropdown list  is a user interface element which displays a list of values from which a user can select one value. Follow the below steps to create a dropdown list in SAP ABAP selection screen. First build the list in the  INITIALIZATION  event. Capture the value selected by the user from the list in the  AT  SELECTION-SCREEN  event or keep all selected value in  the   INITIALIZATION   event . Use the selected value for further processing. TYPE-POOLS :  VRM . DATA :  GV_PLIST  TYPE  VRM_ID ,         GT_PLIST  TYPE  VRM_VALUES ,         GS_PLIST  LIKE  LINE  OF  GT_PLIST . PARAMETERS :  P_STATUS  AS  LISTBOX VISIBLE LENGTH  25  OBLIGATORY . INITIALIZATION . *  Built Status Parameter   GV_PLIST   =  'P_STATUS' .   BUILT_...

Call ABAP Webdynpro Application from a R/3 Transaction

Image
Here we build the code in SE38 to call a Webdynpro ABAP application    'WDR_TEST_NAVIGATION'  from R/3. REPORT  ZWEBDYNPRO. ***data declarations DATA : gv_url_string  TYPE  string ,      gv_url_c ( 250 )  TYPE  c . CONSTANTS : gc_config      TYPE  string  VALUE  '?SAP-WD-CONFIGID=ZWD_APP_CONFIGURATION' ,           gc_login_auth  TYPE  string  VALUE  '?sap-system-login-basic_auth=X' ,           gc_client      TYPE  string  VALUE  '&sap-client=' ,           gc_lang        TYPE  string  VALUE  '&sap-language=' . ***Get the Url of Webdynpro Applicaion with HTTPS...