ABAP OO Method

Greeting Gurus,
I am working with the Purchasing cube and I have come accross a routing that PERFORMs LOC_CURR_CONVERT.  I need to convert this to a ABAP OO Method.  I find it difficult to find any information on this.  Does anybody have any suggestions?
I am on SP8, waiting on SP10.
Does SAP have a method name that replaces this ABAP Routine?  Or do I need to code myself?  Is there any handy documentation (I found HOW To... Routines within Transformations already, however, not explicity to Methods.)
Kind Regards,
Alex

Hi KJ,
I have executed the steps already on the document you gave me.  I am on the "further edit the transformation manually" step.  Since I am on SP8, my guess, is that it is not giving me the "proposal" of migrating the PERFORM call to a FUNCTION call.
Please see the following post, where Rohan also is experiencing the same problem in SP8.  Re: How to convert  old Abap routine in to ABAP OO in 2004s
My guess is I need a comperable FUNCTION call to that of the old LOC_CURR_CONVERT.

Similar Messages

  • ABAP OO method on Task - won't execute in background

    I've been trying to get workflow with ABAP OO methods up and running on our 6.20 system.  I've followed Jocelyn's blog series and the associated white paper, and can get the DISPLAY method working for her example ZCL_PLANT class.
    I can't seem to get a task working with the static CREATEINSTANCE method, however.  The method works fine (tested in SE24), but when I create an associated task and test it in SWUS, the log shows the status of the work item as Ready, with my name as the Agent.
    I've flagged the task as synchronous and background - is there anything else I should be doing?
    Thanks in advance,
    Andrew

    Hi Andrew,
    Check your Synchronous and Background parameters on the Task again, activate your WF again and start a new workflow.
    This should definitely work and not have you as an agent. But sometimes it can be a bit stubborn if you e.g. stay in the same transaction and make changes in another session. Always go back to the main Easy Access menu before testing changes.
    Cheers,
    Mike

  • ON COMMIT ABAP CLASS METHOD

    Hi Friends,
    Can i execute and abap oo method on commit work.
    similiar to perform form on commit.
    thanx

    Hi Kaushik!
    This should be possible, but with a little bit different approach:
    You can implement an event handler for the commit event. Then you have to register this method for the commit event. Have a look at program SAPMSSY0. In routines %_before_commit, %_commit and %_after_commit you will find some events, e.g.
    * Raise event 'Commit Requested' for Object Manager
      CALL METHOD cl_os_transaction_end_notifier=>raise_commit_requested.
    , for which you might like to register your method.
    Regards,
    Christian

  • ABAP OOP method in Workflow task 6.20

    Hello all!
    In the following blog /people/jocelyn.dart/blog/2006/07/25/using-abap-oo-methods-in-workflow-tasks it is mentionned that to enable OOP methods for workflow tasks on 6.20 one needs to run report SWF_CATID.
    I'm currently on a customer system 6.20 ABAP SP50 and this report simply does not exist. Is this report appearing in a later support pack or is this not available until 6.40 as I belived....
    Any advise on how to enable this on an above system is highly appriciated!
    Regards
    Martin Jonsson

    Hi,
    Check this Report - RSWF_CATID.
    Regards,
    Surjith

  • ABAP class method with dialogue

    Hi all,
    I want to use a ABAP class method within a Workflow definition with user interaction. The SAP help says, that is possible, but I couldn't find a way, to mark the method as "with dialogue".
    For BOR-objects there is a checkbox in the details for the method definition. Can anybody tell me, how it can be done?
    Thanks in advance
    Nick

    Hi Nicolas,
      When you create the Task with the ABAP OO Method, you can select it as "Background Processing" else it will be a "Dialog Process".
    If you notice here, "Background Processing" checkbox will be editable if ABAP OO Method is used, whereas in case of Business Objects it directly comes from method definition.
    Reward points if useful.

  • Function module or ABAP-OO method to start DTP via Coding

    Hello experts,
    is there any function module or ABAP-OO-method, which I can use to start DTP's via ABAP-Coding (e.g. in my own programm)? I know there are FM's to start, change, delete, etc. InfoPackges. Are there any functions like them also available for DTP's?
    Kind regards,
    André

    Hello Andre,
    [Re: CL_RSBK_DTP - How to use...]
    I've tested and it works fine!
    Regards,
    William

  • How The ABAP Proxy method gets triggered

    Hi All,
    I have created a ABAP Proxy for inbound interface.For this interface the data is coming from XI system.So i am writing the logic to read the XI data into an internal table and am populating the same data into a BAPI.
    So my question is,once the XI system sends the data, Will this ABAP Proxy Method automatically gets trigger or Do we need to make any settings?
    Please Help me As early as possible.
    Thanks in advance
    Regards
    Srinivas Kodukula

    Hi srinivas,
    Refer the below points for the configuration needed at R/3 side:
    1. Create a HTTP connection in the business system using transaction SM59
    2. Configuration Business system as local Integration Engine in SXMB_ADM
    3. Connection between Business System and System Landscape Directory. For this check the RFC destinations LCRSAPRFC and SAPSLDAPI
    4. Maintaining the SAP J2EE Connection Parameters for LCRSAPRFC and SAPSLDAPI in SAP J2EE engine
    5. Maintain SLD access details in Transaction SLDAPICUST
    Regards,
    Kiran Bobbala

  • How would YOU retype these old XM08 types for use in an ABAP OO method?

    The XM08 function group has the following type declarations:
    TYPES: BEGIN OF mmcr_drseg_co.
            INCLUDE STRUCTURE cobl_mrm_d.
    TYPES: cr LIKE drseg_cr    OCCURS 0,
           unpl_refwr TYPE refwr,
           END OF mmcr_drseg_co.
    TYPES: mmcr_tdrseg TYPE mmcr_drseg OCCURS 0,
    TYPES: BEGIN OF mmcr_drseg.
            INCLUDE STRUCTURE drseg.
    TYPES: cr LIKE drseg_cr OCCURS 0,
           co TYPE mmcr_drseg_co OCCURS 0,
           sm LIKE drseg_sm OCCURS 0,
           charact TYPE rbcharact_instance OCCURS 3,
                                           "instances of characteristics
           uebgmat  TYPE matnr,
           uebrblgp TYPE rblgp,
           selkz_db TYPE selkz,
           rblgp_old TYPE rblgp,           "rblgp before aggregation
           END OF mmcr_drseg.
    How would YOU redeclare these types so that they work in an ABAP Objects class?  
    Some of the "fixes" are easy, like replacing "LIKE" with "TYPE:".
    But what about the "INCLUDE STRUCTURE" and the "occurs 0" specifications?
    The reason I'm asking this is that I have to call a method from ZXM08U16 and I'd like to be able to pass this method exactly what XXM08U16 gets from SAP, i.e. the table E_TDRSEG of type  MMCR_TDRSEG

    David,
    I wonder it can be directly in ABAP (I would like to hear opinions from others as well!), I needed to use Data Dictionary as well:
    TYPES: BEGIN OF mmcr_drseg_co.
            INCLUDE STRUCTURE cobl_mrm_d.
    TYPES: cr TYPE z_tt_drseg_cr,
           unpl_refwr TYPE refwr,
           END OF mmcr_drseg_co.
    z_tt_drseg_cr is a table type created in SE11, based on structure drseg_cr.
    the way to create internal table and work area, based on the above:
    DATA : gt_... TYPE TABLE OF mmcr_drseg_co.
    DATA : gw_... TYPE mmcr_drseg_co.
    hope this helps some
    ec
    UPDATE : Rich is right, it is possible to do it only in ABAP with the DEFAULT KEY addition.

  • Call an URL with ABAP program (Method POST)

    Hi everyone,
      I need to call an URL for example "www.google.com?q=hello" with ABAP using POST method.
      Like the FM "Call_Browser", but my variable q=hello need to be passed with POST method.
    Any idea ?
    Thanks.

    here is one example I use from abap to call a web browser ITS solution with a project number, I guess you can adapt the it for your purpose?
          check <data>-pspid is not initial.
          concatenate gv_pfs_link
                      'zpfs2?~okcode=PROJ_SEL&zpspid=<###>&sel_action=X'
          into lv_url.
          replace '<###>' with <data>-pspid into lv_url.
          condense lv_url no-gaps.
          cl_gui_frontend_services=>execute(
            exporting document = lv_url ).

  • ABAP OO: methods as method params, method chains

    Hello all,
    I am currently developing quite much ABAP OO and wonder if this is possible, because I got compilation errors.
    a) Methods as method params w/o temp vars:
    I have a method whose parameter shall be the return value (let s say a string) shall be the parameter:
    document->set_owner( owner = person->get_name( ) ).
    This throws an error and I have to code this instead
    data: owner type String.
    ownerString = person->get_owner( ).
    document->set_owner( owner = ownerString ).
    ... so I have always a temp variable which is getting MUCH overhead when having such stuff often...
    Am I doing wrong or is this impossible in ABAP OO? ...am used to do such things in all other languages I know... mean, that methods can be params of other methods.
    b) "chaining of methods"
    Is this possible somehow?:
    data: tmp type String.
    tmp = employee->get_orgUnit( )->get_name( ).
    Calling one level (the get_OrgUnit() method) works fine, but an immediate call to the second level ( get_name() method) fails and I have to code this:
    data: tmp     type String,
          orgUnit type ZOrgUnit.
    orgUnit = employee->get_orgUnit( ).
    tmp = orgUnit->get_name( ).
    This also very annoying to have so much temporary help variables on the way.
    Is there any help for me?
    Thank you for any hints and reagrds,
    Timo

    Hi Timo,
    as Richard's reply says it's impossible in ABAP-OO. The nature of this language is ABAP not OO
    Only helpful for you, could be the returning parameter. It's very useful in conditional expressions like
    if m1->a() = '2'.
    A preferred parameter to avoid writing parameter names like
    m1->b( '2' ).
    All other useful stuff of method or parameter chaining, and so on is NOT possible. Sorry.

  • HR ABAP - Generic method or function to create a PD object & Relat (IT1001)

    Hi,
    This question is related to HR Abap .
    Do we have a generic class method or function module which can be used to create any PD object(O,S,C,...) and relationships (A008, A003, 007,...)between these objects .(not RH_INSERT_INFTY) . It should also trigger change pointers .
    And also do we have a decoupled or generic infotype(1000,1001,1002,....) classes in PD side also similar to PA infotype classes(CL_HRPA_INFOTYPE_0002, CL_HRPA_INFOTYPE_0008,....) . It should also trigger change pointers .
    Thanks in advance

    Generic function to create infotypes 1000 and 1001 is RH_INSERT_OBJECTS
    Classes are CL_HRBAS_INFTY_1000, CL_HRBAS_INFTY_1001, etc

  • Calling ABAP class methods from JAVA application

    Hi All,
    I want to fetch ITS related information (SITSPMON Tcode) in my JAVA application. But i didnt find much BAPIs for the same. While debugging I came accross few class methods with help of which I can get the required information. So is there any way we can call and execute methods of ABAP classes through java application?
    for e.g. I want to call GET_VERSION method of CL_ITSP_UTIL class.
    Thanks,
    Arati.

    Hi,
    Yes, as per my knowledge the only way to interact is using BAPI exposed as RFCs. So try to invoke those class methods in one CUSTOM BAPI and expose that BAPI as RFC and consume that RFC to get those details.
    Regards,
    Charan

  • How can i write code in Inbound ABAP proxy method

    Hi,
    All
    Iam doing server proxy ascenario
    /people/siva.maranani/blog/2005/04/03/abap-server-proxies
    i have done
    steps:
    1:I have done inbound  proxy interface in xi
    2:i have created a inbound abap proxy in my SAP WEB AS6.4 using SPROXY.
    3:I need to write code in Z11_EMPDETAILS_IN~EXEXUTE_ASYNCHRONOUS method
    if i double click on that method it is not opening how can I write code.

    Hi,
    You have to goto the class
    <b>ZCL</b>_EMPDETAILS_IN~EXEXUTE_ASYNCHRONOUS not
    <b>Z11</b>_EMPDETAILS_IN~EXEXUTE_ASYNCHRONOUS
    Check on the third step.
    Regards
    Vijaya

  • ABAP proxy method change - from which version?

    Hi,
    for some new abap proxies when generating them inside
    SPROXY methods like EXECUTE_ASYNCHRONOUS
    are no longer available - it's fine I can use the message interface name
    as the method and the call works fine
    question:
    but does any of you know from which version this works like that?
    any SP level or patch level? (any OSS note mentioning it maybe)?
    I just need the document (or link) that mentions - from this version
    in abap proxies you need to use MI as the method's name
    that'a all
    thank you,
    Regards,
    Michal Krawczyk
    http://mypigenie.com XI/PI FAQ

    It came with SAP_BASIS SP14, the same release were SAP introduced the proxy generation for PI 7.1 service interfaces with several operations. This was the reason for the change.
    The PI systemis not relevant, but the SP level of the component SAP_BASIS of the application system.
    I am sure if there is any documentation availble for this change. I read about  this change in SDN forum
    Regards
    Stefan

  • Abap proxy method execute synchronous

    hey guys,
    im new at XI and am posting this thread in the hope that someone would explain to me, what is required of the method "execute synchronous" in an abap proxy.
    thanks

    Hi,
    <b>Execte_Synchronous</b> is used to send the message synchronously. Similarly execute_asynchonous is used to send the message asynchronously.
    <b>Some theory about proxy.</b>
    1. Proxies can be a server proxy or client proxy. In our scenarios we require proxies to send or upload the data from/into SAP system.
    2. One more thing proxies can be used if your WAS &#8805; 6.2.
    3. Use Tcode SPROXY into R/3 system for proxy use.
    4. To send the data from R/3 system we use OUTBOUND PROXY. In Outbound proxy you will simply write an abap code to fetch the data from R/3 tables and then send it to XI. Below is the sample code to send the data from R/3 to XI.
    REPORT zblog_abap_proxy.
    DATA prxy TYPE REF TO zblogco_proxy_interface_ob.
    CREATE OBJECT prxy.
    DATA it TYPE zblogemp_profile_msg.
    TRY.
    it-emp_profile_msg-emp_name = 'Sarvesh'.
    it-emp_profile_msg-empno = '01212'.
    it-emp_profile_msg-DEPARTMENT_NAME = 'NetWeaver'.
    CALL METHOD prxy->execute_asynchronous
    EXPORTING
    output = it.
    commit work.
    CATCH cx_ai_system_fault .
    DATA fault TYPE REF TO cx_ai_system_fault .
    CREATE OBJECT fault.
    WRITE :/ fault->errortext.
    ENDTRY.
    Receiver adapter configurations should be done in the integration directory and the necessary sender/receiver binding should be appropriately configured. We need not do any sender adapter configurations as we are using proxies.
    5. To receive data into R/3 system we use INBOUND PROXY. In this case data is picked up by XI and send it to R/3 system via XI adapter into proxy class. Inside the inbound proxy we careate an internal table to take the data from XI and then simply by using the ABAP code we update the data inot R/3 table. BAPI can also be used inside the proxy to update the data into r/3.
    I hope this will clear few doubts in proxy.
    <b>How to create proxy.</b>
    http://help.sap.com/saphelp_nw04/helpdata/en/14/555f3c482a7331e10000000a114084/frameset.htm
    <b>
    ABAP Server Proxies (Inbound Proxy)</b>
    /people/siva.maranani/blog/2005/04/03/abap-server-proxies
    <b>ABAP Client Proxy (Outbound Proxy)</b>
    /people/sravya.talanki2/blog/2006/07/28/smarter-approach-for-coding-abap-proxies
    <b>Synchronous Proxies:</b>
    Outbound Synchronous Proxy
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/abap%2bproxy%2boutbound%2bprogram%2b-%2bpurchase%2border%2bsend
    Inbound Synchronous Proxy
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/abap%2bproxy%2binbound%2bprogram%2b-%2bsales%2border%2bcreation
    Regards,
    Sarvesh

