Friday, June 21, 2013
- Go to SE11 and enter table name(eg. ZTEST) ->Display
- Click UTILITIES menu->Table Maintenance Generator
- Click on ENVIRONMENT menu->Modification->Maintenance screens->Double click on record in the popup.
- Write one MODULE SORT_EXTRACT to sort exactly before Table Control loop statement(LOOP AT EXTRACT WITH CONTROL)
- Write the below piece of code at SORT_EXTRACT to sort Table Maintenance.
MODULE SORT_EXTRACT OUTPUT. DATA : IT_ZTEST LIKE ZTEST OCCURS 1 WITH HEADER LINE . IF NOT SY-UCOMM = 'NEWL'. IT_ZTEST[] = EXTRACT[]. SORT IT_ZTEST BY F1 F2 F3. EXTRACT[] = IT_ZTEST[]. ENDIF. ENDMODULE. " SORT_EXTRACT OUTPUT
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
Hi there,
ReplyDeletewhen trying to activate the module (which is located in the generated top include of the function group) the error "EXACT" expected, not "EXTRACT[]" occurs.
Where did you put your module implementation, so that "extract" is known?
Best regards,
Peter
DATA : lit_sort like ZTMM_WFDOA occurs 1 WITH HEADER LINE.
ReplyDeletelit_sort[] = extract[].
SORT lit_sort BY lastname.
extract[] = lit_sort[].
getting dump when this statement triggers lit_sort[] = extract[].
not compatible