Change name of parameters output by code module
Hi guys,
I am calling this code module everytime but pass different parameters as input & get different results
I want to customize the Parameter Name for the output parameters as they get saved in my report.
& so I can be very specific.
Hi,
I think it is not an option or configuration in TestStand. You can try to change the parameter name in the code module.
Have you tried this?
best regards
Richard
Similar Messages
-
Creating variables/parameters from a code module that persist when the sequence is over
I am creating variables/parameters programmatically in a code module (C#) by passing in the Locals object and calling the method 'NewSubProperty'.
I've also tried SetValNumber with PropOption_InsertIfMissing.
But it seems they are only being created in that instance of the sequence, because they are gone when the sequence is over. I really wanted them to persist.
I wanted to avoid creating station globals dynamically like this, but maybe that's all I can do to make them last.
Any ideas would be gratefully appreciated.
Thanks,
Ronnie
TestStand 4.2.1, LabVIEW 2009, LabWindows/CVI 2009
Solved!
Go to Solution.Hi,
Check out the links on this response
http://forums.ni.com/ni/board/message?board.id=330&message.id=11226&query.id=267719#M11226
It maybe of help
Regards
Ray Farmer
Regards
Ray Farmer -
Sequence File Documentation adding code module inputs/outputs
Hi there,
I would like to document my sequence file. I have used the TS tools| Sequence File Documentation which works fine but I would like to add more information like the code module input and outputs.
I am using LabVIEW code modules.
How can I access the VI Parameter table: parameter name, type, in/out and value and then add them to docgen_txt.seq ?
Any suggestion would be much appreciated.
Thanks in advance..
MarkenHi Marken
In this thread there is an example how to create a LV-Module dyamically. Accessing the LV-Parametertable is a sub topic there.
http://forums.ni.com/t5/NI-TestStand/Create-a-LabVIEW-Step-dynamically/m-p/977348#M25792
Hope this helps,
Regards
Juergen
=s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e= -
How can I get the name of a output module template
Hey guys,
SDK newbie here.
How can I get the name of every output module template?
Thanks
Zhiqiang LiOk. Bravo
Please mark this as 'Answered' - it will help others on the forum - -
How do I change name and install Password or pass code
How do I change name and install Password or pass code?
You would do this using the AirPort Utility.
To change the Network Name using AirPort Utility v6.x: AirPort Utility > Select your AirPort > Edit > Wireless tab > Wireless Network Name. On the same tab, you can set the wireless security password. -
Unable to retrieve parameters from RFC Function Module
Hi All,
I have created a model for the RFC Enabled function module BAPI_BUPA_CENTRAL_GETDETAIL within my webdynpro program. I am passing parameters to the function module BAPI_BUPA_CENTRAL_GETDETAIL and I have validated that this is being passed correctly by displaying the passed value from the node of the input parameters.
Code used to pass input parameters -
IWDMessageManager manager = wdComponentAPI.getMessageManager();
try
wdContext.currentBapi_Bupa_Central_Getdetail_InputElement().modelObject().execute();
size = wdContext.nodeCentraldataperson().size();
wdComponentAPI.getMessageManager().reportSuccess(Integer.toString(size));
wdContext.nodeOutput().invalidate();
catch(WDDynamicRFCExecuteException e)
manager.reportException(e.getMessage(), false);
I also see that it returns 1 record by using the code below:
IWDMessageManager manager = wdComponentAPI.getMessageManager();
try
wdContext.currentBapi_Bupa_Central_Getdetail_InputElement().modelObject().execute();
size = wdContext.nodeCentraldataperson().size();
wdComponentAPI.getMessageManager().reportSuccess(Integer.toString(size));
wdContext.nodeOutput().invalidate();
catch(WDDynamicRFCExecuteException e)
manager.reportException(e.getMessage(), false);
But, when I try to retrieve the value returned it does not fetch that value -
Bapi_Bupa_Central_Getdetail_Output getdata = wdContext.nodeBapi_Bupa_Central_Getdetail_Input().nodeOutput().currentOutputElement().modelObject();
Bapibus1006_Central_Person[] getres = new Bapibus1006_Central_Person[size];
for(int i=0; i<size; i++){
wdComponentAPI.getMessageManager().reportSuccess(Integer.toString(i));
getres<i> = getdata.getCentraldataperson();
//String fullname = wdContext.nodeBapi_Bupa_Central_Getdetail_Input().nodeOutput().nodeCentraldataperson().getElementAt(i).getAttributeValue("Fullname").toString();
String fullname = getres<i>.getFullname();
fullname += Integer.toString(i);
wdContext.currentContextElement().setFullname(fullname);
wdComponentAPI.getMessageManager().reportSuccess("fullname:" + fullname);
It always returns 0 or null. Can someone please help me with this issue. The BAPI returns values in structure format and not internal table and hence I dont see the issue there as well.
What can be the problem?
Thanks for all your help in advance.
Best regards,
DivyaNikhil / Srihari,
I changed my code and it now looks like - I am trying get the return value into the context fullname but i still cant get the value although the size of nodeCentraldataperson() is thrown as 1 and the input is being passed correctly as i have validated this in this line of code [wdContext.nodeBapi_Bupa_Central_Getdetail_Input().currentBapi_Bupa_Central_Getdetail_InputElement().getBusinesspartner();]
IWDMessageManager manager = wdComponentAPI.getMessageManager();
try
wdContext.currentBapi_Bupa_Central_Getdetail_InputElement().modelObject().execute();
size = wdContext.nodeCentraldataperson().size();
wdComponentAPI.getMessageManager().reportSuccess(Integer.toString(size));
wdContext.nodeCentraldataperson().invalidate();
catch(WDDynamicRFCExecuteException e)
manager.reportException(e.getMessage(), false);
for(int i=0; i <size; i++){
String name = "FullName: ";
wdContext.nodeBapi_Bupa_Central_Getdetail_Input().nodeOutput().nodeCentraldataperson().setLeadSelection(i);
name += wdContext.nodeBapi_Bupa_Central_Getdetail_Input().currentBapi_Bupa_Central_Getdetail_InputElement().getBusinesspartner();
name += wdContext.nodeBapi_Bupa_Central_Getdetail_Input().nodeOutput().nodeCentraldataperson().currentCentraldatapersonElement().getFullname();
wdContext.currentContextElement().setFullname(name);
Any idea what could be wrong?
Thanks,
Divya -
How to declare Dynamic table in Tables Parameters of a Function Module...
Hi Gurus,
I would like to Know how to declare a Dynamic table in Tables parameters of a Function Module.
so that it should be able to hold any table data ....
I have tried all possible ways of trying to assign fields-symbol like declarations which doesnt allow here ...
plz Dont reply with the basics of creating dynamic internal tables, coz my case is not an Internal table it is FM table parameter declaration.....Hi,
If you are requirement is to create a function module with tables parameter having a generic line type i.e. no specific line type
just declare it with a name under Parameter name with out specifying the type.
A reference function module with such parameter, i would quote is the standard GUI_UPLOAD/ GUI_DOWNLOAD where the parameters specified under TABLES are generic.
If you want to process the values passed to these parameters in the source code of function module, field symbols would be a preferable option.
Regards,
Sharath Panuganti -
How can i identify the environment name or database name in the PL/SQL code
Hi,
I am using UTL_FILE to genearate the files.,
My problem is, I have to design the common sql file , which can be executed in 2 diffrent environments ( Say QA & DEV ) , with no parameters. It has to identify the environment and based on the environment , it has to generate the concern files.,
The only change needs to be incorporated is , file names , which will change based on the environment.,
can nay one tell me , how can i identify the environment name or database name in the PL/SQL code ??
RajaIn this case, USEC_GI_DEV.NA.XXXNET.NET is a TNS alias. That alias exists only on the client machine. There is no way to access that information on the database server.
You would have to find something in the v$database or v$instance table that uniquely identifies the database (and you may need some help from the DBAs to do this because you need to ensure that the data element you choose is compatible with whatever refresh process(es) are used in your environment).
Now, if you are writing a stand-alone SQL*Plus script, SQL*Plus, as a client tool, does have access to the TNS alias in later versions. But that is a client-side determination, not a server-side determination.
Justin -
Passing table name and columns name as parameters to procedure
i need a procedure that take table name and column names as parameters .
it should display all values in those columns
like
if i execute procedure p ( t1,c1,c2)
it should display c1,c2 values in t1 table
if i execute procedure p ( t1, c1,c2,c3)
it should display c1,c2,c3 values in t1 tables
no of column parameters changesSee if this helps...
First, read the manual on collections.
Second, define your expected results. You want to output the results to the screen? You cannot perform a 'select' in PL/SQL. You will have to select your output into another collection, then loop through that.
Finally, I am curious why this is necessary versus performing a regular query.
Take a look at this incomplete code.
create or replace
package dave_pac
IS
TYPE col_name_list IS VARRAY(20) OF VARCHAR2(30);
PROCEDURE SFA_TAB_COL1
(p_tname IN VARCHAR2
,p_cnames IN col_name_list);
END;
create or replace
package body dave_pac
IS
PROCEDURE SFA_TAB_COL1
(P_tname IN varchar2
,p_cnames in col_name_list)
IS
l_stmt long;
l_rc number;
begin
l_stmt :='select '||p_cnames(1);
for i in 2..p_cnames.count
loop
l_stmt :=l_stmt||' , '||p_cnames(i);
end loop;
l_stmt:= l_stmt||' from '|| p_tname ;
execute immediate l_stmt;
end ;
END dave_pac; -
Add Vendor Name to FBL3N output list
Dear All ,
I need to add vendor name to FBL3N output list . Is there any way to add the vendor name ?
Thanks
DashHi
U need to implement the BTE 1650 (trx FIBF)
-1) A copy the sample fm SAMPLE_INTERFACE_00001650 to your Z<function module>;
-2) Assign your your Z<function module> to the BTE 1650 (trx BF31 or BF34);
-3) Enhance to the structure RFPOS and RFPOSX with the field to store the name
-3) Run the report RFPOSXEXTEND
-4) Insert the code to get out the name into Z<function module>
Max -
Regarding parameters in the selection module for Datasource
Hi
I created the datasource and selection module.
Since the table parameters are no longer supported in the system ,i used changing parameters instead for selection module.
But in the generated <b>call_select_function</b> it is still using the table parameters to call the selection module and raising an error 'parameter is not defined' error
Please let me know how can i resolve this issue
Regards
LeonDear Leon,
I hope this earlier posting will be of some help...
Steps for Creating DataSource based on Function Module
<b>Tables Tab:</b>
============
i) Parameter Name = I_T_SELECT; Associated Type = SRSC_S_IF_SIMPLE-T_SELECT
ii) Parameter Name = I_T_FIELDS; Associated Type = SRSC_S_IF_SIMPLE-T_FIELDS
iii) Parameter Name = E_T_DATA; Associated Type = 'Like your extract structure'
Please NOTE: Please make sure that you have a tick on 'Optional' for all of the above. Also 'Type Specification' for E_T_DATA will be 'LIKE' but for the other two it will be 'TYPE'.
==========
When I try to change the E_T_DATA table parameter to my structure,
I receive message FL069 "TABLES parameters are obsolete!".
Have you encountered this problem ?
==============================
I could not exit the tables tab once the warning message was displayed.
<b>However, I have since discovered that you don't need to specify the type spec and the associated type at all.
You can just leave them blank and only specify E_T_DATA in the Parameter Name.
The extractor seems to work just fine.</b>
Refer the below weblog by Siggi...
/people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
Regards, ABY -
How to get the "last changed by" for a set of function modules?
How to get the "last changed by" for a set of function modules?
is there any table to get it??See [this|Re: Date of creation of function module] I posted earlier.
>TFDIR will give you the name of the function group program and the include number.
>E.g. SAPLZFUNCGROUP Include 01.
>From this you can construct the include name: LZFUNCGROUPU01.
>You can look this up in TRDIR to find the creation date (CDAT) of the function module.
In your case, you need unam and udat.
matt -
Printing ALV Report output through Function Modules
Hi All,
I want to print my ALV Grid output through function modules/statement (not through print option in menu).
This is because, i am generating a PDF from spool when user clicks on a button. If any changes happened in the ALV output layout, they will be captured in spool through printing it.
So can you please tell me how to print the ALV Output through FMs or sending the ALV output to spool.
Thanks & Regards,
Senthil.
Edited by: senthil nathan on May 17, 2010 2:49 PMHi Dev,
Thanks for the reply.
I want to print the ALV when the user clicks on a button in toolbar. Lets say the user has made some changes to the layout, (E.g hiding a field) and when i print that output it should use the changed layout, If i use the FM suggested by you, i cant acheive this.
If you try to print this manually, the system uses the changed layout and not the original. Thats why i want to know FMs/statement to print.
Regards,
Senthil. -
Changing name of class file and it still working
I am simply trying to change the name of this class file i have named G3webcam.class
and i want to change it to webcam.class when i do this the applet does not work any more. If someone knows of a simple fix please help me.Look at previous post...you cannot do this with a class file. The class loader will try to find G3webcam.class and cannot find it...so it will throws an exception.
In order to change, you need to the source code to all the classes of your application, including G3webcam. Then, you can rename the G3webcam.java to webcam.java. Change all the name of G3webcam in the source code to Webcam (including all source file tha use this class). The compile the application. Java compiler will then create the webcam.class file for you.
Unless you're an expert in reading the Java byte code, i don't see anyother way. (Reflection maybe?, but then, you will have to have the code inside your application to do that, which i doubt at this moment)
DJ Decompiler or any decompiler only decompiler the Java byte code to text...so you can read it in text. You can save it as webcam.class, but it will do nothing except make the application not running again. -
How to change the input and output schema in BPEL process
hi',
Please tell me how to change the input and output schema in BPEL process after the process is made.
thanks
YatanIf your intention is just changing the content you are passing to bpel/returning from bpel
Here is another way
just update your default created xsd files with new elements, update wsdl elements in message definition and chnage bpel code to reflect new elements in activities
Regards,
Praveen
Maybe you are looking for
-
When I go to share my Imovie to Itunes after a couple of hours I get the following message. "Unable to prepare project for publishing. That project could not be prepared for publishing because a error occurred(disk full)". What does this mean and
-
'Install App for SharePoint' There were errors when validating the App Package
Hello, When testing with an app, I tried to add an app event receiver before learning that remote event receiver are not allowed with Sharepoint-hosted app. So I reseted the Handle app installed and Web Project properties of my project and tried to r
-
Not getting column information while Function Import
i had followed below link http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/dotnet/EntityFrameworkOBE/EntityFrameworkOBE.htm i m successfully able to update and add recored using Entity framework into oracle DB. now my problem is with Sele
-
RFEULIST CZ - No. of tax-relevant docs
Hi all, In TC RFEULIST (prg. RFASLD15, EU Sales & Purchases list for CZ, PL, HU) there is a column "No. Docs" in the report (field NO_OF_DOCUMENT). This is... Number of Tax-Relevant Documents Specifies the number of documents that the report has sele
-
Where ca u assign Partner profile in XI system
Hi in File to IDOC scenario Where ca u assign Partner profile in XI system bye..