Use of export and import in oo abap

Hello experts,
We are new to oo abap and using process controlled workflow for BRF.
There are 3 methods which we are using. /SAPSRM/IF_EX_WF_RESP_RESOLVERGET_AREA_TO_ITEM_MAP, /SAPSRM/IF_WF_AREAGET_RESPONSIBLE_APPROVERS and /SAPSRM/IF_EX_WF_RESP_RESOLVER~GET_APPROVERS_BY_AREA_GUID.
In a situation we want to use document_id which is created in item_map into get_responsible_approvers method.
Therefore, we used export and import in these two methods like the following.
zgc_mock_pdo_guid =  is_document-document_guid. "uncomment later
    export zgc_mock_pdo_guid from zgc_mock_pdo_guid to memory id 'Z_MOCK_PDO_GUID' . "uncomment later
and
import zgc_mock_pdo_guid  = zgc_mock_pdo_guid  from  memory id 'Z_MOCK_PDO_GUID' . "uncomment this later
               CALL METHOD /SAPSRM/CL_WF_APV_FACADE=>RETRIEVE_PROCESS_HISTORY
                 EXPORTING
                   IV_DOCUMENT_GUID = zgc_mock_pdo_guid "ins_guid
                   IV_AGENT_ID      = lv_agent
                   IV_LANGUAGE      = sy-langu
                 IMPORTING
                   ES_PROCESS       = ls_process
Now we are getting the results as per our requirements. But I want to know whether or not it is supposed to be used in oo abap context or not otherwise I will find another method to do so. Please advise/suggest about the same.
Thank you.

Hello Keshav, Suhas.
Thank you vary much for your reply. I was definitely a great help to understand the concept.
This ZGC_MOCK_PDO_GUID attribute was already made private. Instead of defining under public section I defined it under attributes tab.
Thank you for your help though.
Right now I am trying to explore another way to do so.
I am trying to get factory instance for tack container using /SAPSRM/IF_CLL_TASKCON_FACTORY interface with method GET_INSTANCE from class /SAPSRM/CL_CH_WD_TASKCONT_FACT.
Later I am trying to get task container from this interface. Then after I am interested to get SC GUID using GET_BO_GUID method.
I have been trying to achieve this in following way. But somehow i am getting this GUID empty.
data :
temp_task_container_factory type REF TO /SAPSRM/IF_CLL_TASKCON_FACTORY,
temp_instance type REF TO /SAPSRM/IF_PDO_BO_SC_ADV,
ins_guid type BBP_GUID, "/SAPSRM/WF_DOCUMENT_GUID,
ls_process_info TYPE /SAPSRM/S_PDO_WF_PROCESS_INFO,
temp_handler TYPE REF TO /SAPSRM/IF_PDO_STATIC_META,
temp_task_container type REF TO /SAPSRM/IF_CLL_TASK_CONTAINER,
lo_task TYPE REF TO /SAPSRM/IF_CLL_TASKCON_FACTORY.
CALL METHOD /SAPSRM/CL_CH_WD_TASKCONT_FACT=>GET_INSTANCE
RECEIVING
RO_TASK_CONTAINER_FACTORY = temp_task_container_factory "
CALL METHOD TEMP_TASK_CONTAINER_FACTORY->GET_TASK_CONTAINER
* EXPORTING
* IV_TRANS_MODE =
* IO_MESSAGE_HANDLER =
* IV_BO_TYPE =
RECEIVING
RO_TASK_CONTAINER = temp_task_container
CALL METHOD TEMP_TASK_CONTAINER->GET_BO_GUID
RECEIVING
RV_BO_GUID = ins_guid .
TRY.
CALL METHOD /SAPSRM/CL_PDO_FACTORY_SC_ADV=>GET_BUFFERED_INSTANCE
EXPORTING
IV_HEADER_GUID = ins_guid
RECEIVING
RO_INSTANCE = temp_instance
ENDTRY.
CALL METHOD ZCL_WF_APV_FACADE=>RETRIEVE_PROCESS_HISTORY
EXPORTING
IV_DOCUMENT_GUID = ins_guid " we are passing ins_guid instead of zGC_MOCK_PDO_GUID this should have area_guid now.
IV_AGENT_ID = lv_agent
IV_LANGUAGE = sy-langu
IMPORTING
ES_PROCESS = ls_process.
But the ins_guid ( returned by RV_BO_GUID ) is empty ( The Bold fonted line of code)
I want to know whether I am doing this instantiation correctly or not or do I have to create class and object here only ?
Right now I am calling the class, getting get_instance and using its instance temp_task_container_factory i am calling interface /SAPSRM/IF_CLL_TASKCON_FACTORY. Is it correct way? PLease advise. Thank you once again.
Edited by: abhijitkamatkar on Feb 7, 2012 1:38 PM

