Is it possible to submit an abap oo instance?
Hi experts,
I need to execute the process of creating 300.000 materials associated with 15 centres in background.
Is this possible? Apparently, I can't specify the instance of the class to the SUBMIT declarative... I would appreciate your responses.
Lots of thanks,
Javier
I don't know of any way to execute the instance method in the background, but I think you could call a custom FM in background. You could serialize object instance into XML (using CALL TRANSFORMATION statement) and pass the resulting XML string to the custom FM. In the FM, you can then use the CALL TRANSFORMATION statement to create an object from the XML string. Then you can call the method of the reconstructed instance.
Here's sample code (that I haven't tested, but should get you going in the right direction)
CLASS cl_class DEFINITION.
PUBLIC SECTION.
METHODS do_action.
INTERFACES if_serializable_object. " <-- This is needed for CALL TRANSFORMATION to work!
ENDCLASS.
CLASS cl_class IMPLEMENTATION.
METHOD do_action.
* <--Do whatever the method needs to do here-->
ENDMETHOD.
ENDCLASS.
FORM do_method.
DATA: lr_instance TYPE REF TO cl_class.
DATA: l_class_xml TYPE string.
CREATE OBJECT lr_instance
* <--Do whatever you need to do to prepare instance here-->
CALL TRANSFORMATION id SOURCE class = lr_instance RESULT XML l_class_xml.
CALL FUNCTION 'CALL_METHOD' STARTING NEW TASK
EXPORTING
p_class_xml = l_class_xml.
ENDFORM.
FUNCTION call_method.
* IMPORTING
* p_class_xml TYPE string.
DATA: lr_instance TYPE REF TO cl_class
CALL TRANSFORMATION id SOURCE XML p_class_xml RESULT class = lr_instance.
CHECK lr_instance IS BOUND.
lr_instance->do_action( ).
ENDFUNCTION.
Similar Messages
-
Able to store abap class instance in trex
HEllo all,
I am new to enterprise search,is it possible to store an abap class instance in trex,basically i store a key value and
an abap class instance against this key value.
regards
kaushikGood one, Singleton is definitely a good way of doing things.
But I'm looking for way to track instance of object, isn't it really no way of doing so?
Then why tools like jps (java version of ps (like command in unix) ) is possible?
Isn't there a generic way to do this, since Java was build from the ground up with object -oriented in mind, why these pool of objects are not maintainable by user(a developer in this case)? -
SUBMIT an ABAP report after creating the WI but before completion of WI.
Dear All,
I am having an activity which sends the approval work item.
Now my requirement is to SUBMIT an ABAP report after creating the WI but before completion of WI.
I can not call this report before approval activity because i need to pass this WI ID to this report.
Please suggest some way to solve this.
Regards,
AmarHello,
You could create a 2-from-2 fork and put the workitem in one branch and the report in the other. Have the report branch wait 1 minute and then read the workitem id from the other branch.
What is the purpose of this report? Why does it need the workitem id?
regards
Rick Bakker
hanabi technology -
Hello,
Is it possible to submit a list item and at same time query/search the results if parameters are matched.
Example - user logon to site enter search parameters and hit submit button. Once done parameters gets saved in list and shows search results on page. I have been asked to do this with
SP designer and InfoPath doesn’t work due items limits.
Please suggest.
Thanks,
Manish
ManishHi Manish,
may i ask if you need,
when user account click the login button, it will be authenticate the user and then it will show search result page?
may i know how the keyword of words to be put? is it together with the user account box, password and keyword?
or it will be like, after user authenticate, it will redirect to search page, so that user may use the search page to input the keyword?
Regards,
Aries
Microsoft Online Community Support
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. -
Is it possible to submit an image file with PDF form?
Hello,
I know that Acrobat does not offer a field for image file submission.
whether there are workarounds to solve this problem?
I have found suggestions regarding place an image to button icon:
event.target.buttonImportIcon();
but I can't understand is it possible to submit this image to server (Reader supports PDF only).
Any advices?
YuryHi Yury,
Yes, that's correct you can create a button and add a script to it that would prompt the user to select an image file when that button is clicked. Then that image can be displayed using the same button (buttons can show either an image or text).
The script in question is:
event.target.buttonImportIcon();
You need to add it as an Run a JavaScript-action to your button, triggered by the MouseUp event, and of course set the button's layout.
Please refer to this link : https://acrobatusers.com/tutorials/how-to-create-a-button-form-field-to-insert-a-pdf-file
On submitting the image it gets embedded with the PDF.
If the users are using Acrobat they will be able to view the image in the PDF, however if they are using only Reader, you will have to create the form using LiveCycle & then save it in a Reader Extendable Format.
Regards,
Aadesh -
Is it possible to write an abap code be SAP SQL query.(ECC 6)
hello guys,
Is it possible to write an abap code be SAP SQL query.
Scenario : table A has a field say f1 of length 10 and table B has a field say s1 of lenght 20. in sap sql i am able to link all the other tables but i am not able to link
table Af1 --->Table Bs1. as the length doesnot match. so is it possibel that using abap code I can pick 10 characters from table A field f1 adjust it to 20 characters using abap and map it to field s1 of table B.
Please let me know how to accomplish this if possible.
thanks in advance!!Herm,
Adding code is done in the infoset.
Please do following:
> Goto SQ02
> Type in the infoset that the basis for your query, <change>
> Press <code> OR <shift><f8>
> Tou'll see 4 tabs: Extras, Selections, Code, Enhancements.
> GoTo tab Code
> Choose the coding section (<f4> gives you an overview)
> Enter the code.
You may set a breakpoint to see what the query in SQ01 will do with it.
Succes!
Frank -
Is it possible to submit a concurrent program through self service res
Hi Gurus,
I have a requirement in which when a user logs in and concurrent program run which basically generates online payslip for an employee.Is it possible to submit the concurrent program with the required parameters through the employee self service responsibility?
I would also like to know if the print option could be made available to see the respective payslips after viewing the output through the self service responsibility screen?
Please post your ideas.
Many thanks
PraznatejaHi
Many thanks for the reply.I am quite new to Oaf so could you please elaborate on the steps required to build the above mentioned requirement?
My understanding is that
We need build a custom controller having submitRequest() method in the ConcurrentRequest class containing the required parameters by using the code below :
*//Sample Code*
public int submitRequest(
String ProgramApplication ,
String ProgramName ,
String ProgramDescription ,
String StartTime,
boolean SubRequest,
Vector Parameters ) throws RequestSubmissionException
ProgramApplication -Application Short name of application under which the program is registered.
ProgramName - Concurrent Program Name for which the request has to be submitted
ProgramDescription - Concurrent Program Description
StartTime - Time at which the request has to start running.
SubRequest - Set to TRUE if the request is submitted from another running request and has to be treated as a sub request.
Parameters - Parameters of the concurrent Request
Here is the example for calling a concurrent program from a OA framework page.
import oracle.apps.fnd.cp.request.ConcurrentRequest;
import oracle.apps.fnd.framework.server.OADBTransaction;
public int submitCPRequest(Number headerId) {
try {
OADBTransaction tx = (OADBTransaction)getDBTransaction();
java.sql.Connection pConncection = tx.getJdbcConnection();
ConcurrentRequest cr = new ConcurrentRequest(pConncection);
String applnName = "PO"; //Application that contains the concurrent program
String cpName = "POXXXX"; //Concurrent program name
String cpDesc = "Concurrent Program Description"; // concurrent Program description
// Pass the Arguments using vector
// Here i have added my parameter headerId to the vector and passed the vector to the concurrent program
Vector cpArgs = new Vector();
cpArgs.addElement(headerId.stringValue());
// Calling the Concurrent Program
int requestId = cr.submitRequest(applnName, cpName, cpDesc, null, false, cpArgs);
tx.commit();
return requestId;
} catch (RequestSubmissionException e) {
OAException oe = new OAException(e.getMessage());
oe.setApplicationModule(this);
throw oe;
Please add on if there is something which is missed out
regards
Prazna -
ECATT: Possible to debug inline ABAP?
Hello eCATT experts,
I have the following question:
is it possible to debug inline ABAP (between ABAP...ENDABAP) in the eCATT debugger?
When trying to step inside an ABAP...ENDABAP block with F5, I always end up after the ENDABAP statement.
Thanks and best regards,
Oliver>
Oliver Thomas Niedermaier wrote:
> Hello eCATT experts,
>
> I have the following question:
> is it possible to debug inline ABAP (between ABAP...ENDABAP) in the eCATT debugger?
> When trying to step inside an ABAP...ENDABAP block with F5, I always end up after the ENDABAP statement.
>
> Thanks and best regards,
> Oliver
You can also break command.
ABAP.
BREAK USER_ID.
ENDABAP.
Where USER_ID is your user id in the SAP system.
This will help to stop the script for debugging only when you use it and it will continue executing for others without Stopping.
Hope this info helps.
Regards,
SSN. -
Only with YES it should be possible to submit, not the negative. how do I set it?
I would like to create a forms with formscentral.acrobat.com. at the conclusion I want to insert the terms and only with YES it should be possible to submit, not the negative. how do I set it?
You can use a single checkbox field and make it required. It will have to be checked otherwise the form cannot be submitted.
I think this is what you are asking for...
Randy -
Is there a way to access ABAP OO instances from a batch job report
Hello,
I am looking for a way to access ABAP OO instances from a batch job report. My circumstances are the following:
I have got some ABAP OO coding that identifies other objects (class instances) that have to be processed (they have a DoIt method that does some calculation). As this processing is time consuming and performace relevant I have to parallelize this in batch jobs. This batch jobs however can only be "simple" ABAP reports according to SM36. The problem is now that I dont really know how to tell the batch job report what objects to process. Somehow I have to access theses instances from that batch job report.
Does anybody have an idea?
Greetings
MatthiasHi David,
thanks a lot for your help. After a lot of searching on the net this seems to be the only way to cope with it. However I am not sure about the locking mechanisms and if its suitable for mass data processing. In the help page you suggested the following is stated which I do not fully understand::
"The current lock logic does not enable you to set specific locks for the following requirements:
· Many parallel read and write accesses
· Frequent write accesses
· Division into changeable and non-changeable areas
Although the lock logic makes the first two points technically possible, they are not practical because most accesses would be rejected."
Does this mean
a) if I dont want to set "specific locks" for frequent write accessess I am fine
or
b) I am discouraged from use shared memory technics for frequent write accessess?
In the latter case I will have a problem...
What do you think?
Greets
Matthias -
Windows Central Instance ABAP+JAVA plus UNIX ABAP dialog instances ?
Hi everybody,
we are an SAP software partner and provide SAP complementary software on UNIX and Windows platforms.
Part of our software (a gateway) needs to be installed on the SAP application server.
In order to setup a cross-platform test environment for our developers, I was thinking about extending the existing SAP ERP 6.0 Windows-based Central Instance (IDES, Oracle, usage types ABAP+JAVA) by multiple ABAP dialog instances which run on different UNIX flavours (Solaris, AIX, Linux).
I searched the SAP Notes and found nothing which could confirm my plans, as this is quite an unusual setup and heterogenous systems are usually the other way round (CI on UNIX, DI on Windows).
SAP Note 1067221 however mentions that DIs on different OS platforms are only partly supported, but it seems this is only valid for JAVA DIs?
As I need only ABAP DIs, I hope my plans are fine?
Many thanks for your feedback
Markus> I searched the SAP Notes and found nothing which could confirm my plans, as this is quite an unusual setup and heterogenous systems are usually the other way round (CI on UNIX, DI on Windows).
Well - what is "usual" depends on the requirements
It's possible to do that. Technically there's no difference whether an application server is Unix or Windows based.
There are, however, a few things to take care of:
- if your system is non-Unicode, sorting algorithms are different on different platforms. Unicode systems use ICU which is cross-platform
- if you want to automatically distribute your kernel on system start you will need to create a "share" on the Windows machine and make it accessible from the various other platforms. You can, however, ensure "manually", that you use the same kernel patchlevels on all systems, then this is not needed
- Windows is LittleEndian whereas most Unix systems are BigEndian, depending on if you exchange data between those systems (means, binary data, files through NFS) the programs must be aware of the fact, that a file can be either LE or BE.
Markus -
CTS+ Configuration - Separate ABAP & Java Instance
Hello,
I have a pure ABAP ECC instance. I have a pure Java Internet Sales instance. I have NWDI.
I would like to centrally manage the Java transports from my ABAP system using CTS+. Is this scenario possible.
Integration of NWDI & CTS+.Yes. the scenerio is very much possible.
Please refer to 3.1.3 for different ABAP and JAVA stacks in the following document http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10456aac-44f7-2a10-1fbe-8b7bcd7bcd58?quicklink=index&overridelayout=true
And then you need to integrate NWDI with CTS+,
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0f75302-bf8b-2b10-d991-ee42c8de8eec?quicklink=index&overridelayout=true
Thanks,
Bidwan -
Kernel upgrade having ABAP+JAVA instance
Hi team,
Can you provide the procedure how to kernel upgrade for our windows system having ABAP+JAVA instance releae version 700.
Provide the links, your replies are very helpful.
Regards
BhaskarHi Bhaskar,
You can use JSPM too in this case. Otherwise if you want to do it the old fashioned way:
> Stop SAP, Database, Saprouter, listeners and all the
related services.
> The location of the kernel is /usr/sap/<SID>/SYS/exe/run
> Take a backup of the files in this location and take a
print out of the ls -ltr (This is needed to give the new files the
correct permissions)
> Overwrite all the new files to the kernel location. The
purpose is to retain the old files for which the new version is not
available.
> The permissions of the file need to be changed as they
were before.
> Restart all the processes. The kernel upgrade is
now done. System
> status will give the newer version of the kernel.>
>
disp+work
Will give the
new Kernel version.
Finding files easily: http://www.easymarketplace.de/KernelPatches.php
Regards,
hemanth -
Dear Sirs,
I try to do an authorization to my NW 7.3 Java instance through my Windows domain authorization.
I done:
1) Create connection to LDAP-server and tested it.
2) Add windows domain certificate to TrustedCAs
3) Configure SPnego
Now, I can to login in my NW7.3 Java instance with my windows password, but however I must to input password when I open NW7.3 Java homepage.
Is it possible to login into the Java instance without password's input, using my windows workstation login/password?
What I have to do for that?
I use Windows XP on my workstation and IE 8.0.6 & Chrome 38.0.2125.
Best regards,
Alexey LugovskoyPlease check
Using Kerberos Authentication on SAP NetWeaver AS Java - User Authentication and Single Sign-On - SAP Library (NW7.3)
Using Kerberos Authentication for Single Sign-On - User Authentication and Single Sign-On - SAP Library (NW7.0) -
Introscope Host Agent for ABAP only instance, fails with java.lang.NullPoin
Hello,
I'm trying to configure the Introscope Host Agent Adapter for ABAP 7.02 instance.
Solman Version is 7.1 ST 4, BASIS SP9.
I did created the Trust relationship between DAA and hostctrl and
also the same setup working find for Java Instance or ABAP+java Instance,
I'm not sure whether IS Adapter can be installed for ABAP only Instance.
Log file from Solman:
java.lang.NullPointerException
at com.sap.smd.server.manager.SMDPluginProperties.setProperty(SMDPluginProperties.java:119)
at com.sap.sup.admin.wily.hostagent.config.AgentConfigWriter.setJCoUserAndPwd(AgentConfigWriter.java:1085)
at com.sap.sup.admin.wily.hostagent.config.AgentConfigWriter.setLogonData(AgentConfigWriter.java:1075)
at com.sap.sup.admin.wily.hostagent.config.AgentConfigWriter.createJcoDestinationVO(AgentConfigWriter.java:677)
at com.sap.sup.admin.wily.hostagent.config.AgentConfigWriter.prepareSapAgentConfiguration(AgentConfigWriter.java:284)
at com.sap.sup.admin.wily.hostagent.Setup.setupAgentConfiguration(Setup.java:272)
Thanks
Srikanth MHi
I am sure, it is logically incorrect, how you deploy byte code agent in abap only instance
Introscope Bytecode Agent runs on managed systems based on J2EE engines to report data to the Introscope Enterprise Manager, so it has to be setup only for Java Stacks.
Please check with the wily config guide again.
I am watching this thread for further view from others.
Thanks,
Jansi
Maybe you are looking for
-
Need some serious help. first mac ever. PLEASE
hello i recently bought a used mac (powerbook g4 1.5ghz 512mb i think its 15 titanium? silver color? anywayz it came with microsoft office and my friend told me it was expensive software and if i reformat this mac i would lose it. so i searched mac w
-
Just got an iphone and pay for gps---how do i get the voice to work--it shows the directions but doesn't say it.
-
Hi Experts, We are planning to implement SAP HANA Live for ERP operational reporting, I saw there are 786 views delivered with this which includes - 1) Query views 2) Reuse Views 3) Private Views Query views always contains the word "Query" at the en
-
ITunes: how to get out of "full screen" mode in Lion?
running Lion for the first time - I hit some kind of a a wrong button on iTunes, and it went into some kind of goofy full screen mode. How do I get it back to the original mode?
-
MS Visual Basic for formatting reports
Hi, Would anyone happen to know if there is a How To...paper to make use of Microsoft Visual Basic to do report formatting? Would I have to learn this new language to do so or are there simple things that can be coded to achieve the BW reporting side