Maybe you are looking for

  • ITunes not compatible with iPod Touch 4th gen (problem with Windows 64 bit)

    So I've been trying for about a month or so to sync my iPod Touch to iTunes but ever since i updated it to iTunes 11 it has been saying that i need to uninstall it and install the 64 bit version. I've done that twice this week alone and its still not

  • Keyboard problem with Mac os 10.7 + FileVault to + login screen

    I have a problem with the login screen, the keyboard is recognized as a English keyboard but I have a french keyboard. The menu to change keyboard language is not displayed on login screen since 10.7.2. During the session the keyboard is French, it's

  • EPMA 11.1.2.3 Interface Data Source

    While configuring EPMA, I did not have the option to "Configure Interface Data Source" in my new 11.1.2.3 installation. I installed "PFMA Java Web Application" and PFMA Data Synchronizer Java Web Application" on my Foundation Server. And I installed

  • Urgently!! Is this possible?

    Hi, I had read xml specification long back and couldnot get oppurtunity to work with this that time,Now I want to create an xml file which will replace one of the table in database, and using an java I should be able to view ,insert ,delete and updat

  • How to have wifi on after windows startup?

    Hello, I did not find any settings to have wireless on and bluetooth off when the OS starts. I always have to press Fn+F5 and switch it. How to do it? Solved! Go to Solution.