How to use select a vi function inside a loop?
I am modifying the notifier basics part 2.vi to send a notifier to each of 64 sub-vi's. How can you use the 'select a vi' function inside a loop for 64 iterations to access the individual filenames??
Attachments:
Notifier_BASICS_Part_2.vi 87 KB
If all you are trying to do is send notifiers to each of these 64 subVIs, I would suggest not doing it in a loop, but rather just placing the 64 subVIs in your diagram.
The alternative is of course to use the call by reference node and have an array of VI names. This is a little cleaner on the diagram, but 1) doesn't occur in parallel and 2) is a bit tricky. Additionally, you have to be sure that your array of filenames is correct, and that you NEVER move or rename those VIs. Of course, you could always put them in a directory and create an array by reading the directory contents.
Either way, good luck, it doesn't sound like fun.
Similar Messages
-
How to use selection-screen in function module?
Hello
I've created a function module and i have to create within the function module a selection-screen(with select-options for entering data) but i get an error that within form routines and function modules this statement is not allowed.
Can anybody help?
thanxHi,
YOu cannot create a selection screen withing a function module.
What you can do is to call a screen , say '0100'.
Create a screen '0100' and then include a selection -screen as a subscreen in that screen.
Regards,
Ravi -
How to use Logical database in function module?
I will create a function module in HR.
but how to use Logical database in function module ? Logical database PNP always show screen.in function (RFC) code , it is a matter.You cannot attach the LDB to the main program of the function group.
- So you may [SUBMIT|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=submit&adv=false&sortby=cm_rnd_rankvalue] a report which use the LDB and get back the data (export/import), by default in the syntax of SUBMIT the selection-screen will not be displayed
- Use [LDB_PROCESS|https://www.sdn.sap.com/irj/sdn/advancedsearch?query=ldb_process&cat=sdn_all], fill a structured table for selection, and get data back in another table
- Use [HR function modules to read Infotypes|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=hrfunctionmodulestoread+Infotypes&adv=false&sortby=cm_rnd_rankvalue].
Regards -
How to use a user defined function module in IP
Hi All,
Can you please guide me on how to use a user created function module in IP? My requirement is to have 2 exit function modules to be used in IP to load the falt file data into a cube..
Regards,Hi,
/people/marc.bernard/blog/2007/11/25/how-to-load-a-file-into-sap-netweaver-bi-integrated-planning-part-1
thanks to Marc Bernard
Regards -
How to use a user defined function in XI
Hi Experts,
I would like learn how to use a user defined function in Xi during mapping . Is there any step by step on that.
Besides during when me make communcaton channels I see the following tabs...Paramters ..Identifiers ...Module...
The module that is given here ...where and how it is used.Hi,
You can write UDFs in java in Graphical mapping to enhance your XI Graphical mapping functionality
The steps for doing it would be:
1. Click on Create New function Button found on Bottom left corner on your XI Mapping window.
2. Write your java code.
3. Run the Mapping Test as usual.
>>The module that is given here ...where and how it is used.
The adapters in the Adapter Framework convert XI messages to the protocols of connected external systems and the other way around. When doing so, some
functionality might need to be added specific to a situation which is possible with the use of custom modules.
Typical example would be validation of file content when using a File Adapter or modification of the message payload to a common content structure which is not supported by any of the standard SAP modules.
An Adapter module is developed as an Enterprise Java Bean and is called locally by the Adapter.
An example on modules :
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/da5675d1-0301-0010-9584-f6cb18c04805">How to develop a module for reading file name in a sender file adapter XI 3.0</a>
Cheers,
Chandra -
HOW TO USE SELECTION SCREEN
I WANT TO INSERT PURCHASE DOCUMENT NUMBER
AND WANT TO SEE ALL INFORMATION FOR THAT PURCHASE DOCUMNET NUMBER.
THANKS IN ADVANCED.The main use of the selection-screen is to select screen in the back ground
ex :
TABNAME
IN THE ABOVE FIGURE TABNAME IS THE FIELD AND THE BACK END IS CREATED SCREEN IN THE BACK END
THIS SCREEN CREATION WE CAN USED THE SCREEN SELECTION -
How to use java api for function activity in embed oracle workflow?
because i can't install standalone oracle workflow successfully.
pls tell me how to use java api for function activity in embed oracle workflow?
are there some patch or pulg-in package?
ths a lot...........The Java Function Activity Agent is not certified for Oracle Workflow embedded in Oracle Applications. Installing standalone workflow should be a lot easier than what you have found, although it looks like you did hit a Pentium 4 issue with the Oracle Universal Installer. I suggest you contact Oracle Support or Oracle Consulting for assistance.
because i can't install standalone oracle workflow successfully.
pls tell me how to use java api for function activity in embed oracle workflow?
are there some patch or pulg-in package?
ths a lot........... -
How to use selection-set in submit report
Hi ,
How to use,
submit report via selection-screen
using selection-set 'ABC' .
Can somebody pl tell me how to use selection-set 'ABC' in submit report . It would be nice if someone can send me a piece of code.
Regards,
HardikHi,
This is from ABAPDOCU.
SUBMIT REPORT01
VIA SELECTION-SCREEN
USING SELECTION-SET 'VARIANT1'
USING SELECTION-SETS OF PROGRAM 'REPORT00'
AND RETURN.
Effect
Executes the program REPORT01 with the variant VARIANT1 of the program REPORT00.
You can use f1 help also. -
How to use selection creteria in Trial Balance ???....
Dear all,
Redefining my question in another thread,
How to use selection creteria in Trial balance to get closing balance of previous fiscal year as
opening balance of current fiscal year(01.04.09 to till date) ?
Since Revenue,Expenditure account get zeroed on YEC procedure,
My question is concerend with Balance sheet accounts
Note : YEC is performed on 31.03.09.
Expecting ur valuable replies.
JeyakanthanHi Jey
You tried this ?
What is the result are u getting ?
choose Financials Financial Reports Financial Trial Balance . Under Selection criteria
Opening Balance for Period u2013 Select this option when you need to differentiate between the balance of the selected posting period and that of the previous periods. When a date range of a current posting period is selected, you can select this checkbox to display the bookkeeping balance prior to the selected date range in a separate column: OB.
As default, the checkbox is cleared. Selecting it displays the following options:
OB from Start of Company Activity u2013 Displays the opening balance accumulated since the companyu2019s activity started.
OB from Start of Fiscal Year u2013 Displays the opening balance accumulated from the start of the current fiscal year.
Presently i dont have that enviroment to check.
Ashish Gupte -
How to use select options whitout ranges ie like parameter
how to use select options whitout ranges ie like parameter and pls send me the code on that
thanks
raja.hi,
SELECT-OPTIONS : s_kunnr for kna1-kunnr <b>no intervels.</b>
eg: code
<b>SELECT-OPTIONS : s_kunnr for kna1-kunnr <b>no intervels.</b></b>
data: itab type table of kna1 with header line.
select * from kna1 into table itab where kunnr IN s_kunnr.
rgds
Anver -
How to use SELECTION-SET with FREE-SELECTIONS?
Hi,
how to use SELECTION-SET with FREE-SELECTIONS?
Regards,
Vinay.Check http://help.sap.com/abapdocu_70/en/ABAPSUBMIT_SELSCREEN_PARAMETERS.htm
-
How will use Select-Options in Read table Concept.
Hi All,
How will use Select-Options in Read table. For example,
Select-Options : test for bseg-prctr.
Select * from bseg into table ITAB.
Read table ITAB with key prctr in test.
Last line is showing error. If any way to read ITAB as conditions given per select options.
Thankx Advance,,,HI,
you cannot use " IN " with read statement , read statement is used as:
READ TABLE it_collect ASSIGNING <fs_collect>
WITH KEY rbpl = <fs_wkdet>-arbpl
ufnr = <fs_wkdet>-aufnr.
anyways you can use loop at statement before read to use " into " statement as:
LOOP AT it_master INTO l_master
WHERE werks = l_werks
hope it will help you
regards
rahul
Edited by: RAHUL SHARMA on Dec 30, 2008 9:14 AM -
How to use select-options in the function module of import parameter ?
Hi ...
I have created a BAPI and tested in SWO1 tcode , by giving the single value for an company code ( BUKRS ) , it executed properly .
Same thing is working after implementing in a program .
so now it is working for fetching a single company code details .
My requirement is : I want to use select-options in program as well as in function module IN IMPORT PARAMETER.
Program :
REPORT ZTEST.
TABLES : T001 , ZBAPI_STR .
TYPES : BEGIN OF TY_ITEM .
INCLUDE STRUCTURE ZBAPI_STR .
TYPES : END OF TY_ITEM .
DATA :WA_ITEM TYPE TY_ITEM ,
ITEM LIKE STANDARD TABLE OF WA_ITEM INITIAL SIZE 0 .
PARAMETER : BUKRS TYPE ZBAPI_STR-BUKRS.
call function 'ZBAPI_FMT001'
exporting
bukrs = BUKRS
IMPORTING
RETURN =
tables
itemtab = ITEM
IF ITEM IS NOT INITIAL .
LOOP AT ITEM INTO WA_ITEM .
WRITE : / WA_ITEM-BUKRS , WA_ITEM-BUTXT , WA_ITEM-ORT01 , WA_ITEM-LAND1 .
ENDLOOP.
ENDIF.
FUNCTION MODULE :
FUNCTION ZBAPI_FMT001.
""Local Interface:
*" IMPORTING
*" VALUE(BUKRS) TYPE EFG_TAB_RANGES
*" EXPORTING
*" VALUE(RETURN) TYPE BAPIRET2
*" TABLES
*" ITEMTAB STRUCTURE ZBAPI_STR
SELECT BUKRS BUTXT ORT01 LAND1 FROM T001 INTO TABLE ITEMTAB WHERE BUKRS = BUKRS .
ENDFUNCTION.
Regards
Deepa.I have given a similiar example which i did
Declare a
Table type:Z_TT_PONUM
Short text : Select options PO Number
in SE11 tcode with row type eg: Z_ST_PONUM
create a structure (this will be the row type)
Structure Z_ST_PONUM
Short text Select Options Field PO number
Compenent Compent type
SIGN BAPISIGN Inclusion/exclusion criterion SIGN for range tables
OPTION BAPIOPTION Selection operator OPTION for range tables
LOW EBELN Purchasing Document Number
HIGH EBELN Purchasing Document Number
In the function module import
give as
I_PO_NUM TYPE Z_TT_PONUM opt pass value Select options PO Number
Hope this is exactly what you want to know.
So you create a structure simliar to mine but the low an high whould be your component
then a table type and then include that in the BAPI.
Then pass your select-option value to this BAPI when you call this BAPI in the program -
How to use Select in nested Else if statement.
Hi ,
I am validating a file . for that I placed conditions through Nested ELSEIF statment.
Some fields in the file need to validate against a table.
Can some one help me how to organise my below code so that I can validate the file using all my conditions.
CALL FUNCTION 'RH_EXIST_OBJECT'
EXPORTING
plvar = '01'
otype = wa_1000-otype
objid = wa_1000-objid
EXCEPTIONS
not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
wa_error-reason = 'Object does not exist '.
APPEND wa_error TO it_error.
APPEND wa_file TO it_1000.
ELSEIF wa_file-endda IS INITIAL.
wa_error-reason = 'End date missing'.
APPEND wa_error TO it_error.
ELSEIF wa_file-infty IS INITIAL.
wa_error-reason = 'Infotype Missing'.
APPEND wa_error TO it_error.
ELSEIF wa_file-begda IS INITIAL.
wa_error-reason = 'Begin date missing'.
APPEND wa_error TO it_error.
ELSEIF ( wa_file-sclas IS NOT INITIAL
OR wa_file-sobid IS NOT INITIAL )
AND wa_file-infty <> const_infty_1001. " Cosk Centre
wa_error-reason = 'Enter a valid infotype'.
APPEND wa_error TO it_error.
ELSEIF ( wa_file-persg IS NOT INITIAL
OR wa_file-persk IS NOT INITIAL )
AND wa_file-infty <> const_infty_1013. " Employee Group
wa_error-reason = 'Enter a valid infotype'.
APPEND wa_error TO it_error.
SELECT SINGLE * FROM t501 INTO wa_501 WHERE persg = wa_file-persg.
IF sy-subrc NE 0.
wa_error-reason = 'Invalid Employee Group'.
APPEND wa_error TO it_error.
ADD 1 TO gv_error.
gv_error_flag = 'X'.
ENDIF.
SELECT SINGLE * FROM t503 WHERE persk = wa_file-persk.
IF sy-subrc NE 0.
wa_error-reason = 'Invalid Employee SubGroup'.
APPEND wa_error TO it_error.
ENDIF.
ELSEIF ( wa_file-bukrs IS NOT INITIAL
OR wa_file-persa IS NOT INITIAL
OR wa_file-btrtl IS NOT INITIAL )
AND wa_file-infty <> const_infty_1008. " Company Code
wa_error-reason = 'Enter a valid infotype'.
APPEND wa_error TO it_error.
SELECT SINGLE * FROM t500p WHERE persa = wa_file-persa.
IF sy-subrc NE 0.
wa_error-reason = 'Invalid Personnel Area'.
APPEND wa_error TO it_error.
ENDIF.
ELSEIF wa_file-build IS NOT INITIAL
AND wa_file-infty <> const_infty_1028. " Building
wa_error-reason = 'Enter a valid infotype'.
APPEND wa_error TO it_error.
ELSEIF ( wa_file-trfar IS NOT INITIAL
OR wa_file-trfgb IS NOT INITIAL
OR wa_file-trfg1 IS NOT INITIAL
OR wa_file-trfs1 IS NOT INITIAL
OR wa_file-indda IS NOT INITIAL
OR wa_file-trfkz IS NOT INITIAL
OR wa_file-molga_pg IS NOT INITIAL )
AND wa_file-infty <> const_infty_1005. " Pay Scale
Endif.hi,
here is what you need.
LOOP AT itab INTO wa_itab.
SELECT maktx
APPENDING CORRESPONDING FIELDS OF TABLE it_makt
FROM makt
WHERE matnr eq wa_itab-matnr
ENDLOOP.
note: performance-wise, it is better to use FOR ALL ENTRIES that SELECT inside a LOOP.
here is a sample code
SELECT maktx
INTO CORRESPONDING FIELDS OF TABLE it_makt
FROM makt
FOR ALL ENTRIES IN itab
WHERE matnr EQ itab-matnr.
regards,
Peter -
How to use Table valued MSSQL function in OBIEE
Hi all,
Can some one help me to understand how to use table valued function in OBIEE? I want to use a table valued function (MSSQL function, with some input parameter), in the physical layer to pull the data?
I know for MSSQL Stored Procedure we can write as
EXEC SP_NAME @Parameter = 'VLUEOF(NQ_SESSION.Variablename)'
but now I have a table valued function in the query window I can get the data as
select * from myfunction(parametervalue)
In physical layer of OBIEE I have tried as
select * from myfunction('VLUEOF(NQ_SESSION.Variablename)'), but I'm getting error as the NQ_SESSION variable doesn't have a value , but actually I have initialized the variable but still Im getting error.
Can some one help me to solve this.
Thanks,
MithunFollow this link and try yourself. let me know for issues
Substring instr issue in obiee
Appreciate if you mark
Edited by: Srini VEERAVALLI on Feb 20, 2013 8:13 AM
Maybe you are looking for
-
VM Server 2.2.1 Install errors
I am new to OVM and am trying to get it installed so I can use the RAC templates and do some database feature testing. I downloaded the Oracle VM Server 2.2.1 x86 64bit from the e-delivery site and followed the steps as indicated: 1. Download the com
-
Import Server Error - Value Transformation
Hi, I have two questions on import server and import map. 1. My source xml does not have company code segment (customer repository), when I opened my xml thru import manager using my import map, I dont see any source fields belong to company code se
-
OS: Suse Linux 10 SP 2 Oracle Audit Vault Version:10.2.3.2.4 Two nodes RAC database After patch the Oracle Audit Vault Server I began to notice the following message at the second instance alert log: ora-12012 error on auto execute of job 23 PLS-0020
-
App store apps and deleting them
when you buy an app from the mac app store. Is it self contained? If you remove it, does it automatically take with it any preference files, etc..or does it leave them behind? Just curious, as I haven't used it yet and was thinking about using a few
-
Anyone use the backup to external hard drive working on Itunes
if so, does it kinda work like the backup to disk where you can basically just load it up on a new computer and it basically looks like it did when you left it? or is it basically like copying your whole music folder over to an external hard drive an