Announcement:
wanna exchange links? contact me at sapchatroom@gmail.com.
Posted by
Admin at
Ok, Here is my code TABLES?mara. data:?fieldcat?type?LVC_T_FCAT. data:?t_mara?TYPE?STANDARD?TABLE?OF?mara. DATA:?LS_FIELD_CAT?TYPE?SLIS_FIELDCAT_ALV, ??????LT_FIELD_CAT?TYPE?SLIS_T_FIELDCAT_ALV, ??????X_EVENTS?TYPE?SLIS_T_EVENT, ??????LS_EVENT?TYPE?SLIS_ALV_EVENT, ??????LS_PRINT?TYPE?LVC_S_PRNT. DATA??s_event?like?LINE?OF?X_EVENTS. Data:?LC_GLAY?type?lvc_s_glay. SELECT-OPTIONS?mimi?for?mara-matnr. DATA??t_events?TYPE?SLIS_T_EVENT. START-OF-SELECTION. SELECT?*?FROM?mara?into?CORRESPONDING?FIELDS?OF?TA BLE?t_mara?where?matnr?in?mimi. *PERFORM?build_events?CHANGING?X_EVENTS. lc_glay-edt_cll_cb?=?'X'. CALL?FUNCTION?'REUSE_ALV_GRID_DISPLAY' ?EXPORTING ? I_CALLBACK_PROGRAM =?sy-REPID ? ?I_CALLBACK_PF_STATUS_SET =?'FRM_SET_STATUS' ???I_CALLBACK_USER_COMMAND =?'FRM_USER_COMMAND' ? ?I_STRUCTURE_NAME =?'MARA' ? ?I_GRID_SETTINGS???????????????????=?LC_GLAY ? ?I_SAVE????????????????????????????=?'A' ? TABLES ????T_OUTTAB??????????????????????????=?t_mara EXCEPTIONS ?PROGRAM_ERROR?????????????????????=?1 ?OTHERS????????????????????????????=?2 ??????????. IF?SY-SUBRC?<>?0. ?MESSAGE?ID?SY-MSGID?TYPE?SY-MSGTY?NUMBER?SY-MSGNO ? ? ? ? ?WITH?SY-MSGV1?SY-MSGV2?SY-MSGV3?SY-MSGV4. ENDIF. FORM?FRM_USER_COMMAND?USING?r_ucomm?LIKE?sy-ucomm BREAK-POINT. CASE?r_ucomm. WHEN?'PRI'. PERFORM?PRINT_DATA. ENDCASE. ENDFORM. FORM?frm_set_status?USING?rt_extab?TYPE?slis_t_ext ab. SET?PF-STATUS?'ZSTANDARD'. ENDFORM. *&
| | | ---------------Original Message--------------- From: sai krrish Sent: Tuesday, December 06, 2011 6:29 AM Subject: Print ALV list in a Smartform Hi Femi, No thanks please, it's ok. Try to give me your code and let me test it. | | __.____._ Copyright © 2011 Toolbox.com and message author. Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251 | | Popular White Papers In the Spotlight SAP BusinessObjects: Dashboards and Analytics. Learn more about this Toobox.com Marketplace online course. _.____.__ |