DATA: BEGIN OF lt_dd25 OCCURS 0,
viewname LIKE dd25l-viewname,
roottab LIKE dd25l-roottab,
ddtext LIKE dd25t-ddtext,
enqueue LIKE dd25t-ddtext,
dequeue LIKE dd25t-ddtext,
END OF lt_dd25.
DATA gt_fieldcat TYPE slis_t_fieldcat_alv.
DATA gs_layout TYPE slis_layout_alv.
DATA lv_fm_name TYPE rs38l_fnam.
FIELD-SYMBOLS: <fs_lt_dd25> LIKE LINE OF lt_dd25.
FIELD-SYMBOLS <fs_fc> LIKE LINE OF gt_fieldcat.
SELECT dd25l~viewname dd25l~roottab
dd25t~ddtext
FROM dd25l
INNER JOIN dd25t
ON dd25l~viewname = dd25t~viewname
AND dd25l~as4local = dd25t~as4local
INTO CORRESPONDING FIELDS OF TABLE lt_dd25
WHERE dd25l~roottab IN s_rootab
AND dd25t~ddlanguage EQ 'RU'.
CHECK sy-subrc IS INITIAL.
LOOP AT lt_dd25 ASSIGNING <fs_lt_dd25>.
CONCATENATE 'ENQUEUE_' <fs_lt_dd25>-viewname
INTO <fs_lt_dd25>-enqueue.
CONCATENATE 'DEQUEUE_' <fs_lt_dd25>-viewname
INTO <fs_lt_dd25>-dequeue.
SELECT SINGLE * FROM tfdir WHERE funcname = <fs_lt_dd25>-enqueue.
IF sy-subrc <> 0.
CLEAR: <fs_lt_dd25>-enqueue.
ENDIF.
SELECT SINGLE * FROM tfdir WHERE funcname = <fs_lt_dd25>-dequeue.
IF sy-subrc <> 0.
CLEAR: <fs_lt_dd25>-dequeue.
ENDIF.
ENDLOOP.
DELETE lt_dd25[] WHERE enqueue IS INITIAL
AND dequeue IS INITIAL.
*----------------------------------------------------------------------*
* .END OF PROGRAMM
*----------------------------------------------------------------------*
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG. SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG. Every effort is made to ensure content integrity. Use information on this site at your own risk.