Please help regarding PLSQL coding standards

Hi,
Can you please send any document for PL/SQL coding standards,
Please help.. I did nt find any good resources on net regarding..
Pleease help me if any pdf regarding are exitst to my mail id
[email protected]
Thanks and Regards
asp

I did nt find any good resources on net regarding..Here is a list from the net for you to start with (courtesy of many of the fellow posters here in these forums), and there will be plenty more. Just need to search correctly.
http://www.redhat.com/docs/manuals/waf/rhea-dg-waf-en-6.0/ap-sql-standards.html
http://www.orafaq.com/faqplsql.htm
http://www.williamrobertson.pwp.blueyonder.co.uk/documents/plsqlcodingstandards.html
http://www.orafaq.com/node/48
http://apex.oracle.com/pls/otn/f?p=2853:4:11598658413321972351::NO::P4_QA_ID:3262
http://www.bbc.co.uk/guidelines/newmedia/technical/databases.shtml
Message was edited by:
Kamal Kishore
Message was edited by:
Kamal Kishore

Similar Messages

  • Please help , regarding fair usage policy....subsc...

    Hello Dear Moderator,
    My skype id is pavank77
    I had accidnetaly exceeded the unlimited india calling subscription on 1 april 2012 and my call would not connect, The subscription is still not active on 2 April 2012....According to skype as far as i searched in the forum it should be active today....
    Please Help regarding this matter. Skype calling is important to me as i am far away from home.
    I would highly appreciate your help.
    Warm Regards,
    Pavan

    I am sorry to hear that your account has been suspended due to Fair Usage Policy.
    For Skype to fully assist you with this concern, we can go through the email verification form by just clicking this link below:
    https://support.microsoft.com/skype/hostpage.aspx?​language=en&locale=EN-US&oaspworkflow=start_1.0.0.​...
    1. Once you are on that page, choose Account and Password.
    2. Choose Blocked Accounts.
    3. Click on Next.
    4. Click on Email Support.
    5. Kindly fill out the form.
    **Please make sure to enter as much information as you can for them to collate enough data to authenticate your identity. It is also important to include the Service Request number together with the issue <SR# - ISSUE>, on the subject field. Once the form is completed it will be forwarded to a special team who will handle your case. You will then receive a follow-up email and will be assisted further in resolving the issue/processing your request.
    If one of my replies has adequately addressed your issue, please click on the “Accept as Solution” button. If you found a post useful then please "Give Kudos" at the bottom of my post, so that this information can benefit others.

  • Please help regarding Flowcontrol

    Greetings!
    I have a Cisco switch model WS-C3650-48TS-S and I configured in one of its interfaces flowcontrol receive on but when I check the interface using show interface I noticed that input flow-control off and output flow-control unsupported I wounder why the flow control not working even i configured it already?
    Interface configuration
    interface GigabitEthernet2/0/3
     switchport access vlan 111
     switchport mode access
     flowcontrol receive on
    show interface output
    GigabitEthernet2/0/3 is up, line protocol is up (connected) 
      Hardware is Gigabit Ethernet, address is f8c2.8857.340d (bia f8c2.8857.340d)
      Description: N5Strg iSCSI Port
      MTU 9198 bytes, BW 1000000 Kbit/sec, DLY 10 usec, 
         reliability 255/255, txload 11/255, rxload 8/255
      Encapsulation ARPA, loopback not set
      Keepalive set (10 sec)
      Full-duplex, 1000Mb/s, media type is 10/100/1000BaseTX
      input flow-control is off, output flow-control is unsupported 
      ARP type: ARPA, ARP Timeout 04:00:00
      Last input 00:00:06, output never, output hang never
      Last clearing of "show interface" counters never
      Input queue: 0/2000/0/0 (size/max/drops/flushes); Total output drops: 0
      Queueing strategy: fifo
      Output queue: 0/40 (size/max)
      5 minute input rate 31653000 bits/sec, 3746 packets/sec
      5 minute output rate 44204000 bits/sec, 4417 packets/sec
         6668410425 packets input, 18568845018908 bytes, 0 no buffer
         Received 8271 broadcasts (0 multicasts)
         0 runts, 0 giants, 0 throttles 
         0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
         0 watchdog, 0 multicast, 0 pause input
         0 input packets with dribble condition detected
         8040770794 packets output, 29759036783816 bytes, 0 underruns
         0 output errors, 0 collisions, 1 interface resets
         0 unknown protocol drops
         0 babbles, 0 late collision, 0 deferred
         0 lost carrier, 0 no carrier, 0 pause output
         0 output buffer failures, 0 output buffers swapped out
    Please help me if you know why it does not work

    Hi,
    Cisco Catalyst switches generally do not support output flow control - they never send PAUSE frames - so the message about the output flow control being unsupported is normal and expected.
    Regarding the input flow control, this feature has to be advertised by the link partner during linkup and autonegotiation phase. In other words, the device connected to this port must itself advertise the ability to use flow control. If the input flow control is claimed to be off then it may be caused by the device connected to this port that does not advertise this capability. You should check its NIC settings and optionally try to shutdown/unshutdown the port to go over the autonegotiation again.
    Please keep us informed!
    Best regards,
    Peter

  • PLEASE HELP REGARDING EEWB!!!

    after reading few blogs and on reading details on help.sap.com i have understand few things but can sumbody help me on the issue now i facing which may be a bit strange for as i was experimenting with the EEWB.
    earlier i created few projects with extensions in EEWB which didn´t work out now when i try to delete them they r marked for deletion but not getting deleted as i m getting the following error message :-
    The objects R3TR TABU CRMC_MAPPING und R3TR DEVC CRM_ORDER_EEW
    cannot be edited together because the 1st object's original is in this system,
    whereas the 2nd object's original resides in another system.
    CAN YOU PLEASE HELP
    THE system is giving errors when creaing new extensions for add new field saying delete the extension created before because of the transport layer has already been adjusted..

    OSS message finaly resolved my query.
    thanks

  • Please Help regard function that will return values of each JComboBox items

    I'd like to create a function that will return values of each item on the JComboBox at a time when
    I click on each item of a comboBox. I had this following codes, but didn't work.
    Please help me !!!Please correct it... thanks a million
    String wp;
    String text;
    String A[] = {"WARNIGNS","CAUTIONS","NOTES"};
    JComboBox ABC = new JComboBox();
    for (int i=0;i<A.length;i++) {
    ABC.addItem (A);
    text = Get_It(); //assigns each value of JComboBox's item to variable text when clicks at each item
    //of a comboBOx
    private String Get_It(){
    ABC.addActionListener(new ActionListener (){
    public void actionPerformed(ActionEvent e){
    wp = (String)CBweapon.getSelectedItem() ;
    return wp;

    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    public class AlertFrame extends JFrame {
    String s_alert[] ={"WARNIGNS","CAUTIONS","NOTES"};
    JComboBox CBweapon;
    String wpText;
    public AlertFrame() {
    super("Alerts");
    Container contentPane = getContentPane();
    contentPane.setLayout(null);
    setSize(600,600);
    CBweapon = new JComboBox();
    for (int i=0;i<s_weapon.length;i++) {
    CBweapon.addItem (s_weapon);
    contentPane.add(CBweapon);
    CBweapon.setActionCommand("");
    //set position for components
    CBweapon.setBounds(370 + insets.left,295+ insets.top, 150,30);
    System.out.println(getit()); //calling getit() function
    //this function will be return a String of JcomboBOx value if click on each item of combobox
    private String getit(){
    CBweapon.addActionListener( new ActionListener (){
    public void actionPerformed(ActionEvent e){
    wpText = (String)CBweapon.getSelectedItem() ;
    return wpText;
    public static void main(String args[]) {
    AlertFrame af = new AlertFrame();
    af.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    **I have no errors on compile or run, but it didn't return a string value to System.out.println(getit());
    It maybe because of the "void" of public void actionPerformed(ActionEvent e){
    wpText = (String)CBweapon.getSelectedItem() ;
    Please help me

  • Please help regarding method/function sign up validation with mysql jdbc.

    HI guys,
    I am have been fixing this problem for days, hope that someone could help me find the bug on my code.
    I have 3 files:
    1.WithAuth.java - for database jdbc mysql connection
    2.WithAuthMet.java - method that will read any variables that will be passed to it. this method is waiting for two variables, a and b. a for userName and b for userPassword.
    3.WithAuthTest.java - the testing class, this is where i declare my sample control data to test the database connection and query.
    here's the actual codes:
    WithAuth.java
    package com.Auth;
    public class WithAuth {
        static String userName = "root";
        static String userPassword = "";
        static String databaseUrl = "jdbc:mysql://localhost:3306/javatowebservice";
        static String userQuery = "select * from userlogin";
    }WithAuthMet.java
    - this is where the error is and where I messed up.
    package com.Auth;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.Statement;
    public class WithAuthMet extends WithAuth {
        public void connect(String a, String b)throws Exception{       
            //try {
                Class.forName ("com.mysql.jdbc.Driver").newInstance ();               
                Connection conn = DriverManager.getConnection (databaseUrl, userName, userPassword);
                Statement stat = conn.createStatement();   
                String query = userQuery;
                ResultSet result = stat.executeQuery(query);
                System.out.println("Result(s): ");
                  while (result.next ()){
                      int i = result.getInt("userId");
                      String name=result.getString("userName");
                      String password=result.getString("userPassword");
                          //System.out.println("test data:"+a);
                      if(a.equals(name.equals("userName"))&& b.equals(password.equals("userPassword"))){
                                System.out.println("User is Valid");
                            else{
                                System.out.println("You are not a Valid User");
                                System.out.println("test data:"+name);
                                System.out.println("test data:"+password);
                                System.out.println("test data:"+a);
                                System.out.println("test data:"+b);
                      //conn.close();
                   // }catch(Exception e){
                    //System.out.println("Exception is ;"+e);
                    //System.out.println("Exception is ;");
    //                if(a.equals(name.("userName"))
    //                    && password.equals(password.equals("userPassword"))){
    //                    System.out.println("User is Valid");
    //                else{
    //                    System.out.println("You are not a Valid User");
    } WithAuthTest.java
    package com.Auth;
    public class WithAuthTest extends WithAuthMet{
        public static void main(String[] args) throws Exception{
            WithAuthMet CTD = new WithAuthMet();   
            String a = "dan";
            String b = "password";
            //CTD.connect(String name,String password);
            CTD.connect(a, b);
            //return connect;
    }please help.

    yakultyakultyakult wrote:
    WithAuthMet.java
    - this is where the error is and where I messed up.
    package com.Auth;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.Statement;
    public class WithAuthMet extends WithAuth {
    public void connect(String a, String b)throws Exception{       
    //try {
    Class.forName ("com.mysql.jdbc.Driver").newInstance ();               
    Connection conn = DriverManager.getConnection (databaseUrl, userName, userPassword);
    Statement stat = conn.createStatement();   
    String query = userQuery;
    ResultSet result = stat.executeQuery(query);
    System.out.println("Result(s): ");
    while (result.next ()){
    int i = result.getInt("userId");
    String name=result.getString("userName");
    String password=result.getString("userPassword");
    //System.out.println("test data:"+a);
    if(a.equals(name.equals("userName"))&& b.equals(password.equals("userPassword"))){
    System.out.println("User is Valid");
    else{
    System.out.println("You are not a Valid User");
    System.out.println("test data:"+name);
    System.out.println("test data:"+password);
    System.out.println("test data:"+a);
    System.out.println("test data:"+b);
    //conn.close();
    // }catch(Exception e){
    //System.out.println("Exception is ;"+e);
    //System.out.println("Exception is ;");
    //                if(a.equals(name.("userName"))
    //                    && password.equals(password.equals("userPassword"))){
    //                    System.out.println("User is Valid");
    //                else{
    //                    System.out.println("You are not a Valid User");
    This is one line that is wrong
                       if(a.equals(name.equals("userName"))&& b.equals(password.equals("userPassword"))){You have 'a' and 'b which are Strings
    and you are comparing them [using equals()] with the boolean return from another set of equals() invocations.
    String equals boolean will always be false (well, maybe not if the String is "TRUE" or "FALSE" - and you would need some more boilerplate to make that work).

  • Re: PLEASE HELP regarding CLASSPATH anyone?

    I am desperate to research on Lucene but i can't understand on how to create the class path in java classpath.
    Hence i really need help regarding this.
    THANKS!

    this is for your Tim
    http://www.darksleep.com/lucene/
    isha,
    whats your exact problem?
    are you using any libraries of lucene?
    if using how are you setting the classpath?

  • Please help regarding SAP course

    Hi everyone!
    I am an<b> MBA( HR</b>) and a <b>fresher</b>. I would like  to be SAP techno functional professional. For that with which course i should begin with ABAP HR or SAP HR functional modules.
    I am confused. Please help me to know the answers to the following queries-:
         1.<u>What  are the future prospects of SAP HR? </u>
         2.<u>Are any other sap courses with a better demand than SAP hr modules
    (like netweaver , knowledge management or business intelligence warehousing)?
    </u>
          3.<u>Can i go for training with local institutes as seimens does not fits in my budget?  what   difference will it make?</u>
    Waiting for ur response.

    Hi Karan,
    Techno Functional means it includes both Technical and Functional Knowledge.
    For knowing Technical things, you need to go for ABAP HR training and for knowing Functional areas you need to go for SAP HR. I think for your profile SAP HR which means Functional side would be good. But for Technical, one need to have the basic programming knowledge of any tool/technology.Then only it will be easy, otherwise it will be difficult. But nothing is impossible.
    Answers to your questions;
    1.SAP HR is good in the market now and it will be good in future too.Also, competition is less when comapared with other modules.Very less people are taking this module.
    2.Apart from SAP HR, the very hot hot module I can say is SAP FI/CO.It is king in SAP. Next comes Netweaver and SRM.
    3.You cannot compare Siemens and local institutes. If you go for Siemens you will write the exam, pass and get the certification. Using this certification you can find a job easily.Normally, companies recognize only if you have some good years of experience or as a certified fresher.Because you do not have exp, this ceritfication helps you finding a job.But whereas if you go to local institutes you cannot get the certification and it makes very difficult for you to get a job.You have to put some fake experience and try. But this is not easy and not recommended.That too there is no gap as you are a fresher, so you cannot claim any exp. Without exp and without certification, no body will recognize you.
    Think in all terms and then make a good decision. Good Luck for your future efforts.
    Hope this is helpful.
    Please reward if this info is useful to you.
    Thanks,
    Srinivasa

  • Please Help Regarding iMessage

    Hi, I'm using iPad 1 and managed to update it on iOS 5. However, I cannot use the iMessage features even I've put the correct apple ID and password. The message says 'NOT DELIVER!".. I connected into WIFI all the time. My iPhone works good. I have received and sent messages using iMessage to my girlfriend's iPod. Please help how to figure out this.
    Thanks.

    Having the same exact problem only moreso related to email. It won't accept email that is already on file stating it is in use by another user. I am able to use iChat with same settings and al
    Other apple devices are connected with same account but iMessage is not functioning correctly. All software up to date but still having same problem. Sending verification email gets me nowhere because it never sends the email to the account. Need help solving this issue.
    Thanks

  • Please help regarding a PL/SQL Code for padding of digits

    I have a table named as EWT_POL_AGT_REL. There is column named PDT_AGENT_NBR present in this table. The data type of this column is
    VARCHAR2(8 byte). There are some records in with pdt_agent_nbr having 8 spaces and some starting with zero such as “08400”. So I want
    to do following things 1.)left-append a '0' in front of the existing 5 digit PDT_AGENT_NBR and make it to 8 digits 2) if the existing PDT_AGENT_NBR is already 8 digits, do nothing 3.) if it contains leading spaces then replace them by zero.
    Sceanrios
    if PDT_AGENT_NBR is " 12345" then i should get "00012345"
    if PDT_AGENT_NBR is "1234" then i should get "00001234"
    This table has nearly 180 million records hence an update query will not work. Instead a PL/SQL procedure needs to be developed.
    Please help me on this. Please

    This table has nearly 180 million records hence an update query will not work. Because..................?
    Instead a PL/SQL procedure needs to be developed.So you want it to be slower?

  • Please let me plsql code standards

    Hi all,
    Please let me know if i am missing any plsql standards
    IF (    curr_rec.rqst_ctgry_lkpcd = 'AR'
                    AND curr_rec.unfrm_blng_facility_type_code = 'B'
                THEN
                   NULL;
                ELSIF (    curr_rec.rqst_ctgry_lkpcd &lt;&gt; 'AR'
                       AND curr_rec.unfrm_blng_facility_type_code = 'A'
                THEN
                   NULL;
                ELSE
                   INSERT INTO pa_request_run_error
                               (pa_rqst_run_err_sid,
                                pa_error_sid,
                                pa_rqst_sid, rsltn_user_acct_sid, run_nmbr,
                                erroneous_data_value,
                                error_action_lkpcd, error_rsltn_date,
                                rsltn_comment, oprtnl_flag, created_by,
                                created_date, modified_by, modified_date,
                                prvs_run_nmbr
                        VALUES (pa_request_run_error_seq.NEXTVAL,
                                (SELECT pa_error_sid
                                   FROM pa_error
                                  WHERE pa_error_nmbr = '7033'),
                                curr_rec.pa_rqst_sid, NULL, 1,
                                   curr_rec.rqst_ctgry_lkpcd
                                || '-'||curr_rec.unfrm_blng_facility_type_code
                                'F', NULL,
                                NULL, 'A', 30,
                                SYSDATE, 30, SYSDATE,
                                NULL
                END IF;Regards,
    P Prakash
    Edited by: BluShadow on 27-May-2011 08:42
    added {noformat}{noformat} tags as per the {message:id=9360002} FAQ
    Edited by: BluShadow on 27-May-2011 08:47
    Also fixed the &lt;&gt; issues as described in the FAQ                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    I do not like if-elseif constructs that much. These tend to get horrible warped and abused. Especially after a few years of code maintenance and enhancements.
    My preference is instead for CASE statements.
    I see that you are hardcoding literals in your code like +"A'+ and +'B'+ and so on. This is not readable, re-usable or easy maintainable. Consider instead a constants package that defines constants for these literals instead. You now have a single package and place for defining literals to use - easy to update and maintain. And vastly improves the readability of the code. E.g.
    {code}
    create or replace package Const as
    --// active facility types (or whatever..)
    C_ACTIVE_FACILITY_TYPE constant varchar2(1) := 'A';
    .. rest of the constants
    end;
    {code}
    Now you +IF+ condition can use this constant - resulting in more readable code and code that is a lot easier to maintain.
    Also, as far as standards go. Writing long blocks of code in an +IF+ block (or +CASE+ block), seriously hampers the readability of the code. And re-usability.
    So rather take that large block of code, modularise it, and then call that module from the +IF+ or +CASE+ code block.
    A basic standard to aim for is to make code read like a story - especially at the "higher" levels (the main code blocks that initiate the processing and control the process flow).
    A very simple example - the following code indicates very clearly the process flow being done. And is a lot better than not modularising and instead have large swathes of code blocks:
    {code}
    begin
    loop
    fetch invoiceCur bulk collect into invoiceList limit 100;
    for i in 1..invoiceList.Count
    loop
    ProcessInventory( invoiceList(i) );
    BillCustomer( invoiceList(i) );
    ProcessShipping( invoiceList(i) );
    NotifyCustomer( invoiceList(i) );
    end loop;
    exit when c%NotFound;
    end loop;
    close c;
    end;
    {code}

  • Please help, regarding 'content copying'

    I have signed up for Adobe (non-paying memeber). Im using PDF and want to edit the security settings so that content copying of my document is disallowed. I don't know how/ seem to be unable to do so, please will you be so kind to help?
    Appologies for asking help with what im sure is a simple matter, regards
    JC

    Sorry you have lost your phone.
    There is no way that you will be able to archive or read any unread text on your phone it it is lost. All text/pic messages are sent to the designated phone that is on your number only. The information is sent to the specific device on the account and does not transfer to a replacement phone.
    There are too many requests for customers who lost text messages to be archived in the data base system to retain the history of those text.  Only calling history can be saved in customers calling details online or with detailed billing printed invoices.
    As per privacy disclosures, text are private information for the customers only, and are not archived unless a power of attorney or policy report by law enforcement is submitted to the law enforcement dept.

  • Please help regarding XML Publisher Output

    Hi,
    I have bugs in my XML Template, please can any one help me to correct the template which i have designed.
    Regards
    Prabu

    Hi Prabhu:
    Did you try using the Template Viewer? (remember to change the Debug log level to Maximum).
    If you are using Word then you can try validation, although it failed to tell me errors at times (bug in deleting the cache?)
    Usually you will be able to find out. If it neither of these works, I normally fall back to the tried and tested method; Start afresh, add one complexity at a time and test it.
    HTH
    Srini Ramanujam

  • Please help regarding report

    HI GURU, PLEASE TELL ME IF I WANT TO ADD ONE MORE RADIOBUTTON.<AUTHORIZATION>, IF I CLICK AUTHORIZATION THEN
    FINDING EMPLOYEE CODE.
    IN BELOW PROGRAM IF I CLICK RADIOBUTTON PROJECT , FINDING PROJECT ID& DATE, IF I CLICK RADIOBUTTON PROJECT WITH STATUS, ENABLING ONLY PROJECT STATUS.URGENT PLEASE TELL ME HOW TO ADD LOGIC IN BELOW PROGRAM.
    REPORT ycpr_program_hierarchy_report1.
    INCLUDE ycpi_program_hierarchy_report.
    TABLES : aufk , dpr_project , prp_action , PA0000.
    SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME.
    SELECTION-SCREEN BEGIN OF LINE .
    PARAMETERS : r1 RADIOBUTTON GROUP rd1 DEFAULT 'X' USER-COMMAND flag.
    SELECTION-SCREEN : COMMENT 3(70) text-001,
    END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE .
    PARAMETERS : r2 RADIOBUTTON GROUP rd1.
    SELECTION-SCREEN : COMMENT 3(70) text-002,
    END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS:r3 RADIOBUTTON GROUP rd1.
    SELECTION-SCREEN : COMMENT 3(70) TEXT-003,
    END OF LINE.
    SELECTION-SCREEN : END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-001.
    SELECT-OPTIONS : s_projid FOR dpr_project-project_id MODIF ID md
    MATCHCODE OBJECT ycpsh_projectid.
    PARAMETERS : pstatown LIKE dpr_project-proc_status_own MODIF ID md1.
    PARAMETERS : p_date LIKE sy-datum OBLIGATORY DEFAULT sy-datum.
    SELECTION-SCREEN END OF BLOCK b2.
    c_flag = 1.
    DATA: g_flag TYPE c.
    AT SELECTION-SCREEN OUTPUT.
    IF r1 = 'X'.
    c_flag = 1.
    LOOP AT SCREEN.
    CASE screen-group1.
    WHEN 'MD'.
    screen-active = 1.
    WHEN 'MD1'.
    screen-active = 0.
    ENDCASE.
    MODIFY SCREEN.
    ENDLOOP.
    ELSEIF r2 = 'X'.
    c_flag = 0.
    LOOP AT SCREEN.
    CASE screen-group1.
    WHEN 'MD'.
    screen-active = 0.
    WHEN 'MD1'.
    screen-active = 1.
    ENDCASE.
    MODIFY SCREEN.
    ENDLOOP.
    REGARDS
    SUBHASIS

    The follow example should help - cut and paste it into a new program and follow how it works, then apply the same type of logic to your own program.
    report zlocal_example.
    data:
      g_rb_flag(1)          type c.
    *=======================================================================
    * Selection screen
    *=======================================================================
    selection-screen begin of block b1 with frame title text-b01.
    selection-screen begin of line.
    parameters:
      p_rb1      radiobutton group rd1 default 'X' user-command my_ucomm.
    selection-screen comment 3(70) text-001.
    selection-screen end of line.
    selection-screen begin of line.
    parameters:
    p_rb2       radiobutton group rd1.
    selection-screen comment 3(70) text-002.
    selection-screen end of line.
    selection-screen begin of line.
    parameters:
      p_rb3      radiobutton group rd1.
    selection-screen comment 3(70) text-003.
    selection-screen end of line.
    selection-screen end of block b1.
    selection-screen begin of block b2 with frame title text-b01.
    parameters:
      p_field1          like sy-datum modif id md1,
      p_field2          like sy-datum modif id md2,
      p_field3          like sy-datum modif id md3.
    selection-screen end of block b2.
    *=======================================================================
    * Events
    *=======================================================================
    at selection-screen output.
      perform at_selection_screen.
    *&      Form  at_selection_screen
    form at_selection_screen.
      loop at screen.
        if screen-group1+0(2) = 'MD'.
          case 'X'. "determine which Radiobutton is selected
            when p_rb1.
              g_rb_flag = 1.
              if screen-group1+2(1) = '1'.
                screen-active = 1.
              else.
                screen-active = 0.
              endif.
            when p_rb2.
              g_rb_flag = 2.
              if screen-group1+2(1) = '2'.
                screen-active = 1.
              else.
                screen-active = 0.
              endif.
            when p_rb3.
              g_rb_flag = 3.
              if screen-group1+2(1) = '3'.
                screen-active = 1.
              else.
                screen-active = 0.
              endif.
          endcase.
          modify screen.
        endif.
      endloop.
    endform.                    "at_selection_screen

  • Please help regarding the function module 'MESSAGE_TEXT_BUILD'

    hii i am a new employee.
    can anyone please explain wat the following code is doing
    IF sy-subrc = 0.
    l_mstring = t100-text.
    IF l_mstring CS '&1'.
    REPLACE '&1' WITH wa_messtab-msgv1 INTO l_mstring.
    REPLACE '&2' WITH wa_messtab-msgv2 INTO l_mstring.
    REPLACE '&3' WITH wa_messtab-msgv3 INTO l_mstring.
    REPLACE '&4' WITH wa_messtab-msgv4 INTO l_mstring.
    ELSE.
    REPLACE '&' WITH wa_messtab-msgv1 INTO l_mstring.
    REPLACE '&' WITH wa_messtab-msgv2 INTO l_mstring.
    REPLACE '&' WITH wa_messtab-msgv3 INTO l_mstring.
    REPLACE '&' WITH wa_messtab-msgv4 INTO l_mstring.
    ENDIF.
    CONDENSE l_mstring.
    i am supposed to use a function module for it
    i have got a function module.
    but i am not understanding wat fields shd i put in it
    the function module is
    CALL FUNCTION <b>'MESSAGE_TEXT_BUILD'</b>
    EXPORTING
    msgid =
    msgnr =
    MSGV1 = ' '
    MSGV2 = ' '
    MSGV3 = ' '
    MSGV4 = ' '
    IMPORTING
    MESSAGE_TEXT_OUTPUT =
    can anyone tell wat shd i put on msgid ,msgnr and other fields.
    [email protected]

    Hello,
    Guid for unique identification assigned list
    It think it will generate the one unique key in the program.
    DATA: con_log_guid   TYPE  guid_16.
    CALL FUNCTION 'GUID_CREATE'
      IMPORTING
        ev_guid_16 = con_log_guid.
    WRITE con_log_guid .
    Try this example it is generating a 16number id.

Maybe you are looking for