Tuesday, December 21, 2010
REPORT ztest_notepad. DATA: it_t399i TYPE t399i OCCURS 0. DATA: it_return_tab TYPE ddshretval OCCURS 0, wa_return LIKE LINE OF it_return_tab. "Selection screen parameter PARAMETER : p_swerk TYPE iloa-swerk. "Process on value request. AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_swerk. IF it_t399i[] IS INITIAL. SELECT * FROM t399i INTO TABLE it_t399i. ENDIF. "Function module CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING retfield = 'IWERK' dynpprog = sy-repid dynpnr = sy-dynnr dynprofield = 'P_SWERK' value_org = 'S' TABLES value_tab = it_t399i return_tab = it_return_tab. IF sy-subrc EQ 0. "Read the selected record READ TABLE it_return_tab INTO wa_return INDEX 1. IF sy-subrc EQ 0. p_swerk = wa_return-fieldval. ENDIF. ENDIF.
Followers
Popular Posts
- ABAP - ALV Report example with steps
- ABAP - Step by step tutorial on Smart Forms - Template Node
- ABAP - Sending email with pdf attachment
- SAP Adobe Form - Steps to create simple ADOBE Form and calling it from ABAP Program
- SAP ABAP - CL_ABAP_CHAR_UTILITIES class usage
- ABAP - Multiple value selection from F4 help for SELECT-OPTIONS
- Execute ABAP Report using SUBMIT statement
- ABAP - Select all or Deselect all in ALV or Check box handling in ALV
- Web Dynpro ABAP ALV - ON_CLICK event
- ABAP - Dynamic WHERE clause
0 comments:
Post a Comment
Your useful comments, suggestions are appreciated.Your comments are moderated.