Multiple loops in one loop for text variables

Dear experts,
Please find the code below.This is text variable customer exit.Can u ple help me to put these multiple loops into one loop.Do u suggest this code is ok?
Appreciate your help.
WHEN 'ZSTXTPE01AA'or 'ZSTXT0FISCPER305AA'or 'ZSTXT0FISCYEAR01AA'
INCLUDE Z_VARIABLES_TEXT
DATA: vtype i,
      fisper i,
      fisyear i
IF I_STEP=2.
LOOP AT I_T_VAR_RANGE INTO loc_var_range WHERE VNAM='ZS0VTYPE01AA'
vtype=LOC_VAR_RANGE-LOW
ENDLOOP.
CLEAR L_S_RANGE.
L_S_RANGE-LOW= vtype.
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'EQ'.
LOOP AT I_T_VAR_RANGE INTO loc_var_range WHERE VNAM='ZS0FISCPER305AA'
fisper=LOC_VAR_RANGE-LOW
ENDLOOP.
CLEAR L_S_RANGE.
L_S_RANGE-LOW= fisper.
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'EQ'.
LOOP AT I_T_VAR_RANGE INTO loc_var_range WHERE VNAM='ZS0FISCYEAR01AB'
fisyear=LOC_VAR_RANGE-LOW
ENDLOOP.
CLEAR L_S_RANGE.
L_S_RANGE-LOW= fisyear.
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'EQ'.
APPEND L_S_RANGE TO E_T_RANGE.
ENDIF.
Rgds
ACE

Hi ACE BW,
You can try to use the SELECT statement and then include the LOOP inside it.
Thanks,
Daniel

