SlideShare una empresa de Scribd logo
1 de 5
*&---------------------------------------------------------------------*
*& Report ZREP_006
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*

REPORT ZREP_006 NO STANDARD PAGE HEADING.

TABLES: PA0001.

TYPES: BEGIN OF T_PA0001,
PERNR TYPE PA0001-PERNR,
SUBTY TYPE PA0001-SUBTY,
OBJPS TYPE PA0001-OBJPS,
SPRPS TYPE PA0001-SPRPS,
ENDDA TYPE PA0001-ENDDA,
BEGDA TYPE PA0001-BEGDA,
SEQNR TYPE PA0001-SEQNR,
BUKRS TYPE PA0001-BUKRS,
WERKS TYPE PA0001-WERKS,
PERSG TYPE PA0001-PERSG,
PERSK TYPE PA0001-PERSK,
BTRTL TYPE PA0001-BTRTL,
ORGEH TYPE PA0001-ORGEH,
PLANS TYPE PA0001-PLANS,
ENAME TYPE PA0001-ENAME,
END OF T_PA0001.

TYPES: BEGIN OF T_PA0185,
PERNR TYPE PA0185-PERNR,
SUBTY TYPE PA0185-SUBTY,
OBJPS TYPE PA0185-OBJPS,
SPRPS TYPE PA0185-SPRPS,
ENDDA TYPE PA0185-ENDDA,
BEGDA TYPE PA0185-BEGDA,
SEQNR TYPE PA0185-SEQNR,
ICNUM TYPE PA0185-ICNUM,
END OF T_PA0185.

DATA: IT_PA0001 TYPE TABLE OF T_PA0001 WITH HEADER LINE,
WA_PA0001 TYPE T_PA0001,

IT_PA0185 TYPE TABLE OF T_PA0185,
WA_PA0185 TYPE T_PA0185.

SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS: S_PERNR FOR PA0001-PERNR.
SELECT-OPTIONS: S_PERSG FOR PA0001-PERSG.
SELECT-OPTIONS: S_PERSK FOR PA0001-PERSK.
SELECT-OPTIONS: S_WERKS FOR PA0001-WERKS.
SELECT-OPTIONS: S_BTRTL FOR PA0001-BTRTL.
SELECTION-SCREEN END OF BLOCK B1.

START-OF-SELECTION.

SELECT PERNR
SUBTY
OBJPS
SPRPS
ENDDA
BEGDA
SEQNR
BUKRS
WERKS
PERSG
PERSK
BTRTL
ORGEH
PLANS
ENAME FROM PA0001 INTO TABLE IT_PA0001
WHERE PERNR IN S_PERNR
AND ENDDA EQ '99991231'
AND PERSG IN S_PERSG
AND PERSK IN S_PERSK
AND WERKS IN S_WERKS
AND BTRTL IN S_BTRTL.

ULINE.
WRITE: 58 'Employee Information' COLOR 7.
ULINE.ULINE.

WRITE : 000 'Employee No' COLOR 1, 019 SY-VLINE,
020 'Employee Name' COLOR 2, 059 SY-VLINE,
060 'Company Code' COLOR 3, 079 SY-VLINE,
080 'Emp Group'

COLOR 4, 099 SY-VLINE,

100 'Emp Subgroup' COLOR 5.
ULINE.

LOOP AT IT_PA0001." INTO WA_PA0001.

WRITE : IT_PA0001-PERNR UNDER 'Employee No' , 019 SY-VLINE,
IT_PA0001-ENAME UNDER 'Employee Name', 059 SY-VLINE,
IT_PA0001-BUKRS UNDER 'Company Code' , 079 SY-VLINE,
IT_PA0001-PERSG UNDER 'Emp Group' , 099 SY-VLINE,
IT_PA0001-PERSK UNDER 'Emp Subgroup' .
HIDE IT_PA0001-PERNR.
ULINE.
ENDLOOP.

AT LINE-SELECTION.

SELECT PERNR
SUBTY
OBJPS
SPRPS
ENDDA
BEGDA
SEQNR
ICNUM FROM PA0185
INTO TABLE IT_PA0185
WHERE PERNR = IT_PA0001-PERNR.

LOOP AT IT_PA0185 INTO WA_PA0185.

