[Help]: Exit stacked sequence in advance
I am using a stacked sequence structure. Within one sequence, if I find a condition is met, I want exit the whole sequence structure without executing following sequences. Is there a simple way to do this? Thanks a lot.
Dejun
Simple is a relative term. I would highly recommend not using sequence structures as, usually, it can hide code (stacked) and the same can be accomplished using data flow. If you cant get around using it (or just dont want to) then the below would be one obvious solution...
Attachments:
NoSequence.jpg 57 KB
Similar Messages
-
Help needed with stack sequence
Hello friends,
I am using my LABVIEW VI with signal express. I have connected all the controls and indicators to the connector pane and has built the source distribtion. I am attaching my VI. You can see while I import my VI in signal express.. in run LABVIEW vi step it does not show all the control and indicators.
Also if you please can go through my Vi you will see that I am using stack sequence. What I observe that variable (arrays) what I am using in the sequences other than the first frame are not getting updated. I am continuously taking data through tektroniks oscilloscope and that data I want to use in my VI. Oscilloscope will continuously be feeding data in. How do I move to the second frame untill first frame is still receiving data? It may be the reason other variables are not getting updated.
Message Edited by 9966658175 on 12-10-2009 04:01 AM
Vipin
Attachments:
LABVIEW_VI.jpg 182 KB
sig_express.jpg 141 KBto Dennnis
First of all thanking you for your response.
Ya, you are right. there is no need for the sequence structure. But still one of the Local variable (MCA Data) is required. But as you are saying that for loop also is not needed, I dont get it. I have to separately access the element of an incoming array. How do i do that? I mean in my case peak detector pallet is sending out data as an array that has to be used as an index to another array. As we all know that index can only be an integer (single element), not an array. How do i do that without using indexing feature of a loop?
Still my second problem is not solved. I want to continuously acquire data from an oscilloscope and then want to do processing on that continuously and show that online output data. I am using Labview VI in signal express. In my case up to peak detector pallet continuous data output is coming. But after that, output is not updating?
Can u help? I am attaching Labview file this time.
Vipin
Attachments:
MCA2.vi 16 KB -
Help with DYNP_VALUES_READ and DYNP_GET_STEPL in search help exit
Hi,
I'm coding a search help exit for a field on a table control and I need to get access to the value of another field that's on the same line in order to limit the hit list. I can use DYNP_VALUES_READ to return the values from the step loop, but I can't find out which line of the step loop I'm on. DYNP_GET_STEPL always returns 0, presumably because I'm now in a function group and the step loop is getting reset. Any ideas?
Thanks in advance,
AndrewI want to read EBELP and INFNR.
Below is code that i'm using:
MOVE 'MEPO1211-EBELP' TO t_campos-fieldname.
APPEND t_campos.
MOVE 'MEPO1211-INFNR' TO t_campos-fieldname.
APPEND t_campos.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
DYNAME = 'SAPLMEGUI'
DYNUMB = '1211'
TABLES
DYNPFIELDS = t_campos
EXCEPTIONS
INVALID_ABAPWORKAREA = 1
INVALID_DYNPROFIELD = 2
INVALID_DYNPRONAME = 3
INVALID_DYNPRONUMMER = 4
INVALID_REQUEST = 5
NO_FIELDDESCRIPTION = 6
INVALID_PARAMETER = 7
UNDEFIND_ERROR = 8
DOUBLE_CONVERSION = 9
STEPL_NOT_FOUND = 10
OTHERS = 11.
READ TABLE t_campos INDEX 1.
l_ebelp = t_campos-fieldvalue.
READ TABLE t_campos INDEX 2.
l_infnr = t_campos-fieldvalue.
The sy-subrc = 0, but the FM didn't bring the values of the screen fields. Is there some wrong with the filed name?
Thanks. -
Help needed in search help exit
Hi Experts,
I have used a search help exit in IL03 transaction to include a field in a particular search tab. I have written the code in timepoint PRESEL1 and it is showing the search field in that search tab when I directly enter into that tab.
But the problem comes when I go to some other search tab and come to the required search tab the field which I have included is not displayed.
Please give your suggestions to solve this problem.
Thanks in Advance,
Arasu KHi,
In that case. you can do one thing.
in your search help, following field will have the value entred by the user.
SHLP_TAB[1]-INTERFACE[1]-VALUE
Read this table SHLP_TAB index 1 and do your logic.
Reward points if useful.
Regards,
Niyaz -
What is the significance of data collection nad search help exit field ?
Dear Gurus
I know i am asking very basic quetion of abap but sdn is the only source to learn sap for me.I want to thanks you all for your kind support.
i read most of the post related to search help and trying to create one.
for elementary search help.
SE11 -> SEACH HELP -> ELEMENTARY SEARCH HELP
I have doubts regarding to fields "DATA COLLECTION" and "SEARCH HELP EXIT".
reference to a tutorial it is a maintenance view shall i have to reate a maintenace view first.
and other field is SEARCH HELP EXIT what is this.
please help me .
Thanks in advance.
Chitta Ranjan mahato.
Edited by: chitto123 on Oct 8, 2010 5:59 AMHowdy,
DATA COLLECTION - refers to a database table or view. This is the data that the search help will search through and display based on the parameters provided, so you can create your own view for the search help if you want the search to cover multiple tables.
SEARCH HELP EXIT - You can create a function module to be able to alter the Search Help's selection and results at various events throughout the search help. An example of this function module is provided with some documentation in function module F4IF_SHLP_EXIT_EXAMPLE.
Cheers
Alex -
How to read the selection conditions entered in Srch help in srch help exit
Hi Experts,
I have created a search help to get the list of Change Numbers from table AENR. It is based on Creation date, Created by, Description and Reason.
Is there any way by which after the user enters text in Description and Reason fields as a selection criteria, I can convert it to upper case.
In my opinion, there should be some place in Search Help exit where I can code for this.
Please let me know how to do this.
Useful answers will be suiatbly rewarded.
Thanks in advance.
Regards,
Himanshu
Message was edited by:
Himanshu Aggarwaluse the command TRANSLATE
data : descri10) type c value 'abcdefghij'.
TRANSLATE STR TO UPPER CASE.
answer; ABCDEFGHIJ
similarly you can use
TRANSLATE str TO LOWERCASE. -
Issue Search Help Exit for Material Group
Dear Expertsl,
I developed a search help exit for material group for the search helps both H_T023 and H_2023_MEPO to restrict certain material groups from the actual display as follows
1) I developed custom table to hold the Invalid material groups
2) Developed search help as same as in the bellow link
link:[https://wiki.sdn.sap.com/wiki/display/Snippets/CaseInsensitiveSearchHelpExitforMaterial+Group]
3) Before the statement
SELECT matkl wgbez wgbez60 FROM t023t INTO s_t023t
WHERE matkl IN t_matkl
i selected the Invalid materials from the custom table into an internal table
4) i am restricting the entries with the following code.
LOOP AT a_tab.
only move values that meet the requirements
after you convert to upper case.
MOVE a_tab-wgbez60 TO a_tab-wgbez60_test.
TRANSLATE a_tab-wgbez60_test TO UPPER CASE.
MOVE a_tab-wgbez TO a_tab-wgbez_test.
TRANSLATE a_tab-WGBEZ_test TO UPPER CASE.
MOVE a_tab-wgbez60 TO a_tab-wgbez60_test.
TRANSLATE a_tab-wgbez60_test TO UPPER CASE.
IF a_tab-wgbez60_test IN i_wgbez60 AND
a_tab-wgbez_test IN i_wgbez AND
a_tab-matkl IN i_matkl.
ADD 1 TO findex.
MOVE a_tab-matkl TO temp_tab-matkl.
MOVE a_tab-WGBEZ TO temp_tab-WGBEZ.
MOVE a_tab-wgbez60 TO temp_tab-wgbez60.
IF findex > callcontrol-maxrecords.
MOVE 'X' TO callcontrol-maxexceed.
EXIT.
ENDIF.
READ TABLE i_invalid INTO w_invalid
WITH KEY matkl = a_tab-matkl.
IF sy-subrc NE 0.
APPEND temp_tab.
ENDIF.
CLEAR temp_tab.
ENDIF.
ENDLOOP.
This is working fine when we press F4 in ME21N Transaction and give some description and then press enter the popup screen.
But my requirement is user will enter some description in ME21N material group field and press enter ( Not pressing the F4 here) at this moment this is not going through the search help exit and displaying all the entries including the Invalid materials.
Note: We can delete the Invalid material groups but the documents which are having the invalid material already will have an issue and need to be corrected all the documents. But our requirement is only to use the correct materials groups from now onwards.
I would appropriate if any one can helping this regard.
Thanks in advance.,
Regards,
VenkatHi Venkat,
You can call your ZSEARCH_HELP from the PAI , on the event SY-UCOMM = Enter using the function module F4IF_FIELD_VALUE_REQUEST.
For example, your screen field is MARA-ZXXXX, screen 0100 and search help : ZSEARCH_HELP
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
tabname = 'MARA'
fieldname = 'ZXXXX'
searchhelp = 'ZSEARCH_HELP '
dynpnr = '0100'
dynprofield = 'MARA-ZXXXX'
TABLES
return_tab = lt_returntab.
This F4IF_FIELD_VALUE_REQUEST will call your custom search help exit.
Regards
Deepa. -
Set a parameter value using Search help exit
Hi All,
I want a search help such as If I enter a warehouse number on my screen then search help for storage bins should have that warehouse number populated in selection dialog.
I guess i have to write some code in search help exit if CALLCONTROL-STEP = 'PRESEL'.
But I am not able to set the warehouse value to parameter.
Does any one have done something like this?
Thanks in Advance,
ShaillyHi Shailly,
I don#t know if that will be the best option for you, but you can make use of the abap program event at value request for your parameter_id.
What you need is to insert a similar code like the one below:
at selection-screen on value-request for p_param
select fielda fieldb from storage bin table into gi_warehouse_bin
where warehouse = warehouse parameter.
delete adjacent duplicates from gi_zzdez comparing all fields.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = space
dynpprog = 'REPORT_NAME'
dynpnr = '1000'
dynprofield = 'P_BIN'
window_title = 'Text'
value_org = 'S'
tables
value_tab = gi_warehouse_bin
exceptions
parameter_error = 1
no_values_found = 2
others = 3
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
Cheers,
Florin -
Customer field account assignment - F4 - search help exit
Hi all,
I have a question with regard to a F4 search help exit I'm try to build for a new CUF in the account assignment (include INCL_EEW_PD_ACC_CSF).
I've successfully created everything (search help + F4 search exit (read R/3 table)), but when I want to include restricted the search with certain filter values entered on the screen I'm stuck.
I tried to achieve this by passing the parameters entered on the search screen to the RFC read table function, but in fact I'm not able to read the <b>screen values</b> (using 'DYNP_VALUES_READ'):
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = lc_dyname_1
dynumb = lc_dynumb_1
translate_to_upper = 'X'
TABLES
dynpfields = li_fields_filter
I'm always getting an invalid dynpro error (I've tried passing SAPLBBP_PDH_ACC, SAPLBBP_SC_UI_ITS, SAPLBBP_CUF,...).
Does anybody know how I can include de filter values of my search screen in my search ?
Thanks in advance,
KristofHi
Which SRM version are you using ? What's your detailed requirement ?
<b>You need to call these function modules inside your search help exit to fetch the user-entered value and then process it accordingly as per your requirements.</b>
<u>Please go through these function modules.</u>
*--- Get the user-entered fieldname
<u> CALL FUNCTION 'F4UT_PARAMETER_VALUE_GET'</u>
*--- Map the Results
<u> CALL FUNCTION 'F4UT_RESULTS_MAP'</u>
<b>Other related links -></b>
Re: Search helps - CASE sensitive
Re: Search Help - format problem
Hope this will help.
Regards
- Atul -
Hi all,
In transaction code IW51: Create Notification.
Equipment Field is on Main screen and Ship-to Party is on Subscreen. I have created a new elementary Search help for Ship-to party and attached to collective search help DEBI in which I am displaying one column of equipment number attached to ship-to party.
Requirnment is when user hits F4 on Ship-to party, all the equipment associated to this ship-to party are displayed,if user clicks on any of equipment number , this has to be filled in equipment field which is on Main screen.
I think if fields are on same screen it will be filled automatically, but here the equipment is on main screen.
Please help me if any of you have faced this type of problem.
Thanks in Advance,
VijendraHi,
If you trying supply value for the equipment field in the main screen, i guess you wouldn`t be able to do it using the search help exit. Rather on the exit you can supply values for the equipment field directly.
just for eg. xxxx-equip. = <user selected value>.
Regards -
Stacked sequence does not trigger
I am reviewing Pull-down Menu.vi in Labview BasicsII: Development Coarse Manual. When I go through Exercise 2-7, I never get the dialog boxes. I have the Get Menu Selection wired to the stacked sequence where it connects to the box containing the question mark. When I choose "Test 2" or any of the menu choices, it does not trigger the frames.
I ran the program in solutions on the disk, and this program runs correctly, showing the dialog boxes.
I have had this problem before. I connect a wire to a stacked sequence where it shows the question mark. But the stacked sequence ignores the information coming to it.First, I think you're refering to a case structure and not a sequence structure.
Second, you are probably not defining your cases properly. You can use probes to examine exactly what data you're sending to the case structure selector terminal (that's the question mark). If you are using strings, the strings have to much exactly to the strings in the case definition. If they don't match, the default case will execute. If, after using a probe to see what data you are sending the case structure, and after making sure you defined the cases correctly, you still don't see what's wrong, you should post your VI.
I realize saying this is a bit unnecessary, because you already started, but...
To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).
Try to take over the world! -
Stacked sequence inside for loop question
Hi everyone,
I am new to LabVIEW and I just want to make a for loop with a stack sequence inside. I want it so that when the for loop executes for the n-th time, the stacked sequence is at the n-th frame (because each frame contains different tasks to be carried out). Is this possible? or is there an alternative equivalent method? Please help me out! Thanks!!Thank you Norbert for the words of advice.
Try to avoid Stacked Sequence Structures at all cost. They are a nightmare to deal with when maintaining the code and they do not offer simple scalability, especially if you need to deal with parallelism.
As Norbert suggested, State Machines is the way to go. Try to avoid naming covention such as 1...2...3...4...5.......9999. Give the name of each case based on what that case does. Create a TypeDef Control for the state selector (you'll thank me after having changed it for the 5th time ).
There are probably 100's of examples in this forum.
RayR -
Go out from stack sequence when there is an error
Hi All,
I have a small code that used to do the simple testing. I used all stack sequence to control the equipment sequencely. What I want to do is if there is an error (either failed to control equipment or any error that can occur) in any sequence, the code will make it go out rather than loop thru all the sequence then go out, is it possible to do this kind of feature ? I do try to using the event to raise the error but it failed cos I have no idea how to do it.Anybody please help.
ThanksBut the problem is there are too many VI (about 20++
Are you running 20 different test sequences ? Or 20 instances of the same test?
If it's the same test, or even a similar test, then make it a subVI, feed it parameters to customize it, and be done.
If they're really that different, then the mistake was to write 20 different test sequences without handling errors.
If that's the case, I know of no way to automatically replace the things.
Message Edited by CoastalMaineBird on 07-16-2009 05:14 PM
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com
Blog for (mostly LabVIEW) programmers: Tips And Tricks -
Flashing stacked sequence auto start and stop
Seems like this should be so easy but I'm stumped.
I want to use some flashing leds while some of my data is plotted but can’t figure out a way to programmatically start and stop a simple flashing stacked sequence.
thanks for any help.
Attachments:
flashing LEDs.vi 33 KB
flashing LEDs.png 12 KBOK. Then put the flashing in the loop with Stuff 2, which I presume is the one for which you want to show activity. I modified your program to do this. I also eliminated the sequence structure by using dataflow. You can probably get down to one loop by changing to a state machine structure.
If the flashing rate needs to be a different rate than the Stuff 2 logic, put the slower part into a case structure which only executes one time for every n iterations.
Lynn
Attachments:
flashing LEDs.2.vi 16 KB -
Remove the stacked sequence structure from LabVIEW.
Remove once and for all the stacked sequence structure from labVIEW
It's an absolute horror.> Sequence locals are sometimes (for very few cases) usefull if you know how to use them properly
What does that even mean????
(.. and you are repeating basically the same statement about four more times as if the use of sequences and sequence locals is an advanced skill, only to be used by LabVIEW masters. Your post is so redundant that it could be condensed to 20% of the size without loss of information).
It is clear that the stacked sequence can never disappear from LabVIEW, because of the need for backward compatibility. (It could be taken out of the palette, but why...).
LabVIEW Champion . Do more with less code and in less time .
Maybe you are looking for
-
Error while importing the spatial data
Hi, I have the expdp dump from 10.2.0.4 db and I am importing it to 11.2.0.2 on another servers. I received the below error; ORA-39083: Object type INDEX failed to create with error: ORA-29855: error occurred in the execution of ODCIINDEXCREATE routi
-
How can i store and use maps in 5800
I was stunned when my new nokia 5800 hanged when receiving a operator status message after call which shows call duration, so i had to update my phone firmware using nokia pc suite. Now all of sudden the nokia maps icon seems to have disappeared, am
-
Pdf not created by Adobe and all pics of pages
Before I purchase a subscription to Adobe ExportPDF, I'd like to know if it can successfully convert tough pdf files Many of the pdf files that I want to convert were not created using Adobe, but another application. Each page of the data/word proces
-
Client closed connection before receiving the entire response
Hi I am using URLFilePromise to download a zip file from my server to desktop using an air app. The zip file is about 200MB, but after it reaches downloading about 7 MB , urlFilePromise is dispatching complete event. I could see the following error m
-
Hi.. we are trying to post Purchase Order from SRM to SUS through XI using Proxy structure. on SRM side the msg is processed.In xi also the msg got processed.But in SUS inbound the msg is failing with the following err: An error occured within an XI