Similar Messages

  • Multiple loop in one loop

    Dear experts,
    Please find the code below.This is text variable customer exit.Can u ple help me to put these multiple loops into one loop.Do u suggest this code is ok?
    Appreciate your help.
    WHEN 'ZSTXTPE01AA'or 'ZSTXT0FISCPER305AA'or 'ZSTXT0FISCYEAR01AA'
    INCLUDE Z_VARIABLES_TEXT
    DATA: vtype i,
          fisper i,
          fisyear i
    IF I_STEP=2.
    LOOP AT I_T_VAR_RANGE INTO loc_var_range WHERE VNAM='ZS0VTYPE01AA'
    vtype=LOC_VAR_RANGE-LOW
    ENDLOOP.
    CLEAR L_S_RANGE.
    L_S_RANGE-LOW= vtype.
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'EQ'.
    LOOP AT I_T_VAR_RANGE INTO loc_var_range WHERE VNAM='ZS0FISCPER305AA'
    fisper=LOC_VAR_RANGE-LOW
    ENDLOOP.
    CLEAR L_S_RANGE.
    L_S_RANGE-LOW= fisper.
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'EQ'.
    LOOP AT I_T_VAR_RANGE INTO loc_var_range WHERE VNAM='ZS0FISCYEAR01AB'
    fisyear=LOC_VAR_RANGE-LOW
    ENDLOOP.
    CLEAR L_S_RANGE.
    L_S_RANGE-LOW= fisyear.
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'EQ'.
    APPEND L_S_RANGE TO E_T_RANGE.
    ENDIF.
    Rgds
    ACE

    LOOP AT I_T_VAR_RANGE INTO loc_var_range
    WHERE VNAM IN('ZS0VTYPE01AA', 'ZS0FISCPER305AA','ZS0FISCYEAR01AB')
    vtype=LOC_VAR_RANGE-LOW.
    endloop.
    L_S_RANGE-LOW= vtype.
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'EQ'.
    L_S_RANGE-LOW= fisper.
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'EQ'.
    L_S_RANGE-LOW= fisyear.
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'EQ'.
    APPEND L_S_RANGE TO E_T_RANGE.
    try the above code
    also
    What u r doing inside ur loop endloop?

  • No value found for Text Variable

    Hi All,
    I have 2 different variable created on 0VERSION. One for user entry and second one is text variable with replacement path as "text".
    I have 3 different columns in the report.
    One is Restricted KF, based on user entry variable. Heading of this column has to be Result (&ZVERTXT&), where ZVERTXT is my text varaible.
    Now, in second column I m using formula to calculate percentage. Heading of this column is &ZVERTXT& (%).
    Now, in third column i m again using formula using the same KF as in first column. But this time, in the heading this text variable thorws "no value found error"
    can anybody help me out in this issue.. ??

    Hi,
    This is the proble to get value for text variables with Replacement path ,in case system is getting 2 reference values .So it get confusion and says that <i>No value found for Text Variable </i> .
    So as a work around :
    Instead of a text variable with automatic substitution(replace ment path) from another characteristic value, you can also create a text variable that is filled by a customer exit.In the code you  assign the Text value by looking into TEXT table with the value you got from User entry variable( which is used in first Restricted KF).
    With rgds,
    Anil Kumar Sharma .P

  • Can i install itunes multiple times on one computer for multiple users?

    Can i install itunes multiple times on one computer for multiple users?

    Like most applications you only need to install it once for it to be available to all users. (That said it is possible to install an application and only make it available to the current user, but that's rarely needed.)
    tt2

  • No value found for text variable ZZCALQTR in "&ZZCALQTR&"

    Hi,
    I m currently working on cell definition and facing some problems.
    Considerthis
                    Structure1
                    Current Cal Quarter   Last Cal Quarter
    Row1
    Row2
    Total
    For Current Cal Quarter and Last Cal Quarter i have text variable &ZZCALQTR& and inside i have restricted 0CALQUARTER.
    ANd i have used
    different offset for )CalQuarter in individual cell definition.
    So, it is giving me this error
    No value found for text variable ZZCALQTR in "&ZZCALQTR&".
    what should i do...any solution
    regards,
    Sandeep Khatri

    Hi San,
    i think u r exeuting the Query without providing any value in selection screen.then it displays the error message which u mentioned...just enter some value in selectionand try it..
    hope this helps
    regards

  • What is the include for text variable?

    Dear Friends
    I am trying to add a customer exit for text variables.
    I have done variable exits for things like fiscal period but not for customer exit TEXT variables.
    I could not find any text variable code in the include ZXRSRU01  .
    Please advise what should be the program name?
    Is it found in a different include?
    regards
    Bass

    Hi Bass,
    Customer exit for text variables is also the same how we create customer exits for characterisitics variable. As per the clarity what i got from ur question.
    I'll just explain a small program in customer exits which will act as a text variable.
    Go to SE38 -->
    Display the program ZXRSRU01 --> (This can be done only if you have added the enhancement of the system from CMOD)
    Then add ur following case statement to the existing code.
    After all the data declarations start ur main program
    when 'YEAR_CUST'.
      if i_step = 2.
        l_year1 = sy-datum+2(2). //Data declaration
        l_mon1 = sy-datum+4(2).  // Data Declaration
       l_date1 = sy-datum+6(2). // Data Declaration
         case l_mon1. //case statement which has the technical name of ur Exit variable
         when  '01'. // This statement generally checks the whether the given variable entry has a value '01' then enters the statement here and returns the value as JAN //
              CONCATENATE 'JAN' l_year1 into dat.
              l_s_range-low = dat.
              l_s_range-high = l_s_range-low.
              l_s_range-sign = 'I'.
              l_s_range-opt = 'EQ'.
              APPEND l_s_range TO e_t_range.
              endcase.
             ENDIF.
    Hope this helps u and have given the explanation as per the understanding of your questionand can give more clarity to you.

  • Max Character Length for Text Variables

    Hi folks,
    Quick question:
    Does OPA have a max character length for text variables?
    -Isamu

    Obviously common sense prevails here. The system is unlikely to perform very well if you start passing around MBs of data in text variables!

  • How to Change multiple keys on one loop in one track

    Several one-to-one lessons fail to reveal how I can change loops key independent of other loops. Example, take a loop and loop it four times in one track, trying to make first loop E, second loop A, third loop B, fourth loop C. Seems when I change one, they all change to the new key. Anyone know how to create independent control over each segment?
    Message was edited by: TomRin

    See this support article:
    Record multiple takes:  http://help.apple.com/garageband/index.html#gbnda1184253

  • No value found for text variable ZTFYEAR

    Hi,
    I have used Text variable ZTFYEAR with replacement path on fiscal year 0FISCYEAR. I have three columns in my report for value for current fiscal year, fiscal year-2, fiscal year-1.When I use the text variable with replacement path , it shows in the header &ZTFYEAR&Value instead of showing 2007value, 2005 Value , 2006 Value.
    Any bosy can help?
    Error message :
    Message no. BRAIN612
    Diagnosis
    Text variable ZTFYEAR, which is found in the item " Values", needs to be replaced by the value of the characteristic 0FISCYEAR. This value is not clearly specified in the item " Values". Therefore, no replacement takes place.
    Thanks,
    Ajay

    Hi Ajay,
    Is this teaxt variables created on 0FISCYEAR?
    if yes
    then did you include 0FISCYEAR in your selection while creating a row or a column as the part of the structure?
    If you are using 0FISCYEAR and then still not getting the value replaced check in your amster data if you ahve the key,small text,  middle text and long text which ever you have used while creating your text variable has values in it or if it's blank?
    hope this helps!!
    Regards
    Sri

  • Looping through list, searching for text

    If i am looping through a list and trying to find the text I am looking for to make a selection statement, how would i achieve that?
    <cfif text="TheTextI'mLookingFor></cfif>?

    you would use Find of FindNoCase function.
    http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7e 7c.html

  • Multiple users under one roof for Nike+

    Hi
    I more than one of us in the family want to use Nike+ do we need two Nanos or two nike+ kits, or is one sufficient? Multiple accounts? How does this work?
    Thanks

    You can indeed use a single iPod Nano with multiple Nike Sensors & Receivers. That is what I just tried out. My girlfriend and I share one Nano and attach our respective receivers to it. Each of our Nike shoes has a sensor in it. When you sync back to iTunes, it recognizes the second sensor and allows you to name each one. You can then sync each one's respective data back to the Nike site. We have just started using it, but it seems to do exactly what we want.
    I suspect that if we wanted we could also use separate sensors in our shoes with a single receiver, but this way with two receivers makes more sense to me.

  • Can multiple users share one file for iphoto

    I want to be able to have all the user profiles on our iMac access the same files for iPhoto, so when one user adds photos they are there for anyone who logs on.

    For iPhoto 09 (version 8.0.2) and later:
    What you mean by 'share'.
    If you want the other user to be able to see the pics, but not add to, change or alter your library, then enable Sharing in your iPhoto (Preferences -> Sharing), leave iPhoto running and use Fast User Switching to open the other account. In that account, enable 'Look For Shared Libraries'. Your Library will appear in the other source pane.
    Any user can drag a pic from the Shared Library to their own in the iPhoto Window.
    Remember iPhoto must be running in both accounts for this to work.
    If you want the other user to have the same access to the library as you: to be able to add, edit, organise, keyword etc.
    Quit iPhoto in both accounts. Move the Library to the Users / Shared Folder
    (You can also use an external HD set to ignore permissions, a Disk Image or even partition your Hard Disk.)
    In each account in turn: Double click on the Library to open it. (You may be asked to repair the Library Permissions.) From that point on, this will be the default library location. Both accounts will have full access to the library, in fact, both accounts will 'own' it.
    However, there is a catch with this system and it is a significant one. iPhoto is not a multi-user app., it does not have the code to negotiate two users simultaneously writing to the database, and trying will cause db corruption. So only one user at a time, and back up, back up back up.

  • Multiple titles within one project for sharing to iDVD

    Hello,
    I have about 90 minutes of video from Christmas.
    I want to create one iMovie project from this footage, but separate it into 5 different titles (within the project) each of which will have 2 or 3 chapters, so I can just share the one project with iDVD when burning to a DVD, rather than having to do 5 different projects.
    Is this possible?
    I've trying for most of the day to figure it out, but I can't.
    Can anybody help?
    Regards

    There are at least two ways to do this depending on what results you want:
    One way would be to create five separate iMovies; each with its respective 2-3 chapters and then import the five iMovies into iDVD.
    When you import the first one into iDVD, you will see its title and the options 'Play Movie' and 'Scene Selection.'
    When you import the second one, iDVD creates a title link to another submenu showing the Play Movie and Scene Selection options for the second movie; and so forth for each of the five movies.
    This gives you the five titles on the main iDVD screen, and the chapter options on the submenus. With this method you would not have a "Play All" option unless you import the entire iMovie as the first movie. Then, you would have the 'Play Movie' option (which you could rename as Play All Movies) with the five separate movies as title buttons linking to each one's Play Movie and Scene Selections.
    However, if you wanted all five titles and the chapter options to be on iDVD's main screen, you can do this with some copy/paste/delete manipulation of the submenus. If you wish to do this, post back for specific instructions.
    Second method would be to leave your iMovie as one long iMovie and create chapter markers for each of the five titles; and markers for each of the chapters within those titles. If you label the chapter markers correctly, a viewer will easily be able to see the organization of your iMovie.
    The chapters will appear on submenus...usually 4-6 chapters per submenu. I have done this with iMovies of trips where I marked the first chapter 'Italy: Rome' second 'Venice' third 'Milan' and fourth 'France: Paris' fifth 'Chartres' sixth 'Bordeaux' etc.
    This option will allow the iMovie to be selected in its entirety...the Play All option...as well as begin at whatever chapter is selected. By carefully manipulating the submenus, you could easily have each of the five divisions as separate submenus.

  • Can you make a page layout and use multiple pictures on one page for a slide presentation?

    I thought I remebered seeing a tutorial on how to make page layouts for use in your slide presentations. I can not find this now. I am using the theme of scrapbook but have several pictures that should go together on one page or frame. I do not have iphoto11. So I am more limited I think. I do not have time to upgrade at this point. Is there anyway to customize my slide presentation in this way?

    Hi
    Yes You can in iDVD make it to add a folder with Your pictures too (to be opened on PC/Mac - not viewed on DVD-player)
    Two ways
    • iDVD menu - down to Preferences and then select like this
    or by using "Editing for DVD-ROM"
    Yours Bemgt W

  • Can multiple users use one drive for time machine

    I have an older G4 which I have put a 500mb drive into. I want to put it on the newtork and use it as a time machine. Do I need to partion the drive, such that each user has there own partition? Or just one large partition and allow users access?
    Thanks

    see if this user tip can help: http://web.me.com/pondini/Time_Machine/26.html
    JGG

