Smart forms - Identifying the calling method and class

Hi Experts,
Is there a way to identify the method and class names that called a smart form..
Any inputs or pointers in this regard woul;d be of great help.
Regards,
Kris.

Hi Kartik,
The procedure you suggested is good to identify the class by manual intervention.
But I need the class/mehtod name in the program as the logic of the code depends on which class called the smart form.
Any idea how this can be read?
Regards,
Kris.

Similar Messages

  • Call the CALL METHOD and CREATE OBJECT

    Hi Friends,
         How to call the CALL METHOD and CALL OBJECT in the se38 edit program.For example for calling the FUNCTION MODULE we can use the pattern in that using the call function we can get the function module in the se38 edit.but in METHOD hoe to call if you explain me in detail it would be very much usefulfor me.
    Thanks,
    Regards,
    Rajendra Kumar

    Hi rajendra,
    its the same way we do. call pattern ..there will be another radiobutton whcich says 'ABAP objects' , give the method name and the class name there.. this will call the method similar to function module..
    we can also write our own classes and methods...
    say..you created your own class c1 and method m1
    then first create the instance of the object..
    data:obj1 type ref to c1.
    create object obj1.
    call method obj1->m1.
    Regards,
    Vidya.

  • Can I know the caller method from callee

    Hi,
    I have a method which is called from multiple methods. Is it possible to know the method which called it wihtout sending the parameter to specify which method called it. i.e. without using something like send 1 for method 2 for other.
    One way I thnk is build an exception. Throw & catch it in the same method & get the stackTrace();

    I would respectfully remark that it isn't your
    method's job to police the callers. It still
    shouldn't be concerned with who the caller
    was. It should just throw an appropriate exception
    indicating invalid parameters were passed. Then it's
    the caller's responsiblity to do something about it.Yeah... that is why exceptions exist. Throw an IlegalArgumentException and then (since it's unchecked) if you want to watch out for it, watch for it in the calling method, which is after all the method in charge.
    It is easy to get carried away with the "spot checking" philosophy and try to handle all errors exactly where they occur, but if you think about it, where did the error really occur? Up the stack at the caller.. that is where the bad arguments came from.
    Also, strictly speaking, it should be a rare case when code throws an IllegalArgumentException. For the most part exceptions should represent just that - exceptions. It is not really in best form for them to be used as conditionals.
    For example, instead of getting input from the user and then forcing it down the method's throat without checks, you should run your own checks on it first - for example, by telling the JTextField that it is not allowed to accept characters that would result in an IllegalArgumentException.
    Exceptions should represent just that; hence, except for certain weird cases, a body of classes that you write that interact exclusively with each other should be designed to (almost) never throw exceptions.
    When someone else starts using your classes, all bets are off.
    Drake

  • How to create the custom method and make it available to clients:

    Hello, Can any one help me with this problem ASAP??
    I am trying to work on an example of "Customizing the Query and Creating an Associated Custom Method"
    from http://helponline.oracle.com/jdeveloper/help/topics/jdeveloper/developing_mvc_applications/adf_pviewcustommethod.html?tp=true#method. To do that, the first task is to create the custom method and make it available to clients.
    Following instructions in the helponline documentation, I completed the three steps: (1) "Specify a custom query for the View Object definition for EmployeesView", (2) "Add the custom method to the application module Java class", and (3) "Make the method available to clients".
    The following is the error message I got to test the application module. Can anyone tell me what the message really means and what I should do. I am wondering if there is any mistakes in the document.
    (oracle.jbo.SQLStmtException) JBO-27122: SQL error during statement preparation. Statement: SELECT Employees.EMPLOYEE_ID, Employees.FIRST_NAME, Employees.LAST_NAME, Employees.EMAIL, Employees.PHONE_NUMBER, Employees.HIRE_DATE, Employees.JOB_ID, Employees.SALARY, Employees.COMMISSION_PCT, Employees.MANAGER_ID, Employees.DEPARTMENT_ID FROM EMPLOYEES Employees WHERE Employees.SALARY > :1 and Employees.DEPARTMENT_ID = :2
    ----- LEVEL 1: DETAIL 0 -----
    (java.sql.SQLException) ORA-01008: not all variables bound

    You need to set values for the parameters in your query before you try to execute the query in the view object.
    So you need to call the setBindVars method before the query.

  • Abstract method and class

    I'm a beginner in Java and just learn about abstract method and class.
    However, i am wondering what is the point of using abstract method/class?
    Because when I delete the abstract method and change the class name to public class XXXX( changed from "abstract class XXXX), my program still runs well, nothing goes different.
    Is it because I haven't encountered any situation that abstract method is necessary or ?
    Thanks!

    Yes - you probably haven't encountered a situation where you need an abstract.
    Abstract classes are not designed to do anything on their own. They are designed to provide a template for other classes to extend by inheritance. What you have build sounds like a concrete class - one which you are creating instances of. Abstract classes are not designed to be ever instantiated in their pure form - they act like a partial building block, which you will complete in a class which extends the abstract.
    An example might be a button class, which provides some core functionality (like rollover, rollout etc) but has an empty action method which has to be overwritten by a relevant subclass like 'StartButton'. In general, abstract classes may not be the right answer, and many people would argue that it is better to use an interface, which can be implemented instead of extended, meaning that you can ADD instead of REPLACING.
    Not sure if that helps.. there are whole chapters in books on this kind of thing, so it's hard to explain in a couple of paragraphs. Do some google searches to find out more about how they work.

  • Why is the runFinalizersOnExit method in class System depricated?

    The explaination given in javadocs for deprication of runFinalizersOnExit in System class is that "It may result in finalizers being called on live objects while other threads are concurrently manipulating those objects, resulting in erratic behavior or deadlock". But the finalizers are supposed to be called only when the Java runtime exits. The confusion I have is once the java runtime exits we should not have any live objects hence the aboue case should not arise or have i missed some details. Please help.

    The finalize method goes off when garbage collection happens, and this doesn't always happen when the program ends. Finalize methods are not well supported in Java since they are not always called (or they get called while the program is still running). Sun should come up with a better plan on the finalize method and so they are executed when the program ends. This isn't what finalizeOnExit does, despite the name.

  • How to retrieve the calling method

    Hi all,
    Is there anyway I can get the calling method from the method I am currently in e.g.:
    thisclass..setup().getText()
    and in getText can I check to see which method has called it?
    Thanks in advance.

    You can extend SecurityManager to get an array containing the class context (just the calling class, not the calling method), or you can create a Throwable and get an array containing a trace of the stack.

  • To convert Smart Form output to PDF format and send it via email.

    Hi Friends,
    Could any one please tell me, how to convert the Smart Forms output to PDF format and send it via email to customer. If any one have the code, kindly mail me to [email protected]
    Thanks & Regards,
    John

    Refer the links -
    how to convert smartform into pdf and send through mail
    Smartform as PDF attachment to a mail.
    smartform pdf and mail
    smartform to pdf to mail
    Regrads,
    Amit
    Reward all helpful replies.

  • How to identify the source column and source table for a measure

    Does anyone have a query that I can use to positively identify the source column and source table for a cube measure in an SSAS cube?  Visual Studio shows ID, Name, and Source, but it is nearly worthless in a large cube and database.
    Also - the same for a dimension would be great.
    If no query exists for this, can someone please explain how to find the source column/table for a measure and for a dimension?
    Thanks.

    DMVs don’t expose the DataSourceView content. AMO is much better suited for object model operations like
    this than the DMVs. PowerShell is also sometimes an option, but in this case C# code would be much easier because analyzing the contents of the DataSourceView is much easier using the .Net DataSet class.
    Hope this helps.
    Reeves
    Denver, CO

  • Evaluated Receipt Settlement (ERS) Smart form through the MRRL Transaction

    hi all,
    i am handling a smartform .
    How can i run my Evaluated Receipt Settlement (ERS) Smart form through the MRRL Transaction  ?
    what fields should be put in the Nast -objectkey?
    if possible Please Mail to me in my id <REMOVED BY MODERATOR> any documentation available for the given Transaction(MRRL)
    Thanks & regards,
    Cheenangshuk
    Edited by: Alvaro Tejada Galindo on Feb 28, 2008 11:45 AM

    Hi,
    ERS Definition: - Procedure for settling goods receipts automatically. When you use Evaluated Receipt Settlement (ERS), you agree with the vendor that the latter will not submit an invoice in respect of a purchase order transaction. Instead, the system posts the invoice document automatically on the basis of the data in the purchase order and goods receipts. This eliminates invoice variances.
    Uses: -
    - SAP recommend that you implement ERS only if you and your vendor have a clear agreement on the applicable conditions and you continuously update the purchase orders in the system.
    - The system determines the invoice amount for the relevant ordering transaction from the prices entered in the PO, the terms of payment, the tax information and the delivery quantity entered in the goods receipt.
    - ERS also generates credit memos: If an invoice has already been posted for a goods receipt and a return delivery has since taken place, the system generates a credit memo for the quantity returned.
    Advantages: -
    Evaluated Receipt Settlement (ERS) is particularly suitable for creating settlement documents at regular intervals.
    ERS has the following advantages:
    - Purchasing transactions are closed more quickly.
    - Communication errors are avoided.
    - There are no price and quantity variances in Invoice Verification.
    In test mode, the system can issue a list of goods receipts that can be settled and goods receipts that cannot be settled. The system makes no postings, it only lists the invoices selected.
    Refer following links for more details;
    [Evaluated Receipt Settlement|http://help.sap.com/saphelp_erp60_sp/helpdata/en/a8/b99f58452b11d189430000e829fbbd/frameset.htm]

  • Smart Form for the CRM Survey

    Hi Experts,
    I want to do a smarform for the CRM Survey, is there any standard smart form for this.
    How do we trigger the smart form for the same.
    Thanks in Advance,
    Praveen

    Hi Praveen,
    As per my understanding u have to make a custom smartform for CRM.
    Try using  FM CRM_ORDER_READ with importing Parameters IT_HEADER_GUID and for Bar Code
    use standard smartform BC470_FLOWD_LABELS.
    Hope This Helps...
    Thanks
    Ravi

  • How to Generate a complex smart form for the Sales Order different pages h

    How to Generate a complex smart form for the Sales Order different pages has different page Layouts  explain me?

    in print program in interface when calling the form there should be some option to tell it to make a NEW spool everytime.
    I have it in mind for sap-script it is ITCPO-TDNEWID. Dont have it in mind for SAMRTFORMS but still it should work somehow similar.

  • How to identify the OAF customizations and personalizations

    Hi All,
    We are in the process of upgrading from 11.5.10 to 12.1.3
    There are certain customizations and personalizations done on many OAF pages of various modules (like Self service, iRec, iSupplier, etc)
    Will the upgrade impact these customizations/personalizations? If so, will it be entirely removed and do we need to redo the customizations/personalizations over again?
    Also, I have another need for identifying the existing customizations and personalizations (in 11.5.10) in OAF pages. There are no documents with us which will explain the existing customizations/personalizations in OAF . Need to identify the same. Is there a way which i can follow to identify these?.
    Any pointers on this will be really helpful
    Thanks,
    Mohan

    Can you please give me some pointers on identifying/migrating the OAF personalizations/customizations
    Any documents/links to the same will be really helpfulRun the query in this thread to find the list of personalizations -- Re: Can I get a report of all personalizations?
    To migrate personalization, please refer to:
    Upgrading Form Personalizations and OA Framework Personalizations from Oracle E-Business Suite Release 11i to 12.1 (Doc ID 1292611.1)
    Customization in Oracle Applications (Doc ID 743490.1) -- Moving Personalizations between instances
    Tips About FNDLOAD (Doc ID 735338.1)
    Thanks,
    Hussein

  • HT201263 My ipod Touch does not want to turn on. I've tried all the different methods and I'm stuck and dont know what to do now. What else can I try?

    My ipod Touch does not want to turn on. I've tried all the different methods and I'm stuck and dont know what to do now. What else can I try?

    JesusDGZ wrote:
    My ipod Touch does not want to turn on. I've tried all the different methods and I'm stuck and dont know what to do now. What else can I try?
    I have no clue what you mean by "all the different methods."  Here are my suggestions.
    First, try a system reset.  It cures many ills and it's quick, easy and harmless...
    Hold down the on/off switch and the Home button simultaneously until you see the Apple logo.  Ignore the "Slide to power off" text if it appears.  You will not lose any apps, data, music, movies, settings, etc.
    If the Reset doesn't work, try a Restore.  Note that it's nowhere near as quick as a Reset.  It could take well over an hour!  Connect via cable to the computer that you use for sync.  From iTunes, select the iPad/iPod and then select the Summary tab.  Follow directions for Restore and be sure to say "yes" to the backup.  You will be warned that all data (apps, music, movies, etc.) will be erased but, as the Restore finishes, you will be asked if you wish the contents of the backup to be copied to the iPad/iPod.  Again, say "yes."
    At the end of the basic Restore, you will be asked if you wish to sync the iPad/iPod.  As before, say "yes."  Note that that sync selection will disappear and the Restore will end if you do not respond within a reasonable time.  If that happens, only the apps that are part of the IOS will appear on your device.  Corrective action is simple -  choose manual "Sync" from the bottom right of iTunes.
    If you're unable to do the Restore, go into Recovery Mode per the instructions here.

  • I'm moving to an imac from a PC. I want to move my itunes library from the PC to my new imac. What is the best method and where can I find instructions?

    I'm moving to an imac from a PC. I want to move my itunes library from the PC to my new imac. What is the best method and where can I find instructions?

    Move iTunes from PC to MAC, http://www.macworld.com/article/146958/2010/03/move_itunes_windows_mac.html

Maybe you are looking for

  • Unable to log in to the portal - missing Directory Service?

    Hi! I'm unable to log in to the Management Portal, getting this error message: "We are having trouble logging you into the portal. Your subscription does not have an associated directory and this is preventing us from logging you in. Please contact s

  • Need input for error caused while trggering a output type

    I had created a custom program and assigned it to a custom output type. while processing this output type through VF01(billing doc) it is generating an error saying commit_in_posting. can anyone suggest in this regard........

  • Display Mode - Module Pool

    Hi Friends, Need help in Module Pool, when button click want to display screen in Display Mode only.....

  • Phone acting up?!?!

    Samsung S4 Randomly a website will open up on my phone; today it took me to a surveysandpromotions website, yesterday it was admin.next.com . Any ideas? I deleted a new app installed on Saturday, but this started before that. Before Saturday words wo

  • Price in bapi_contract_createfromdata

    Hi experts, I have to create contract which is based on price but in the bapi : BAPI CONTRACTCREATEFROMDATA ,there is  no option to input price can anyone help me on this Thanks in advance Deepthi Edited by: deepthi muttavarapu on Mar 8, 2010 7:21 AM