Event Handler and Callback Registration - Business Transaction - SAP Library
To add a comment, please log in or register on the top of this page and choose Reply. Please write your comment in English.
You can also go back to the SAP help page.
Hello,
To implement any process for BERP.
1. Tcode BF24 - Create a product. Let's say Z1130.
2. Tcode BF44 - Create new entry with
Process - 00001130, FM - ZTEST_1130, Product - Z1130.
Save Entry.
3. Tcode BERP - Give Process Interface as 00001130. Run.
4. You will see one entry. Put cursor on that and Click on Act. Comp.
5. Here you can see your FM - ZTEST_1130 as Customer product.
Now, put your relevent code in ZTEST_1130. You can pass tables like
*" T_BKPF STRUCTURE BKPF
*" T_BSEG STRUCTURE BSEG
SO, in your FM, you can get access to data for BKPF and BSEG
Regards,
Naimesh Patel
Similar Messages
-
Data Exchange for Quotations: CRM Enterprise ERP System - Business Transaction - SAP Library
To add a comment, please log in or register on the top of this page and choose Reply. Please write your comment in English.
You can also go back to the SAP help page.For distribution of documents between CRM and ECC see also WIKI links :
CRM:TIPS to check the distribution of documents between CRM and ECC :
http://wiki.sdn.sap.com/wiki/x/A4fxEg
and
Data Exchange for Sales transactions
http://wiki.sdn.sap.com/wiki/x/JovwDg -
Business Transaction Processing - Business Transaction - SAP Library
To add a comment, please log in or register on the top of this page and choose Reply. Please write your comment in English.
You can also go back to the SAP help page.Hello!
Try set user parameter /BOBF/EMERGENCY_CORR to value of current date in internal format, e.g. - 20121008. (Through transaction SU3)
Best regards!
Valeriy. -
Asynchronous Update - Business Transaction - SAP Library
To add a comment, please log in or register on the top of this page and choose Reply. Please write your comment in English.
You can also go back to the SAP help page.Hi Vikram,
I appreciate your quick response. I went over the document that you've mentioned. However, nothing in there seemed to help.
Just FYI, i need to create/change approx. 25,000 Business Partners in SOLMAN 7.1 by 1)creating system users in SOLMAN and 2) execute report AI_SDK_USER_BP_GEN to generate/update BP IDs accordingly.
My question was, lets say if i needed to enter profit center, cost center and division info into each BP. In what BP role and fields, besides the standard BUP001 (Contact Person) & BUP003 (Employee), that I can use to enter those type of information?
For example, profit center - 88KUL186; cost center - 88KUL186; division - KLIA.
Thanks in advance. -
Business Transaction Subobjects - Business Transaction - SAP Library
To add a comment, please log in or register on the top of this page and choose Reply. Please write your comment in English.
You can also go back to the SAP help page.For further WIKI information on the B2B WEB Channel please see the following: http://wiki.scn.sap.com/wiki/x/BIClEg
Thanks Peter -
RMI, event handling, and Winow.dispose()
Hi all,
If you combine RMI with an event handler and java.awt.Window.dispose(), the JVM hangs. The only way to solve this problem is by disposing of the frame from within SwingUtilities.invokeLater.
Please check the following code:
ServerInterface.java:_
import java.rmi.Remote;
import java.rmi.RemoteException;
public interface ServerInterface extends Remote {
void Send(ClientInterface CI) throws RemoteException;
ClientInterface.java:_
import java.rmi.Remote;
import java.rmi.RemoteException;
public interface ClientInterface extends Remote {
void Send() throws RemoteException;
Server.java:_
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
import java.rmi.Naming;
public class Server extends UnicastRemoteObject implements ServerInterface {
public Server() throws RemoteException {}
public void Send (ClientInterface CI)
try { CI.Send(); } catch (Throwable t){System.out.println(t);}
public static void main(String args[])
try {
Naming.rebind ( "rmi://localhost:1099/Testing",new Server() );
System.err.println ("Server ready");
catch ( Throwable t )
System.out.println ( t );
Client.java:_
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
import java.rmi.Naming;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.SwingUtilities;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JButton;
public class Client extends UnicastRemoteObject implements ClientInterface,ActionListener {
static JFrame A=null;
static ServerInterface ServerSide;
private Client() throws RemoteException {}
public void Send()
if ( A == null )
A = Display("Remove"); // display frame
else // remove frame
SwingUtilities.invokeLater ( new Runnable(){public void run(){A.dispose();A=null;}} );
public static void main(String[] args)
try {
ServerSide = (ServerInterface) Naming.lookup ( "rmi://localhost:1099/Testing" );
ServerSide.Send(new Client());
catch ( Throwable t )
System.out.println ( t );
public void actionPerformed(ActionEvent e)
try { ServerSide.Send(new Client()); } catch (Throwable t){System.out.println(t);}
private JFrame Display (String label)
JButton b = new JButton (label);
b.addActionListener(this);
JPanel p = new JPanel ();
p.add (b);
JFrame frame = new JFrame ();
frame.getContentPane().add(p);
frame.pack();
frame.setVisible(true);
return frame;
}You can do any GUI work from within an event handler, only when you try to dispose of a frame, the system hangs !!!Thank you for responding to my problem.
unless their documentation says otherwise (eg: repaint). I checked the API for "repaint()", but it didn't mention anything about the EDT. What documentation you are referring to ?
What I don't understand is that why "dispose()" works well on non-RMI systems and hangs the machine on RMI systems ? It even works fine on RMI system providing that you are not disposing of the frame from within an event handler. So the problem occurs only if you are combining the three elements: RMI, event handler, and dispose().
Conversely, you should avoid doing anything that may take a long time on the EDT. Perhaps remote methods fall into that category.It is true that we should avoid doing anything that may take a long time on the EDT; however, in this particular example, dispose() is not done through a remote call, it is done on the client where the frame should be removed.
I also tried disposing of the frame from within a normal Thread (instead of the EDT), and it worked just fine. -
Event Handlers and Callbacks: Best way to handle?
I'm writing an actionscript class. I'm wondering how to deal
with call backs and event handlers within my class. In particular,
I'm wondering how I might structure my class so that developers
using it can choose which arguments get passed to the callback
function as they code. I've been googling and haven't found any
particularly useful information on this.
As far as I can tell, it would appear that the parameters
passed to any callback function are determined at the time I write
my class as this anonymous function example illustrates.
var myObj:Object = new MyClass('foo', 'bar');
myObj.onLoad = function(arg) {
// the args passed to this anonymous function are dictated
by the actionscript defnining MyClass
I have also seen an approach using named functions and a
class method for setting the event handler which allows a developer
to pass some object to be used for scoping the named function but
this also results in the parameters for the callback being
predetermined by the actionscript that defines the class
function myLoad(arg) {
// the args passed to this function are also dictated by the
actionscript defining MyClass
var myObj:Object = new MyClass('foo', 'bar');
myObj.setOnLoadHandler(this, 'myLoad');
As far as I can tell, neither approach would let a developer
specify any parameters for the callback functions (onLoad() in the
first example, myLoad() in the second example). Which of these
approaches is considered 'best practice'? Also, what would I do if
I wanted to specify that the callback should operate on a
particular movieclip on my timeline? How can I pass that
movieclip's parameter to the callback function?You can download the Library from this link. Inside is an example that shows how to handle windows messages/events.
http://zone.ni.com/devzone/cda/epd/p/id/4394 -
Relationship between 'business transactions', SAP LUW, and tRFCs?
Here's what (I think I know:
- A 'business transaction' is a set of (dialog) steps that have the same 'transaction ID.' I can see the steps of a business transaction in STAD or STATTRACE.
- An SAP LUW is a set of steps that are a single unit of work.
- Function calls started with a tRFC are started in a new SAP LUW.
The questions are:
- Does an SAP LUW correspond 1:1 to a business transaction?
- If so, then tRFC spawns sub-transactions. Is there a way (using STAD or STATTRACE) to see, the parent-child transaction relationship? To see which transactions spawned which sub-transactions?
Thanks.
TimThis was a duplicate post.
Please post replies to [this thread|Open Hub 3rd party tool - API not returning data table;.
Thanks.
Tim -
Event handling and inner classes
Hi everyone,
When assigning an actionlistener object to a swing component, is making the encapsulating component implement actionlistener better performance-wise than using inner classes? I ask this because my application is pretty slow to start-up, and I'm using lots of inner classes.
I don't want to go ahead and change the event-handling unless I'm sure it will do any good, because the time restriction is too tight for wasting. Does using addActionListener(this) just pass a reference to itself or is an object generated for each call?
Thanks in advance,
RichardPassing this only passes a reference. But you won't get a big improvement over inner classes. (If you use one listener object instance and pass that instance to the event sources. Do you?)
Kurta -
ICal Event Handling And Exchange
Okay. I'm having problems figuring out how iCal in Snow Leopard is handling meeting invitations. When I get a new meeting invite in Mail.app and I double-click on it, it creates an event in iCal. If I open that event, the popup gives me the option to click on "Maybe", "Accept", or "Decline". If I click on "Accept" the event window goes away and iCal comes back up.... but it doesn't appear to save my response. If I click on the event, it still shows me the same button options. This would all be fine... except for the following issue....
As long as an iCal event is in the "invitation" state, I can't change the event from it's default local calendar to the Exchange calendar. I can move it around within local calendars, but the Exchange options are not available from the pulldown menu. If I create a new event manually, then the Exchange options are available from the pulldown and I can move events to it just fine.
I can't figure out how to get invitations (1) accepted and saved as accepted and (2) moved to the Exchange calendar.
Anyone have any ideas?I've found a work-around that SORT of lets me function for now:
1) Right click on the event.
2) Select "Create Duplicate"
3) Right-click on the new duplicate.
4) You can now select your Exchange calendar to move it over.
5) When you try to select the OLD event, iCal will REQUIRE that you send a notification out to the meeting invitees. This is ENTIRELY too inconvenient for me (as I work for Government and Army Colonels do NOT want my meeting spam) so I click on EDIT and then remove all the invitees and then save. This gets around the requirement to send the notice.
6) THEN I can select the OLD event on my local calendar and delete it.
This is FAR from a good solution as it requires me to lose all the meeting attendee information AND there's something broken in the requirement to send the meeting notice out again for the duplicate.. but at least I can get events onto my Exchange calendar for now. -
Menu Design using Event Handler and Containers
I am going to redesign my menu interface using a Labview Event Structure which has many control on tab pages. I want to start out doing the correct design approach here. By registering the front panel controls[] property as an event, I can write event cases for each of the controls on the front panel. However, I run into difficulty when I have controls on tab pages. I have attached a VI which shows how I want to set it up. The event hanlder only fires when I change pages on the tab control.
What is a good way to be able to decipher individual controls on the tab control and
what is the characteristic (label, ref number, etc) that I should be writing the event cases on for good code maintenance?
Solved!
Go to Solution.
Attachments:
Generic Menu.vi 14 KBLooking at your code, you registered for value change events for controls on the front panel, not in the tab control. Use the property node for the tab control to get the references to the pages and for each page get the references for the controls on that page. Build an array of all controls on all pages (or you could separate the registration for each page to make your life easier potentially) and register those controls for value change events. See below...
-
HI, I am having a problem and tied down just because of this.
I have an action listener code that is executed when button is clicked, and here what i do in that
JeditorPane.setPage(URL url)
callToMethod2();
Method2
some calculation
and when i check the length of the document for the jeditorPane it gives me 0
this is because the page is not yet laoded as it contains images.
Actually i want this method2 to be called after whole pages is loaded and displayed
How can i do this
regardsAPI:
If the document is loaded asynchronously, the document will be installed into the editor immediately using a call to setDocument which will fire a document property change event, then a thread will be created which will begin doing the actual loading. In this case, the page property change event will not be fired by the call to this method directly, but rather will be fired when the thread doing the loading has finished. It will also be fired on the event-dispatch thread. Since the calling thread can not throw an IOException in the event of failure on the other thread, the page property change event will be fired when the other thread is done whether the load was successful or not.
So, don't put your call to method2 after the setPage. Rather, attach a property change listener for "page" to get the event described above, and in the propertyChange method, call method2. See if that works for you.
-JBoeing -
Configuring document scanner and linking to SAP Business Transaction
HI guys,
how to configure scanner and attach to business transaction SALES ORDER.
divyaHi Girish,
maybe the following link to the SAP online documentation for ArchiveLink could be useful for this requirement:
http://help.sap.com/erp2005_ehp_04/helpdata/EN/4f/9933d7446d11d189700000e8322d00/frameset.htm
Best regards,
Christoph -
How to update 1 Event Handler from different SAP systems?
Hi experts.
I created an Event Handler via SAP 4.7 Purchase Order.
I now need to update this same Event Handler with a control parameter from SAP 6.0.
I was surprised to see that when I updated the Purchase Order in 6.0, EM created a new Event Handler!
Guess I'm missing something obvious...
Thanks.
Zenon.Hello Berthold, Steffen,
Yes it's the same PO in 4.7 and 6.0. We implemented (upgraded) the ERP system to 6.0. The Event Handler was orginally created from 4.7, but now we need to update it from 6.0.
So the Event Handler (tracking id, control parms, EE etc) can only be updated from the logical system the Eh was created in (4.7), and I can only send Event Messages (Events) from 6.0. Correct?
Any thought about how to approach this situation and any future upgrades? Maybe I need to write a conversion program...
Thanks.
Zenon. -
Transaction event key and posting key
Dear All,
To create a new Transaction event key/posting key.Whats the T.codeHi,
Follow the Path
SPRO-Materials Management-Purchasing-Conditions-Define Price Determination Process-Define Transaction/Event Keys
SPRO-Financial Accounting (New)-Accounts Receivable and Accounts Payable-Business Transactions-Internal Transfer Posting-Make and Check Document Settings-Define Posting Keys
Hope this finds useful.
Regards,
Vengat
Maybe you are looking for
-
Writing data from array to file
May i know how to write string from a array into a file. I have use string tokenizer to extract every line from a file using readline and use stringtokenizer to spilt the line using tab delimiter for processing. But if i want to write data from array
-
Monitor decision!!!
Hi, I am am looking to buy two new displays for my G5. I frequently use Final Cut Studio, so colour reproduction is fairly high up on my agenda. I have been quoted a very good price on the 'Dell Ultrasharp 2407WFP 24" Widescreen LCD Monitor' http://a
-
Hi Experts, We are trying to send a FAX using RFC using third party vendor RIGHT FAX to 10 different FAX numbers. We need to send a letter with some fix texts & few variable values . How will the letter be formated and how will it go to different end
-
Is there any way to find out where a standard text is used?
Is there any way to find out where a standard text is used? We can see the text from SO10, but i want to find out where it is used.
-
I have a query that I am outputing to a chart. That is all working fine. The question I have is has anyone out there added static items to a cfchart. I need to add to horizontal lines and one sloping line to my chart and they are always in the same l