How to pass import/export parameters while event handler call in OOABAP?

Hi Experts,
Is it possible to use export parameter in set handler method?
Actually my requirement is while creating customer through XD01 after committing to data base i want that customer.
So i exporting  customer no. in one of the badi before commit  and importing in my custom class (zabc) after commit.
Using event TRANSACTION_FINISHED and checking KIND eq C.
My question is instead of using import export abap command  is it possible to pass those parameters in ??
Sample : SET HANDLER zcl_sd_after_commit=>get_kunnr.
Regards,
Raj....

Yes it can
but the event should be defined in the BADI so why do you need to do it?
CLASS MY_CLASS_1 DEFINITION FINAL.
   PUBLIC SECTION.
     METHODS GET_KUNNR IMPORTING KUNNR TYPE KUNNR.
     EVENTS MY_EVENT EXPORTING VALUE(KUNNR) TYPE KUNNR.
ENDCLASS.
CLASS MY_CLASS_2 DEFINITION FINAL.
   PUBLIC SECTION.
     METHODS MY_METHOD FOR EVENT MY_EVENT OF MY_CLASS_1
        IMPORTING KUNNR.
ENDCLASS.
CLASS MY_CLASS_1 IMPLEMENTATION.
   METHOD GET_KUNNR.
     RAISE EVENT MY_EVENT EXPORTING KUNNR = KUNNR.
   ENDMETHOD.
ENDCLASS.
CLASS MY_CLASS_2 IMPLEMENTATION.
   METHOD MY_METHOD.
     WRITE KUNNR.
   ENDMETHOD.
ENDCLASS.
So it can move KUNNR from class1 to class2
DATA: MY_OBJ_1 TYPE REF TO MY_CLASS_1.
DATA: MY_OBJ_2 TYPE REF TO MY_CLASS_2.
PARAMETERS: P_KUNNR TYPE KUNNR.
START-OF-SELECTION.
   CREATE OBJECT MY_OBJ_1.
   CREATE OBJECT MY_OBJ_2.
   SET HANDLER MY_OBJ_2->MY_METHOD FOR MY_OBJ_1.
   MY_OBJ_1->GET_KUNNR( P_KUNNR ).

