sap query - faculty.biu.ac.ilshnaidh/zooloo/lis/sap query_tutor_v1.pdf · 53 ךותמ 2 דומע...

53
S S A A P P Q Q u u e e r r y y למשתמש חוברת למשתמש חוברת יישום קורס יישום קורסSAP

Upload: dongoc

Post on 20-Apr-2018

242 views

Category:

Documents


9 download

TRANSCRIPT

Page 1: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SS AAPP QQuueerryy חוברת למשתמשחוברת למשתמש

SSAAPPקורס יישום קורס יישום

Page 2: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 2עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

תוכן עניינים

3........................................................................................................הקדמה 1

3............................................................................................................מבוא 1.1 4.................................................................................................מושגים מילון 1.2

5..................................................................................תהליך יצירת השאילתא 2

5..........................................................................................משתמשים קבוצת 2.1 6........................................................................................הצגת קבוצת המשתמשים 2.1.12.1.2 Query Area.........................................................................................................8 8..........................................................................................יצירת קבוצת משתמשים 2.1.3 9................................................................................הוספת משתמש לקבוצה קיימת 2.1.4 10.......................................................................מחיקת משתמש מקבוצת משתמשים 2.1.5

2.2 INFO SET - 11....................................................................................מידע סט 11....................................................................................................יצירת סט מידע 2.2.1 20..............................................................................................ניהול סט מידע קיים 2.2.2 22.......................................................................וצת משתמשיםהקצאת סט מידע לקב 2.2.3

2.3 QUERY - 23.......................................................................................שאילתא 23.....................................................................................................יצירת שאילתא 2.3.1 30..........................................................................................ניהול שאילתות קיימות 2.3.2

32......................................................................................................תוספות 2.4 Query......................................................................................32-העברת מרכיבי ה 2.4.1 32..................................................................................טיפול בטרנזקציה עבור הדוח 2.4.2 34................................................................................טיפול בטקסטים בשפות שונות 2.4.3

QUICKVIEWER.............................................................................36 -' נספח א 3

52...................................... רשימת טבלאות מרכזיות במודול הלוגיסטי-' נספח ב 4

53........................................ רשימת טבלאות מרכזיות במודול הפיננסי-' נספח ג 5

הבהרהבכל מקרה שהפניה הינה . ברים בחוברת זו מנוסחים בלשון זכר מטעמי נוחות בלבדההנחיות וההס

.יש להתייחס אליה גם בלשון נקבה, בלשון זכר

Page 3: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 3עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

הקדמה 1

מבוא 1.1

במסגרת כל אחד מן המודולים . נוצרים נתונים רבים ומגווניםSAP-במהלך העבודה עם מערכת ה

במקרים בהם לא נמצא דוח . תם נתוניםיש אוסף סטנדרטי של דוחות להצגת או, SAP-השונים ב

.ליצור דוחות חדשים ניתן , של המשתמשתהייחודיסטנדרטי העונה לדרישתו

.SAP Query- אלה הינו הםייחודייהפקת דוחות לפיתוח ויהייעודהכלי

-יצירת הדוח הנדרש יש לאפיין את מקור הנתונים צורך ל, "מבנה ריק מתוכן" SAP Query-בהיות ה

. ולעצב את אופן הצגת הנתונים במסך הדוח - המכילות את המידע הרצוי SAP-ות בהטבלא

ניתן להקצאות לדוח זה - יוזם הדרישה -ולאחר אישורו של המשתמש , בסיום יצירת מבנה הדוח

. לשימוש קבועSAP-טרנזקציה ולמקם אותו בתפריט ה