Similar Messages

  • Using SUBMIT, EXPORT and IMPORT

    Dear All,
    I would like to know how to use these commands above to solve my reports issues...
    There are two reports created, one is a customized P/L report and another is Balance Sheet Report.
    In P/L report there a number of select-options of
    period and fiscal year
    different cost elements.
    eg.
    select-options: trp3rp for coej-kstar.                     
    select-options: trpalg for coej-kstar.                     
    select-options: itc3rp for coej-kstar.                     
    After running this report I will get values
    in one variable total..
    In 2nd report which is a Balance sheet Report will need to
    get the total from the Report 1 ( P/L )
    how can it be done??
    does anyone have any idea utilizing these three commands above to solve my issues??
    hope anyone can help me
    thanks....

    Hi rayblur,
    1. U want the value of some variable xyz
       from program 1,
       into program 2.
    2. We can use what u said.
    3. Just make sure of the following things.
    4. a) the variable name should be same
         (in prog1, prog2)
       b) The Declaration should also match
       c) use export / import with the same name as variable
      In prog1:
      eg. DATA : MYVAR TYPE I.
        EXPORT MYVAR TO MEMORY ID 'MYVAR'
      In prog2:
      eg. DATA : MYVAR TYPE I.
        IMPORT MYVAR FROM MEMORY ID 'MYVAR'
    5.  Then it will work fine.
    6. Moreover, u can check the value of
       sy-subrc just after export/import
       to know, whether it was successful or not.
    regards,
    amit m.

  • Question regarding export and import of Hyperion Security during upgrade

    Hi Guys,
    We are upgrading Essbase, Integration Services from 7x to 9x which are utilizing Hyperion Hub and we are going to follow the method of uninstalling 7x and reinstalling 9x components.
    Now my question is, what is the best way of transferring security from 7x to 9x. I heard that Advanced Security Manager can be used to export and import back security. Or is there any
    other way of doing it??
    Can someone please enlighten me on this.
    Thanks in advance
    K

    Ihatelightroom wrote:
    First let me say that any software that comes without a save button should be sold with a warning label.
    Why?
    Question 1:  I have having an issue comprehending how to save a photo.  In my case  I select the photo, zoom in on the subject, export it to my desktop. The pciture on my desktop does not incorporate the change. Am I missing a step? What do I need to do to export it with this change? I actually watched a You Tube video on this and could not see what i was not doing.
    You must have selected the wrong option in the Export dialog box. Under "File Settings", you need to select JPG and not "Original". Of course, you probably need to do some additional viewing of videos (or some reading) to learn that most people's workflow does not automatically include a "Save" or "Export" after editing the photo. It's not a necessary part of Lightroom's workflow, unless you need the photo for some non-Lightroom activity.
    Question 2: I just installed Lightroom and am trying to import my 12k strong photo collection. The Import button pulls in about 2k and then cannot find anymore. The photos are stored in folders by date within a master folder. I am selecting the master folder. I can go in and import the sub-fodler individually. However i do not want to do that 200 times.There is no apparent way to go into the subfolder level and select more than one folder.
    In the Import dialog box, on the left, under "Source", there is a checkbox that says "Include SubFolders". Make sure this is checked.
    Seriously, you need to spend some time reading introductory material about LR because Lightroom does not work like any other photographic software you might have used in the past. You are handling it as if it was no different than standard photo editing software, and you are going to be frustrated if that is your mindset. See the videos at adobe.tv and read this: http://www.flickr.com/groups/adobe_lightroom/discuss/72157603590978170/

  • Require help in understanding exporting and importing statistics.

    Hi all,
    I am bit new to this statistics.
    Can anyone please explain me in detail about these commands.
    1) exec DBMS_STATS.GATHER_TABLE_STATS (ownname => 'MRP' , tabname => 'MRP_ATP_DETAILS_TEMP', estimate_percent => 100 ,cascade => TRUE);
    2) exec DBMS_STATS.CREATE_STAT_TABLE ( ownname => 'MRP', stattab => 'MRP_ATP_3');
    3) exec DBMS_STATS.EXPORT_TABLE_STATS ( ownname => 'MRP', stattab => 'MRP_ATP_3', tabname => 'MRP_ATP_DETAILS_TEMP',statid => 'MRP27jan14');
    4) exec DBMS_STATS.IMPORT_TABLE_STATS ( ownname => 'MRP', stattab => 'MRP_ATP_3', tabname => 'MRP_ATP_DETAILS_TEMP');
    I understand that these commands are used to export and import table statistics.
    But please anyone help me in understanding this indetail.
    Thanks in advance.
    Regards,
    Shiva.

    Shiva,
    Please post the details of the application release, database version and OS.
    Please see (FAQ: Statistics Gathering Frequently Asked Questions (Doc ID 1501712.1) -- What is the difference between DBMS_STATS and FND_STATS).
    For exporting/importing statistics summary of FND_STATS Subprograms can be found in (Doc ID 122371.1)
    http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_details?c_name=FND_STATS&c_owner=APPS&c_type=PACKAGE&c_detail_type=source
    http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_details?c_name=FND_STATS&c_owner=APPS&c_type=PACKAGE%20BODY&c_detail_type=source
    Thanks,
    Hussein

  • Export and Import in Oracle

    I need to export users with tables and data from Oracle 8.0.4 and import into Oracle 8.1.7.
    But the condition is that we need to retain the Japanese characters.
    I did this using simple export and import functions but Japanese characters were imported as Junk.
    Can somebody tell me what is the clean way of exporting and importing such that Japanese charaters are not converted to Junk.

    You must set the correct characterset before exporting and importing (I don't know which characterset is correct for you, but choosing the same characterset as the characterset of your database should work).
    Use NLS_LANG environment variable to do this,
    NLS_LANG=<LANGUAGE>_<TERRITORY>.<CHARACTERSET>. On UNIX if NLS_LANG is not set explicitly, it defaults to AMERICAN_AMERICA.US7ASCII, that means all special characters cannot be translated.
    On Windows NLS_LANG is set at installation time, it corresponds to the settings of Windows itself.

  • Export and Import tab in BusinessView Manager

    Post Author: palm
    CA Forum: Crystal Reports
    Hello All, I want to know the use of Export and Import tabs in BVM I tried to export a BV using the Export tab , it created an XML file and now , what can we do with that XML file Appreciate any replies on this
    Thanks!!

    HI
    Export is to take a copy of rule set from CC and export it to a flat file. Same way you can import the to any other environemnt of CC
    My second question regarding creating a new rule set for Training environemnt, that you have to create Functions with different names probably you can put "z" or "T"in front of the functions do denote it is for training system and than create it
    Parveen

  • Export and import parameter

    Hello friends,
    DB: oracle 10 G
    O/S: Sun soalris 10.
    I have two sun system system both are having oracle 10 g
    1 is prod database and another is test database
    both the systems having same schema ,I want to make my test database upto date with production database before i used to use the complete export of prod database 1 schema and simply import it into test database but this process is taking very long time as the export dump file size is alomost 2 GB and while importing at the test database the import process is taking almost 5 to 6 hours ,
    the test database schema having 10 days old old records when compare to production database.
    so I just want to know is there any parameter in IMPORT so that the import process will take only changes information from export dumpfile while importing?
    I am using tradition export and import method

    thanks for your reply,
    But right now I don'thave datapump export dump file and my production database is at remote place ,
    again to take datapump export and copy the dump from netwrok takes again very long time network will also get busy to get 2 gb of file
    right now at my place where test db is located I have only tradition export dump file
    any more sujjestion in that

  • Data Export and Import

    Hello,
    I need a suggestion.
    I have two databases namely DB1 and DB2 and they are on different servers
    S1 and S2 respectively.
    What could be my approach to move data from DB1 to DB2.
    1:-Do i need a database link to do this.
    2:-Can i do this without DBLink if i have access to both of the Databases and DBA rights on both of the Databases.

    My lowly opinion ,
    it's depend on :
    - db1 and db2 is in same version
    - if same and db are until 9i You can use exp/imp
    - if 10g You can use datapump (expdb , or dbms_datapump)
    - if version is different You have to use different exp/imp utilities
    - how many data you wont to move
    - determine to use db link , or export
    Answer,
    -Yes db1 and db2 are of the same version.
    -They are on Oracle 10g.
    -Firstly i want to move a single table data, if successful then decide.
    Now guide me how to go for it. Do i need DB link or is there any other method i can use for export and import.

  • Database Export and Import.

    Hi,
    I want to export and import database using .dmp file from two schema, Schema names as PRODUCTION and DEVELOPMENT.
    I want to export a script of PRODUCTION schema and clean the DEVELOPMENT schema add the .dmp file in DEVELOPMENT schema.
    Please suggest me the script to do this activity. I tried many ways not able to import successfully
    Thanks
    Sudhir

    Sudhir_Meru wrote:
    Hi,
    I want to export and import database using .dmp file from two schema, Schema names as PRODUCTION and DEVELOPMENT.
    I want to export a script of PRODUCTION schema and clean the DEVELOPMENT schema add the .dmp file in DEVELOPMENT schema.
    Please suggest me the script to do this activity. I tried many ways not able to import successfully
    Thanks
    SudhirThe use of export and import for your un-named version of Oracle are well documented in the Utilities Manual, located at tahiti.oracle.com
    How to script it is dependent on your un-named operating system.
    "not able to import successfully" conveys no useful information. What have you tried? What were the results. Actual commands and actual error messages are most useful. Copy and paste are your friends.

  • I am using Iphoto 11 ver 9.4.3 on mac using oxs 10.8.5 i want to export calendar projects to an external hard drive. what is the easiest way to do this? i have tried export and import but it didn't seem to work.

    I am using Iphoto 11 ver 9.4.3 on mac using oxs 10.8.5 i want to export calendar projects to an external hard drive. my goal is to store them in an external hard drive so it doesn't use up memory on the mac hard drive. is it possible to copy the specific projects without copying the entire library? what is the easiest way to do this? i have tried export and import but it didn't seem to work.

    What do you not understand?
    You can duplicate the iPhoto library (command - D ) and delete everything except the project and its photos from the copy and move that
    Or
    However the calendar takes very little space - it is simpy database entries - it is the photos in the calendar that take space - and for most people you would wnat to keep those photos in your library
    you can use a photo in 50 calendars and it still is only one photo in your library - as I explained calenders do not exist as such - they are simply database entries telling iPhotop how to display the calendar - they take almost no space at all
    LN

  • Exporting and importing table using R3trans program between 2 clients

    Hi,
    How to export and import a table between to clients in a same system using R3trans program?
    I need to copy a table from Client 020 in a system to client 040 of the same system using R3 trans. I need to know the procedure.
    Can any one advice
    Regards,
    Suresh

    This is how you do a export and import of table entries.
    Export:
    Open Notepad and type the following,
    export
    client = 020
    file = 'clone.export.<sid>.<client no>.data'
    select * from <client_dependent_tablename1>
    select * from <client_dependent_tablename2>
    select * from <client_dependent_tablenamen>
    Save the file as export.ctl
    Run R3trans export.ctl
    and the data of these files will be stored in a file called clone.export.<sid>.data in the directory from which you have called R3trans
    Import:
    Open Notepad,
    import
    client = 040
    file = clone.export.<sid>.<client no>.data
    buffersync = yes                                               
    Save the file as import.ctl
    Run R3trans import.ctl
    Cheers!
    Bidwan
    Message was edited by:
            Bidwan Baruah

  • DHCP Server does not work after Exporting and Importing Using Netsh Command

    Hello Friends :
    I had two dhcp servers in windows server 2003 server , I have upgraded one of them to windows server 2008 32 bit and again i installed a windows server 2008 R2 as an additional Domain Controller , the last scenario was like this :
    srv-1 : windows server 2003 + DHCP = working with no problem
    srv-2 : windows server 2003 + DC + DHCP = Worked without problem
    srv-3 : windows server 2008 R2 + DC = worked without any problems
    I exported the DHCP server configuration on the srv-2 using netsh dhcp server export and Imported them to srv-3 using the
    netsh dhcp server import command , the command completed successfully and i can see all of the scopes without any problems and errors , i have authorized the new server without any problem , all scopes are activated without any problem so i
    disabled the srv-2 DHCP service and unauthorized it from active directory , the problem is that the new server semms that does not lease any address to clients !!!
    1- I have authorized it
    2- I used Rogue Checker tool in client computers they see authorized server without any problems
    3- The same tool in workgroup only shows srv-1 as the DHCP server and does not see other DHCP servers
    4- Bindings are OK and DHCP servers only have one NIC installed on them
    What can i do to make sure my srv-3 DHCP server will work on the network ?
    thanks ...
    MIMO

    Are the clients on another network so you need to configure a DHCP relay agent?
    If you load up perfmon on the dhcp server and remove all counters and then add DHCP counters. Do you see any dhcprequests when you reboot your dhcp clients? This will determine if your server actually receives any dhcp requests.
    Have you check event viewer for any warnings or errors?
    And the classic one restarted the dhcp server service (or reboot)?
    Regards Per-Torben Sørensen http://pertorben.wordpress.com/

  • Issue Migrating Character Data Using a Full Export and Import

    Hi There;
    I have a database in my local machine that doesn't support Turkish characters. My NLS_CHARACTERSET is WE8ISO8859P1, It must be changed to WE8ISO8859P9 , since it supports full Turkish characters. I would like to migrate character data using a full export and import and my strategy is as follows:
    1- create a full export to a location in network,
    2- create a new database in local machine that it's NLS_CHARACTERSET is WE8ISO8859P9 (I would like to change NLS_LANGUAGE and NLS_TERRITORY by the way)
    3- and implement full import to newly created database.
    I 've implemented first step, but I couldn't implement the second step. I 've created the second step by using toad editor by clicking Create -> New Database but I can not connect the new database. I must connect new database in order to perform full import. How can I do this?
    Thanks in advance.
    Technical Details
    NLS_LANGUAGE.....................AMERICAN
    NLS_TERRITORY.....................AMERICA
    NLS_CURRENCY.....................$
    NLS_ISO_CURRENCY..............AMERICA
    NLS_NUMERIC_CHARACTERS    .,
    NLS_CHARACTERSET.............WE8ISO8859P1
    NLS_CALENDAR.....................GREGORIAN
    NLS_DATE_FORMAT................DD-MON-RR
    NLS_DATE_LANGUAGE...........AMERICAN
    NLS_SORT...............................BINARY
    NLS_TIME_FORMAT.................HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT......DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT............HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT..DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY............ $
    NLS_COMP...............................BINARY
    NLS_LENGTH_SEMANTICS.......BYTE
    NLS_NCHAR_CONV_EXCP........FALSE
    NLS_NCHAR_CHARACTERSET...AL16UTF16
    NLS_RDBMS_VERSION............10.2.0.1.0

    First, if your applications run on Windows, do not use WE8ISO8859P9. Use TR8MSWIN1254.
    Second, if you create a new database, the database is not necessarily immediately accessible to outer world. I do not know Toad and I have no idea if it performs all necessary steps required for the new database to be visible.  For example, in the Toad itself, I assume you should create a new connection that references the new SID of the newly created database and use this new connection to connect. However, connections without a connection string use the ORACLE_SID setting in Registry to tell connecting applications which instance (database) to use.  To change the database accessed with an empty connection string you need to modify Registry (unless Toad has an option to do this for you). If you want to connect without changing Registry, you need a connect string. This requires setting up Oracle Listener to serve the new database (unless default configuration is used and the database registers itself with the default listener). It also requires changing tnsnames.ora file to create an alias for the new database. Net Manager and/or Net Configuration Assistant can help you with this.
    I wonder if Database Configuration Assistant would not be a better tool to create new Oracle databases.
    Thanks,
    Sergiusz

  • Deployment : Exporting and importing a ABAP code to other SAP Server

    Hello Expert,
    I am very new to SAP ABAP. My query is , If we write a code in user exit on one SAP server and if we need to deploy the same on other SAP server who are not tightly coupled with each other , How should we do??
    Is there any way to export and import the code?? How do we deliver the code if anyone wants that code? Is there any way to deliver the code other than manual copy and paste??
    Any idea??
    Thanks,
    Prashant

    Hi,
    Check this.May be this can help you.
    http://www.sap-basis-abap.com/sapac008.htm
    http://www.sap-press.de/forum/gp/themaID-5/zeige-12302/thread
    Message was edited by: Jayanthi Jayaraman

  • 9i to 11g migration using export and import

    Hi,
    I got a requirement to migrate 9i database to 11g using export and import.
    Please let me know what are all the parameters required in 11g, so that database will run with better performance.
    thanks,

    You can start with the current parameters, except for COMPATIBLE (which must be 10.0.0 or higher in the 11g environment). However, you will have to remove parameters deprecated in 11g.
    See http://download.oracle.com/docs/cd/E11882_01/server.112/e17222/changes.htm#BABHACIE
    Then you can test performance and identify what you need to change.
    Hemant K Chitale

Maybe you are looking for

  • Task status  report in cProject 3.1

    Hi, I want to extract task status report from cProject 3.1. Report should contain task name, status, start date,end date , effort etc. Thanks in advance Shiv

  • Adobe 9 Black on White Document Scans to PDF Invert Black to White and vice versa! Not Good!

    I have the same problem as TexasLawyer (Jul 30 2009) whose question was not answered nor was there any answer to a commenter who said he has the same problem ("I have an old HP LaserJet 3330 multifunction printer, and prefer scanning documents out of

  • Help with chapter title text and removing "{" symbol

    I am trying to creat a Quicktime Pro movie with chapter titles.  I followed the instructions in the Quicktime user manual to use a text editor and I am able to creating the chapter markers as desired, however, my chapter titles all have the "}" symbo

  • 8.2.4 update trouble - Windows Vista.  Can anyone help?

    I run Windows Vista on my Dell Inspiron E1505.  I allowed an auto-update of 8.2.4 and I'm hosed. Word will not produce a PDF.  Acrobat acts buggy at every turn.  I am asked to register everytime I open the program (though, in truth, I think this bega

  • Integration Server in SLD

    Hi, In our SLD under Business Systems definitions all of our "Related integrated Server " fields have no values (No Intgration Server is defined"). I am trying to understand where I am missing an entry in SLD for the integration servers. Thanks