WRITE : WA_PA0185-PERNR ,
IT_PA0001-ENAME ,
WA_PA0185-ICNUM .
SKIP.

ENDLOOP.

Más contenido relacionado

Destacado

Sap abap online training
Sap abap online trainingSap abap online training
Sap abap online trainingShalom Itschool
 
Dot Net 串接 SAP
Dot Net 串接 SAPDot Net 串接 SAP
Dot Net 串接 SAPLearningTech
 
Dr John Dee - Communications With Spirits - Free Ebook
Dr John Dee -  Communications With Spirits - Free EbookDr John Dee -  Communications With Spirits - Free Ebook
Dr John Dee - Communications With Spirits - Free EbookChuck Thompson
 
Chapter 08 abap dictionary objects views1
Chapter 08 abap dictionary objects views1Chapter 08 abap dictionary objects views1
Chapter 08 abap dictionary objects views1Kranthi Kumar
 
Chapter 01 user exits
Chapter 01 user exitsChapter 01 user exits
Chapter 01 user exitsKranthi Kumar
 
Step by Step guide for creating first ABAP report in SAP
Step by Step guide for creating first ABAP report in SAPStep by Step guide for creating first ABAP report in SAP
Step by Step guide for creating first ABAP report in SAPnityaabap
 
Enhancement framework the new way to enhance your abap systems
Enhancement framework   the new way to enhance your abap systemsEnhancement framework   the new way to enhance your abap systems
Enhancement framework the new way to enhance your abap systemsKranthi Kumar
 
Creation of a web service in sap
Creation of a web service in sapCreation of a web service in sap
Creation of a web service in saprajdongre
 
Structuring An ABAP Report In An Optimal Way
Structuring An ABAP Report In An Optimal WayStructuring An ABAP Report In An Optimal Way
Structuring An ABAP Report In An Optimal WayBlackvard
 
SAP ABAP web services creation.
SAP ABAP web services creation. SAP ABAP web services creation.
SAP ABAP web services creation. Anjali Rao
 
Yash technologies interview questions and answers
Yash technologies interview questions and answersYash technologies interview questions and answers
Yash technologies interview questions and answersGarySpeed1234
 
Introducing enhancement framework.doc
Introducing enhancement framework.docIntroducing enhancement framework.doc
Introducing enhancement framework.docKranthi Kumar
 
Scenario on business transaction events
Scenario on business transaction eventsScenario on business transaction events
Scenario on business transaction eventsKranthi Kumar
 
SAP BADI Implementation Learning for Functional Consultant
SAP BADI Implementation Learning for Functional ConsultantSAP BADI Implementation Learning for Functional Consultant
SAP BADI Implementation Learning for Functional ConsultantAnkit Sharma
 

Destacado (20)

Abap reports
Abap reportsAbap reports
Abap reports
 
Sap abap report program
Sap abap report programSap abap report program
Sap abap report program
 
Sap abap online training
Sap abap online trainingSap abap online training
Sap abap online training
 
Project Report on SAP
Project Report on SAPProject Report on SAP
Project Report on SAP
 
022006 zaidi badi
022006   zaidi badi022006   zaidi badi
022006 zaidi badi
 
Dot Net 串接 SAP
Dot Net 串接 SAPDot Net 串接 SAP
Dot Net 串接 SAP
 
Dr John Dee - Communications With Spirits - Free Ebook
Dr John Dee -  Communications With Spirits - Free EbookDr John Dee -  Communications With Spirits - Free Ebook
Dr John Dee - Communications With Spirits - Free Ebook
 
Chapter 08 abap dictionary objects views1
Chapter 08 abap dictionary objects views1Chapter 08 abap dictionary objects views1
Chapter 08 abap dictionary objects views1
 
Chapter 01 user exits
Chapter 01 user exitsChapter 01 user exits
Chapter 01 user exits
 
Step by Step guide for creating first ABAP report in SAP
Step by Step guide for creating first ABAP report in SAPStep by Step guide for creating first ABAP report in SAP
Step by Step guide for creating first ABAP report in SAP
 
Enhancement framework the new way to enhance your abap systems
Enhancement framework   the new way to enhance your abap systemsEnhancement framework   the new way to enhance your abap systems
Enhancement framework the new way to enhance your abap systems
 
