SAPAG.CO.IN in this website you can find SAP Related Tutorials, like SAP ABAP ,SAP Meterial Management (MM),SAP Customer Relationship Management (CRM),MySAP,SAP Finance And Controling (FICO),SAP Sales And Distribution (SD),SAP Business Warehousing (BW),SAP Netweaver,SAP Exhcange Infrastructure (XI ),SAP Enterprise Portal (EP) ,SAP Master Data Management (MDM),SAP Web Application Server (WAS),SAP Mobile Infrastructure (MI ),SAP Business Intelegent (BI ) ,SAP Knowledge Management (KM ) and Maney more..... Tutorials @ single point.
SAP ABAP Scripts Question and Answers Part 6 What is the advantages using the SAP long form over the short form of database changes? Ans :- May be Fast Effect. Can ‘where’ clause be used when updating database entries? Ans :- Yes. Describe array operations and their advantages? Ans :- What is logical unit of work? How is it defined? Ans :- Logical Unit of work is a block of memory area where database contents are stored and manipulated. What function is performed by the commit work command? Ans :- When you perform Commit , all the LUW s work will be reflected to the database. Why is it so important for a programmer to check the lock entries? Ans :- To find out if record is locked and also to maintain data integrity. How can you find a lock entry for a database table? Ans :- The function module ‘ENQUEUE <lock object>’ checks whether a lock was triggered for the same object. Otherwise an exception FOREIGN_LOCK is carried out. If the object is not locked the function module sets the lock. What steps are necessary to set a lock on a record within a database table? Ans :- How do you unlock the entry? Why is this necessary? Ans :- After a CALL SCREEN command where does the processing return after the screen has been executed? Which is the more similar to a call with return, the SET SCREEN or the CALL SCREEN? Ans :- The CALL SCREEN command. What function is performed by the SET SCREEN 0 command? Ans :- Returns to the original screen. What are the main differences between the repot status and screen status? Ans :- Where must you place the SET PF-STATUS command in your online program? Ans :- Place it in the PBO module of the screen. Why is it good idea to clear OK_CODE field after deciding which action to take? Ans :- You need to clear the OK code to avoid sending a screen that already has a function code. How do you specify that a function is an exit type command? Ans :- By specifying function type E for the pushbuttons or menu options in the screen painter or menu painter. What is the purpose of the ‘AT EXIT-COMMAND’? Ans :- Usually there are many ways to leave a screen (back,exit,cancel) .This command will perform termination logic for all functions of type E. What are screen groups? Ans :- A group of screen fields such as radio buttons or checkboxes. What is the correct syntax for dynamically modifying a large number of screen fields? Ans :- What is the name of the internal table that stores the screen information? Ans :- SCREEN. What is the purpose of the MODIFY command when performing the dynamic screen modifications? Ans :- after you activate or deactivate the field attributes by assigning them 1 or 0, you save the modifications via MODIFY SCREEN command. Direction for the use of check box and radio buttons in screen painter? Ans :- What are user Exits and transactions? Ans :- Generally, user exits are the forms defined within SAP standard code (usually starting with user exit). These predefined areas in the code allow programmers to insert custom defined code into the standard processing of a transaction (e.g. allow resorting of the batch sequence in VA01 batch processing). There are many specific examples if you are interested, but usually user exits are searched for when a specific use is being analyzed. What happens if you enter 0 in NEXT Screen attribute? Ans :- It does not go to any other screen and it moves back one level. However you can control this in run-time using SET SCREEN command. How to modify the attributes of screen fields at run time ?. You can find the attributes in the internal table SCREEN. screen-active = '0'. How to leave dynpro allthough required entry not made ? In the menu painter - Function attributes for the button, set Functional PROCESS AFTER INPUT. MODULE ReturnExit AT EXIT-COMMAND. MODULE returnexit. ENDCASE. Calling a report from a dynpro There are to ways to do this: The tc-cols-selected is for column selection only. For row selection you have two scenarios turn on the SelColumn attribute in screen painter, give it a name and declare an abap variable with the same name type C length 1. In your PAI loop at itab, when the selected row is processed the abap variable will = 'X'. At this point you can save the record or key. you can determine which row the cursor is on in your table control as follows: DATA: LINE_SEL LIKE SY-STEPL, GET CURSOR LINE LINE_SEL. TABIX is now the index of the selected row. F4 Help - Calling it from a program and limiting values ? To avoid the standard F4 help to be show, insert the event PROCESS ON-VALUE-REQUEST in the program and add a field statement for the field that should trigger the F4 help. In the mdoule called from PROCESS ON-VALUE-REQUEST, call function module Example 1 - Dynpro process before output.
process after input.
PROCESS ON VALUE-REQUEST. MODULE f4_help_for_pctr INPUT. NOTE: CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST' EXPORTING * SUPPRESS_RECORDLIST = ' ' |
|---|
.
.