Export ABAP Classes to File
How can I export an ABAP class to file? After exporting how can I import an ABAP class from file?
Thanks
Rene
Hello,
I have the same problem: export and import ABAP classes.
You said to check out the CL_OO_* classes but I did not
find a method to export or import classes to or from file.
I really would be thankful when you could give me a more specific answer.
Regards,
Alex
Similar Messages
-
File to Proxy Scenario using ABAP Class and DB Multi Connect
Hello Friends,
I have a scenario below and a proposed solution. I would like some input as to whether i am headed the right way.
Scenario: Thousands of records come in from the legacy accounting system. The fields of these records need to be mapped to SAP fields using cross-reference tables stored in DB2. Finally, summarize the records by deleting a few fields and feed to R/3.
Solution i proposed:
(1) File Adapter is used to send the file
(2) Although JDBC adapter comes first to mind but since i need to access the DB2 tables multiple times for each record i propose to use an ABAP class for the mapping. Within the ABAP class the intent is to open an database connection to DB2, read the relevant cross tables using native SQL and finally generate the output XML.
(3) Reciever is Proxy which feeds this generated XML to SAP for creating posting via BAPI_ACC_DOCUMENT_POST
Question: Is the above solution correct or is there a better method to implement this scenario?
Please let me know.
Thanks,
Minhaj.Looks fine. Few observations -
1. Whether it is ABAP class or Mapping in RFC lookup, you are making multiple trips to the database.
2. It looks like PI is being used only for reading the file and converting it to XML.
3. If using PI is not mandatory, then a complete ABAP class on ECC it self would be faster than swtching between PI Java, PI ABAP then round trips to DB2 finally data push to ECC.
If you could look at something like fetching all the required RFC look up data in one go and then map the fields according, might save u on processor and network resources.
VJ -
ABAP CLASSES - XI don't create the Target File..
Hallo,
I have a problema in XI when I use an ABAP Class.
This is My FLOW:
1) R/3 SEND an IDOC DEBMAS to XI un idoc DEBMAS(Customer data)
2) XI have this Interface Mapping: Interface_Mapping_Anagrafica_Cliente.
It si composed on:
- Input: IDOC (DEBMAS)
- 1° Mapping ==> named: Message_Mapping_Anagrafica_Cliente
This mapping, from IDOC DEBMAS, create the message type Message_Type_Anagrafica_Cliente.
- 2° Mapping ==> Classe ABAP
This mapping, from Message_Type_Anagrafica_Cliente create the message type Message_Type_Click.
- Output: Message_Type_Click
3) I want that this Message_Type_Click will be in the file.
But, if I execute the transaction SXMB_MONI in XI, I can see the IDOC OK .. but if I make double click on it, I don't see the Payload for the target file. Infact the target file is not be created by XI...
I have made debug after my class and I found a Problem in the Trace with type E with message: CL_MAPPING_XMS_PLSRV3-ENTER_PLSRV.
What is this?
Can you help me?
Thanks.
MoniaHi Monia,
first put your trace to 3: SXMB_ADM, Integration Engine Configuaration, Specific Configuration, Runtime/Trace Level
Second delete your abap mapping from your interface mapping and look in the monitoring for the output. Is it what you expect? Is it the datatype the abap mapping can work with?
Copy the result as source for the next test. Now you put the ABAP mapping inside and delete the message mapping from your interface mapping. Test with transaction SXI_MAPPING_TEST. Look to the weblog <a href="/people/sameer.shadab/blog/2005/09/29/testing-abap-mapping ABAP Mapping</a> how to test an ABAP mapping.
The problem with more than one mapping program in one interface mapping is that you see only the result of both!
Regards,
Udo -
XML to flat File:ABAP Class
Hi ,
Please can someone answer my question asap.
I have to write an ABAP Class which receives an XML Document which has multiple IDOCS.The IDOC has several Segments which can repeat and also the segments have Sub-Segments.
Please can someone provide me a sample code which can convert the fields of each segment to a line of the output flat file.
I need a flat file where fields under each segment should come in one line.I mean the control record should come in one line.The fields of 1st segment ex:E1EDK01 should come in 2nd line.....
Please revert.
Thanks in Advance,
Harish.You will need to use ABAP ixml technology to parse the content from the xml file:
You can reference following ABAP mapping.
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/15ecdf90-0201-0010-d792-941a3c3c30a4
or SAP help doc:
http://help.sap.com/erp2005_ehp_04/helpdata/DE/86/8280d212d511d5991b00508b6b8b11/frameset.htm
Regards.
Liang -
How to export local class to global class in abap ?
is there any report that can export local class to a global class ?
thanks !Hi,
you can go to SE24 and there you can create a new class with reference to the class already created and your new class will have the same properties as your local class. -
EXPORT ABAP ERROR (BEK) ERROR: SAPSYSTEMNAME not in environment
HI ALL,
we have started migration of ecc6.0 from windows (mssql) to linux(maxdb). While taking export abap all the export packages are ended with same error . i have set the envirornment variables for jdk. even though i am getting the same error.here i paste the log
Unloading of 'TODIR' export package: ERROR
E:\usr\sap\DE5\SYS\exe\run\R3load.exe: sccsid @(#) $Id: //bas/700_REL/src/R3ld/R3load/R3ldmain.c#21 $ SAP
E:\usr\sap\DE5\SYS\exe\run\R3load.exe: version R7.00/V1.4 [UNICODE]
Compiled May 3 2010 23:35:53
E:\usr\sap\DE5\SYS\exe\run\R3load.exe -e TODIR.cmd -datacodepage 4103 -l TODIR.log -stop_on_error
(DB) INFO: connected to DB
(DB) INFO: Export without hintfile
(GSI) INFO: dbname = "DE5MEXICO "
(GSI) INFO: vname = "MSSQL "
(GSI) INFO: hostname = "MEXICO "
(GSI) INFO: sysname = "Windows NT"
(GSI) INFO: nodename = "MEXICO"
(GSI) INFO: release = "5.2"
(GSI) INFO: version = "3790 Service Pack 2"
(GSI) INFO: machine = "2x Intel 80686 (Mod 23 Step 8)"
(BEK) ERROR: SAPSYSTEMNAME not in environment
E:\usr\sap\DE5\SYS\exe\run\R3load.exe: job finished with 1 error(s)
E:\usr\sap\DE5\SYS\exe\run\R3load.exe: END OF LOG: 20110510080946
E:\usr\sap\DE5\SYS\exe\run\R3load.exe: START OF LOG: 20110510081801
E:\usr\sap\DE5\SYS\exe\run\R3load.exe: sccsid @(#) $Id: //bas/700_REL/src/R3ld/R3load/R3ldmain.c#21 $ SAP
E:\usr\sap\DE5\SYS\exe\run\R3load.exe: version R7.00/V1.4 [UNICODE]
Compiled May 3 2010 23:35:53
E:\usr\sap\DE5\SYS\exe\run\R3load.exe -e TODIR.cmd -datacodepage 4103 -l TODIR.log -stop_on_error
(DB) INFO: connected to DB
(DB) INFO: Export without hintfile
(RD) ERROR: unexpected end of file "F:\mexico_latest_export\ABAP\DATA\TODIR.TOC"
(WTF) INFO: expected error, don't panic ...
(GSI) INFO: dbname = "DE5MEXICO "
(GSI) INFO: vname = "MSSQL "
(GSI) INFO: hostname = "MEXICO "
(GSI) INFO: sysname = "Windows NT"
(GSI) INFO: nodename = "MEXICO"
(GSI) INFO: release = "5.2"
(GSI) INFO: version = "3790 Service Pack 2"
(GSI) INFO: machine = "2x Intel 80686 (Mod 23 Step 8)"
(BEK) ERROR: SAPSYSTEMNAME not in environment
E:\usr\sap\DE5\SYS\exe\run\R3load.exe: job finished with 1 error(s)
E:\usr\sap\DE5\SYS\exe\run\R3load.exe: END OF LOG: 20110510081801
this is export_monitor log
Export Monitor jobs: running 0, waiting 5, completed 2, failed 44, total 51.
Export Monitor jobs: running 1, waiting 4, completed 2, failed 44, total 51.
Export Monitor jobs: running 2, waiting 3, completed 2, failed 44, total 51.
Export Monitor jobs: running 3, waiting 2, completed 2, failed 44, total 51.
Export Monitor jobs: running 4, waiting 1, completed 2, failed 44, total 51.
Unloading of 'SCPRVALS' export package: ERROR
Export Monitor jobs: running 3, waiting 1, completed 2, failed 45, total 51.
Unloading of 'SCPRSVALS' export package: ERROR
Export Monitor jobs: running 2, waiting 1, completed 2, failed 46, total 51.
Unloading of 'SAPUSER' export package: ERROR
Export Monitor jobs: running 1, waiting 1, completed 2, failed 47, total 51.
Unloading of 'SAPUSER1' export package: ERROR
Export Monitor jobs: running 0, waiting 1, completed 2, failed 48, total 51.
Export Monitor jobs: running 1, waiting 0, completed 2, failed 48, total 51.
Unloading of 'TODIR' export package: ERROR
Export Monitor jobs: running 0, waiting 0, completed 2, failed 49, total 51.
TRACE 2011-05-10 08:18:31.884
2011-05-10 08:18:31.884 FSPath(C:\j2sdk1.4.2_16\bin\java.exe) done
TRACE 2011-05-10 08:18:31.884
2011-05-10 08:18:31.884 ChildApplication(C:\j2sdk1.4.2_16\bin\java.exe).run(): 103. done.
TRACE 2011-05-10 08:18:31.884
2011-05-10 08:18:31.884 Java.run() done: 103
TRACE 2011-05-10 08:18:31.884
2011-05-10 08:18:31.884 FSPath(C:\j2sdk1.4.2_16\bin\java.exe) done
TRACE 2011-05-10 08:18:31.884
2011-05-10 08:18:31.884 ChildApplication(C:\j2sdk1.4.2_16\bin\java.exe).runAs() done
TRACE 2011-05-10 08:18:31.884
Function setMessageIdOfExceptionMessage: nw.programError
ERROR 2011-05-10 08:18:31.884
CJSlibModule::writeError_impl()
CJS-30022 Program 'Migration Monitor' exits with error code 103. For details see log file(s) export_monitor.java.log, export_monitor.log.
TRACE 2011-05-10 08:18:31.884 [iaxxejsbas.hpp:483]
EJS_Base::dispatchFunctionCall()
JS Callback has thrown unknown exception. Rethrowing.
ERROR 2011-05-10 08:18:31.900 [sixxcstepexecute.cpp:951]
FCO-00011 The step runMigrationMonitor with step key |NW_Export|ind|ind|ind|ind|0|0|NW_ABAP_Export_Dialog|ind|ind|ind|ind|4|0|NW_ABAP_Export|ind|ind|ind|ind|0|0|runMigrationMonitor was executed with status ERROR ( Last error reported by the step :Program 'Migration Monitor' exits with error code 103. For details see log file(s) export_monitor.java.log, export_monitor.log.).
TRACE 2011-05-10 08:18:31.900 [iaxxgenimp.cpp:752]
CGuiEngineImp::showMessageBox
<html> <head> </head> <body> <p> An error occurred while processing service SAP ERP 6.0 Support Release 3 > Software Life-Cycle Options > System Copy > MS SQL Server > Source System Export > Central System > Based on AS ABAP > Database Instance Export( Last error reported by the step :Program 'Migration Monitor' exits with error code 103. For details see log file(s) export_monitor.java.log, export_monitor.log.). You may now </p> <ul> <li> choose <i>Retry</i> to repeat the current step. </li> <li> choose <i>View Log</i> to get more information about the error. </li> <li> stop the task and continue with it later. </li> </ul> <p> Log files are written to C:\Program Files/sapinst_instdir/ERP/LM/COPY/MSS/EXP/CENTRAL/AS-ABAP/EXP. </p> </body></html>
TRACE 2011-05-10 08:18:31.900 [iaxxgenimp.cpp:1255]
CGuiEngineImp::acceptAnswerForBlockingRequest
Waiting for an answer from GUI
can any one please help me thanks in advance
Vardhan!Sorry for the above paste,
HI ALL, we have started migration of ecc6.0 from windows (mssql) to linux(maxdb). While taking export abap all the export packages are ended with same error . i have set the envirornment variables for jdk. even though i am getting the same error.here i paste the log Unloading of 'TODIR' export package:
ERROR E:\usr\sap\DE5\SYS\exe\run\R3load.exe: sccsid @(#) $Id: //bas/700_REL/src/R3ld/R3load/R3ldmain.c#21 $ SAP E:\usr\sap\DE5\SYS\exe\run\R3load.exe: version R7.00/V1.4 [UNICODE] Compiled May 3 2010 23:35:53 E:\usr\sap\DE5\SYS\exe\run\R3load.exe -e TODIR.cmd -datacodepage 4103 -l TODIR.log -stop_on_error (DB)
INFO: connected to DB (DB) INFO: Export without hintfile (GSI)
INFO: dbname = "DE5MEXICO " (GSI) INFO: vname = "MSSQL " (GSI)
INFO: hostname = "MEXICO " (GSI) INFO: sysname = "Windows NT" (GSI)
INFO: nodename = "MEXICO" (GSI)
INFO: release = "5.2" (GSI)
INFO: version = "3790 Service Pack 2" (GSI)
INFO: machine = "2x Intel 80686 (Mod 23 Step 8)"
(BEK) ERROR: SAPSYSTEMNAME not in environment
E:\usr\sap\DE5\SYS\exe\run\R3load.exe: job finished with 1 error(s) E:\usr\sap\DE5\SYS\exe\run\R3load.exe: END OF LOG: 20110510080946 E:\usr\sap\DE5\SYS\exe\run\R3load.exe:
START OF LOG: 20110510081801 E:\usr\sap\DE5\SYS\exe\run\R3load.exe: sccsid @(#) $Id: //bas/700_REL/src/R3ld/R3load/R3ldmain.c#21 $ SAP E:\usr\sap\DE5\SYS\exe\run\R3load.
exe: version R7.00/V1.4 [UNICODE] Compiled May 3 2010 23:35:53 E:\usr\sap\DE5\SYS\exe\run\R3load.exe -e TODIR.cmd -datacodepage 4103 -l TODIR.log -stop_on_error (DB) INFO: connected to DB (DB)
INFO: Export without hintfile (RD)
ERROR: unexpected end of file "F:\mexico_latest_export\ABAP\DATA\TODIR.TOC" (WTF)
INFO: expected error, don't panic ... (GSI)
INFO: dbname = "DE5MEXICO " (GSI)
INFO: vname = "MSSQL " (GSI)
INFO: hostname = "MEXICO " (GSI)
INFO: sysname = "Windows NT" (GSI)
INFO: nodename = "MEXICO" (GSI)
INFO: release = "5.2" (GSI)
INFO: version = "3790 Service Pack 2" (GSI)
INFO: machine = "2x Intel 80686 (Mod 23 Step 8)"
(BEK) ERROR: SAPSYSTEMNAME not in environment E:\usr\sap\DE5\SYS\exe\run\R3load.exe: job finished with 1 error(s) E:\usr\sap\DE5\SYS\exe\run\R3load.exe: END OF LOG: 2011051008
Can any help me in solving the above error
Thanks in advance
Vardhan! -
Create an event using abap class (transaction swetypv)
Hi,
Im trying to create an event by using an abap class.
The purpose is to update po reqs using BAPI_REQUISITION_CHANGE upon saving a sales order. The exit is called on saving a sales order MV45AFZZ.
In MV45AFZZ the method cl_swf_evt_event is called and the object type, event, objkey and obj cat is exported.
Object Type = ZBUS203200
Event = Z_TRAD_ORDER_CHANGE_OO
I created my class ZCL_UPDATE_PUR_REQ (by copying CL_SWF_RUN_WIM_HANDLER
And using interface name BI_EVENT_HANDLER_STATIC )
In /nswetypv I assigned Class ZCL_UPDATE_PUR_REQ
to Object Type ZBUS203200
And Event Z_TRAD_ORDER_CHANGE_OO.
All that works fine except for passing in the objectkey.
In Class ZCL_UPDATE_PUR_REQ
Method BI_EVENT_HANDLER_STATIC~ON_EVENT
When I go to create a parameter for object key, I get the message
Parameters/exceptions of inherited methods or events cannot be changed.
Has anyone any suggestions for how I can get the object key into the method call BI_EVENT_HANDLER_STATIC~ON_EVENT?
Thanks
AnnHi Johann,
You don't need a class to do the job if you are on a 6.10 or higher system. Use command CALL TRANSFORMATION to create an XML from an internal table.
Regards,
John. -
Exporting Hierarchy in Flat File Format
Hi All,
I exporting hierarchy in local file from transaction code OB58 (Balance sheet Hierarchy and Profit & Loss Hiearchy) , KSH3 (Cost Center Hierarchy), KCH3 (Profit Center Hierarchy). But the hierarchy is commming as it is displayed at the R3 screen.
I have to load these hierarchies in BW through flat file. Is there any method other that writing an ABAP program by which we can extract these hierarchies in Flat file loadable format.
ThanksPerhap's it can help you
[https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/0403a990-0201-0010-38b3-e1fc442848cb?overridelayout=true|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/0403a990-0201-0010-38b3-e1fc442848cb?overridelayout=true]
It's an ABAP program but it works well and you can load your flat file easily -
Importing a class CEX file using TOOL
Hi Forte Users,
Would anyone know how to import a class CEX file using TOOL code? Is there
a class in one of the libraries that I can use to do such a task?
If anyone has some insight into such an endeavor (positive or negative)
please respond!
As well, I would like to express my appreciation for this mailing list - it
has carried some excellent Forte dialogue.
Thanks for all your help!
Geoff Whittington
-----Original Message-----
From: [email protected] [SMTP:[email protected]]
Sent: Wednesday, May 13, 1998 3:54 PM
To: [email protected]
Cc: [email protected]; [email protected];
[email protected]; [email protected]
Subject: Re: Backing up an Environment
Hi Daniel,
How can you use RpClean on an environment repository
which is C-tree ? (Or is there a way to store it as B-tree
with Forte R3 ?)
Note also that your Name Server performances may be
dramatically impoverished after several applications
install/uninstall (say 8 or 10), once your Env. Mgr repository
has grown pretty big. The only way to recycle it is then to restart
it from an export file with the -b option.
Please let me know,
Vincent
On Wed, 13 May 1998 00:03:52 +0200 Daniel Nguyen
<[email protected]> writes:
Hi,
It is normal. The Export of the Environment only contains node
definitions.
You should also loose your partitioning definition in your Workshop.
Have you tried the RpClean on the environment repository ?
I would use the export file only after a crash of the environment on
production
site or restart from a backup of the environment repository without
the
user
connexions.
Hope this helps,
Daniel Nguyen
Freelance Forte Consultant
Chael, Tom wrote:
Every time I export my environment definition and rebuild the
environment repository I loose my application definitions. I have to
go into Econsole/Escript to Uninstall and reinstall my applications.
Is this normal? I am on a Windows NT environment running Forte
2.0.H.1. I have verified that I am using the correct .edf file when I
do my environment rebuild.
-----Original Message-----
From: Don Nelson [SMTP:[email protected]]
Sent: Wednesday, April 29, 1998 5:35 PM
To: Sanchez, Bernardo
Cc: '[email protected]'
Subject: Re: Backing up an Environment
Sanchez,
Try this simple escript:
findactenv
exportenv
exit
Note that this will only export the active environments - no
simulated
environments will be exported.
It's also a good idea to rebuild your environment repository
every now and
then. How often you do it depends partly on how many and how
often you do
deployments, installations, or other changes to the environment.
However,
once a month is not a bad starting point.
Don
At 04:54 PM 4/29/98 -0400, Sanchez, Bernardo wrote:
We are currently running a cron job to backup & clean ourCentralRepository
(bt:central) on a daily basis. This works OK.
We would also like to backup our forte environment on a weeklybasis. Does
anyone have a script to do this?
Thanks in advance.
Bernardo Sanchez DMC Inc.
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive<URL:http://pinehurst.sageit.com/listarchive/>
============================================
Don Nelson
Regional Consulting Manager - Rocky Mountain Region
Forte Software, Inc.
Denver, CO
Phone: 303-265-7709
Corporate voice mail: 510-986-3810
aka: [email protected]
============================================
"When you deal with high numbers, you need higher math." - Hobbes
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive
<URL:http://pinehurst.sageit.com/listarchive/>-
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive
<URL:http://pinehurst.sageit.com/listarchive/>
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com
Or call Juno at (800) 654-JUNO [654-5866]
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>-
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>Hi Forte Users,
Would anyone know how to import a class CEX file using TOOL code? Is there
a class in one of the libraries that I can use to do such a task?
If anyone has some insight into such an endeavor (positive or negative)
please respond!
As well, I would like to express my appreciation for this mailing list - it
has carried some excellent Forte dialogue.
Thanks for all your help!
Geoff Whittington
-----Original Message-----
From: [email protected] [SMTP:[email protected]]
Sent: Wednesday, May 13, 1998 3:54 PM
To: [email protected]
Cc: [email protected]; [email protected];
[email protected]; [email protected]
Subject: Re: Backing up an Environment
Hi Daniel,
How can you use RpClean on an environment repository
which is C-tree ? (Or is there a way to store it as B-tree
with Forte R3 ?)
Note also that your Name Server performances may be
dramatically impoverished after several applications
install/uninstall (say 8 or 10), once your Env. Mgr repository
has grown pretty big. The only way to recycle it is then to restart
it from an export file with the -b option.
Please let me know,
Vincent
On Wed, 13 May 1998 00:03:52 +0200 Daniel Nguyen
<[email protected]> writes:
Hi,
It is normal. The Export of the Environment only contains node
definitions.
You should also loose your partitioning definition in your Workshop.
Have you tried the RpClean on the environment repository ?
I would use the export file only after a crash of the environment on
production
site or restart from a backup of the environment repository without
the
user
connexions.
Hope this helps,
Daniel Nguyen
Freelance Forte Consultant
Chael, Tom wrote:
Every time I export my environment definition and rebuild the
environment repository I loose my application definitions. I have to
go into Econsole/Escript to Uninstall and reinstall my applications.
Is this normal? I am on a Windows NT environment running Forte
2.0.H.1. I have verified that I am using the correct .edf file when I
do my environment rebuild.
-----Original Message-----
From: Don Nelson [SMTP:[email protected]]
Sent: Wednesday, April 29, 1998 5:35 PM
To: Sanchez, Bernardo
Cc: '[email protected]'
Subject: Re: Backing up an Environment
Sanchez,
Try this simple escript:
findactenv
exportenv
exit
Note that this will only export the active environments - no
simulated
environments will be exported.
It's also a good idea to rebuild your environment repository
every now and
then. How often you do it depends partly on how many and how
often you do
deployments, installations, or other changes to the environment.
However,
once a month is not a bad starting point.
Don
At 04:54 PM 4/29/98 -0400, Sanchez, Bernardo wrote:
We are currently running a cron job to backup & clean ourCentralRepository
(bt:central) on a daily basis. This works OK.
We would also like to backup our forte environment on a weeklybasis. Does
anyone have a script to do this?
Thanks in advance.
Bernardo Sanchez DMC Inc.
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive<URL:http://pinehurst.sageit.com/listarchive/>
============================================
Don Nelson
Regional Consulting Manager - Rocky Mountain Region
Forte Software, Inc.
Denver, CO
Phone: 303-265-7709
Corporate voice mail: 510-986-3810
aka: [email protected]
============================================
"When you deal with high numbers, you need higher math." - Hobbes
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive
<URL:http://pinehurst.sageit.com/listarchive/>-
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive
<URL:http://pinehurst.sageit.com/listarchive/>
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com
Or call Juno at (800) 654-JUNO [654-5866]
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>-
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/> -
RE: Importing a class CEX file using TOOL
What exactly are you trying to do when you say "import"? I can think of
two possibilities:
1. You simply want to import the text of the file, in which case
you can use Forte's File class.
2. You actually want to load the class definition and instantiate
an object based on that class. If so, you will need to deploy the class
in a library and use Forte's dynamic class loading and instanceAlloc().
This is well documented in the Forte manuals.
CJ
Chris Johnson
BORN Information Services, Inc.
612-417-6035 (direct)
612-510-4077 (pager)
-----Original Message-----
From: Geoffery Whitington [SMTP:[email protected]]
Sent: Thursday, May 14, 1998 9:24 AM
To: [email protected]
Subject: Importing a class CEX file using TOOL
> ----------
> From: Geoffery
Whitington[SMTP:[email protected]]
> Sent: Thursday, May 14, 1998 9:24:28 AM
> To: [email protected]
> Subject: Importing a class CEX file using TOOL
> Auto forwarded by a Rule
>
Hi Forte Users,
Would anyone know how to import a class CEX file using TOOL
code? Is there
a class in one of the libraries that I can use to do such a
task?
If anyone has some insight into such an endeavor (positive or
negative)
please respond!
As well, I would like to express my appreciation for this
mailing list - it
has carried some excellent Forte dialogue.
Thanks for all your help!
Geoff Whittington
> -----Original Message-----
> From: [email protected] [SMTP:[email protected]]
> Sent: Wednesday, May 13, 1998 3:54 PM
> To: [email protected]
> Cc: [email protected]; [email protected];
> [email protected]; [email protected]
> Subject: Re: Backing up an Environment
>
> Hi Daniel,
>
> How can you use RpClean on an environment repository
> which is C-tree ? (Or is there a way to store it as B-tree
> with Forte R3 ?)
> Note also that your Name Server performances may be
> dramatically impoverished after several applications
> install/uninstall (say 8 or 10), once your Env. Mgr repository
> has grown pretty big. The only way to recycle it is then to
restart
> it from an export file with the -b option.
>
> Please let me know,
>
> Vincent
>
> On Wed, 13 May 1998 00:03:52 +0200 Daniel Nguyen
> <[email protected]> writes:
> >Hi,
> >
> >It is normal. The Export of the Environment only contains
node
> >definitions.
> >You should also loose your partitioning definition in your
Workshop.
> >Have you tried the RpClean on the environment repository ?
> >I would use the export file only after a crash of the
environment on
> >production
> >site or restart from a backup of the environment repository
without
> >the
> >user
> >connexions.
> >
> >Hope this helps,
> >
> >Daniel Nguyen
> >Freelance Forte Consultant
> >
> >Chael, Tom wrote:
> >>
> >> Every time I export my environment definition and rebuild
the
> >> environment repository I loose my application definitions.
I have
> >to
> >> go into Econsole/Escript to Uninstall and reinstall my
applications.
> >> Is this normal? I am on a Windows NT environment running
Forte
> >> 2.0.H.1. I have verified that I am using the correct .edf
file when
> >I
> >> do my environment rebuild.
> >>
> >> -----Original Message-----
> >> From: Don Nelson [SMTP:[email protected]]
> >> Sent: Wednesday, April 29, 1998 5:35 PM
> >> To: Sanchez, Bernardo
> >> Cc: '[email protected]'
> >> Subject: Re: Backing up an Environment
> >>
> >> Sanchez,
> >>
> >> Try this simple escript:
> >>
> >> findactenv
> >> exportenv
> >> exit
> >>
> >> Note that this will only export the active
environments - no
> >> simulated
> >> environments will be exported.
> >>
> >> It's also a good idea to rebuild your environment
repository
> >> every now and
> >> then. How often you do it depends partly on how many
and how
> >> often you do
> >> deployments, installations, or other changes to the
> >environment.
> >> However,
> >> once a month is not a bad starting point.
> >>
> >> Don
> >>
> >> At 04:54 PM 4/29/98 -0400, Sanchez, Bernardo wrote:
> >> >
> >> >We are currently running a cron job to backup & clean
our
> >> CentralRepository
> >> >(bt:central) on a daily basis. This works OK.
> >> >
> >> >We would also like to backup our forte environment on
a weekly
> >> basis. Does
> >> >anyone have a script to do this?
> >> >
> >> >Thanks in advance.
> >> >
> >> >Bernardo Sanchez DMC Inc.
> >> >
> >> >
> >> >
> >> >-
> >> >To unsubscribe, email '[email protected]' with
> >> >'unsubscribe forte-users' as the body of the message.
> >> >Searchable thread archive
> >> <URL:http://pinehurst.sageit.com/listarchive/>
> >> >
> >> >
> >>
> >> ============================================
> >> Don Nelson
> >> Regional Consulting Manager - Rocky Mountain Region
> >> Forte Software, Inc.
> >> Denver, CO
> >> Phone: 303-265-7709
> >> Corporate voice mail: 510-986-3810
> >>
> >> aka: [email protected]
> >> ============================================
> >>
> >> "When you deal with high numbers, you need higher
math." -
> >Hobbes
> >>
> >> -
> >> To unsubscribe, email '[email protected]' with
> >> 'unsubscribe forte-users' as the body of the message.
> >> Searchable thread archive
> >> <URL:http://pinehurst.sageit.com/listarchive/>
> >-
> >To unsubscribe, email '[email protected]' with
> >'unsubscribe forte-users' as the body of the message.
> >Searchable thread archive
> ><URL:http://pinehurst.sageit.com/listarchive/>
> >
>
>
> You don't need to buy Internet access to use free Internet
e-mail.
> Get completely free e-mail from Juno at http://www.juno.com
> Or call Juno at (800) 654-JUNO [654-5866]
> -
> To unsubscribe, email '[email protected]' with
> 'unsubscribe forte-users' as the body of the message.
> Searchable thread archive
<URL:http://pinehurst.sageit.com/listarchive/>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive
<URL:http://pinehurst.sageit.com/listarchive/>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>Hello,
I don't know about any forte classes to do the job.
But, if it just automating the imports that you are concerned with
then you can accomplish it using fscript.
For eg. in UNIX machines you can write a shell script to go through
a directory, get all files with .cex extension and call fscript which
would open a workspace/repository and do an import plan.
Hope this helps
Santha Athiappan
From [email protected] Thu May 14 09:23:53 1998
Received: (from sync@localhost) by pebble.SageIT.com (8.6.10/8.6.9) id IAA01294 for forte-users-outgoing; Thu, 14 May 1998 08:43:25 -0700
Received: (from uucp@localhost) by pebble.SageIT.com (8.6.10/8.6.9) id IAA01283 for <[email protected]>; Thu, 14 May 1998 08:43:22 -0700
Received: from descartes.com(205.210.27.1) by pebble.sagesoln.com via smap (V2.0)
id xma001277; Thu, 14 May 98 08:43:10 -0700
Received: by descartes.com with Internet Mail Service (5.5.1960.3)
id <KRDBVHV9>; Thu, 14 May 1998 11:45:11 -0400
Message-ID: <[email protected]>
From: Geoffery Whitington <[email protected]>
To: "Johnson, Chris CWT-MSP" <[email protected]>
Cc: [email protected]
Subject: RE: Importing a class CEX file using TOOL
Date: Thu, 14 May 1998 11:45:10 -0400
X-Mailer: Internet Mail Service (5.5.1960.3)
Sender: [email protected]
Precedence: bulk
Reply-To: Geoffery Whitington <[email protected]>
Hi Chris,
The goal that I want to achieve is this: at runtime, read a CEX file from
my filesystem and "import class" it into my workspace. It is equivalent to
invoking the menu item "Component,Import Class/Interface".
Basically I am generating hundreds of TOOL classes and I don't want to
manually import them myself. I am aware of the Forte Code generator, but
the classes I wish to generate are much too complex for the generator (I
want virtual attributes based upon NonKeyAttributes, with their own Set and
Get methods, as well as methods with changing/variable parameters -
something I believe that the generator cannot handle).
Cheers,
Geoff Whittington
-----Original Message-----
From: Johnson, Chris CWT-MSP [SMTP:[email protected]]
Sent: Thursday, May 14, 1998 11:19 AM
To: 'Geoffery Whitington'; [email protected]
Subject: RE: Importing a class CEX file using TOOL
What exactly are you trying to do when you say "import"? I can think
of
two possibilities:
1. You simply want to import the text of the file, in which case
you can use Forte's File class.
2. You actually want to load the class definition and instantiate
an object based on that class. If so, you will need to deploy the class
in a library and use Forte's dynamic class loading and instanceAlloc().
This is well documented in the Forte manuals.
CJ
Chris Johnson
BORN Information Services, Inc.
612-417-6035 (direct)
612-510-4077 (pager)
-----Original Message-----
From: Geoffery Whitington [SMTP:[email protected]]
Sent: Thursday, May 14, 1998 9:24 AM
To: [email protected]
Subject: Importing a class CEX file using TOOL
From: Geoffery
Whitington[SMTP:[email protected]]
Sent: Thursday, May 14, 1998 9:24:28 AM
To: [email protected]
Subject: Importing a class CEX file using TOOL
Auto forwarded by a Rule
Hi Forte Users,
Would anyone know how to import a class CEX file using TOOL
code? Is there
a class in one of the libraries that I can use to do such a
task?
If anyone has some insight into such an endeavor (positive or
negative)
please respond!
As well, I would like to express my appreciation for this
mailing list - it
has carried some excellent Forte dialogue.
Thanks for all your help!
Geoff Whittington
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
>
Get Your Private, Free Email at http://www.hotmail.com
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/> -
ABAP Class reference in persistent container
Hi all,
Has anyone ever tried to read an abap class reference from a rule container in the rule's function module?
This doesn't seem to work, unless I am doing something wrong...
Here is the scenario:
I have an abap class ZCL_CLASS instantiated in my workflow container. In one of my workflow steps I pass that class object reference to a rule (Function Module based). In the rule function module I use macro swc_get_element to try to get the class object reference. And there it is not getting anything.
I have already tried the following:
- Try to run macro swc_container_to_runtime on the rule container before retrieving the object reference -> doesn't work. The internal table ac_container doesn't even look different before and after having run this macro.
- Try to replace the declaration of include <CNTN01> by <CNTN02> + <CNTN03>. Doesn't change anything either.
When I look at ac_container in debugging it seems my object reference is there but looks a bit strange:
ELEMENT | TAB_INDEX | ELEMLENGTH | TYPE | VALUE
WFIBF_PORTAB | 000011 | 004 | u | SWFTSTRUCT
WFIBF_PORTAB | 000012 | 032 | C | STEP
WFIBF_PORTAB | 000014 | 032 | C | 1CCC1000C
WFIBF_PORTAB | 000015 | 104 | C | <object key> <class> CL
Any idea of how I should proceed to retrieve my object reference?
For the moment the workaround I found is to pass the object key to the rule and to reinstantiate the class in the rule function module. Not a very elegant solution...
Thanks in advance and kind regards,
PatrickHi Mike,
I understand what you're saying. But the problem is that the swc_get_element macro does not even get me the LPOR value, and therefore I can't call the FIND_BY_LPOR method.
That means I have two solutions:
- Passing the LPOR instead of the object reference to the rule container => Not a very nice solution, for many different reasons.
- Find an alternative to swc_get_element to get the LPOR value.
I had a look at class cl_swf_cnt_container, and it seems it can do the trick for me.
So what I will finally do is:
1. Convert the BOR container into an instance of cl_swf_cnt_container.
DATA: lo_cnt TYPE REF TO if_swf_cnt_container,
lt_container TYPE swconttab.
lt_container[] = ac_container[].
TRY.
CALL METHOD cl_swf_cnt_container=>if_swf_cnt_conversion~create_from_bor_container
EXPORTING
values = lt_container
RECEIVING
container = lo_cnt.
CATCH cx_swf_utl_obj_create_failed.
ENDTRY.
2. Get my container element.
DATA: lo_myobj TYPE REF TO zcl_class.
CALL METHOD lo_cnt->if_swf_ifs_parameter_container~get
EXPORTING
name = 'MyContainerElement'
IMPORTING
value = lo_myobj
I didn't take the time to debug that deep in the standard SAP code, but I assume the if_swf_ifs_parameter_container~get re-instantiates my class for me.
Please feel free to comment.
Kind regards,
Patrick -
Calling a custom tcode using abap class from workflow
Hi Experts,
I have a requirement of calling a custom tcode from my workflow.
For this i have created a class zcl_test ( has if_workflow ) .
I created a method ztest which will call the tcode.
CALL TRANSACTION 'ZTX'. ( My tcode just has 1 input field, for testing purpose )
Then i created a task in whichi hv used this abap class and method.
But the tcode does not run when i execute the workflow.
Please help.
Thank You,
Radhika Vadher.Radhika Vadher
use the sample code to get the data from the task container into the ABAP class
DATA :
w_ref TYPE REF TO if_swf_run_wim_internal,
w_ref_cnt TYPE REF TO if_wapi_workitem_context,
w_wi_ref TYPE REF TO if_swf_ifs_parameter_container.
TRY.
CALL METHOD cl_swf_run_wim_factory=>find_by_wiid
EXPORTING
im_wiid = w_wiid
RECEIVING
re_instance = w_ref.
CATCH cx_swf_run_wim_enq_failed .
CATCH cx_swf_run_wim_read_failed .
CATCH cx_swf_run_wim .
ENDTRY.
CALL METHOD w_ref->get_workitem_context
RECEIVING
re_ctx = w_ref_cnt.
CALL METHOD w_ref_cnt->get_wi_container
RECEIVING
re_container = w_wi_ref.
and the w_wi_ref is having a method GET use that method to get the values of the task container into the ABAP class. -
How to model ABAP classes in a correct manner?
Hi,
I'm creating a conceptual design for an ABAP Objects program. The program should collect some data from standard tables like VBAK, VBAP, etc. (SD environment) in one flat structure/table, calculate some characteristic numbers for each dataset and finally write the datasets to my own flat DDIC table.
This program should run every day as a planned job. There are some hundred up to 5000 datasets to be collected by my program every day...
Now the question: Is it an usual manner to model a ABAP class representing one dataset. Every collected dataset would be represented by its own object at running time...
I hope there are no performance issues!!
Regards,
BenjaminCreating "good" OO classes (I mean reusable, easily extendable, simple to use) is not so simple when you have to deal with a complex model. The only solution is first to read many documentations (http://www.sdn.sap.com/irj/scn/advancedsearch?query=ooProgrammingwithABAPObjects) and then experiment by oneself.
This last is important, because even documentation does not provide exact inputs to all scenarios, and to the limits of the used OOP languages.
Note: I already saw people create "bad" OO classes: simple to use and understand in the initial program, but can't be reused or extended at all. In fact, OO programs can be written as badly as a bad procedural program (I mean without OO), and a procedural program can be written as good as a good OO program (yes it's possible!)
I remember I had rewritten complex classes (there was like inheritance from multiple classes) because my initial choice was not the right one, subclasses became standalone classes with delegation to the old parent class, and things like that. If I had initially released my classes in the first version (to be used by other developers), I probably should have duplicated them (more or less) to implement the new functions.
An existing example of classes that you can't reuse for a slightly different goal, are the tree classes (cl_gui_alv_tree, cl_treemodel*, etc.), if you want to handle trees in memory in background (it dumps if you try to use these classes), that you need to duplicate and adapt. It could be used to handle sets (GS01 transaction), menus, workbench objects where-used lists, file system, etc. Even XML tree classes can't really be used to handle non-XML trees. Currently, you have to create your own code to work with trees in memory in background (by creating our own generic tree class, for building and traversing). I feel SAP might have created such a class and used it in all its tree classes (and we could have benefit from it!)
Edited by: Sandra Rossi on May 5, 2010 2:08 PM GMT+1
(Last chapter corrected a little bit) -
ABAP Class to start Infopackage load
I want to write a little interface that allows a non-tech user to provide a desktop file (.csv) allow a selection of filetype (sales, repair, historical, demand) and a button to start the load process.
The file is then transfered to the BW system and afterwards uploaded using an appropriate Infopackage depending on the filetype.
Are there ABAP classes available that have methods to e.g. start the load of an InfoPackage?
Regards,
EricHi Eric,
if you want to start or even create or change Infopackages by ABAP, you
could also use BAPIs. These are provided in BAPI Ecplorer (TC BAPI)
-SAP Business Information Warehouse
--Warehouse Management
---InfoPackage
Here you should find required methods
Regards
Joe -
Hello all,
Does anybody knows if exists an abap-class to write strings in SAP console ? I'm looking something similar of System.out.println() in JAVA.
Regards,
ArthurHi
as per my knowledge its not possible to write ABAP classes in console like java..but we can run the programs through the console for that follow the below syntax..its very time consuming process..
check the below syntax it may be helpful for you...
C:\Program Files\SAP620\SAPGUI\rfcsdk\bin>startrfc
RFC command line interface
Syntax :
startrfc [connect options] <function options>
where
function options =
-F <function module
-E <parameter>=<value>
-T <table name>,<width>,[r=<file>][,w=<file>]
where <file> is a path name to read from (r)
or write to (w) the internal table.
If <file> is -, stdin or stdout is used
Thanks&Regards
Sreenivas Pachva
Maybe you are looking for
-
The remote app on my phone won't connect to my Apple TV. In can use AirPlay.
I Cant get the remote app on my iPhone 5s to connect to the apple TV. The AirPlay is working fine. I have switched the Apple TV off with no help.
-
How to create image swap buttons
I'm not sure where to post this question, but it involves images and was wondering if Fw is the place to start. I want to create a retro car radio navigation for a web site. Old push-button radios usually had an indicator that travelled behind the nu
-
Hi, My application deployed on azure, and I managed all my file to blob storage. When i created container with public permission then it accessible for all anonymous users. When i hit URL of file (blob) from different browser, then i will get that fi
-
I am from India using my iphone4 with Vodafone and firmware version 5.0.1(9A405). I am unable to access 3G from my device as the CELLULAR DATA NETWORK option in the settings is missing. Any methods or options for fixing the same????
-
I keep having "Panics" i.e. my Macbook Air keeps restarting. I have version 10.7.5. Here is the error report: Interval Since Last Panic Report: 188109 sec Panics Since Last Report: 3 Anonymous UUID: F6C12BD7-2A9F-4791-949