, )SAPטבלאות (על אותם מקורות נתונים יתכן כי לקבוצות משתמשים שונות דרושים דוחות המבוססים

ולאפשר לכל קבוצה , ניתן להבחין בין קבוצות המשתמשים השונות, על כן. אך אופן הצגת הדוחות שונה

.גם כאשר נעשה שימוש במקור נתונים אחד, שימוש בדוח יעודי לה

Page 4: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 4עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

מילון מושגים 1.2

הסבר מושג

Query -רשימה מעוצבתגת הנתונים הדרושים למשתמש בותצ שאילתא

Users Group קבוצת המשתמשים המורשים להשתמש בשאילתא

Info Set -הגדרת אוסף הנתונים הדרושים לביצוע השאילתא סט מידע

Query Area קטים המאפשר טיפול בשאילתאיאוסף אובי

ABAP Listפורמט

ALV - ABAP List Viewerפורמט

סוגי מבנים להצגת הנתונים בדוח

Logical Database - LDB בסיס נתונים לוגי הינו אוסף של טבלאות בנושא נתון עבורן

הקשרים בין הטבלאות כבר הוגדרו

Selection תכונה המאפשרת בחירת ערכים עבור שדה נתון לפני הצגת

הדוח

Output סימון השדה הנתון להצגה בדוח

QuickViewer תוצאות ל שחד פעמיתמשמש להצגה " תצפיתן מהיר"

ת בלבדה בסיסירשימשאילתא ב

Page 5: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 5עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

תהליך יצירת השאילתא 2

:תהליך הפקת הדוח המציג את תוצאות השאילתא מורכב מ

אפשרויות השינוי של לתהתייחסוכולל , הגדרת קבוצת המשתמשים שיהיו מורשים להפעיל דוח זה •

.השאילתא

.הגדרת מקור הנתונים של הדוח תוך כדי יצירת סט המידע המתאים •

.הגדרת אופן הצגת הדוח •

ניתן להעביר את הדוח לסביבת העבודה , לאחר בדיקת תוצאות הדוח והתאמתן לדרישת המשתמש

(Production) ,להקצאות לו קוד טרנזקציה ולמקם אותו בתפריט ה-SAP ,לנוחות השימוש בו.

.בהמשך פרק זה מוסבר אופן הפעלתם של כל אחד ממרכיבי התהליך

םקבוצת משתמשי 2.1

כך ניתן להבחין בין הדרישות ואופן . ן דומהימאגדת בתוכה אוסף משתמשים בעלי עניקבוצת משתמשים

.SAP Query-השימוש בדוחות השונים בנוצרים בעזרת ה

.משתמשי מחלקת הנהלת חשבונות לעומת משתמשי מחלקת הרכש, לדוגמא

הוא , לפי כך.אחת) SAP Query -במושגי ה( ליותר מקבוצת משתמשים להשתייךמשתמש אחד יכול

. אליהן הוא שייךיהיה רשאי להפעיל מגוון שאילתות שונה משאר חברי כל אחת מן הקבוצות

Page 6: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 6עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

ת המשתמשיםקבוצהצגת 2.1.1

SAP menu Tools ABAP Workbench Utilities SAP Query User Groups :בחר ב .1

)SQ03קוד טרנזקציה (

:יופיע המסך הבא .2

2.1.2 ראה פירוט בסעיף . הרצוי Query Area- בליכים מבוצעיםההתוודא כי : שים

.קבוצת משתמששם קבוצת המשתמש בשדה בחר או הזן את .3

על קבוצת המשתמש לחץ תהגדר לשינוי .4

:יופיע החלון הבא

Page 7: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 7עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

הזן את ההגדרה החדשה ולחץ על .5

לחץ על יםש קבוצת המשתמלהצגת .6

:יופיע המסך הבא

.להמשך חזור למסך הקודם

קבוצת המשתמשים לחץ עללהעתקת .7

:יופיע החלון הבא

. הזן את השם החדש ולחץ

.קיימת אפשרות להעתיק קבוצת משתמשים כולל השאילתות שהוקצו לקבוצת המקור: שים

קבוצת המשתמשים לחץ על למחיקת .8

Page 8: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 8עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

2.1.2 Query Area

:קטים הרלוונטי להפקת דוחותיכשכל אחד מהם מכיל את סט האובי, Query Areaקיימים שני סוגי

• Standard Area -פעמיות אילתות חד נועד במקורו להפקת ש .

.Workbench Organizer -ואיננו קשור ל, client-specific הנוצר בו הינו טאובייקכל

.Production-קטים אלה אל סביבת הקיימים כלים להעברת אוביי

Global Area - פעמיותרב נועד במקורו להפקת שאילתות.

.Workbench Organizer -וקשור ל, cross-clientיקט הנוצר בו הינו יכל אוב

.ת בכלים הרגיליםי נעשProduction-קטים אלה אל סביבת הילהעברת אובי

קטים שנוצרו באחד מהם אינו יכולים יכך שאובי, Query Area-אין כל קשר בין שני סוגי ה: שים

.קטים שנוצרו בשניילשמש אובי

:על ידי בחירה בתפריטQuery Area -ניתן לעבור בין שני ה, SAP Query-בכל אחד ממרכיבי ה

Environment Query areas יופיע החלון הבא:

. הרצוי ולחץ על Query Area-סמן את ה

יצירת קבוצת משתמשים 2.1.3

.רצויה Query Area-וודא כי קבוצת המשתמשים החדשה מוקמת ב .1

.משתמשקבוצת הזן שם חדש עבור קבוצת המשתמש בשדה .2

. תווים12השם עבור קבוצת המשתמשים יכול להכיל עד : שים

.הזן את הגדרתה של קבוצת המשתמשים החדשה ושמור . לחץ על .3

Page 9: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 9עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

הוספת משתמש לקבוצה קיימת 2.1.4

.קבוצת משתמשבשדה שם קבוצת המשתמש בחר או הזן את .1

עללחץ .2

:יופיע המסך הבא

. זן את שם המשתמש ולחץה .3

על ידי בחירה , ניתן להזין את שם המשתמש על ידי בחירתו מרשימת המשתמשים הקיימים, לחילופין

Settings With selectionמתפריט

אם תיבת הסימון . לכל משתמשQuery-בשלב זה נקבעות הרשאות השימוש במרכיבי ה :שים

קבוצת שיוקצו לאותה משתמש זה יכול להגדיר ולשנות שאילתות , מסומנתלצד שמו

.משתמשים

לשמירה לחץ על .4

Page 10: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 10עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

מחיקת משתמש מקבוצת משתמשים 2.1.5

.קבוצת משתמששם קבוצת המשתמש בשדה בחר או הזן את .1

לחץ על .2

.מקם את הסמן על שם המשתמש שיש למחוק .3

ווט בתוך רשימת המשתמשים בעזרת הלחצניםניתן לנ: שים

לחץ על .4

לשמירה לחץ על .5

Page 11: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 11עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

2.2 Info Set -סט מידע

כדי לייעל את שליפת הנתונים . R/3-מקור הנתונים להפקת השאילתות הינו אלפי טבלאות המתוחזקות ב

.לוונטיות לשליפהאשר כולל רק את הטבלאות הר, יש להקים סט מידע עבור כל שאילתא

יצירת סט מידע 2.2.1

SAP menu Tools ABAP Workbench Utilities SAP Query Info Sets: בחר ב .1

)SQ02קוד טרנזקציה (

:יופיע המסך הבא

.רצוי הQuery Area- המידע החדש מוקם בוודא כי סט .2

הזן שם עבור סט המידע החדש ולחץ על .3

. תווים24השם עבור סט המידע יכול להכיל עד : שים

Page 12: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 12עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

:יופיע החלון הבא

.Nameבשדה הזן תיאור לסט מידע .4

. בהמשך לזיהוי סט המידעמאחר ותיאור זה ישמש, מומלץ לקבוע תיאור מדויק ומפורט: שים

: הנתונים על ידי בחירה ביןשליפתקבע את אופן .5

. והזן את שם הטבלה הראשונה- צירוף מספר טבלאות- Table join by basis table .א

.הזן את שם הטבלה ו-אחת בלבד קריאה ישירה מתוך טבלה - Direct read of table .ב

הזן את ו-פר טבלאות מקושרות בינהן לה כבר מס שימוש בטבלה לוגית המכי- Logical database .ג

.שם הטבלה לוגית

.בהמשך מפורטות כל אחת מן האפשרויות

Page 13: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 13עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

:יופיע החלון הבא, נבחרה אפשרות הקריאה הישירהאם. א.5

. קבע את הרכב קבוצת השדות

.Create empty field groupמומלץ לבחור את : שים

ע מסך כדוגמת המסך הבא בו כבר מוצגת הטבלה הראשונה יופי, נבחרה אפשרות צירוף טבלאותאם. ב. 5

.על ידי לחיצה על אליה ניתן לצרף טבלאות נוספות , שנבחרה

Page 14: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 14עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

.ר שנקבע המכילה את הרשומות בהתאם לסוג הקש"תוצאה תטבל"הטבלות המצורפות יוצרות . 1 : שים

מצב שנוצר כשמהטבלה השניה, יש לקחת בחשבון מצב בו נוצר ריבוי רשומות עבור אותו נתון

. נשלפות מספר מרשומה עבור אותה רשומה מהטבלה הראשונה

.ט נתון יש תיאור במספר שפה"כשלמק: לדוגמא

. בהמשך11 ראה סעיף . קריטריוני בחירה -בקרה על השליפה ניתן לפתור מצב זה על ידי הוספת

שפירושו שכל רשומה בטבלה הראשונה Outer linkבין הטבלאות יכול להיות מסוג הקשר. 2

Inner join מסוג קשר, לעומת זאת; ין עבורה רשומה תואמת אההשנייגם אם בטבלה נשלפת

.ישלפו ההשניי פירושו שרק רשומות מן הטבלה הראשונה להן יש רשומה תואמת בטבלה

בין לקבוע את טיב הקשר , בשלב זה ניתן לבצע בדיקה לקשר בין הטבלאות המצורפות. 3

.או לחזור לתהליך הכנת סט המידע, הטבלאות הבסיסיות

:בהמשך יופיע החלון הבא

. קבע את הרכב קבוצת השדות

.Create empty field groupמומלץ לבחור את : שים

Page 15: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 15עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

:ההבאכמו בדוגמא חלון יופיע , נבחרה אפשרות השימוש בטבלה לוגיתאם. ג. 5

. בהמשך קבוצת שדות מתאימהופתחי Use על ידי סימון התיבה בשדה: שים

Page 16: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 16עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

:יוצג בהמשך מסך כדוגמת המסך הבא לקביעת מבנה השדות של סט המידע, בכל האפשרויות .6

.Field Group/data fieldsהטבלות והעבר את השדות הרצויים אל הבלוק פרוס את .7

:להעברה מרוכזת של מספר שדות

)Controlון מרובה בעזרת סימ (Data fields-סמן אותם בבלוק ה. א

Field Group/data fieldsסמן את קבוצת השדות אליה יש להעביר בבלוק . ב

לחץ על . ג

אין חשיבות למספר הקבוצות . הינה הקבצה לוגית של שדות(Field Group)קבוצת שדות : שים

.אך הכרחי שתוקם לפחות קבוצה אחת, המוקמות

. דוגמא במסך הבאראה

Page 17: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 17עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

.שדות עבורם קיים שדה טקסט מסומנים על ידי : שים

פיע ו המLong textבשדה לערוך את כותרתו על ידי שינויניתן , עבור כל שדה שמשויך לקבוצת שדות .8

.בחלקו התחתון של המסך לאחר ששדה מקבוצת השדות נבחר על ידי הקשה כפולה עליו

:חלקו הימיני של המסך יתחלף ל. במסך עריכת סט המידע לחץ על , נוספיםשדותלהוספת .9

Page 18: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 18עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

:יופיע החלון הבא. לחץ על Extrasבלשונית

:ופיע החלון הבאי. Additional field וסמן את האפשרות Nameהזן שם עבור בשדה

ניתן לקבוע את אופן החישוב של לדוגמא .ABAPד ניתן לבצע שינויים ברמת כתיבת קו Codeלשונית ב .10

.חדש המציג תוצאה של נתונים קיימים בתוספת חישוביםשדה

Page 19: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 19עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

. לחץ על Selectionsלשונית ב, להגדרת קריטריוני בחירה .11

. Selection criterionהזן שם וסמן את

ניתן לקבוע , כמו כן. )שדה+ טבלה (בהמשך הזן את השם המלא של השדה עליו תבוצע הבחירה

.שבחירה זו תהיה חובה

ניתן לצרף אותה טבלה יותר מפעם , במקרים בהם יש צורך להתיחס לתוכן טבלה מנקודות מבט שונות .12

.סמכי רכש מסוג הזמנות רכש לעומת מסמכי רכש מסוג הסכמיםדוח המציג מ, לדוגמא. אחת

. -לצורף צירוף חוזר של אותה טבלה יש להשתמש ב

.בכל שלב בהכנת סט המידע מומלץ לבדוק אותו על ידי לחיצה על .13

. ושמירהה על ידי לחיצGenerateבסיום יצירת סט המידע יש לבצע .14

Page 20: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 20עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

קייםניהול סט מידע 2.2.2

SAP menu Tools ABAP Workbench Utilities SAP Query Info Sets: בחר ב .1

)SQ02קוד טרנזקציה (

:ע המסך הבאיופי

.אחרון בשימוש הQuery Area-בחלקו התחתון של המסך מוצגת הרשימה השייכת ל .2

. הרצויQuery Area -ניתן לעבור אל ה, לפי הצורך

.בחר את סט המידע מתוך הרשימה המופיעה בחלקו התחתון של מסך זה .3

סט המידע לחץ עלמבנה לשינוי .4

.2.2.1 לפירוט מסך זה ראה סעיף. מבנה סט המידע המפרט את ךיופיע המס

Page 21: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 21עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

סט מידע לחץ על הגדרות להצגת .5 :יופיע המסך הבא

סט מידע לחץ על להעתקת .6

:יופיע החלון הבא

להשלמתו בצע עיבוד על ידי לחיצה על . מידע חדש תוך כדי העתקה נוצר סט : שים

לחץ על סט מידע למחיקת .7

Page 22: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 22עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

הקצאת סט מידע לקבוצת משתמשים 2.2.3

:במסך ניהול סט המידע

.בחר את סט המידע הרצוי .1

לחץ על .2

:יופיע החלון הבא

. זה ושמורת המשתמשים לה מוקצה סט מידעסמן את קבוצ .3

!לא יוכל המשתמש להפעיל את השאילתא, ללא הקצאה זו: זכור

Page 23: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 23עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

2.3 Query -שאילתא

. SAP Query-בחירת אופן הצגת הדוח הינו השלב האחרון ביצירת ה

ופן ולקבוע את א, קבוצת המשתמש וסט המידע המתאימים, Query Area-לצורך כך יש לבחור את ה

.סטנדרטי או מהיר: כיםגת הנתונים באחת משני המהלהצ

.המהלך הסטנדרטי ולאחריו המהלך המהירראשית , זה מפורטים שני המהלכיםבפרק

יצירת שאילתא 2.3.1

SAP menu Tools ABAP Workbench Utilities SAP Query Queries: בחר ב .1

)SQ01קוד טרנזקציה (

:יופיע המסך הבא .2

Page 24: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 24עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

: בצע את השלבים הבאיםבמהלך המהיר

. הרצויQuery Area-וודא כי השאילתא החדשה מוקמת ב .1

לה הוקצה סט המידע שישמש להפקת (בחר את קבוצת המשתמשים עבורה מוקמת השאילתא .2

ידי לחיצה על על ) השאילתא

.Queryהזן שם עבור השאילתא בשדה .3

. תווים14השם עבור השאילתא יכול להכיל עד : שים

לחץ על .4

:יופיע החלון הבא

Page 25: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 25עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

: הבאיופיע המסך . בחר את סט המידע הרצוי על ידי סימונו ולחיצה על .5

, )Selection (או לקביעת פרמטרי השליפה/ ו)Output (בחר את השדות להצגה, Field group/fieldsבבלוק .6

:כבדוגמת המסך הבא

לחצן לחיצה על , מסומןשדהכשה. ון של המסךתכל שדה שנבחר להצגה מופיע מיד בחלקו התח: שים

.טקסט שלואו ה/ימיני בעכבר יאפשר בחירה בהצגת מספר הנתון ו

Page 26: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 26עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

.לחץ על , לבחינת הדוח .7

ע במהלך זה לחץ על בלשמירת הדוח בפורמט שנק .8

: בצע את השלבים הבאיםבמהלך הסטנדרטי

. הרצויQuery Area-וודא כי השאילתא החדשה מוקמת ב .1

.)הוקצה סט המידע שישמש להפקת השאילתאלה (בחר את קבוצת המשתמשים עבורה מוקמת השאילתא .2

.Queryהזן שם עבור השאילתא בשדה .3

. תווים14השם עבור השאילתא יכול להכיל עד : שים

.לחץ על .4

: בו יש לבחור את סט המידע עליו תתבסס השאילתאיופיע החלון הבא

ואת אופן בהתבסס על סט המידע שנבחר)Field selection ( מקור הנתוניםבהמשך יש להגדיר את

:לצורך הצגת הדוח ניתן להגדיר. הצגת הדוח

או/ו אחת רשימה בסיסית -

או/ו רשימות סטטיסטיקות 9 עד -

רשימות מדורגות9 עד -

Page 27: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 27עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

. ו והדפסתו ואת אופן הצגתהדוח כותרתיופיע המסך הבא במסגרתו אפשר לקבוע את .5

, )Notesבשדה (הערות לתיעוד הדוח , ניתן לקבוע את הכותרת של הדוח שתופיע בשורה העליונה במסך

.Output formatולפורמט ההצגה בבלוק , List formatאת הגדרות ההדפסה בבלוק , שימוש בוריאנטים

.ABAP List- האפשרויות מומלץ לעבור אל המרבלמיצוי : שים

לחיצה על עבור לשלב הבא על ידי .6

.דוחשישמשו את ה בו ניתן לבחור את קבוצת השדות של סט המידע יופיע המסך הבא

Page 28: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 28עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

עבור לשלב הבא על ידי לחיצה על .7

:בו ניתן לקבוע אילו שדות ישמשו את הדוחיופיע המסך הבא

עבור לשלב הבא על ידי לחיצה על .8

:לקביעת השדות ישמשו לבחירות ואת סדר הופעת לצורך הבחירהיופיע המסך הבא

Page 29: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 29עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

עבור לשלב הבא על ידי לחיצה על .9

:מסך זה מחולק ל .את מבנה הצגת הדוחבו ניתן לקבוע יופיע המסך הבא

המציג את רשימת השדות) סךבקצה השמאלי העליון של המ (Data fields בלוק -

בו מופיעים הסברים כללים והרחבות לגבי שדה נבחר) בחלקו השמאלי התחתון של המסך( בלוק הפירוט -

הכולל תיבות עזר) בחלקו הימיני של המסך(של הדוח " תצוגה מקדימה "-

:קיימות אפשרויות עריכה נוספות בתפריט הקיצור של כל שדה: שים

Page 30: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 30עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

קיימות ניהול שאילתות 2.3.2

SAP menu Tools ABAP Workbench Utilities SAP Query Queries: בחר ב .1

)SQ01קוד טרנזקציה (

. עבור אל קבוצת המשתמשים הרצויה ובחר את השאילתא הרצויה. הרצויQuery Area-עבור אל ה .2

:להרצה של דוח קיים בחר את השאילתא הרצויה ולחץ על .3

להרצה רגילה ומידית-

אנט מוכןי להרצה עם ור-

. להרצה ברקע-

.ייבת שימוש בוריאנטהרצה ברקע מח: שים

השאילתא לחץ עללהצגת נתוני .4

:יופיע המסך הבא

. השאילתא לחץ על להעתקת .5

Page 31: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 31עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

:יופיע החלון הבא

.השאילתא המועתקת מוקצת אוטומטית לאותה קבוצת משתמשים כמו שאילתת המקור. א: שים

לשנות תוך כדי עריכתיהיה ניתן ה את תיאורשלב זה נקבע שם השאילתא ואילו ב. ב

. השאילתא במהלך הסטנדרטי

שאילתא לחץ על למחיקת .6

Page 32: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 32עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

תוספות 2.4

Query-העברת מרכיבי ה 2.4.1

. נוצרו בה הםQuery Area- תלוי בSAP Query-אופן העברת המרכיבים השונים של ה

וקשורים , cross-client שהינה AQGDB שמורים בטבלה Global Area-כל האובייקטים שנוצרו ב

.SAP-הם מועברים בשיטות הרגילות ה, על כן. Change and Transport Organizer -למנגנון ה

.client-specific שהינה AQLDB שמורים בטבלה Standard Area-האובייקטים שנוצרו ב, לעומת זאת

יש להעזר במנגנון , באותה סביבהclient-ואף בין ה, להעברת אובייקטים אלו בין הסביבות השונות, על כן

.המיוחד של יצוא ויבוא אובייקטים

טרנזקציה עבור הדוחב טיפול 2.4.2

:הבא יופיע המסך . SE93להקצאת קוד טרנזקציה לשאילתא הפעל טרנזקציה .1

. -בבחר הזן שם ו .2

Page 33: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 33עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

יופיע החלון הבא .3

, Transaction codeהזן קוד טרנזקציה בשדה . א

,Short textשם טרנזקציה בשדה . ב

.Transaction with parametersבחר באפשרות . ג

:יופיע המסך הבא .4

, Transaction בשדה שם השאילתאהזן את . א

, Skip initial screenסמן את השדה . ב

.Inherit GUI attributesסמן את השדה . ג

Page 34: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 34עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

5.

טיפול בטקסטים בשפות שונות 2.4.3

המערכת מציעה את . בכותרות ובהגדרות השונותSAP Query-טקסטים מוזנים בכל אחד ממרכיבי ה

.או לערוך/בהם אפשר להשתמש ו, הטקסטים הסטנדרטים

.סחים היטבמומלץ לוודא שטקסטים אלו מופיעים בשפת הכניסה למערכת ומנו

השונים בכל אחד מן מאפשר ביצוע השוואה בין תצוגות הטקסטים Language comparison-מנגנון ה

.לפי בחירת המשתמש, השואה זו מבוצעת על שתי שפות. המרכיבים

, )SQ02בטרנזקציה (בחר סט מידע זה , לצורך השוואת הטקסטים שהוגדרו עבור סט מידע נתון, לדוגמא

.Environment Language comparisonיט ובחר מתוך תפר

:יופיע החלון הבא

.בחר את השפות לביצוע ההשוואה .1

.סמן את המרכיב הרצוי והזן את שמו .2

Page 35: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 35עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

.לחץ על .3

:ואף לערוך אותם, יופיע המסך הבא בו ניתן לבחון את הטקסטים .4

Page 36: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 36עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

QuickViewer -' נספח א 3

Purpose The QuickViewer allows you to define reports without having to program yourself. It is especially useful for new users and occasional use. Integration QuickViewer is a tool for generating reports = basic lists. QuickView definitions are user-dependent. You can transfer a QuickView into SAP Query in order to make reports, for example, accessible to additional users, or to use the other functions available in SAP Query.

The following is a comparison of QuickViews and queries:

• QuickViews possess the same functional attributes as queries. However, only basic lists may be defined with QuickViews.

• In contrast to queries, no user group assignment is necessary with QuickViews. Each user has his/her own personal list of QuickViews. QuickViews cannot be exchanged between users. QuickViews may, however, be converted to queries and then be made available to other users in a specific user group.

• InfoSets are not required for QuickView definition. Whenever you define a QuickView, you can specify its data source explicitly. Tables, database views, table joins, logical databases, and even InfoSets, can all serve as data sources for a QuickView. You can only use additional tables and additional fields if you use an InfoSet as a data source.

• The QuickViewer uses various controls. Certain hardware and software requirements must also be fulfilled before you can use the QuickViewer.

Features To define a QuickView, you select certain fields according to your data source that determine the structure of your report. The report can be executed in basis mode with standard layout or may be edited using drag and drop and the other toolbox functions available in WYSIWYG mode. Reports created using the QuickViewer may also be passed to external programs (Excel, for example). Functions for Managing QuickViews Call the QuickViewer using the menu path System → Services → QuickViewer and choose a QuickView.

Function: Description:

Display Displays the QuickView definition details. All screens are displayed in the same manner as if the QuickView were being changed, however no new entries can be made.

Description You receive an overview containing general information about a QuickView and options. This includes:

Page 37: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 37עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

• QuickView title • Author and last person to make changes • Remarks specific to that QuickView • Origin of the selected data • Saved lists • Additional selections

Copy Choose a name for the QuickView in the dialog box and confirm your entry.

Rename Choose another name for the QuickView in the dialog box and confirm your entry.

Delete Deletes the QuickView after asking you to confirm that this is what you want to do.

QuickView → More functions → Adjust

Adjusts differences between the QuickView and InfoSet.

If you create QuickViews based on InfoSets, differences in individual field definitions may occur between a QuickView and its associated InfoSet.

Suppose you have created a QuickView using an InfoSet and have already executed it a number of times. Your system administrator then modifies an InfoSet field by changing the type of field you use in the QuickView. The next time you want to work with the QuickView, you get a message informing you that differences exist between the QuickView and the InfoSet.

If differences occur between QuickViews and InfoSets, you should terminate processing and carry out a comparison between the QuickView and the InfoSet.

When you carry out an adjustment you see a list of all the fields that are defined differently, together with information about how the field definition has changed and where the field is used in the QuickView. The system gives you an automatic adjustment option for individual fields. At the end of the list, there are some notes telling you what to look out for with automatic adjustment and what you must do, if you want to carry out the adjustment yourself.

Layout display

The principle structure of the list created by the QuickView is displayed.

SAP Query This pushbutton takes you to query maintenance. To edit a QuickView in SAP Query, choose Query → Convert QuickView from the initial screen in SAP Query.

Page 38: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 38עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

Creating QuickViews To convert a QuickView into a query, proceed as follows:

1. Call the QuickViewer using System → Services → QuickViewer (or transaction SQVI). 2. Enter the name of the QuickView. QuickView names can contain a maximum of 14

characters. 3. Choose Create. The following dialog

box appears:

4. Enter a title for the QuickView and remarks, if you think they are relevant.

5. If you do not want to base your list on a table, use the possible entries pushbutton in the Data source field to select another data source. Choose logical databases or InfoSets. In addition, you may also create table joins.

6. Choose Basis mode to create the list directly with no list design (immediately executes or passes your list to other tools), or Layout mode to define the layout of your list (allows to influence the graphical structure of the list)

Selecting a Data Source The first step in creating a QuickView is selecting its data source. You can choose one of the following:

• Table • Logical database • InfoSet • Table join

Logical databases, InfoSets, and table joins are all different techniques for consolidating data from multiple database tables. Logical databases are pre-defined paths for accessing database tables. These paths can be made available to various reports in code form. Logical databases are especially useful if the structure of the data you want to read corresponds to a hierarchical view. This can be realized using a logical database.

InfoSets are used in SAP Query. InfoSets can be based, among others, on logical databases. Since the number of fields in a logical database can be extremely large, you can also hide fields. In addition, you can define help fields that users can edit like database fields. You can attach additional tables to read long texts and store ABAP code, for example. If you choose an InfoSet as your data source, the InfoSet must come from the standard query area. InfoSets from the global query area may not be used when creating a QuickView.

Multiple tables can be linked together to form a join. The result set is a table, each of the lines of which contains all the fields of all the tables used in the join. Hierarchical relationships between tables cannot be analyzed using a table join. Table joins must be defined before beginning with QuickView construction. You define joins using a control containing graphical representations of the tables you are joining and of existing relationships between them.

Page 39: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 39עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

Executing QuickViews To execute a QuickView online, select Execute or Execute with variant. If you select Execute with variant, you see a dialog box where you can enter the variant name.

Variants are blocks of selection criteria that have been saved in the system. If you specify a variant when starting a QuickView, the system uses the values in the variant as the QuickView's selection criteria on the selection screen that appears.

You enter variants on the selection screen and save them under any name. For each QuickView, you can create any number of variants. To create a variant, select Goto → Maintain variants. You can find information about variant maintenance under Help → Application help.

The system starts the QuickView and displays the selection screen. Here you may enter selection criteria, just as if you were starting a report. Below is an example of a selection screen.

Selection screens normally consist of two parts:

• The upper part of the screen contains the database selections. These are determined by the underlying logical database and are automatically displayed on the screen.

• The lower part of the screen contains program parameters that come either from the QuickView's definition or that were automatically generated by the QuickView.

These program parameters may consist of any of the following:

• Additional selection criteria specified when defining the QuickView.

• Parameters and selection criteria defined, for example, in the InfoSet used.

• A parameter for the currency conversion date, if such conversions are performed.

• Several radio buttons allowing you to send the list for further processing

When you have entered the selections, choose Execute to display your list.

If you want to output the list to a printer instead of on the screen, proceed as follows: 1. Start the QuickView as described above. 2. On the selection screen, choose Execute and print.

You then see a screen where you can specify the print options.You can also display the list on the screen first and then select Print.

Page 40: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 40עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

Basis Mode Features Basis mode offers you the following features:

• Field selection and sequence assignment • Sort field selection • Selection criteria selection (fields for the selection screen) • List execution List display in standard format or list export (to Word, Excel, etc.)

Selecting List Fields You choose what fields you want to appear on your list on the following screen. Select Available fields that you need for your list from the table control on the right. The pushbutton (Column left) allows you to transfer fields into the table control on the left. If you want to accept all available fields in your list, use the Page left pushbutton (double-arrow). Page right allows you to reset this selection. Determine in which order you want your fields to be output. If you want to move a field forward in the sequence, select it and choose the Previous value pushbutton (Arrow pointing upwards). Use the downward arrow to pass fields down the list. Insert line allows you to determine where a line should wrap in multiple-line basic lists.

The Technical name <> Long text pushbutton in the application toolbar allows you to switch between a field's technical name and long text whenever you want to. Determining the Sort Sequence Choose the tab Sort sequence. Here you can determine list sorting and output criteria.

Select sort fields in the table control located on the right. You can sort and find fields in the Available fields table control with the appropriate pushbuttons. When you have found the fields you want to sort according to, use the pushbutton (Column left) to transfer these fields to the table control on the left. Radio buttons allow you to determine if you want to sort ascending or descending.

Page 41: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 41עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

Selecting Selection Fields Use the tab Selection fields to choose selection criteria in basis mode. Selection fields are displayed as input fields on selection screens before your report is executed. If you want to add a selection for a field, select the field and transfer it. Selection criteria for InfoSets or logical databases are already inserted in the left table.

Output Options In basis mode, you can use the possible entries help for field Display as prior to executing a QuickView to determine whether you want to export the report or display it directly.

Layout Mode/The Graphical Query Painter Features In layout mode, you can:

• Define output options for lines • Change the positioning and size of fields • Create screen templates • Edit headers, footers, and column headers • Define control levels • Sort • Create totals lists etc.

The Query Painter is made up of screen divided into four windows whose size may vary according to wish. The individual windows contain:

• Those fields at your disposal, organized on the left in tree form • The list layout (on the right) • Information about the list element currently selected (lower left) • Links to the corresponding documentation as well as error messages and warnings

(lower right)

The window on the upper left-hand side displays a list of all of the fields you can work with in this particular list.

List layout is simulated in the upper right-hand part of the screen. Individual fields are represented by field values. Sample data records are read from the data source. If this is not possible, dummy field values are inserted. This layout simulation corresponds to the structure of the list that will be created later. It contains the same fields, headers, colors, totals lines, etc. in the same order they will be displayed. In order to simulate the structure of a multiple-line, hierarchical list, numerous sample data records are read from the database and inserted in the list.

Page 42: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 42עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

In addition, the layout window contains several Toolbars for changing list layout and attributes.

Many of the elements that appear in the layout window can be moved and changed using drag and drop functionality. Your cursor changes from a pointer to an index finger when positioned on one of these elements. A simple left mouse click frames all moveable objects in blue and you cursor assumes a new shape (move cursor). Now you can move the element in question within the layout window by depressing your left mouse button and dragging the object to a new position. When you release the mouse button, your element assumes its new position (if the new position is allowed). Moveable elements include:

• All fields in the list layout • Toolbars • Fields appearing in toolbars • Icons in toolbars

You may also change the width of certain selected elements (windows in the list layout, toolbars) by placing your cursor on the right edge of the element and increasing or decreasing its width with the left mouse button.

If an element is selected in the layout window, information about that element is displayed in the lower left window as soon as the blue frame appears around it in the layout window. With fields, long texts, technical names, and list attributes (display line, position, display length, sort number, etc.) are displayed. You may change these attributes directly in this window. Any entry you make in this window must be confirmed using the Apply pushbutton.

You may also call a context menu for an element using your right mouse button once that element has been selected in the layout window. This context menu allows you to display general list attributes or the attributes of specific list lines in the lower left window that cannot otherwise be simulated graphically. As with the other attributes, any entries or changes you make in this window must be confirmed using the Apply pushbutton

Selecting List Fields You can select list fields in the upper left window of the Query Painter. The fields are displayed in a tree whose structure is derived from that of the data source. If your data source is a logical database, then the nodes of this tree are the same as the logical database nodes. With joins, each table's individual nodes make up the node of the tree. All fields are found under their corresponding node.

Two radio buttons are assigned to each field. When you select the first radio button, its field is selected and transferred to the layout window, and as a result of this to the list as well. You can also make this selection simply by double-clicking on the field name. Selecting the second radio button makes the field into an additional selection criterion.

Selected fields are highlighted in color. Depending on how many fields you select, the are either inserted one after the other in a single line or in multiple lines.

If you do not want to fill every line, but instead want to move to the next line and resume filling there, you can insert new lines using the Insert line symbol in the toolbox. Those lines you have selected are then placed in the new line inserted.

To delete selected fields, undo the field's selection, or drag the trash can icon from the appropriate toolbar to the field you want to delete. Deleted fields are stored in the trash and can

Page 43: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 43עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

be re-inserted into the list according to need. The fields attributes remain the same as when they were deleted.

1. The system empties the trash whenever you exit the program 2. Be aware that example data is used when structuring the list.The factual consistency of

data in the layout mode is, in contrast to data displayed at list execution, not guaranteed. Selecting Selection Fields You can choose what selection fields you want to work with in the Selection Fields column of the upper left-hand window on your screen in the Query Painter. Select those fields that you want displayed as selection criteria on your selection screen by placing a check in their checkbox.

Selection fields are displayed as input fields on selection screens before your report is executed. Users can reduce the amount of data output in the report by entering values in these fields. If, for example, you select Flight connection code, you can specify in the program selection area that you only want to display flights with certain flight numbers.

Those selection fields mandated by your logical database or InfoSet are already selected.

List Display Options Click on the ruler in the window on the upper right of your screen to determine list attributes. Several attributes may then be altered in the window on the lower left. You may also place your cursor on a list field and depress the right mouse button. The following context menu appears:

Choose List options and maintain your options in the lower left window. You can change list attributes here by making entries directly. Any entry you make in this window must be confirmed using the Apply pushbutton.

Headers and Footers Basic lists are displayed in the Query Painter header first, followed by the line structures, and subsequently a footer.

Two types of header lines are available: page headers and column headers. Headers and footers are independent of query structure. You can define any number of header lines. Blank header lines are not output in the list.

Column headers are made available to you by the system by selecting the checkbox Display header under the List Line Output Options. This checkbox is selected in the standard.

The following functions help you edit headers and footers: • To insert text or parameters, click on the header or footer.

Page 44: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 44עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

• To insert an additional line, double-click on the line. Each double-click inserts an additional line.

• To delete a line in your header, drag the trash can icon to that line.

If you had a single header line and you deleted it, you can re-insert a header by choosing Additions → Insert header.

You can define fixed header/footer lines so that when you generate the list, they receive current values. Use the following fields directly as variables:

Function Abbreviation Description

&%NAME &N Name of the user processing the query

&%DATE &D Current date

&%TIME &T Current time

&%PAGE Current page number (6 characters)

&%P &P Current page number (3 characters)

Please note that, although the number of header lines in the page header and footer is unrestricted, the total number of these lines must be smaller than the number of lines per page. You can only check this partially in the QuickView definition, since the number of lines per page may change at processing time (for example, when printing). If this condition is violated at processing time, the program is terminated.

List Width (Ruler) The ruler is located on the edge of your screen at the upper right in the Query Painter. It is switched on in the standard.

You can hide or re-display the ruler on demand by using the appropriate pushbutton.

To set list width place your cursor at the right end of the ruler. Once the frame appears, expand or contract it to the width you want. Alternatively, you may directly enter list width in characters in the List width field located in the lower left-hand part of your screen.

If you want to decrease list width so that it is smaller than the combined width of the fields on it, overhanging fields are inserted in a new line.

If you want to frame your list, select the checkbox List with frame.

Your list must be framed if you want to use field separation.

List Line Output Options

Page 45: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 45עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

There are two ways to define output options for a line:

• Place your cursor on the line in question and depress the right mouse button. The following context menu appears:

Choose Line options and maintain your line options in the lower left window. or

• Double-click on an empty segment of the line (next to the list field). Those options that can be changed are now displayed in the lower left window on your screen.

Colors You can use colors in lists to highlight specific information. Select a color from the appropriate toolbox and drag it to the line you want (not to a list field). This line is now displayed in that color. In addition, you may also choose colors from the line options in the window in the lower left-hand corner using the possible values help. Selecting Apply then assigns the color to a line. The Hierarchy Display You may use the pushbutton Node assignment in the application toolbar of the Query Painter to highlight parts of your hierarchy display in color. When you choose this pushbutton, individual hierarchy levels are automatically displayed in different colors depending on their position in the logical database or functional area. This allows you to discern which fields belong to which level of the hierarchy and more easily order different lines these fields when creating multiple-line basic lists. This highlighting is temporary and does not affect the colors you've selected for list display in any way. Choose Node assignment once again to switch off these colors.

Column Headers You may display the structure of a basic list in the Query Painter: This display contains the header line (page header), the line structure, and the footer line (page footer).

Header lines are subdivided into page headers and column headers. The checkbox Display header is selected in the standard under List Line Output Options; this means that column headers will be displayed.

If you want to hide a line, deselect the checkbox for the entire line.

Page 46: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 46עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

The system uses the short descriptions of fields stored in the ABAP Dictionary as column headers. If you want to change this text in a QuickView, do so by simply clicking on the column header you want to modify.

In queries, fields may only ever have one header. Whenever you alter the output length of a field, the width of its header is changed as well.

Separators Using separators makes list display clearer and more readily understandable. Whenever you create a list in the Query Painter, it is framed automatically and its header and footer are set off from the body of the list with underscores. You can decide if you want to display slashes before and after lines and if column separators make sense. These options are available as List Line Output Options.

You can also drag the separator icon from the toolbox to a specific line to insert column separators. Drag the Undo icon to that line to undo your choice.

Use this technique to undo the automatic selections mentioned above if you do not want your list's columns and lines to be separated. You can also delete the frame around your list on the List Line Output Options screen. However, be aware that separators can only be used between individual column fields and lines if the list itself is framed.

Further Options

• Line color - Call the possible values help for Line color from list line output options in the left lower window and choose Apply, and select a color from the toolbar for additional functions (toolbox) and drag it to the line you want.

You can also assign specific colors to the individual fields in a line independent of the line color.

• Blank space before/after this line - enter the number of empty lines you want to have before or after the line under List Line Output Options in the lower left-hand window on the screen. Confirm your entries using the Apply pushbutton. Select the Insert line icon from the toolbar for additional functions (toolbox) and drag it to the line you want. An empty line is inserted after each current line.

• Redisplay line in header - allows you to repeat certain lines in every page header.

For example, a query contains a flight connection (line 1) for multiple flights (line 2). This means that if you are working with a fixed page size (which is always the case when printing), one page may contain only lines with flights. However, if you select the option Redisplay line in header for line 1 (flight connection information), the line containing the flight connection will be output on each new page. Therefore, it is always easy to see to which flight connection the flights on each page belong.

Page 47: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 47עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

• New page -If you select the option New page for a line, the system inserts a page break a new page before outputting this line.

• Display only in connection with line n - This option allows you to specify in connection with which line you want to output specific data.

Moving fields To change a field's position, proceed as follows:

1. Select the field. 2. Drag the field to the new position you want it at (keeping the left mouse button

depressed). Insert mode is the standard Query Painter setting, this means that whenever you position a field between to others, the system automatically makes room for the new field (without overwriting any existing fields). Overwrite mode can be switched on at will (Edit → Overwrite). Fields overlap in overwrite mode and a corresponding warning is displayed in the window at lower right. Use the Order fields left-justified command in the context menu (right mouse button) to display all overlapping fields so that you can see them.

If you want to move a field within a line, select the field and enter a number in the field Output position in the lower left window. The line will be displayed at this position. Use the ruler to help you position your fields.

Changing the Output Length of a Field To change a field's output length, select the field and place your cursor on the right edge of the field. Change the display length of the field by dragging the edge of the field to the length you desire.

You may also enter a value in the appropriate field in the lower left window on your screen to determine the output length of a field.

Increasing the output length may be particularly important if you are totaling a field and the output length required by the total is greater than that of the individual fields themselves.

Colors Use the Colors toolbar to select a color and drag it to a field you want to highlight. Or select the field using your mouse and choose a color from the List field color window in the lower left-hand corner of your screen. Possible entries help helps you select a color. Once you have chosen a color and applied it to a line, you can undo this selection by choosing Line color once again. Totaling Whenever you create a list in the Query Painter, all numeric fields are automatically totaled. These totals are displayed at the end of the list. All numeric fields are also placed in the Totaling fields toolbar. To undo totaling for specific fields, select the fields from the toolbar and drag them to the trash or drag the trash to them or to the corresponding total in your list layout.

If sort fields have been defined for your list, subtotals are automatically displayed at the end of each control level. If you want to undo subtotaling for a specific sort level, select the trash can and drag it to the appropriate subtotal on the list layout display. To suppress all subtotaling functions, deselect the field Display totals in the Output Options for Control Levels.

Page 48: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 48עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

If you are totaling a particular field, the total is output in the same column as the field, that is with the same output length. For this reason, the output length may be too short for the total and cause overflow. ABAP identifies these overflows by placing an asterisk in front of the affected value when it is output.

To avoid overflows like this when outputting totals, you can simply increase the output length of the field.

If you total fields containing values in different currencies, the totals are created according to currency.

Currency-specific summation also applies when you specify the output of the currency amount field without a unit. Then, several currencies (without a currency) appear in the totals lines. For this reason, you should always output currency amounts with a currency.

The same applies to quantity fields. If you specify summation for a quantity field, this is performed according to the units involved and results in a distribution in the totals lines.

Counting Fields The Counter option causes the counter number for a particular field to be increased by 1 every time that this field is found within the data set currently being read. The resulting counter total is displayed in much the same manner as a grand total at the end of the basic list. Just as with sum totals, counter subtotals can be displayed for individual control levels. These counter subtotals show how many values have been assigned to a particular control level.In contrast to totals, counting fields are not automatically displayed. To count a field, proceed as follows:

1. Choose Tools → Counting fields on/off. The Counting fields toolbar is not switched on in the standard.

2. Drag the field you want to count to the Counting fields toolbar.

The number of times this field appears is displayed at the end of the list. If sort fields have been defined for your list, preliminary counts are automatically displayed at the end of each control level. To suppress these preliminary counts, deselect the field Display count in the Output Options for Control Levels.

Finally, the options Total and Counter should be compared one more time.

The Total option causes the grand total of a specified numeric field to be calculated. This means that each time the field is read in a dataset, the field’s value is added to the sum total. The grand total is displayed at the end of the basic list. With control levels, you can also display subtotals. A subtotal contains all values of a field that are assigned to a particular control level, that is a particular sort string.

The Counter option causes the counter number for a particular field to be increased by 1 every time that this field is found within the data set currently being read. The resulting counter total is displayed in much the same manner as a grand total at the end of the basic list. Just as with totals, counter subtotals can be displayed for individual control levels. These counter subtotals show how many values have been assigned to a particular control level.

The Counter option can also be selected for non-numerical fields.

Page 49: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 49עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

Screen Templates

1. Screen templates allow you to insert texts in your lists. To insert descriptive texts in your lists, proceed as follows: Select the field you want to create a screen template for in the window on the upper right.

2. Increase the field's display length in lower left-hand window so that the number of characters you want to insert fits into the field.

Most of the time it will make sense reserve the field's output length for those values that are to be replaced and to increase the field's output length by the number of characters needed to accommodate the descriptive text.

3. Depress your right mouse button. 4. Choose Field template from the context menu that appears.

The line is now ready for input and an underscore has been inserted below. The length of the underscore indicates the output length of the field, that is, the number of characters reserved for field value substitution.

In the example below, the airport codes have been inserted in parentheses. An output length of three characters has been provided for the airport code. These three characters are indicated by the underline (___) and may not be overwritten by additional entries.

5. Enter the text you desire.

Currency Fields and Quantity Fields Currency amount fields and quantity fields are numeric fields which have a currency/unit field assigned to them. The correct interpretation of the values in these fields depends on its currency or unit of measure. Therefore, you can decide whether you want their corresponding currency/unit of measure to be displayed before or after the field, or not at all.

1. Select the field. 2. Choose one of the options from the window on the lower left (before, No currency

field/unit, or after). 3. Choose Apply.

The assignment of amount fields to unit fields is defined in the ABAP Dictionary and evaluated by the QuickViewer.

Output Options for Control Levels If you select a specific sort sequence for a particular list field, the system automatically provides you with a text at the start of your control level and creates subtotals for the control level's numeric fields.

For example, you have selected the following fields. This QuickView is sorted according to the fields Airline ID and Flight connection code. After you drag these two fields to the Sort fields toolbar, the control level texts automatically appear above your list fields. Subtotals are displayed below the list's numeric fields.

Page 50: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 50עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

Whenever you choose a sort field in the toolbox, the display options of its corresponding control level are displayed in the window at the lower left-hand corner of your screen. Here you may also determine a sort direction for each sort field and select options for the beginning and end of the control level.

Sorting Select the field you want to sort according to in the upper right-hand window and drag it to the Sorting fields toolbox. If multiple fields have been dropped into the toolbox, their order determines in which order sorting will take place. The system sorts according to the first field, then according to the second, and so on. If you want to change the order in which fields are sorted, you can do so by selecting and moving fields within the toolbox.

An icon appears after each field indicating the direction in which the field is sorted (ascending/descending). You can change the sort direction simply by clicking on the icon.

Sorting can be undone by selecting the field in the toolbox and dragging it to the trash. Whenever a field is identified as a sort field, a control level text is displayed the field in the Query Painter. Subtotals are displayed for numeric fields at the end of each control level. If a counter has been attached to the field, a partial counter value (subtotal) is recorded at the end of each control level.

Control Level Text Once the sorting of a particular field has been determined, a control level text is created that appears above the fields in your list in layout mode. This control level text is highlighted in purple ('lilac'). You cannot change this lovely color!

If you select a sort field, as in the example above, and want if to appear as the control level text, if makes sense to delete the field from the actual body of the list If you do not want the sort field to be elevated to the control level text, delete the control level text using the trash can icon. To delete the control level text, click on the sort field in the Sort fields toolbox and deselect the option Control level text in the lower left window on your screen. This checkbox is selected in the standard.

Click on control level texts to edit them. The whole line (minus the sort field display length) can be filled with text. Texts for subtotals and counting fields can be edited in the same manner.

Subtotals Once the sorting of a particular field has been determined, a control level is created. At the end of this control level, subtotals appear for all numeric fields in the list. A subtotal contains all values of a field that are assigned to a particular control level, that is a particular sort string.

Delete those subtotals that you do not need using the trash can icon. If you do not want subtotals to be displayed at the end of a control level, deselect the Display subtotals option under Output Options for Control Levels.

Page 51: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 51עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

Further Options Other options available in conjunction with control levels include:

• New line - An empty line is displayed before the control level. • New page - A page break is inserted after every control level change, for example after a

change of sort string. • Frame control level - Individual control levels are framed.

Toolbars The layout window contains several toolbars for changing list layout and attributes. A toolbar is made up of a frame containing a header and other elements depending on the type of toolbar it is (icons, for example).

Notes on the functions available from individual toolbars are displayed in the lower left window on your screen whenever you click on a toolbar's header. Consult the corresponding passages in the online documentation on the Query Painter for more detailed information.

The following is a list of the functions available for switching toolbars on/off and altering their position on the screen:

Hiding all toolbars

Choose the pushbutton All tools on/off to hide/redisplay all toolbars at the same time.

Hiding individual toolbars

Right click on a toolbar's header after have selected the toolbar as a whole. A deactivation pushbutton appears for hiding that toolbar. Alternatively, you can use the entries found in the Tools menu to activate/deactivate individual toolbars. To display them horizontally, right click their headers and then choose Horizontal.

Moving toolbars

Clicking on a toolbar's header changes your pointer into a move cursor (cross). You can now reposition this toolbar.

The Counting fields toolbar is not switched on in the standard. To do so, choose Tools → Counting fields on/off.

Converting QuickViews to Queries First choose a user group that you are assigned to and that you want to assign your query to. If the QuickView is based on an InfoSet, then this InfoSet must be assigned to your user group. 1. Choose Utilities → SAP Query → Queries in the ABAP

Workbench. 2. Choose Change user group. Select the user group you

want. 3. Choose Query → Convert QuickView. The following

dialog box appears: 4. Enter a name for the query. 5. Enter a name of your choice for the InfoSet if it was created using a LDB, a table, or a table

join. The InfoSet will then be generated automatically. Query functionality is based on InfoSets. In order to be able to proceed in SAP Query, an InfoSet must be defined for your query.

Page 52: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 52עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

ת טבלאות מרכזיות במודול הלוגיסטי רשימ-' נספח ב 4

הערות כותרת טבלהEBAN Purchase Requisiton

EBKN Purchase Requisition Account Assignment

EKKO Purchase Document Header

EKPO Purchase Document Item

EINA Purchase Info Record: General data

EINE Purchase Info Record: Purchasing Organization data

EKBE History of Purchasing Document

EKET Delivary Schedules

EKKN Account Assignment in Purchasing Document

RBKP Document Header: Invoice Receipt

RSEG Document Item: Incoming Invoice

MKPF Header: Material Document

MSEG Document Segment: Material

MVER Material cosumption

MARA Material Master: General Data

MAKT Material Descriptions

MARM Units of Measure

MARC Material Master: C Segment

MLAN Tax Classification: Material

MBEW Material Valuation

KONH Conditions: Header

KONP Conditions: Item

Page 53: SAP Query - faculty.biu.ac.ilshnaidh/zooloo/lis/SAP Query_Tutor_V1.pdf · 53 ךותמ 2 דומע 1.0 הסריג – SAP Query NESS IT Business College - ל תורומש תויוכזה

SAP Query – 53 מתוך 53עמוד 1.0 גירסה NESS IT Business College - כל הזכויות שמורות ל ©

רשימת טבלאות מרכזיות במודול הפיננסי-' נספח ג 5

הערות כותרת טבלהBKPF Accounting document header

BSEG Accounting document segment

BSIS Accounting: Open items

BSAS Accounting: Cleared Items

BSIP Index for vendor validation

BSIK Accounting: Secondary index for vendors

BSAK Accounting: Secondary index for vendors (cleared items)

BSID Accounting: Secondary index for customers

BSAD Accounting: Secondary index for customers(cleared items)

LFA1 Vendor Master

LFBK Vendor Master: bank details

KNA1 General Data for Customer Master

SKA1 G/L accounts master

SKAT G/L accounts master: description

SKB1 G/L accounts master: company code