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

Show Objects changed by both a Hotpack Update and Changes



 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> Transport and Upgrade | Транспорт и Обновления
View previous topic :: View next topic  
Author Message
admin
Администратор
Администратор



Joined: 01 Sep 2007
Posts: 1640

PostPosted: Wed Aug 20, 2008 10:02 am    Post subject: Show Objects changed by both a Hotpack Update and Changes Reply with quote

Show Objects changed by both a Hotpack Update and Changes made by the Customer

Code:
* Source Name is  ZHOTPACK
REPORT ZHOTPACK  NO STANDARD PAGE HEADING
               LINE-SIZE 132 LINE-COUNT 65.
PARAMETERS: HOTPKNO LIKE VRSD-KORRNUM DEFAULT 'SAPKH40B14'.
TABLES: VRSD, E070V.
DATA: BEGIN OF TAB1 OCCURS 500.
        INCLUDE STRUCTURE VRSD.
DATA: END OF TAB1.
DATA: BEGIN OF TAB2 OCCURS 500.
        INCLUDE STRUCTURE VRSD.
DATA: END OF TAB2.
DATA: ERRS TYPE P.
SELECT * FROM VRSD.
  IF VRSD-KORRNUM EQ HOTPKNO.            "Object in a Hot Pack
    MOVE-CORRESPONDING VRSD TO TAB1.
    APPEND TAB1.
  ENDIF.
ENDSELECT.

LOOP AT TAB1.
  SELECT * FROM VRSD WHERE OBJTYPE EQ TAB1-OBJTYPE
                       AND OBJNAME EQ TAB1-OBJNAME.
      MOVE-CORRESPONDING VRSD TO TAB2.
      APPEND TAB2.
      EXIT.
  ENDSELECT.
ENDLOOP.

SORT TAB2 BY OBJNAME  OBJTYPE.

LOOP AT TAB2.
  ADD 1 TO ERRS.
  CLEAR E070V.
  SELECT * FROM E070V WHERE TRKORR EQ TAB2-KORRNUM.
     EXIT.
  ENDSELECT.
  WRITE: /01 TAB2-OBJNAME,
          30 TAB2-OBJTYPE,
          40 E070V-AS4TEXT,
             E070V-AS4USER.
ENDLOOP.
  WRITE: /01 'Count of Changes', ERRS.

INCLUDE ZCONINC3.
FORMAT INTENSIFIED OFF.
WRITE: /01 'Object Name',
        30 'Object Type',
        40 'Request Description'.
FORMAT INTENSIFIED ON.
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 -> Transport and Upgrade | Транспорт и Обновления 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.