" 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. "
"SAP has provided two different types of methods for BDC to do its work. Among these the first one is called the classical method. This method is also called as the session method. Through this method the data can be read by the BDC program from a sequential dataset file. This sequential dataset file is stored in batch-input sessions. In order to run the transaction in this session, What you need is to execute the session. For this follow these few steps. YOu an start and subsequently monitor the sessions firstly from System----> Service---->Batch input or have the sessions run in the background."
If you wish to generate a passowrd in SAP, it can be easily done using the following function Module.
Function Module to generate a Password in SAP ABAP.
RSEC_GENERATE_PASSWORD
For generating the password the following parameters need to be passed to the Function Module.
ALPHABET TYPE C With the help of these letters the password is generated. ALPHABET_LENGTH TYPE I The total length of the above mentioned field. This can be calculated with the help of STRLEN or can be hard coded. FORCE_INIT TYPE C CAN be left blank OUTPUT_LENGTH TYPE I SAP password are usually 8 characters in lenght. So this can be defaulted to 8.
If you are using PARAMETER for inputting the 'ALPHABET' then you should use the addition LOWER CASE to take care of the Lower Case characters. Please see the code given below.
REPORT ZEX_PASSWORD .
Parameter: p_char(100) LOWER CASE.
Data: d_password(8), d_len type i.
d_len = STRLEN( p_char ).
CALL FUNCTION 'RSEC_GENERATE_PASSWORD' EXPORTING ALPHABET = p_char ALPHABET_LENGTH = d_len FORCE_INIT = ' ' OUTPUT_LENGTH = 8 IMPORTING OUTPUT = d_password EXCEPTIONS SOME_ERROR = 1 OTHERS = 2 . IF SY-SUBRC <> 0. * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. ENDIF.
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.
No comments:
Post a Comment