Monday, December 20, 2010
This sample program is used to find the next letter. For example, If you give 'X' on selection-screen, it displays 'Y' on output.
REPORT zvenkat_notepad4. DATA: g_position TYPE i, g_next_letter TYPE c. PARAMETERS p_given. START-OF-SELECTION. IF p_given = 'Z'. WRITE 'A'. ELSE. FIND p_given IN sy-abcde IGNORING CASE MATCH OFFSET g_position. g_position = g_position + 1. g_next_letter = sy-abcde+g_position(1). WRITE / g_next_letter. 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.