" The functions Hold data and Set data is used when you want to create a group of objects that contain the same data. The function Hold data can be used to create data that can be changed, for example if you wish to create multiple objects with slight variation in the field values (Sales order or Purchase order) then the function Hold data can be used. If you wish to create multiple objects with exactly the same data without changing any of the filed values then SET data can be used. To hold data on the screen you need to first enter the data in the field and then choose User Profile from the Systems Menu. Now choose Hold data. The data that you hold on the screen can be changed. In case if you wish to hold data on the screen without changing it then select SET data. This way the data will be held but you will not be able to change the contents of the individual fields. You can delete the Data that is held. To do this select User profile from the Systems menu and select the option Delete data. Once the delete Data option is selected no data will be displayed the next time you visit the screen. You may want to work in more than one screen, and would like to store data in each screen, to do this you can press Ctrl+S or click on the save icon while moving between screens. You can also Cancel the data that you have just entered on the screen. To do this press the cancel button. Please note that when using HOLD data and SET data options, the required/Mandatory fields on the screen cannot be ignored. The correct values should be entered in these fields before proceeding to the next screen. Using the menus and functions you can go to the other screens within your task, as well as in related tasks. Check the Goto Extras and Environment menus in the Menu bar to find out the other screens available within your task and related tasks. Depending upon the task the contents also change. "
"The SAP Control Framework is used for the communication between the controls on the presentation server and the ABAP application server. In ABAP Objects, it is programmed, and contains a set of global classes that you can find in the Class Browser under Basis -> Frontend Services. Between the application server and presentation server these classes encapsulate the communication, which is implemented using Remote Function Calls. There is a global class, which encapsulates all application controls. In the class Browser under Basis -> Frontend Services or Basis -> Components Integration, you can find the SAP Basis Controls."
GUI_UPLOAD To upload file from the presentation server
GUI_DOWNLOADTo download file to the presentation server
Note that the above mentioned function modules are recommended by SAP.
The following function modules are obsolete and should not be used.
WS_UPLOAD >>>>> DO NOT USE
WS_DOWNLOAD >>>>> DO NOT USE
GUI_UPLOAD Functionality File transfer from frontend PC to an internal backend table. A format conversion is possible. The functions are similar to the module WS_UPLOAD CALL FUNCTION 'GUI_UPLOAD'
CALL TRANSACTION USING statement Example CALL TRANSACTION TCODE USING BDCDATA MODE CTUMODE UPDATE CUPDATE MESSAGES INTO MESSTAB. CALL TRANSACTION USING, faster than with batch input sessions. In CALL TRANSACTION USING there is no automatic support of interactive correction or logging functions. The program prepares the data to be transferred once the data is prepared the desired transaction is called and then the data is immediately transferred to SAP database. CALL TRANSACTION USING supports Synchronous processing Transfer of data from an individual transaction each time the statement CALL TRANSACTION USING is called You can update the database both synchronously and asynchronously The program specifies the update type Separate LUW (logical units of work) for the transaction The system executes a database commit immediately before and after the CALL TRANSACTION USING statement No batch input processing log Session Method In this method sessions are created in a queue and they are managed. There is support for playing back and correcting sessions that have errors also a detailed log is generated automatically. The program prepares data and stores in in a batch input session. The session thus created can be for more than one transaction. And this session is maintained in the batch input queue. The sessions thus created can be maintained in a queue and processed either in the back ground or in the fore ground. Your program must open a session in the queue before transferring data to it, and must close it again afterwards. All of these operations are performed by making function module calls from the ABAP program. The program to create sessions must make calls to SAP function modules for example BDC_OPEN_GROUP BDC_CLOSE_GROUP BDC_INSERT Session Method Supports the following Asynchronous processing Transfers data for multiple transactions Synchronous database update During processing, no transaction is started until the previous transaction has been written to the database. A batch input processing log is generated for each session Sessions cannot be generated in parallel The batch input program must not open a session until it has closed the preceding session.
Always specify your conditions in the Where-clause instead of checking
them yourself with check statements. The database system can then use an index
(if possible) and the network load is considerably less.
Always use Pretty Printer and Extended Program Check before releasing the code.
Do not leave unused code in the program. Comment the code thoroughly. Align the comments and the Code. Follow the SAP Standards and SAP Best Practices guidelines. It’s a good practice to take a dump of the code on your local drive.