Similar Messages

  • How to pass parameter (tray name) to event handler for Trays?

    Hi,
         I've several UI tray elements in my view and all these elements are associated with the action onToggleTrays.
         I want to capture the name of the Tray and state of tray(expanded/collapsed).
         For this when I try to add parameters to this event handler method, through IWD ParameterPassing, I can add only the expanded property. I'm not able to add the UI element (tray name).
         Can you please suggest how to add/pass tray name and tray state to the event handler method?
    Regards
    Sagar Nanda

    create a parameter for the action OnToggle say "id".
    In wdDoModifyView get the reference of tray element and map its id to this parameter.
    IWDTray tray=(IWDTray)view.getElement("Tray1");
    tray.mappingOfOnToggle().addParameter("id",tray.getId());
    IWDTray tray2=(IWDTray)view.getElement("Tray2");
    tray2.mappingOfOnToggle().addParameter("id",tray2.getId());
    Hope it helps.

  • How to pass importing parameter of super class method to subclass method?

    hi all,
    i have defined  a class
    CLASS CUST_REPORT DEFINITION.
      PUBLIC SECTION.
        METHODS:DATA_RETRIVE IMPORTING  CUSTID_LOW  TYPE ZCUSTOMER-ZCUSTID
                                       CUSTID_HIGH TYPE ZCUSTOMER-ZCUSTID.
        DATA:IT_CUST TYPE TABLE OF ZCUSTOMER,
             WA_CUST TYPE ZCUSTOMER.
    ENDCLASS.                    "cust_report DEFINITION
    The method DATA_RETRIVE   in this class  has two importing parameters named CUSTID_LOW   and CUSTID_HIGH.
    then i have defined subclas of this clas.
    LASS CUST_ORD DEFINITION INHERITING FROM CUST_REPORT.
      PUBLIC SECTION.
        DATA:IT_ORD TYPE TABLE OF ZORDER.
        METHODS:DATA_RETRIVE  REDEFINITION,
               DISPLAY.
    ENDCLASS.                    "cust_ord DEFINITION
    Method DATA_RETRIVE   is redefined.
    So how to pass importing parameteres of super class method to sub class method with the same name.
    Thanks and Regards,
    Arpita

    Hi,
    I tried like this.
    METHOD DATA_RETRIVE.
    CALL METHOD SUPER->DATA_RETRIVE
          EXPORTING
            CUSTID_LOW  = I_CUSTLOW
            CUSTID_HIGH = I_CUSTHIGH.
    ENDMETHOD.
    But  parameters I_CUSTLOW and I_CUSTHIGH are not getting values after call to method.
    Thanks and Regards,
    Arpita

  • How to pass context based parameters to subquery?

    Hello to All!
    How to pass context based parameters to subquery of custom folder when I schedule workbook?
    Thanks, Oleg

    Hi Russ
    Yes, I've done this too. Basic SQL though will not allow the updating of a table inside a function, so we have to get clever. The trick is to use the PRAGMA AUTONOMOUS TRANSACTION command. Here's an example:
    FUNCTION UPDATE_MYTABLE(P_VALUE IN NUMBER)
    RETURN VARCHAR2 IS
    PRAGMA AUTONOMOUS_TRANSACTION;
    BEGIN
    UPDATE SCHEMA_OWNER.MY_TABLE SET MY_VALUE = P_VALUE;
    COMMIT;
    RETURN('Done');
    END UPDATE_TABLE;
    When the update has been completed the Discoverer worksheet will respond with 'Done'.
    Everyone: don't forget to grant EXECUTE on this function to all of the necessary users, including the EUL owner, and also don't forget to import the function using the Admin edition so that it is available for the users. You will also need to make sure that all necessary users have been granted the UPDATE privilege on the table.
    I hope this helps
    Regards
    Michael

  • How to pass whitespaces as parameters to sqlplus

    Hi all,
    does anyone of you know how to pass whitespaces as parameters to sqlplus?
    I am struggeling with with problem for quite a while now.
    I tried doing this the following way:
    sqlplus mydb/mydb@mysid @mypath\myfile.sql param1 param2 ' ' param4 ' '
    sqlplus mydb/mydb@mysid @mypath\myfile.sql param1 param2 " " param4 " "
    sqlplus mydb/mydb@mysid @mypath\myfile.sql param1 param2 '\ ' param4 '\ '
    but none of this is working. Any more ideas?
    Thanks in advance!
    Doug

    Hi,
    This could do it :[oracle@Nicosa-oel ~]$ cat script.sql
    DEFINE myparam1 = "&1 ";
    DEFINE myparam2 = "&2 ";
    DEFINE myparam3 = "&3 ";
    DEFINE myparam4 = "&4 ";
    DEFINE myparam5 = "&5 ";
    select '&myparam1.' c from dual
    union all select '&myparam2.'  from dual
    union all select '&myparam3.'  from dual
    union all select '&myparam4.'  from dual
    union all select '&myparam5.'  from dual;
    undefine myparam1
    undefine myparam2
    undefine myparam3
    undefine myparam4
    undefine myparam5
    [oracle@Nicosa-oel ~]$ sqlplus scott/TIGER
    SQL*Plus: Release 11.2.0.1.0 Production on Tue Jan 3 16:20:49 2012
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> @l
    Scott@my11g SQL>@script a " " c " " e
    C
    a
    c
    e

  • How to pass XMLType as parameters to Java stored procs ?

    How to pass XMLType as parameters to Java stored procs ?
    ORA-00932: inconsistent datatypes: expected an IN argument at position 1 that is an instance of an Oracle type convertible to an instance of a user defined Java class got an Oracle type that could not be converted to a java class
    Java stored proc -->
    CREATE or replace FUNCTION testJavaStoredProcMerge( entity xmltype,event xmltype ) RETURN VARCHAR2 AS LANGUAGE JAVA
    NAME 'XDBMergeOp.merge(org.w3c.dom.Document,org.w3c.dom.Document) return java.lang.String';
    PL/SQL -->
    declare
    theQuote VARCHAR2(50);
    entity xmltype;
    event xmltype;
    begin
    entity := xmltype('<Quote><Fields><Field1>f1</Field1></Fields></Quote>');
    event := xmltype('<Quote><Fields><Field2>f2</Field2></Fields></Quote>');
    theQuote := testJavaStoredProcMerge(entity,event);
    dbms_output.put_line(theQuote);
    end;
    Java class -->
    public class XDBMergeOp {
    public static String merge(Document entity, Document event) throws Exception {
    return ...
    Thanks in advance.

    I think you'll need to use XMLType and then extract the DOM inside java..
    create or replace package SAXLOADER
    as
      procedure LOAD(P_PARAMETERS XMLTYPE, P_DATASOURCE BFILE);
    end;
    create or replace package body SAXLOADER
    as
    procedure LOAD(P_PARAMETERS XMLTYPE, P_DATASOURCE BFILE)
    AS
    LANGUAGE JAVA
    NAME 'com.oracle.st.xmldb.pm.saxLoader.SaxProcessor.saxLoader ( oracle.xdb.XMLType, oracle.sql.BFILE)';
    end;
      public static void saxLoader(XMLType parameterSettings, BFILE dataSource)
      throws Exception {
        Document parameters = parameterSettings.getDocument();
        SaxProcessor app = new SaxProcessor(parameters);
        app.processXMLFile(dataSource);
      Edited by: mdrake on Apr 6, 2009 11:28 AM

  • How to pass selection screen parameters in text elements?

    how to pass selection screen parameters in text elements?

    don't you mean he other way around. Assign text-elements (selection texts) to select options?
    This you do in the menu where you can find text-elements, selection texts.
    menu Goto->text elements->selection texts.
    Edited by: Micky Oestreich on May 10, 2008 2:45 PM

  • How to pass the report parameters through java not by using URL

    Hello...
    I have an oracle App. Server 10g with report service
    I can the report using the URL :
    http://host:Port/rwservlet/report=....
    and passing the report parameters ...
    But is there any way to call the report by pdf format and passing the parameters from java without using the url ???

    thank you shahcsanjay for your reply
    but I think that web.showDocument can not be used by ordinary java web application ..
    I think it can be used only with with "oracle forms" Am I right ?
    If no can you please tell me where can I find a useful document about how to use web.showDocument ...
    thanks again
    Saleem

  • How to pass selection screen parameters to a BEx IView?

    Hi Experts,
    I have added BI Reports in EP and I want to pass the default input parameters to the BI IView as soon as its accessed in EP.
    Can some one tell me how can I achieve this? Is there a way to pass the input parameters in the "Application Parameters" property of the BEx Iview?
    Regards,
    Shobhit

    don't you mean he other way around. Assign text-elements (selection texts) to select options?
    This you do in the menu where you can find text-elements, selection texts.
    menu Goto->text elements->selection texts.
    Edited by: Micky Oestreich on May 10, 2008 2:45 PM

  • How to automate Import/export Essbase data 11.1.2

    Hi,
    After migration from Dev to Test environment using LCM (EPMA Planning, Shared services) I have questions:
    1) How to automate export from source and import in Destination?
    2) If we have enabled MSAD in shared services, What should be standard practice to sync provisioning in both environment?
    Regards
    Kumar

    Hi John,
    I see only Native directory
    Application Group>Foundation>shared services> - Native directory
    - Task flows
    Application Group>Foundation>shared services> - Native directory>assigned Roles> foundation>shared services
    I feel MSAD should be here but not sure as it is just new environment and we enabled MSAD.
    Please suggest where can i check Import/export in LCM 11.1.2?
    Regards
    Kumar
    Edited by: Kumar 1 on Oct 20, 2011 3:22 AM

  • HT5537 How do you import/export garage band projects using the latest version of iTunes when there is no apps in the left column to select garageband?

    I am perfectly aware of how to do this using the old version of itunes.
    however i just got a new macbook pro retina... and it came with the latest version of itunes.
    and i was trying to import/export garage band files between my ipad and mac via itunes.
    and the option for apps, that is usually on the left side where you can then select garage band from in itunes, isnt there in the new version of itunes.
    has anyone got a work around for this?
    thanks.
    nic

    Nic, for me the iTunes window looks like this, when I connect my iPad 3:
    I select the iPad in the "devices" section of the Sidebar (use: "View > Show Sidebar" if the sidebar is hidden).
    Click the "Apps" tab in the "Devices" pane.
    Scroll all the way down in the Devices pane to "File Sharing" "Apps" section.
    Then do I click "GarageBand" to select the documents in the right panel.
    Which part is different for you? Perhaps you could post a screenshot?
    Regards
    Léonie

  • Problem passing an export parameters in rfc call using the function control

    Hello,
    I use SAP Remoute Function Control (wdtfuncs.ocx) in my C++ application. I can execute remote functions, if they don´t need any export parameters:
    CSAPFunctions m_Functions;
    CFunction f;
    f.m_lpDispatch = m_Functions.Add("RFC_CREATE_DOCUMENT_MASTER");
    f.Call();
    How can I set the export parameters?
    Any help appreciated.
    regards,
    Vladimir

    check out this thread
    Re: Sample code in ASP to connect SAP?
    Regards
    Raja

  • How to pass my input parameters (duty and frequency) to other loop?

    Hi everyone..
    Can you help me in doing my project..I have a problem regarding passing my two parameters (duty and frequency)
    from my main while loop passed to PWM program (other while loop).
    As for your reference, attached with my VI project.
    Hope to read your response guys!
    thanks and regards,
    Ludz
    Attachments:
    Project VI (zipped) Folder.zip ‏1528 KB

    See the attached VI and tell me the result..
    Attachments:
    Project VI (zipped) Folder.7z ‏411 KB

  • How to pass username and password while invoking a web service through wsdl

    Hello All,
    i am calling a web service through wsdl, but it is giving error 401. i want to know how to pass userid and password when i am invoking webservice?
    i am using NetBeans 6.1.
    i did following thing:
    First i created one web application, then i right clicked on project new->web service client, and gave the url for my wsdl.
    after that i create one main class and try to call my required operation by that wsdl.
    Thanks in advance

    Thanks dumchikov, i tried the same thing what ever you told but there is no option for security.
    when i right clicked on web service reference its open 1 window which have 2 tab one is quality of service and second is wsdl customization, then i clicked on wsdl customization. which contain Global Customization, Port Types, Port Type Operations, Port Type Faults, Binding, Binding Operations, Services, Ports and External Binding Files. it don't have security option.

  • How do I import/export bookmarks in firefox 4?

    I am trying to copy bookmarks from an older computer to a new computer and I can't find import/export as in versions of Firefox. I am currently using version 4.

    In the Bookmarks menu select "Show All Bookmarks", this opens the bookmarks manager and that includes menu options to import and export bookmarks.

Maybe you are looking for

  • My iPhoto keeps crashing after installing the latest update, can't do anything!

    My iPhoto keeps crashing after installing the latest update, can't do anything! It used to crash when importing but now I'm at the point where I open the software and after 2 seconds it crashes (nothing connected either). What to do? Can't access any

  • No value in excise invoice

    Hi, When I am trying to create excise invoice with t.code j1iin with reference to billing document,No value is coming for excise duty and e-cess in excise invoic document.What can be reason.

  • FMS2 on Linux almost working!

    Hi there, I've been testing FMS2 on Linux (CentOS). I figured that since CentOS is in essence RedHat that I shouldn't have any trouble. The good news is that it all seems to have installed nicely. When I attempt a ./fmsmgr list it gives me a couple p

  • Messages being marked unread during search

    When I do a search of all subfolders of email, often summary files are rebuilt during the search. When that happens, some messages (not all, seems random) are marked "unread" here and there throughout the hierarchical structure of my subfolders. This

  • Total Relenishment Lead Time vs. Routings Lead Time  ( very urgent)

    Hello PP Champs Need urgent help I am facing a scenario in current project - My Customer service quotes for delivery to an customer with in 3 days for a stock item by seeing the availability check with Total Replenishment Lead time in MAterial Master