Announcement:
wanna exchange links? contact me at sapchatroom@gmail.com.
Posted by
Admin at
Reply from kwizeraa on Feb 22 at 1:19 PM Remove if r_container is initial and replace with if r_alv is initial. The check is done to ensure no grid exists before creating the container object. You have it the other way round. Let me know results when you test. Best regards, Adrian
| | | ---------------Original Message--------------- From: prakash Sent: Wednesday, February 22, 2017 1:00 PM Subject: ALV grid How should improve my alv program, I have the following problem: New columns appear each time the screen is opened. thank you for your reply MODULE MY_AREA OUTPUT. if r_container is initial. create object r_container exporting container_name = 'MY_AREA'. create object r_alv EXPORTING i_parent = r_container. CALL METHOD R_ALV->SET_TABLE_FOR_FIRST_DISPLAY EXPORTING * I_BUFFER_ACTIVE = * I_BYPASSING_BUFFER = * I_CONSISTENCY_CHECK = I_STRUCTURE_NAME ='SBOOK' * IS_VARIANT = * I_SAVE = 'U' I_DEFAULT = 'X' * IS_LAYOUT = IS_PRINT = my_print * IT_SPECIAL_GROUPS = * IT_TOOLBAR_EXCLUDING = * IT_HYPERLINK = * IT_ALV_GRAPHICS = * IT_EXCEPT_QINFO = * IR_SALV_ADAPTER = CHANGING IT_OUTTAB = it_book IT_FIELDCATALOG = it_fcat * IT_SORT = * IT_FILTER = * EXCEPTIONS * INVALID_PARAMETER_COMBINATION = 1 * PROGRAM_ERROR = 2 * TOO_MANY_LINES = 3 * others = 4 . IF SY-SUBRC <> 0. * Implement suitable error handling here ENDIF. CALL METHOD R_ALV->REFRESH_TABLE_DISPLAY * EXPORTING * IS_STABLE = * I_SOFT_REFRESH = * EXCEPTIONS * FINISHED = 1 * others = 2 . IF SY-SUBRC <> 0. ENDIF. ENDMODULE. | | Reply to this email to post your response. __.____._ | | kwizeraa Programmer/Developer - Software | | In the Spotlight Become a blogger at Toolbox.com and share your expertise with the community. Start today. _.____.__ |