Creation of a web service in sap
Creation of a web service in sapCreation of a web service in sap
Creation of a web service in sap
 
Structuring An ABAP Report In An Optimal Way
Structuring An ABAP Report In An Optimal WayStructuring An ABAP Report In An Optimal Way
Structuring An ABAP Report In An Optimal Way
 
SAP ABAP web services creation.
SAP ABAP web services creation. SAP ABAP web services creation.
SAP ABAP web services creation.
 
Yash technologies interview questions and answers
Yash technologies interview questions and answersYash technologies interview questions and answers
Yash technologies interview questions and answers
 
Introducing enhancement framework.doc
Introducing enhancement framework.docIntroducing enhancement framework.doc
Introducing enhancement framework.doc
 
Scenario on business transaction events
Scenario on business transaction eventsScenario on business transaction events
Scenario on business transaction events
 
07.Advanced Abap
07.Advanced Abap07.Advanced Abap
07.Advanced Abap
 
SAP BADI Implementation Learning for Functional Consultant
SAP BADI Implementation Learning for Functional ConsultantSAP BADI Implementation Learning for Functional Consultant
SAP BADI Implementation Learning for Functional Consultant
 
Badi document
Badi documentBadi document
Badi document
 

Similar a Classical ABAP interactive report

Similar a Classical ABAP interactive report (20)

Alv interactive ABAPreport
Alv interactive ABAPreportAlv interactive ABAPreport
Alv interactive ABAPreport
 
Alvedit programs
Alvedit programsAlvedit programs
Alvedit programs
 
Alv barra her
Alv barra herAlv barra her
Alv barra her
 
Itab kna1,knvv
Itab kna1,knvvItab kna1,knvv
Itab kna1,knvv
 
Alv a otro alv
Alv a otro alvAlv a otro alv
Alv a otro alv
 
Classical report
Classical reportClassical report
Classical report
 
ZFINDALLZPROGAM
ZFINDALLZPROGAMZFINDALLZPROGAM
ZFINDALLZPROGAM
 
Warsjawa profiling tools
Warsjawa profiling toolsWarsjawa profiling tools
Warsjawa profiling tools
 
Alv Block
Alv BlockAlv Block
Alv Block
 
Report zalv
Report  zalvReport  zalv
Report zalv
 
Zi fi final prog
Zi fi final progZi fi final prog
Zi fi final prog
 
Iv i(r07) advance supplementary results may-2012
Iv i(r07) advance supplementary results may-2012Iv i(r07) advance supplementary results may-2012
Iv i(r07) advance supplementary results may-2012
 
Iv i(r07) advance supplementary results may-2012
Iv i(r07) advance supplementary results may-2012Iv i(r07) advance supplementary results may-2012
Iv i(r07) advance supplementary results may-2012
 
Auliyaa Allah ki Pehchan
Auliyaa Allah ki PehchanAuliyaa Allah ki Pehchan
Auliyaa Allah ki Pehchan
 
Report
ReportReport
Report
 
ترجمات عبرية ليوم 14 11-2010
ترجمات عبرية ليوم 14 11-2010ترجمات عبرية ليوم 14 11-2010
ترجمات عبرية ليوم 14 11-2010
 
Aralpha manual 2.4(1)
Aralpha manual 2.4(1)Aralpha manual 2.4(1)
Aralpha manual 2.4(1)
 
Commissari esami maturità 2013 provincia di Ancona
Commissari esami maturità 2013 provincia di AnconaCommissari esami maturità 2013 provincia di Ancona
Commissari esami maturità 2013 provincia di Ancona
 
الباب الثالث ليلة القدر ...
الباب الثالث   ليلة القدر                                                    ...الباب الثالث   ليلة القدر                                                    ...
الباب الثالث ليلة القدر ...
 
ترجمات عبرية ليوم 21 11-2010
ترجمات عبرية ليوم 21 11-2010ترجمات عبرية ليوم 21 11-2010
ترجمات عبرية ليوم 21 11-2010
 

Último

General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 

Último (20)

General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 

