SAP R/3 форум ABAP консультантов
Russian ABAP Developer's Club

Home - FAQ - Search - Memberlist - Usergroups - Profile - Log in to check your private messages - Register - Log in - English
Blogs - Weblogs News

Аналог se16 c включенным флагом модификации таблиц



 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP Dictionary
View previous topic :: View next topic  
Author Message
admin
Администратор
Администратор



Joined: 01 Sep 2007
Posts: 1636

PostPosted: Thu May 29, 2008 4:15 pm    Post subject: Аналог se16 c включенным флагом модификации таблиц Reply with quote

Code:
REPORT ZE_SE16 .

     TABLES: dd02l.

     SELECTION-SCREEN BEGIN OF BLOCK a WITH FRAME.
     PARAMETERS: tabname LIKE dd02d-tabname OBLIGATORY.
     SELECTION-SCREEN END OF BLOCK a.

     START-OF-SELECTION.

       SELECT SINGLE mainflag FROM dd02l
         INTO dd02l-mainflag
        WHERE tabname  = tabname
          AND as4local = 'A'
          AND as4vers  = '0000'.

       CHECK sy-subrc = 0.

       IF dd02l-mainflag IS INITIAL.
          UPDATE DD02L
             SET MAINFLAG = 'X'
           WHERE TABNAME  = TABNAME
             AND AS4LOCAL = 'A'
             AND AS4VERS  = '0000'.
       ENDIF.

       CALL FUNCTION 'RS_TABLE_LIST_CREATE'
            EXPORTING
                 table_name         = tabname
*     *         ACTION             = 'ANZE'
*     *         WITHOUT_SUBMIT     = ' '
*     *         GENERATION_FORCED  =
*     *         NEW_SEL            =
*     *         NO_STRUCTURE_CHECK = ' '
*     *         DATA_EXIT          = ' '
*     *    IMPORTING
*     *         PROGNAME           =
*     *    TABLES
*     *         SELTAB             =
           EXCEPTIONS
                table_is_structure = 1
                table_not_exists   = 2
                db_not_exists      = 3
                no_permission      = 4
                no_change_allowed  = 5
                OTHERS             = 6
                 .
       IF sy-subrc <> 0.
         MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                 WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
       ENDIF.

       IF dd02l-mainflag IS INITIAL.
         UPDATE dd02l
            SET mainflag = ' '
          WHERE tabname  = tabname
            AND as4local = 'A'
            AND as4vers  = '0000'.
       ENDIF.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP Dictionary All times are GMT + 4 Hours
Page 1 of 1

 
Jump to:  
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.