Maybe you are looking for

  • Firefox 3.0.15 displays all text in Serbian instead of English on my Mac OSX 10.4.11!

    Today I upgraded my Firefox to the latest version Mac OSX 10.4.11 can support. It is Firefox 3.0.15 and now all text is coming out in Serbian Cyrillic language. It is impossible to work, to read anything and to browse. With the older version of Firef

  • Reporting on Access Rights to Pages/Page Groups

    As all of you probably know it is difficult to get a snap-shot of exactly what permissions a user has for pages and other items in portal since you have to go to several different places using the interface to "compile" them for a user. So, we would

  • Passing parameters to an included xsql file (using xsql:include-xsql)

    Hi, because I want to use different stylesheets for my transformations I use the setup with including the actual query xsql file from a sort of wrapper xsql files around it with a different stylesheet instruction. All is fine but request parameters g

  • Round in circles

    I use both a Mac and iPad, (also use iPhone but not for these apps) on both Numbers and Pages are installed and they both work on my iPad.  But on my Mac  OSX 10.9.3,  when I come to use either they state latest version needs installing, so I go to A

  • How can I cause HP Mobile Printing print jobs to default to duplex printing?

    I purchased an HP Officejet Pro 8620 a few days ago--for use with my Windows 7 PCs. I want all print jobs to default to two-sided (i.e., duplex) printing. I used Windows' Devices and Printers to access the printer's preferences. I selected "Two-sided