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)
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 |
How to delete the field created using APPEND STRUCTURE (.APPEND)
What are the differences between macro and subroutine?
How you will send mail from one SAP system to other SAP system?
what r clients?what r the clients number available in a company?eg..800 client is for which application??
what is use of tcp/ip in real time for abaper??
What is the difference between a structure and an append structure?
What two statements are required in an abap program to output an icon using a write statement?
why SAP scripts are client dependent and smart forms are not?
Describe the data classes?
what are the different event functions used in SAP Scripts?
how to identify all the BDC Programs running in Client SAP Environment
What is foreign key relationship?
SAP Basis (1262)
SAP ABAP (3939)
SAPScript (236)
SAP SD (Sales & Distribution) (2717)
SAP MM (Material Management) (916)
SAP QM (Quality Management) (99)
SAP PP (Production Planning) (523)
SAP PM (Plant Maintenance) (252)
SAP PS (Project Systems) (138)
SAP FI-CO (Financial Accounting & Controlling) (2766)
SAP HR (Human Resource Management) (1180)
SAP CRM (Customer Relationship Management) (432)
SAP SRM (Supplier Relationship Management) (132)
SAP APO (Advanced Planner Optimizer) (92)
SAP BW (Business Warehouse) (896)
SAP Business Workflow (72)
SAP Security (597)
SAP Interfaces (74)
SAP Netweaver (282)
SAP ALE IDocs (163)
SAP Business One (110)
SAP BO BOBJ (Business Objects) (388)
SAP CPS (Central Process Scheduling) (14)
SAP GTS (Global Trade Services) (21)
SAP Hybris (132)
SAP HANA (700)
SAP PI (Process Integration) (113)
SAP PO (Process Orchestration) (25)
SAP BI (Business Intelligence) (174)
SAP BPC (Business Planning and Consolidation) (38)
SAP BODS (Business Objects Data Services) (49)
SAP BODI (Business Objects Data Integrator) (26)
SAP Ariba (9)
SAP Fiori (45)
SAP EWM (Extended Warehouse Management) (58)
Sap R/3 (150)
SAP FSCM Financial Supply Chain Management (101)
SAP WM (Warehouse Management) (31)
SAP GRC (Governance Risk and Compliance) (64)
SAP MDM (Master Data Management) (0)
SAP MRS (Multi Resource Scheduling) (0)
SAP ESS MSS (Employee Manager Self Service) (13)
SAP CS (Customer Service) (0)
SAP TRM (Treasury and Risk Management) (0)
SAP Web Dynpro ABAP (198)
SAP IBP (Integrated Business Planning) (0)
SAP OO-ABAP (Object Oriented ABAP) (70)
SAP S/4 HANA Finance (Simple Finance) (143)
SAP FS-CD (Collections and Disbursements) (0)
SAP PLM (Product Lifecycle Management) (0)
SAP SuccessFactors (33)
SAP Vistex (0)
SAP ISR (IS Retail) (28)
SAP IdM (Identity Management) (0)
SAP IM (Investment Management) (0)
SAP UI5 (59)
SAP SCM (Supply Chain Management) (51)
SAP XI (Exchange Infrastructure) (49)
SAP Cloud Platform (34)
SAP Testing (89)
SAP SolMan (Solution Manager) (63)
SAP MaxDB (116)
SAP GUI (15)
SAP APO PPDS (49)
SAP AllOther (329)