Import/Export code using Memory ID in BO Method
Hi experts,
I am having a approver name and other relevant data in my report. I don't want to write the entire code I want to bring it into my BO method by using import/export memory id. Pl. guide me what should I do ? Is it possible or not?
Thank you,
Saquib
I am a bit confused that what you are trying to achieve. In any case I think you can forget any export/import memory ID related solutions - they will not work!
The workflow (or its step/task) is executing your BO method, right? You want this method to have some data when it gets executed? Normally you would want to populate the data to the workflow (or task) container, for example with function SAP_WAPI_WRITE_CONTAINER (you just need the work item ID). Then when this data is in the container, you can use it in your method (binding required).
Somehow I feel that you looking a difficult solution for a simple problem. If you need some relevant data in your workflow, let the workflow to find it (add a new step to the workflow, and copy/paste the relevant part of the code of your report to this step). (Or try to give the data to the workflow already when it gets started, if possible). Don't try to mix things with some separate report, unless it is completely necessary, and if it is, then writing into the container is most likely the best approach.
Regards,
Karri
Similar Messages
-
Hai...
Can any one tell where to enter import export code in SAPHi,
In Material Master Foreign Trade Import and Foreign Trade export we have to maintain either HS code or IEC number depending on the requirement.
Regards,
Sharan -
Import/export journals using an output file
I am looking into loading journals using an output file in SAP BPC intead of entering every journal using the template.
Hello everybody,
I have found that 3 DTS packages exist for this issue:
Export the Journal Tables
Clear the Journal Tables.
Restore the Journal Tables.
I have added these packages (using the three .dtsx files that are in the server, in the "Examples" folder) and, after that, run the packages in the proper order. I have some doubts that I would appreciate if you could solve them:
1.- When I run "Export the Journal Tables" package, I can NOT make a selection of journals (for example, using Time dimension).There is no possibility. Is it possible modify this DTS package to export only some selected journals? In case it is, how?
2.- In order to restore journals table, firstly you need to clear all the table using "Clear the Journal Tables" package (I tried to do it without clearing all the journals, and I got an error message that said that I have to clear the journal table before importing ). Would it be possible to restore/import only some journals WITHOUT clearing ALL the previous journals??
3.- I have exported the Journal Table to an output file, clear all the journals in the Journal Table (using the proper package) and run the "Restore the Journal Tables" package using the output file I have gotten before. I have gotten this error: "Exception from HRESULT: 0x800A005B". Do you know what's the problem?
4.- Dou you know another way of loading journals using an output file in SAP BPC intead of entering every journal using the template?
Thank you very much.There may be options to your process, but as I have mentioned in other strings, the Journals in the BPC for Microsoft version are sequenced. That means that there is a system generated sequence ID for each journal. Any individual selection of journals would possibly cause an issue for the sequence. I have not seen any past work in SSIS to detach the records for export or import. It may be possible, but I would assume it will take some core SQL coding.
Regarding your error, you may need to verify that you have the security set correctly to use Journals and use the Data Manager capabilities. Typically, when security tasks are not correct, you will get an error similar to your HRRESULTX.... error.
An option for loading the details is to build a worksheet in EVDRE, aggregate the data and send it to the cube at a level that is easy to save the file and submit consolidated results. Just make sure you send all "like" records at an aggregated to a base member, and send to a datasrc to identify the extra details. Then store the excel file with the input values.
Hope this helps.
Edited by: Petar Daniel on Feb 16, 2009 10:06 PM -
Import/export contacs using Ovi
I want to exchage all the contact inoformation and messages between a N73 and a 5800 XpressMusic.
I use Ovi, and I can not find out how to save all the information, and to export them to the cell phones!
what should I do???Sync your contacts and messages with Ovi using the N73 when complete, sync 5800, the contacts will sync automatically, but you will have to drag the messages from Ovi Suite to the phone (just click and hold the messages you want to transfer and drag to the 'phone icon on the Ovi suite screen)
Good Luck
If I have helped at all, a click on the White Star is always appreciated :
you can also help others by marking 'accept as solution' -
ABAP command IMPORT/EXPORT
Hi!
I would like to know whats the replacement for the IMPORT and export commands used in 4.7c in ECC6. Can anyone tell me whats the replacement commands for import and export command that is used in abap/4 4.7c for ECC6.
ThanksHi Aarav,
there is nothing like replacement for import/export.there is another statements to transferdata which are Set/Get.
when you are working with sap you have sessions.so in between session if you want to transfer data then you will use set/get parameters.import/export are used within the session.means you opened se38 and written a program and then go back to se38 initial screen and entered another program name and in that program you want the data which is in the previous program you have written in the se38 in same session.
reward points if helpful. -
SAP HANA: IMPORT/EXPORT Views
We can Import/export tables using hdbsql CLI.
But Is there any way by which we can export/import Views(attribute,analytic,calculation) using hdbsql CLI.
I raised above question some days back
SAP HANA: IMPORT/EXPORT Views | SCN
Also while checking on internet I found another link for the same issue:
http://scn.sap.com/thread/2141404
And from experts answers, I came to conclusion that Import/Export Views(Attribute/Analytic/Calculation views)in SAP HANA is not possible through hdbsql CLI/ SQL commands.Now Is there a way where I can confirm this from SAP HANA program management guys?Lars,
Thanks for the explanation.
What I am trying to achieve is to create an automate script which should export all tables and views for a schema and again import tables and views in a different schema.
table part is done, But stuck in view part.
I tried the below command and was able to export the calculation view which I created in Content and exists as
_SYS_BIC-->Package(same name as schema where all the tables are stored) --> View Name.
Command used was:
EXPORT "<Schema_Name>"."<Package_Name>/<View_Name>" INTO '<path>'
Now I have 2 ques :
1) I am not sure how to import this exported view. I tried below command but it failed:
IMPORT "<Schema_Name>"."<Package_Name>/<View_Name>" FROM '<path>'
2) Not sure how to export and import all the views.
I did IMPORT SCAN of the path as well and found below entries for the exported view in the mentioned path:
SCHEMA_NAME, OBJECT_NAME, OBJECT_TYPE, EXISTS
"_SYS_BIC", "<Packagename>/CalculationViewName>", "VIEW", 1
"_SYS_BIC", "<Packagename>/AnalyticViewName>", "VIEW", 1
"_SYS_BIC", "<Packagename>/CalculationViewName>/olap", "VIEW", 1
"_SYS_BIC", "vwTile1ALLData", "VIEW", 1
Any Inputs would definitely help. Thanks. -
Import/Export Data Forms in SmartView 11.1.2
Hi,
Can we Import and Export Planning Data Forms using Smartview in 11.1.2? I know there is Offline Data Form, but is there an option of Exporting and Importing planning Data Forms using Smart View in 11.1.2?
Regards,
SGNo, I don't believe you can import/export forms using SmartView.
However LCM is available and is pretty painless:
http://download.oracle.com/docs/cd/E17236_01/epm.1112/epm_lifecycle_management/apgs04s05.html
Regards,
Cameron Lackpour -
How to Export data to memory and Import data from memory?
hi
I have the follwoing some code of program.
The data is not filled from memory. I have to find what is the wrong in code.
REPORT ZIFT_TEST1..
SELECT-OPTIONS : so_budat FOR bkpf-budat,
sd_saknr FOR ska1-saknr.
EXPORT so_budat TO MEMORY ID 'ZBUDAT'.
EXPORT sd_saknr TO MEMORY ID 'ZSAKNR'.
SUBMIT ZIFT_TEST2 AND RETURN.
REPORT ZIFT_TEST2..
SELECT-OPTIONS so_budat FOR bsis-budat NO DATABASE SELECTION.
SELECT-OPTIONS: SD_SAKNR FOR SKA1-SAKNR MATCHCODE OBJECT SAKO.
import so_budat = so_budat from memory id 'ZBUDAT'.
import sd_saknr from memory id 'ZSAKNR'.
Regards
Iftikhar Ali
Islamabad.Program1----
REPORT demo_program_rep3 NO STANDARD PAGE HEADING.
DATA: number TYPE i,
itab TYPE TABLE OF i.
SET PF-STATUS 'MYBACK'.
DO 5 TIMES.
number = sy-index.
APPEND number TO itab.
WRITE / number.
ENDDO.
TOP-OF-PAGE.
WRITE 'Report 2'.
ULINE.
AT USER-COMMAND.
CASE sy-ucomm.
WHEN 'MBCK'.
EXPORT itab TO MEMORY ID 'HK'.
LEAVE.
ENDCASE.
Program2----
REPORT demo_programm_leave NO STANDARD PAGE HEADING.
DATA: itab TYPE TABLE OF i,
num TYPE i.
SUBMIT demo_program_rep3 AND RETURN.
IMPORT itab FROM MEMORY ID 'HK'.
LOOP AT itab INTO num.
WRITE / num.
ENDLOOP.
TOP-OF-PAGE.
WRITE 'Report 1'.
ULINE.
end of program 2----
Now you copy this programs with same name as i mentioned and execute demo_programm_leave Program.you will understnad clearly.
Notes::: A logical memory model illustrates how the main memory is distributed from the view of executable programs. A distinction is made here between external sessions and internal sessions .
An external session is usually linked to an R/3 window. You can create an external session by choosing System/Create session, or by entering /o in the command field. An external session is broken down further into internal sessions. Program data is only visible within an internal session. Each external session can include up to 20 internal sessions (stacks).
Every program you start runs in an internal session.
To copy a set of ABAP variables and their current values (data cluster) to the ABAP memory, use the EXPORT TO MEMORY ID statement. The (up to 32 characters) is used to identify the different data clusters.
If you repeat an EXPORT TO MEMORY ID statement to an existing data cluster, the new data overwrites the old.
To copy data from ABAP memory to the corresponding fields of an ABAP program, use the IMPORT FROM MEMORY ID statement. -
ECC6 IMPORT/EXPORT to MEMORY ID 'OPENFI00002213E'
Hi experts,
I have a problem with IMPORT/EXPORT in ECC6 within the same program. The short dump happenned at IMPORT time. Here is part of my code.
DATA: MEMID13(15) VALUE 'OPENFI00002213E',
T_VBKPF LIKE VBKPF OCCURS 0 WITH HEADER LINE.
EXPORT t_vbkpf TO MEMORY ID memid13.
CALL TRANSACTION 'FV60'
USING bdcdata
OPTIONS FROM s_ctu_params
MESSAGES INTO bdcmsgcoll.
IMPORT t_vbkpf FROM MEMORY ID memid13.
In 4.6C, the internal table t_vbkpf was updated with the created document from the transaction 'FV60' call but it gave a short dump in ECC6.
Runtime Errors CONNE_IMPORT_WRONG_STRUCTURE
Except. CX_SY_IMPORT_MISMATCH_ERROR
Date and Time 2007.12.06 15:46:46
Short text
Error when importing object "T_VBKPF".
Please help, thanks!
CHuongHi,
In ECC 6 for import from memory you need the import structure will be flat , character-type data
The following is from documentation.
+
If MEMORY is specified, the data cluster that was written to the ABAP Memory under the identification specified in id with the statement EXPORT is imported. For id, a flat , character-type data object is expected. This object contains the identification of the data cluster.
+
otherwise use this way
TYPES:
BEGIN OF tab,
col1 TYPE i,
col2 TYPE i,
END OF tab.
DATA:
wa_indx TYPE indx,
wa_itab TYPE tab,
cl TYPE mandt VALUE '100',
itab TYPE STANDARD TABLE OF tab.
IMPORT tab = itab
FROM DATABASE indx(xy)
TO wa_indx
CLIENT cl
ID 'TABLE'.
WRITE: wa_indx-aedat, wa_indx-usera, wa_indx-pgmid.
ULINE.
LOOP AT itab INTO wa_itab.
WRITE: / wa_itab-col1, wa_itab-col2.
ENDLOOP.
a® -
Submit or Import / Export Memory?
Hi Forums,
I have to two reports which are exactly the same. One is called from the Portal (which is a Function Module) and one is run in ECC (so it is an ABAP report). These both exist now today.
To avoid duplicate effort I would like to have the Portal Report (Function Module) call the ABAP report where I would like to keep all main report logic and any future changes.
What I would like to accomplish is to have the FM call the ABAP report passing in a table of records (what would be entered on selection screen on ECC report) and then the ABAP report would pass back a table of COMPLETED records and leaving the function module only to pass back this table to calling program.
Would a SUMBIT <program> etc work for this? OR would this be better suited for a using a import \ export?
Any further questions let me know.
CheersMy code is currently setup like this and I am now getting the error:
IMPORT_ALIGNMENT_MISMATCH
Error analysis
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_IMPORT_MISMATCH_ERROR', was
not caught in
procedure "IMPORT_SELTAB_FROM_MEM" "(FORM)", nor was it propagated by a RAISING
clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
When importing object "%_SELTAB", the structure did not match the
structure of the target object. The error occurred in component
no. 2.
This may be due to one of the following reasons:
- the structure is actually different (the next field has, for
example, a different data type) or
- the same sequence of components were exported and imported,
but the fields were from other include units.
DATA: txtlines(3000) TYPE c OCCURS 0 WITH HEADER LINE.
DATA:lt_listobject TYPE TABLE OF abaplist.
DATA: lt_passed_ee TYPE RANGE OF pernr WITH HEADER LINE,
ls_passed_ee LIKE LINE OF lt_passed_ee.
"ls_passed_ee-selname = 'PNPPERNR'.
ls_passed_ee-sign = 'I'.
ls_passed_ee-option = 'EQ'.
*load each pernr that is passed in from the UI and pass to report
LOOP AT lt_ee INTO ls_direct_ee.
ls_passed_ee-low = ls_direct_ee-objid.
APPEND ls_passed_ee TO lt_passed_ee.
ENDLOOP.
SET PARAMETER ID 'PER' FIELD space.
SUBMIT zhrecm_spend_ee WITH SELECTION-TABLE lt_passed_ee
WITH pnppernr IN lt_passed_ee
EXPORTING LIST TO MEMORY
AND RETURN.
* read list from memory into table
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = lt_listobject
EXCEPTIONS
not_found = 1
OTHERS = 2. -
Use of IMPORT/EXPORT in methods
Hi,
Is it possible to use IMPORT/EXPORT statements in the methods which are part of BADI's.
Thanks
Rajavardhana reddyHI,
Import
TYPES: BEGIN OF OBJ_LINE,
CLUSTERNAME(30),
PROGRAMNAME(10),
END OF OBJ_LINE,
BEGIN OF B_LINE,
FIELD_1 TYPE I,
FIELD_2(1) TYPE N,
END OF B_LINE.
DATA: OBJ_TAB TYPE STANDARD TABLE OF OBJ_LINE,
OBJ_WA TYPE OBJ_LINE,
B_PROG TYPE STANDARD TABLE OF B_LINE,
B_WA TYPE B_LINE,
A(10),
C_PROG LIKE SYST.
MOVE: 'A' TO OBJ_WA-CLUSTERNAME.
APPEND OBJ_WA TO OBJ_TAB. CLEAR OBJ_WA.
MOVE: 'B' TO OBJ_WA-CLUSTERNAME,
'B_PROG' TO OBJ_WA-PROGRAMNAME.
APPEND OBJ_WA TO OBJ_TAB. CLEAR OBJ_WA.
MOVE: 'C' TO OBJ_WA-CLUSTERNAME,
'C_PROG' TO OBJ_WA-PROGRAMNAME.
APPEND OBJ_WA TO OBJ_TAB. CLEAR OBJ_WA.
IMPORT (OBJ_TAB) FROM MEMORY ID 'ABCD'.
export
TYPES: BEGIN OF OBJ_LINE,
CLUSTERNAME(30),
PROGRAMNAME(10),
END OF OBJ_LINE.
DATA: OBJ_TAB TYPE STANDARD TABLE OF OBJ_LINE,
OBJ_WA TYPE OBJ_LINE.
TYPES: BEGIN OF B_LINE,
FIELD_1 TYPE I,
FIELD_2(1) TYPE N,
END OF B_LINE.
DATA: B_PROG TYPE STANDARD TABLE OF B_LINE.
DATA: A(10),
C_PROG LIKE SYST.
MOVE: 'A' TO OBJ_WA-CLUSTERNAME.
APPEND OBJ_WA TO OBJ_TAB. CLEAR OBJ_WA.
MOVE: 'B' TO OBJ_WA-CLUSTERNAME,
'B_PROG' TO OBJ_WA-PROGRAMNAME.
APPEND OBJ_WA TO OBJ_TAB. CLEAR OBJ_WA.
MOVE: 'C' TO OBJ_WA-CLUSTERNAME,
'C_PROG' TO OBJ_WA-PROGRAMNAME.
APPEND OBJ_WA TO OBJ_TAB. CLEAR OBJ_WA.
EXPORT (OBJ_TAB) TO MEMORY ID 'ABCD'.
Regards,
Laxmi. -
Import/export to memory and global variables
Hi,
Im working on some functionality using import/export to memory. One of the statements is:
import gf_memid_exit = g_exit_flag gf_memid_result = t352r from memory id 'ZREV_EXT'.
Im using global variables to contain the cluster names. But this is not working. When I change the global variables into local variables, it works. It this normal? Because I would like to have global variables (even better I would like to have global constants) to declare in order to use them within the program.
Any ideas?
With regards,
MikeHi Mike...
I think with import u can use global or local variables..in debug mode pl. check when u r using global variables..whether it is getting cleared or overwritten by some other values or not. Or try with global constants..it should work...
Regards,
Joy. -
Hello.
While customizing WM screens I noticed that using the memory ID / parameter ID doesn't work for me.
I get sy-subrc 4 even though I made set/export before that.
Examples:
1. export gv_matnr to memory id '/XLRF/4100'.
import gv_matnr from memory id '/XLRF/4100'.
2. set parameter id '/XLRF/4100' field gv_matnr.
get parameter id '/XLRF/4100' field gv_matnr.
I don't understand how come.
Any ideas anyone ???
Regards,
RebekaHi,
Try using this syntax for exporting:
e_data_storage_out = the variable of the data type you want to export your data in
e_data_storage_in = the variable of the data type you want to import your data in
e_memory_id = memory id where you want to store the data
export e_data_storage_out
from input
to memory id e_memory_id.
Try using this syntax for importing:
IMPORT e_data_storage_out
to e_data_storage_in
from memory id e_memory_id. -
Memory Limit for "IMPORT/EXPORT from MEMORY ID" statement
Hi All,
Can anyone tell me whether there is any memory limit exists for "IMPORT/EXPORT from MEMORY ID" statement.
Like may be we can transfer xx MB of data via this......or it is open, we can transfer any amount of data to ABAP memory via this.
Regards
Munish Garg1. Each user sessions have external sessions and each external sessions have internal sessions.
2. The programs being executed in the internal sessions can access ABAP memory
3.ABAP memory is a storage area for internal program variables like fields, structures, internal tables,,They can be passed between internal sessions of an external session.
4. you can transfer data through ABAp memory using IMPORT and EXPORT statements
5. after IMPORT FROM MEMORY ID <id> , you can use sy-subrc to check the existance of the cluster ID. here sy-subrc is not used to check whether the Import was successful or not. -
Import/Export from Memory ID
hie guys
im in a program that is importing values from a memory id however there are no values being imported and thus i want to find out wer the memory id is being given data. i tryd the wer used list and it dd not give me anything, please assistI managed to find the program where the export statement for the memory ID was and also where the import statement was and managed to resolve my error.
many thanks.
Maybe you are looking for
-
Finding query access frequency or how many times a query has been executed?
Dear Experts I need to find the total number of access frequency of individual queries that are requested by the users say at a particular time. Say there are 20 distinct queries requested in the time difference of 3 hours. All of the 20 queries or s
-
Inserting a small graphics in a picture control
Does any one have an example code for inserting a small graphics/8 bit bmp file (15x15) in a relatively large (240x360) 8 bit jpeg image at known location in LabVIEW using Picture Control? Thanks in advance.
-
What are the benefits of registering an iPod onto my iTunes account?
I just registered my Ipod onto Itunes does It help against theft?
-
How can I fill mask with pattern?
Hi Would you please help me? How can a add pattern to a mask? I drew a motion mask on video clip and now I want to fill it with pattern that I made in Photoshop and saved as PSD, what should I do? How can I fill mask with specific pattern? Thanks for
-
OCI client notification without a AQ queue
Hi Forum, Well, put it in the simplest manner, I want to run a perl script when a Insert trigger occurs. And I was wondering if it is possible that a OCI client be notified, when a trigger occurs, without using a AQ queue ? I ask that because in Orac