How to create plugin modules ?
I have a swing gui with a textfield and textarea in a frame. Some command is entered into the textfield and a method within the frame's source code would be called to match the command to a set of if else loop to see if the command is correct before executing. It's some sort like creating a command prompt. The textarea displays the input and the results. How should I create some sort of codes with so that I can extend the commands inside with more commands by adding new jar file plugins and how do I create some sort of a jar file plugin ?
I looked through Spring web page and most of the stuff talks about web apps. I am not very familiar with these IoC although I tried to read and understand it.
I was wondering, if you have a GUI application with a task bar that allows you to plugin(jar file), and when you added the plugin, how does the application detects your plugin and updates the tool bar with the icon you specified in your tool bar. One thing i don't really understand is when you hit the updated new button on the tool bar, how does it call the method with the jar file plugin ? I know that every button in the tool bar, like all buttons, need an action event or something like that with the method inside it to actually call it.
I have been wondering how applications with plugin modules , like NetBeans and Eclipse, could dynamically add a button into their tool bar and menu bar and when called, they can 'link to' the plugin to call it ?
Similar Messages
-
How to create function module for getting customer name
Hi Experts,
How to create function module? when in import parameter kunnr values to be passed it must give name1 details according to the customer number...
how to write the logic in source code....
Regards,
Thiru. R1. First of all create function group.
2. Create function module using this function group.
3. If only one kunnr is needed at a time, create import parameter for it. But if many kunnr to be entered at a time,use table.
4. Fetch name1 for each kunnr from KNA1 table.
"->> if many kunnr
if not t_kunnr[] is initial.
select kunnr as kunnr name1 as name1
into table t_kunnr_name1
from kna1
for all entried in table t_kunnr
where kunnr = t_kunnr-kunnr.
endif.
sort t_kunnr_name1 by kunnr name1.
delete adjacent duplicates from t_kunnr_name1 comparing kunnr name1.
table t_kunnr_name1 will contain kunnr and its name1.
I hope logic is clear for you now.
Regards,
Aparna -
How to create a module pool program
Dear Guru
I want to know know how to create a module pool program from se80 step by step. I want to know the steps where i will get the four includes like form routines, PAI, PBO, and global data please its very urgent.
Thanks & regards
Saifur Rahamanhi Saifur Rahaman,
goto se80 then click find program,
next u want any name of the program enter as,
Attribute type as find Module pool click it.
next u want any package and save and activate.
program name with create screen with any number then
click layout and u want any object and save , actived.
click flow logic , four types as PBO and PAI and POV, POH.
PBO---> Trigger is before screen.
its applied for display screen and inactive or no display screen only
PAI--->Trigger is after screen
when u want button then its processed.
POV--> Value requested for F4.
POH-->Help requested for F1.
Reward if useful,
S.Suresh. -
How to create function module in abap for VirtualProvider in bi
how to create function module in abap for VirtualProvider in bi ???????????????
can any one help me with simple example ?????????????????
Moderator message : Duplicate post locked. Read forum rules before posting.
Edited by: Vinod Kumar on Jun 15, 2011 4:40 PMHi ,
Thanks for replies about my question??.
If i am using the exit in my char relation ship how can i debugg that exit???
if i am using BPS0 how to do it???If i am using BPS_WB how to do it??
Case1.Variable (type Exit) I known how to do debugg this one in BPS0 but i'm not sure in BPS_WB??
Case2:Char Relation Ship(Type Exit) how to do in BPS0 and BPS_WB??.
Thanks. -
How to create Dialog Module[Screen,Menu,object navigator]
Dear All,
kindly give me. How to create Dialog Module[Object Navigator,Screen,Menu,] steps with code.please see this link it is with screen shot from the scrach ...
<b>creating struture
creating screen
writing logic
table control
creating tcode</b> ...etc
<a href="http://">http://www.sapdevelopment.co.uk/dialog/tabcontrol/tc_basic.htm</a>
reward points if it is usefull ...
Girish -
hi experts,
May i know how to create adapter modules..
Thanks & Regards
gunaHi,
Start with basics:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7bf6e190-0201-0010-83b7-cc557eb76abe
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3bdc14e1-0901-0010-b5a9-a01e29d75a6a
Some good Examples to start with :
Rename Attachment Adapter Module
Copy a file with same filename using XI
Customized Adapter Module
Regards -
Creating Plugin Modules for Use with Compiled Code
Hi all,
While programing a data analysis package in Labview, I've run into a problem that I don't really know how to answer. It goes something like this: my program receives data from measurement devices in the form of ASCII or binary files, which I must then process and evaluate. The problem is, the data files can have a variety of different formats. Right now, I only know of 4 or 5, but more could literally be added at any time.
My thought is this: I'd love to have some sort of modular plugins for reading the data files. In other words, I could have a subfolder under my application's space in the "Program Files" directory. The subfolder would contain any number of "ReadFileX.xxx" modules. Upon initiation, my code would scan that folder, determine the possible formats (based on the *.xxx files therein), and be capable of reading any of the files. Ideally, the user would select a file, I would note its format, and call the appropriate plugin module to handle reading the data into my code.
What is the best approach for doing something like this? I looked (briefly) into using DLL's, but (from what I can tell) I would need to explicitly define the function name and the inputs / outputs in the "Call Library Node" function. This would appear the break the modularity feature, as I want to be able to load the software, and then develop new plugins down the road when the need arises. I also found some information on source distributions (in an LLB). This option would probably work, but my efforts at coding a basic test of VI-Server were met with errors.
Does anyone have any experience performing a similar task? If so, would you share your knowledge / secrets with me? I would be extremely grateful for your feedback.
Thanks!
MarkMark - there is a Coding Challenge currently going on, and I have submitted an entry that shows how to dynamically instantiate a class based on a class that resides on disk. Specifically, you're going to be interested in "Get LV Class Default Value.vi" under the "Cluster, Class, and Variant" palette that allows you to create an instance of an object based on the path of the .lvclass file. The class you load is going to be what's called a child class of a parent class (or base class), where the child class implementation overrides the function of the parent class. The "Get LV Class Default Value.vi" is very loosely analogous a Class Constructor.
You can deploy your application having implemented all the base class functions, then subsequently develop and deploy new classes to reside in a "plugins" folder without needing to change the original app code.
If you find that contest entry helpful, consider dropping a vote, huh? The LabVIEW Communities have had access errors sporadically the past few weeks, so if you get a "Server Error" you may need to try again later. There's also going to be Forums maintenance today and tomorrow.
a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;} -
How to create multiple modules in quizzes in single file?
Hi,
Can someone guide me how to create a multiple module quizzes under one captivate file ( captivate 5.5 ver)
I have a quiz.cptx file with 50 questions from different chapters A,B,C,D,E with 10 questions in each chapter.
The scenario
Note : min 80% score per chapter is the passing criteria
1. Start the quiz after login and password
2. Start the quiz for chapter A ( 10 questions)
3. score for chapter A should be displayed
4. If "cpQuizInfoPointsscored"'s value < = 40 ; ie 80 % for chapter A
review of the failed questions in the chapter
OR
retake quiz for that chapter should be triggered,
else goto chapter B
5. Start the quiz for chapter B ( 10 questions)
3. score for chapter B should be displayed
5. If "cpQuizInfoPointsscored"'s value < = 40 ; ie 80 % for chapter B
review of the failed questions in the chapter
OR
retake quiz for that chapter should be triggered,
else goto chapter C
6. //rly with other chapters
7. After passing all chapters the result should be printer based on the scores.
Is there any better ideas to crack the steps 4 - 6, bcz i am not able to reset the value of "cpQuizInfoPointsscored"; which is incremented as each question is completed.Welcome to the forum,
Agree totally with Rod, this can be done with advanced actions (have some examples on my blog), but it is a lot of work. And the Quizzing system variables such as cpQuizINfoPointsscored are all read only, no way to change them by advanced actions at all.
If you want to transfer variable values from one file to another, like from the different quiz files to a main file (to take decisions over there about possible branchings), you should have a look at Michael Lund's Save & Load Data widget:
Save & Load Data widget
Lilybiri -
How to Create Function Module BAPI_GETGLACCPERIODBALANCES Carry Forward
Dear All,
In SAP there is a Function Module BAPI_GETGLACCPERIODBALANCES to carry forward balance GL account. But in this case GL account (Balance Sheet) that i used (BS200150) using IO Number as is cost object, I want to know if there is a function module standard provide by SAP that can get carry forward balance the GL account per IO Number if in the Year End Closing , we run T-code F.16 to carry forward balance that posting in previous fiscal year, or we have to create a new function module, how to create it?
Kindly help with this issue
Thanks,
Regards
Aries SYes, I tried passing constant '10.000', but still quantity is not getting updated.
My code is:
CALL FUNCTION 'BAPI_CUSTOMERRETURN_CREATE'
EXPORTING
SALESDOCUMENTIN =
RETURN_HEADER_IN = RETURN_HEADER_IN
RETURN_HEADER_INX = RETURN_HEADER_INX
SENDER =
BINARY_RELATIONSHIPTYPE = 'VORA'
INT_NUMBER_ASSIGNMENT =
BEHAVE_WHEN_ERROR =
LOGIC_SWITCH =
TESTRUN =
CONVERT = ' '
IMPORTING
SALESDOCUMENT = SALESDOCUMENT
TABLES
RETURN = RETURN
RETURN_ITEMS_IN = RETURN_ITEMS_IN
RETURN_ITEMS_INX = RETURN_ITEMS_INX
RETURN_PARTNERS = RETURN_PARTNERS
RETURN_SCHEDULES_IN = RETURN_SCHEDULES_IN
RETURN_SCHEDULES_INX = RETURN_SCHEDULES_INX
RETURN_CONDITIONS_IN =
RETURN_CFGS_REF =
RETURN_CFGS_INST =
RETURN_CFGS_PART_OF =
RETURN_CFGS_VALUE =
RETURN_CFGS_BLOB =
RETURN_CFGS_VK =
RETURN_CFGS_REFINST =
RETURN_TEXT =
RETURN_KEYS =
EXTENSIONIN =
PARTNERADDRESSES = -
How to create function module step by step
hi experts,
i am new to ABAP.
can anybody tell me the step by step process on how to create a function module for adding two numbers without using editor screen.
ex: 2+3=5.Hi,
You can only create function modules and function groups using the Function Builder in the ABAP Workbench. For further information, refer to Creating New Function Modules. This section uses an example to illustrate how a function module is created from the point of view of ABAP programming.
Function Groups and Function Modules:
Firstly, we create a new function group DEMO_SPFLI to hold the function module. Then, we can create the new function module.
Parameter Interface:
You can specify the types of interface parameters in function modules in the
same way as the parameter interfaces of subroutines. Since function
modules can be used anywhere in the system, their interfaces can only contain
references to data types that are declared systemwide. These are the elementary
ABAP data types, the systemwide generic types, such as ANY TABLE, and types
defined in the ABAP Dictionary. You cannot use LIKE to refer to data types
declared in the main program.
Exceptions:
Our function module needs an exception that it can trigger if there are no entries
in table SPFLI that meet the selection criterion. The exception NOT_FOUND
serves this function.
Source Code:
Having defined the parameter interface and exceptions, we can now write the
source code of our function module. To do this, choose Source code in the
Function Builder. This opens the ABAP Editor for the include program
L<fgrp>U<xx> (see Function Groups). This is the include that will
hold the program code for the function module;
Data in Function Modules
You can use the TYPES and DATA statements to create local data types and
objects. The interface parameters also behave like local data objects. In
addition, you can access all of the global data of the main program. This data is
defined in the include program L<fgrp>TOP. To open this include, choose Goto
Global data. The global data behaves like the instance attributes of a class.
The first time you call a function module in a particular function group, the data is
loaded into memory. It can then be accessed and changed by all of the function
modules in the group. The system retains the values until the next time a function
module is called.
Calling Subroutines
You use subroutines for local modularization. Function modules can
also use this technique. The function module that they call are defined in the
corresponding main program.
If you only want to call a subroutine from a single function module, it is best to
define them in the same include program as the function module itself, directly
after the ENDFUNCTION statement. These subroutines can be called from all
function modules in the function group, but for clarity, they should only be called
from the function module that precedes them.
If you want to define a subroutine that will be called from several different function
modules, you can define a special include program for it with the name
L<fgrp>F<xx>.
Raising Exceptions
There are two ABAP statements for raising exceptions. They can only be used in
function modules:
RAISE <except>.
and
MESSAGE..... RAISING <except>.
The effect of these statements depends on whether the calling program handles
the exception or not. If the name <except> of the exception or OTHERS occurs
in the EXCEPTIONS addition of the CALL FUNCTION statement, the exception is
handled by the calling program.
If the calling program does not handle the exception
The RAISE statement terminates the program and switches to debugging mode.
The MESSAGE ..... RAISING statement display the specified message. How the
processing continues depends on the message type.
If the calling program handles the exception, both statements return control to the
program. No values are transferred. The MESSAGE ..... RAISING statement
does not display a message. Instead, it fills the system fields SY-MSGID, SYMSGTY,
SY-MSGNO, and SY-MSGV1 to SY-MSGV4.
Source Code of READ_SPFLI_INTO_TABLE
The entire source code of READ_SPFLI_INTO_TABLE looks like this:
FUNCTION READ_SPFLI_INTO_TABLE.
""Local interface:
*" IMPORTING
*" VALUE(ID) LIKE SPFLI-CARRID DEFAULT 'LH '
*" EXPORTING
*" VALUE(ITAB) TYPE SPFLI_TAB
*" EXCEPTIONS
*" NOT_FOUND
SELECT * FROM SPFLI INTO TABLE ITAB WHERE CARRID = ID.
IF SY-SUBRC NE 0.
MESSAGE E007(AT) RAISING NOT_FOUND.
ENDIF.
ENDFUNCTION.
The function module reads all of the data from the database table SPFLI where
the key field CARRID is equal to the import parameter ID and places the entries
that it finds into the internal table SPFLI_TAB. If it cannot find any entries, the
exception NOT_FOUND is triggered using MESSAGE...RAISING. Otherwise, the
table is passed to the caller as an exporting parameter.
Regards,
Chandru -
Hi,
I am trying to create a function module using RSAX_BIW_GET_DATA_SIMPLE as a template. Can someone tell me how can I modify and rename this module. Also, how can I create extract structure from the function module.
I have tried to create a module in the module group by right cliking and then 'create', but it wouldn't let me do that way instead it giving me message 'function module name is reserved for SAP'. I get this message no matter what name I provide.
Basically I am trying to create a function module to extract data from SD module into BW. I appreciate your help with reward.
Thanks,
Rao.Hi,
It is almost the same but a different transaction.
1. Goto SE37.
2. Follow the path
Goto --> Function Group --> Create Group
3. Then enter a function name Z***** and click create.
The following link gives you more information about the functions and groups and others:
http://cma.zdnet.com/book/abap/ch19/ch19.htm
If you are looking for ENHANCEMENT kind of a thing then follow the following path:
1. Log onto R/3
2. TCODE: SMOD
3. Enhancement RSAP0001.
4. Double click on the one you are looking for i.e. Transaction / Master Data.
5. In the Function Module Double click on the INCLUDE.
Hope it helps,
Regards,
GPK.
Message was edited by: Praveen -
How To Create Plugin/Script
I have seen some source for LR plugins/scripts. However, searching for some books or posts on this forum I have not found any information on how to create such plugins/scripts. Where can I find some documentation about that?
http://www.adobe.com/devnet/photoshoplightroom.html
http://forums.adobe.com/community/lightroom/lightroom_sdk
Beat -
How to Create Plugin for InDesign?
Hi,
I am working with InDesign Scripting very well and now I want to start working with plugin for InDesign CS3 because of the limitation of the Scripting. But I have no idea, how to start and where to start creating Plugin for InDesgn CS3.
I am using Windows OS
Can someone tel me clearly how and where to start Creating Plugin and suggest me any plugin editor for Win OS. You can also suggest me at [email protected]
Someone pls guide me.......
Thank You.Hi, Praveen
Thanks for your reply,
I am going to look for "programming-guide.pdf" and then take further steps to plugin.
But can you tell me what are the resources that can be created by Eclipse 3.2.2 and why we use two Editors (VC++ Editor and Eclipse 3.2.2) here.
Thanks,
Vivek -
Does anyone have any notes on how to create a module pool?
Hi,
I have created a new task type called "Notice Period Change Date" which I need to default in a task date of 5 years service (from their hiring date). Having read up on this I think I need to create a module pool and link via the dynamic action but I am a bit unsure on how to do this.
Any assistance would be greatly appreciated.
Thanks
HannahI think that you could use a dynamic action to create this new task date.
Create the dynamic action on the infotype 0000 when the action type (MASSN) = hiring,
Call infotype 0019 with the subtype = your new task type.
Then call a function (F) to add 5 years to the hire date (P0000-BEGDA) and put the result into the task date field P0019-TERMN
Take a look at the dynamic actions table T588Z - there are probably some examples already there.
Mark -
How to create a module for File Adapter
Hi,
I read somethings about module in Adapters.
What I need to create a EJB? I need to generate a jar? Where I put it?
Do they have anything about this or a step by step? I want to create a module fpr File Adapter
Tks.Hi,
>>>What I need to create a EJB?
If you have NDS or Ecclipse you can create them automatically.
>>>I need to generate a jar?
Yes you need to generate a .Jar for that Ejb.
>>>Where I put it?
Put that .Jar in .Ear file. and then deploy it on to the Xi server or PCK or Decentralised Adapter Engine where ever u want to use.
>>>Do they have anything about this or a step by step?
Yes.Step by step procedure for creating module is available.You can get them at the links given above by others.
Regards,
Gowtham K.
Maybe you are looking for
-
500 Internal Server Error in Download File
Help , i am creating one Download file Run Exception!! <BR> <HR> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tr bgcolor="#FFFFFF"> <td align="left" colspan="3" height="48" style="font-size:14pt;color:#666666">500   Internal S
-
The entire screen whites out when I try to delete or open another email. The margin above the File button shows that "Thunderbird is not responding." Finally, a new window appears in the middle of the screen asking me if I want to close Thunderbird.
-
Please help, I need to open a port...
Hello all, I am a newbie to Solaris, I have the need to open port #36678 on a server running Solaris 8. I am sure it is simple but just do not know where to start, I have ran a netstat -a and it is not listening now. Thank you in advance.
-
Cant sign into twitter through media center.
I am unable to sign into the twitter app in the media center. It keeps telling me "wrong username/password" but I know I am using the correct user name and password because I will go to the browser and sign in with no problem. i read here that peopl
-
Microsoft word proofing tools and privacy
Hi, I have a question about privacy... Just recently I was typing in a word document. And then just this morning, when I was working in another word document, a window popped up. It said something about proofing tools and "help us improve," and it c