Classical ABAP interactive report

  • 1. *&---------------------------------------------------------------------* *& Report ZREP_006 *& *&---------------------------------------------------------------------* *& *& *&---------------------------------------------------------------------* REPORT ZREP_006 NO STANDARD PAGE HEADING. TABLES: PA0001. TYPES: BEGIN OF T_PA0001, PERNR TYPE PA0001-PERNR, SUBTY TYPE PA0001-SUBTY, OBJPS TYPE PA0001-OBJPS, SPRPS TYPE PA0001-SPRPS, ENDDA TYPE PA0001-ENDDA, BEGDA TYPE PA0001-BEGDA, SEQNR TYPE PA0001-SEQNR, BUKRS TYPE PA0001-BUKRS, WERKS TYPE PA0001-WERKS, PERSG TYPE PA0001-PERSG, PERSK TYPE PA0001-PERSK, BTRTL TYPE PA0001-BTRTL,
  • 2. ORGEH TYPE PA0001-ORGEH, PLANS TYPE PA0001-PLANS, ENAME TYPE PA0001-ENAME, END OF T_PA0001. TYPES: BEGIN OF T_PA0185, PERNR TYPE PA0185-PERNR, SUBTY TYPE PA0185-SUBTY, OBJPS TYPE PA0185-OBJPS, SPRPS TYPE PA0185-SPRPS, ENDDA TYPE PA0185-ENDDA, BEGDA TYPE PA0185-BEGDA, SEQNR TYPE PA0185-SEQNR, ICNUM TYPE PA0185-ICNUM, END OF T_PA0185. DATA: IT_PA0001 TYPE TABLE OF T_PA0001 WITH HEADER LINE, WA_PA0001 TYPE T_PA0001, IT_PA0185 TYPE TABLE OF T_PA0185, WA_PA0185 TYPE T_PA0185. SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001. SELECT-OPTIONS: S_PERNR FOR PA0001-PERNR.
  • 3. SELECT-OPTIONS: S_PERSG FOR PA0001-PERSG. SELECT-OPTIONS: S_PERSK FOR PA0001-PERSK. SELECT-OPTIONS: S_WERKS FOR PA0001-WERKS. SELECT-OPTIONS: S_BTRTL FOR PA0001-BTRTL. SELECTION-SCREEN END OF BLOCK B1. START-OF-SELECTION. SELECT PERNR SUBTY OBJPS SPRPS ENDDA BEGDA SEQNR BUKRS WERKS PERSG PERSK BTRTL ORGEH PLANS ENAME FROM PA0001 INTO TABLE IT_PA0001 WHERE PERNR IN S_PERNR AND ENDDA EQ '99991231'
  • 4. AND PERSG IN S_PERSG AND PERSK IN S_PERSK AND WERKS IN S_WERKS AND BTRTL IN S_BTRTL. ULINE. WRITE: 58 'Employee Information' COLOR 7. ULINE.ULINE. WRITE : 000 'Employee No' COLOR 1, 019 SY-VLINE, 020 'Employee Name' COLOR 2, 059 SY-VLINE, 060 'Company Code' COLOR 3, 079 SY-VLINE, 080 'Emp Group' COLOR 4, 099 SY-VLINE, 100 'Emp Subgroup' COLOR 5. ULINE. LOOP AT IT_PA0001." INTO WA_PA0001. WRITE : IT_PA0001-PERNR UNDER 'Employee No' , 019 SY-VLINE, IT_PA0001-ENAME UNDER 'Employee Name', 059 SY-VLINE, IT_PA0001-BUKRS UNDER 'Company Code' , 079 SY-VLINE, IT_PA0001-PERSG UNDER 'Emp Group' , 099 SY-VLINE, IT_PA0001-PERSK UNDER 'Emp Subgroup' . HIDE IT_PA0001-PERNR. ULINE.
  • 5. ENDLOOP. AT LINE-SELECTION. SELECT PERNR SUBTY OBJPS SPRPS ENDDA BEGDA SEQNR ICNUM FROM PA0185 INTO TABLE IT_PA0185 WHERE PERNR = IT_PA0001-PERNR. LOOP AT IT_PA0185 INTO WA_PA0185. WRITE : WA_PA0185-PERNR , IT_PA0001-ENAME , WA_PA0185-ICNUM . SKIP. ENDLOOP.