If i wont like to change the standard print program where i
copied standard script to customer namespace,in this case
is it possible to retreive the data if u connect the script
with standard program.if yes how?if no why?
Is it possible to print the logo in first page only,where
the form consists of 10 pages.How can u do this?
How can u set a table format where it cosists of fields
like cust no, custname, amount ...in a script?
How do u know that the particular BADI is suitable for the
existed report.How do u findout this?When do u opt for BADI
OR USEREXIT?did functional people tell u to adopt BADI or
USEREXIT?
What is the difference between SY-INDEX & SY-TABIX ?
I have a report with fields Status,time & date.
the contents it consists are
Status Time Date
AAA 01:20:15 05-06-10
AAA 11:02:32 O3-06-10
AAA 23:11:00 05-06-10
AAA 09:14:46 05-06-10

HOW DO U WRITE A CODE TO DISLAY A ROW WHICH WAS RECENTLY
EXECUTED?( for this question it should display
AAA 23:11:00 05-06-10 AS Output)



If i wont like to change the standard print program where i copied standard script to customer nam..

Answer / Saleem Ahmed

Answering the questions sequentially:

1. To retrieve data from a standard program in your customer namespace, you can use Function Module Interfaces (FMI) or include the standard program in your custom program and call its routines. However, if you want to print directly from the standard program, it's best to create a user exit or BADI for that purpose.
2. To print the logo on the first page only, you can use conditional formatting or add logic in the printing routine to check if it's the first page and then insert the logo.
3. Setting a table format with fields like cust no, custname, amount in a script can be achieved using ABAP table types (e.g., DATA: t_table TYPE TABLE OF zt_my_table) and formatting these tables using various techniques such as looping through the table, using the ALV listing display, or creating custom reports.
4. To find out if a BADI is suitable for an existing report, you can analyze the report's source code and check for the presence of BADIs that might need customization. Consult with functional consultants or study the documentation to determine which BADIs are suitable for your requirements.
5. User exits and BADIs are used in different situations: User exits allow you to add custom logic at specific points in a program flow, while BADIs provide a more flexible way to modify standard SAP functionality without changing the original codebase.
6. The difference between SY-INDEX and SY-TABIX lies in their use: SY-INDEX refers to an index of internal tables, while SY-TABIX refers to the number of rows in a table.
7. To display a row that was recently executed (in this case, the row with AAA 23:11:00 05-06-10), you can sort the table by time and retrieve the first row using ABAP code as follows:

DATA lv_time TYPE time.
DATA lt_data TYPE TABLE OF zt_my_table.
READ TABLE lt_data INTO DATA(lt_last_row) WITH KEY time = lt_last_row-time.
IF sy-subrc NE 0. "No rows found"
WRITE: 'No recently executed row found.'
ELSE
WRITE: / lt_last_row-custno, lt_last_row-custname, lt_last_row-time, lt_last_row-date.
ENDIF.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SAP ABAP Interview Questions

How to delete the field created using APPEND STRUCTURE (.APPEND)

1 Answers  


What are the differences between macro and subroutine?

1 Answers  


How you will send mail from one SAP system to other SAP system?

1 Answers   Keane India Ltd,


what r clients?what r the clients number available in a company?eg..800 client is for which application??

2 Answers   IBM,


what is use of tcp/ip in real time for abaper??

3 Answers   TCS,


What is the difference between a structure and an append structure?

1 Answers  


What two statements are required in an abap program to output an icon using a write statement?

1 Answers  


why SAP scripts are client dependent and smart forms are not?

5 Answers   KPIT,


Describe the data classes?

1 Answers  


what are the different event functions used in SAP Scripts?

2 Answers   AZTEC,


how to identify all the BDC Programs running in Client SAP Environment

1 Answers  


What is foreign key relationship?

1 Answers  


Categories
  • SAP Basis Interview Questions SAP Basis (1262)
  • SAP ABAP Interview Questions SAP ABAP (3939)
  • SAPScript Interview Questions SAPScript (236)
  • SAP SD (Sales & Distribution) Interview Questions SAP SD (Sales & Distribution) (2717)
  • SAP MM (Material Management) Interview Questions SAP MM (Material Management) (916)
  • SAP QM (Quality Management) Interview Questions SAP QM (Quality Management) (99)
  • SAP PP (Production Planning) Interview Questions SAP PP (Production Planning) (523)
  • SAP PM (Plant Maintenance) Interview Questions SAP PM (Plant Maintenance) (252)
  • SAP PS (Project Systems) Interview Questions SAP PS (Project Systems) (138)
  • SAP FI-CO (Financial Accounting & Controlling) Interview Questions SAP FI-CO (Financial Accounting & Controlling) (2766)
  • SAP HR (Human Resource Management) Interview Questions SAP HR (Human Resource Management) (1180)
  • SAP CRM (Customer Relationship Management) Interview Questions SAP CRM (Customer Relationship Management) (432)
  • SAP SRM (Supplier Relationship Management) Interview Questions SAP SRM (Supplier Relationship Management) (132)
  • SAP APO (Advanced Planner Optimizer) Interview Questions SAP APO (Advanced Planner Optimizer) (92)
  • SAP BW (Business Warehouse) Interview Questions SAP BW (Business Warehouse) (896)
  • SAP Business Workflow Interview Questions SAP Business Workflow (72)
  • SAP Security Interview Questions SAP Security (597)
  • SAP Interfaces Interview Questions SAP Interfaces (74)
  • SAP Netweaver Interview Questions SAP Netweaver (282)
  • SAP ALE IDocs Interview Questions SAP ALE IDocs (163)
  • SAP Business One Interview Questions SAP Business One (110)
  • SAP BO BOBJ (Business Objects) Interview Questions SAP BO BOBJ (Business Objects) (388)
  • SAP CPS (Central Process Scheduling) Interview Questions SAP CPS (Central Process Scheduling) (14)
  • SAP GTS (Global Trade Services) Interview Questions SAP GTS (Global Trade Services) (21)
  • SAP Hybris Interview Questions SAP Hybris (132)
  • SAP HANA Interview Questions SAP HANA (700)
  • SAP PI (Process Integration) Interview Questions SAP PI (Process Integration) (113)
  • SAP PO (Process Orchestration) Interview Questions SAP PO (Process Orchestration) (25)
  • SAP BI (Business Intelligence) Interview Questions SAP BI (Business Intelligence) (174)
  • SAP BPC (Business Planning and Consolidation) Interview Questions SAP BPC (Business Planning and Consolidation) (38)
  • SAP BODS (Business Objects Data Services) Interview Questions SAP BODS (Business Objects Data Services) (49)
  • SAP BODI (Business Objects Data Integrator) Interview Questions SAP BODI (Business Objects Data Integrator) (26)
  • SAP Ariba Interview Questions SAP Ariba (9)
  • SAP Fiori Interview Questions SAP Fiori (45)
  • SAP EWM (Extended Warehouse Management) Interview Questions SAP EWM (Extended Warehouse Management) (58)
  • Sap R/3 Interview Questions Sap R/3 (150)
  • SAP FSCM Financial Supply Chain Management Interview Questions SAP FSCM Financial Supply Chain Management (101)
  • SAP WM (Warehouse Management) Interview Questions SAP WM (Warehouse Management) (31)
  • SAP GRC (Governance Risk and Compliance) Interview Questions SAP GRC (Governance Risk and Compliance) (64)
  • SAP MDM (Master Data Management) Interview Questions SAP MDM (Master Data Management) (0)
  • SAP MRS (Multi Resource Scheduling) Interview Questions SAP MRS (Multi Resource Scheduling) (0)
  • SAP ESS MSS (Employee Manager Self Service) Interview Questions SAP ESS MSS (Employee Manager Self Service) (13)
  • SAP CS (Customer Service) Interview Questions SAP CS (Customer Service) (0)
  • SAP TRM (Treasury and Risk Management) Interview Questions SAP TRM (Treasury and Risk Management) (0)
  • SAP Web Dynpro ABAP Interview Questions SAP Web Dynpro ABAP (198)
  • SAP IBP (Integrated Business Planning) Interview Questions SAP IBP (Integrated Business Planning) (0)
  • SAP OO-ABAP (Object Oriented ABAP) Interview Questions SAP OO-ABAP (Object Oriented ABAP) (70)
  • SAP S/4 HANA Finance (Simple Finance) Interview Questions SAP S/4 HANA Finance (Simple Finance) (143)
  • SAP FS-CD (Collections and Disbursements) Interview Questions SAP FS-CD (Collections and Disbursements) (0)
  • SAP PLM (Product Lifecycle Management) Interview Questions SAP PLM (Product Lifecycle Management) (0)
  • SAP SuccessFactors Interview Questions SAP SuccessFactors (33)
  • SAP Vistex Interview Questions SAP Vistex (0)
  • SAP ISR (IS Retail) Interview Questions SAP ISR (IS Retail) (28)
  • SAP IdM (Identity Management) Interview Questions SAP IdM (Identity Management) (0)
  • SAP IM (Investment Management) Interview Questions SAP IM (Investment Management) (0)
  • SAP UI5 Interview Questions SAP UI5 (59)
  • SAP SCM (Supply Chain Management) Interview Questions SAP SCM (Supply Chain Management) (51)
  • SAP XI (Exchange Infrastructure) Interview Questions SAP XI (Exchange Infrastructure) (49)
  • SAP Cloud Platform Interview Questions SAP Cloud Platform (34)
  • SAP Testing Interview Questions SAP Testing (89)
  • SAP SolMan (Solution Manager) Interview Questions SAP SolMan (Solution Manager) (63)
  • SAP MaxDB Interview Questions SAP MaxDB (116)
  • SAP GUI Interview Questions SAP GUI (15)
  • SAP APO PPDS Interview Questions SAP APO PPDS (49)
  • SAP AllOther Interview Questions SAP AllOther (329)