Want to fill number of ranges through a common form - how?

I have a number of select-options and ranges I want to add values to when processing a screen where I am using selection screen as a subscreen in my dialog programme.  What I want to be able to do is to call a form passing the range/select option and the values to fill like this:
example:
ranges: r_date for sy-datum,
        r_cust for kna1-kunnr.
LOOP AT ITAB.
perform fill_range tables r_date
                   using  ITAB-DATE.
PERFORM FILL_OPTION  tables  r_cust
                     using  ITAB-KUNNR.
ENDLOOP.
The problem I have is that when I try and define the a generic structure for the tables within the FORM it keeps telling me that R_DATE is too short.  I am using RSVDATYN as the structure but I have tried other structures that mimic the range structure of SIGN,OPTION, LOW and HIGH.  The only thing I can think of is that because my LOW and HIGH fields are different it won't pass the value or convert it.
Is it even possible to do this or do I have to code each range/select-option separate like this without passing this into a generic form to be filled:
r_date-sign   = 'I'.
r_sign-option = 'EQ'.
r_date-low   = value.
append r_date
Any ideas?

Hi,
  You can write a macro instead..
  For example,
  DEFINE fill_range.
    &1-sign = 'I'.
    &1-option = 'EQ'.
    &1-low = &2.
    APPEND &1.
  END-OF-DEFINITION.
  ranges: r_date for sy-datum,
          r_cust for kna1-kunnr.
  LOOP AT itab.
    fill_range r_date itab-date.
    fill_range r_cust itab-kunnr.
  ENDLOOP.
  Hope this helps..
Sri

Similar Messages

  • السماح بالكتابة بحسب النطق الصوتي I want to be all the downloads through the program IDM How do I add that option to download? i have already tried to right-click of the mouse?

    السماح بالكتابة بحسب النطق الصوتي
    I want to be all the downloads through the program IDM How do I add that option to download? Has already tried to right-click of the mouse?
    ''duplicate - ''

    Make sure that you have IDM 6.07 build 15?
    * go to '''about:addons''' - extension and check that IDM CC is enable or not
    * if all are up to date and enable, then IDM should start download autometically

  • Message while creating plant,Do you really want to transport number ranges?

    hI
    while creating plant[Copy from existing] i got the message 'Do you really want to transport number ranges?'
    can some one through some light on this message
    Thanks

    REad carefully the info coming along with this message.
    IF you transport number ranges, then you overwrite existing number ranges in your production system. you transport the e.g. the current number from your development system into production and overwrite there the current number.
    As you usually produce less data in Development system than in a production system, the current number will be smaller after the transport, and SAP would then try to create data using the next number, which leads to a dump as thereis already a record in the database having this number.
    so you should only transport number ranges if you do not effect existing number ranges in your production system.

  • I had an iphone 3GS, but received my new iPhone 5 with micro sim, but wanted to keep old mobile number so rang up to change it, that's all working fine, but iMessage is still using the number I received with iPhone, how do you delete a new number?

    I had an iphone 3GS (normal sim), but received my new iPhone 5 with micro sim, but wanted to keep old mobile number so rang up to change it, normal text messaging is working fine, but iMessage is still using the number I received with iPhone 5, how do you delete that number I can only receive iMessages on my original number?

    Issue solved

  • I have a formula where I want the columns to remain constant but I want the middle number to increase by 1.

    I have a formula,  where I want the columns to remain constant but I want the middle number to increase by 1. How do I do it? =SUMIF($F2:$F45,1,$H2:$H45)
    The first cell contains the correct formula with the columns highlighted. Autofill gives me a red triangle. The columns are no longer highlighted.
    I have done this in Excel. I will learn Numbers!
    Thank you.

    Hi,
    When posting formulas, as a courtesy, please select the formula in the entry bar, Copy, then Paste the formula into your message. This permits the reader to copy the formula directly from the page, paste it into the reply, and edit it there. When pasted as an image, that reader has to read the formula from the image and type it into the reply, increasing the probability of errors creeping in.
    =SUMIF(F2:F10,COLUMNA+1,H2:H10)
    The syntax error is in the part shown in bold. Here is the image of the similar formula from my reply above:
    With the syntax error corrected, your formula would read:
    =SUMIF(F2:F10,COLUMN()+1,H2:H10)
    Restated in English, the formula says:
    "calculate the SUM of all numbers in cells H2 to H10, where the value in the same row of column F is equal to the column number of this cell plus 3."
    In your image, this cell (the cell containing the formula) is C3. That's in column 3, so the value "COLUMN()+3" is 6. Considering the headers in your screen shot, that is probably not what you want to happen.
    NOTE: Your original formula (and mine, modeled on that original) used the $ operator to fix the Column values of the cell references, making them stay the same when the formula is filled right. Your description indicates you want to fill the formula down. Unless you attach the $ operator to the Row part of the cell references, the row value will change as the formula is filled down, producing an 'invalid reference' error when the referenced range extends beyond the bottom of the table.
    Change the range "$F2:$F45" in your original formula to read "F$2:F$45" (and make a similar change to the range in column H) to keep the range the same when the formula is filled down. You'll also need to use ROW()-n in place of COLUMN-n, as filled down. all copies of the formula will be in the same column.
    Regards,
    Barry

  • When i want to download an app in app store give me an error number and i could not down load.how i can solve this error number?

    When i want to download an app in app store give me an error number and i could not down load.how i can solve this error number?

    Hi Amir.09395340646,
    Welcome to the Support Communities!
    What app are you trying to download? Is it iPhoto for iOS?  What error message are you receiving? The first thing I would suggest is to log out of your iTunes Store account on your iPhone. Then restart the device and log in again. 
    iOS: Changing the signed-in iTunes Store Apple ID account
    http://support.apple.com/kb/HT1311?viewlocale=en_US
    If the above did not resolve your issue, follow the troubleshooting steps in the article below.
    The link includes the complete details and screenshots, but I've highlighted a few points for you:
    Can't connect to the iTunes Store
    http://support.apple.com/kb/TS1368
    - Make sure that your iOS software is up to date by connecting your iOS device to iTunes and clicking on Check for Update in your device's Summary page in iTunes.
    - Check and verify that you are in range of a Wi-Fi router or base station. If you are on a 3G capable device, make sure that cellular data is turned on from Settings > General > Cellular.
    - Check to make sure you have an active internet connection. You can check the User Guide for your device for help with connecting to the internet.
    - Check to make sure other devices (portable computers, for example) are able to connect to the Wi-Fi network and access the internet.
    - Try resetting (turning off and then on again) your Wi-Fi router
    - If the issue still persists see, iOS: Troubleshooting Wi-Fi networks and connections or iOS: Troubleshooting Wi-Fi networks and connections.
    I hope this information helps ....
    - Judy

  • Download Error - Contact customer support. Indesign wont load application have gone from the control panel. CS photoshop loads and wants a serial number - and my serial number dosent work?

    Download Error - Contact customer support. Indesign wont load application have gone from the control panel. CS photoshop loads and wants a serial number - and my serial number dosent work?

    Hello Bradley,
    sometimes the "opm.db file" is the culprit. In this case you should delete it.
    But as much as I regret it and as strange as it may seem I fear it's a challenge for Adobe's Creative Cloud Cleaner Tool.
    Sometimes - for whatever reasons - CC doesn't "want" to work. In this case you should CC completely delete and reinstall by help of Adobe Creative Cloud Cleaner Tool. (A try to uninstall by own resources is not enough!)
    I quote: ... helps resolve installation problems for Adobe Creative Cloud and Adobe Creative Suite (CS3-CS6) applications. The tool removes installation records for prerelease installations of Creative Cloud or Creative Suite applications. It does not affect existing installations of previous versions of Creative Cloud or Creative Suite applications.
    Please use: http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html   and follow the prescribed sequence of operations
    If necessary and for further questions click through http://helpx.adobe.com/contact.html or http://helpx.adobe.com/de/contact.html and if "open" please use chat, I had the best experiences.
    Good luck!
    Hans-Günter

  • I want to stop loop through push button forms 10g

    I want to stop looping through push button forms 10g it is like (SwingWorker() in java) (DoEvent() in .net)
    The problem in forms 10g that when you start looping the form will freeze and you can't push any button on form, I found solution for that in form 6i through package d2kwutil **WIN_API_UTILITY.InterruptCheck(hButton)**
    But in 10g I can't find solution, Please help>>>>>
    declare
         hButton          PLS_INTEGER;
    begin
    :interruptcheck.counter := 0;
    hButton := get_item_property('INTERRUPTCHECK.PB_OFF',WINDOW_HANDLE);
    go_item('interruptcheck.loopcount');
    set_item_property('INTERRUPTCHECK.PB_OFF',ENABLED,PROPERTY_TRUE);
    set_item_property('INTERRUPTCHECK.PB',ENABLED,PROPERTY_FALSE);
    set_application_property(CURSOR_STYLE,'HELP');
    set_application_property(CURSOR_STYLE,'<d2kwut60>WAIT');
    for i in 1..:interruptcheck.loopcount LOOP
         if WIN_API_UTILITY.InterruptCheck(hButton) then
              exit;
         end if;
         :interruptcheck.counter := i;
         synchronize;
    end loop;
    set_item_property('INTERRUPTCHECK.PB_OFF',ENABLED,PROPERTY_FALSE);
    set_item_property('INTERRUPTCHECK.PB',ENABLED,PROPERTY_TRUE);
    set_application_property(CURSOR_STYLE,'DEFAULT');
    end;
    Edited by: wael amar on May 1, 2010 11:03 PM

    Ok, here's a working testcase.
    The idea is taken from an article from an oracle magazine (i don't have it at hand, , so i tried to rebuild it by "memory". As far as i remember the original was from the german doag-magazine and was written by Gerd Volberg).
    Procedure to do the looping:
    PROCEDURE PR_DO_THE_LOOP IS
      nNumberInOneStep NUMBER:=2;
      tm               TIMER;
    BEGIN
         DEFAULT_VALUE(0, 'GLOBAL.INDEX');
      IF :GLOBAL.INDEX=0 THEN
           -- Didn't run yet, determine the max count
           :GLOBAL.MAX:=10000;
      END IF;
      LOOP
           -- Do the looping stuff
           -- Decrease counter
           nNumberInOneStep:=nNumberInOneStep-1;
           -- Increase globale counter
           :GLOBAL.INDEX:=:GLOBAL.INDEX+1;
           -- Exit conditions
           EXIT WHEN nNumberInOneStep=0;
           EXIT WHEN TO_NUMBER(:GLOBAL.INDEX)>=TO_NUMBER(:GLOBAL.MAX);
      END LOOP;
      -- reset index at end
      IF TO_NUMBER(:GLOBAL.INDEX)>=TO_NUMBER(:GLOBAL.MAX) THEN
           :GLOBAL.INDEX:=0;
      ELSE
           -- start timer for next iteration
           tm:=CREATE_TIMER('TM', 10, NO_REPEAT);
      END IF;
    END;The WHEN-TIMER-EXPIRED-trigger
    IF :GLOBAL.INTERRUPTED='Y' THEN
         MESSAGE('Interrupted at index ' || :GLOBAL.INDEX);
    ELSE
         PR_DO_THE_LOOP;
    END IF;The WHEN-BUTTOn-PRESSED-trigger on the interrupt-button
    :GLOBAL.INTERRUPTED:='Y';The WHEN-BUTTOn-PRESSED-trigger on the "start"-button
    :GLOBAL.INTERRUPTED:='N';
    PR_DO_THE_LOOP;

  • I want to multiply several channels in a diadem script by a value through a loop. How do i do this?

    all the examples i've seen use channel names to specify the channels but i want to use the channel number so i can loop through several. I can't figure out how to do this in vbscript
    I've tried:
    for i = 1 to 4
    Call FormulaCalc(Ch(i) = Ch(i)*2)
    next
    using several variations of double and singel quotes with no luck. It works if i use the channel number instead of i but I want to be able to loop through a long list of channels to do the same calculation....any help??
    thanks

    icefield,
    You can try the following code:
    DIM ChGrpIndex
    DIM i
    ChGrpIndex = 1
    FOR i = 1 to 4
      Call FormulaCalc("Ch('[" & ChGrpIndex & "]/[" & i & "]') := 2 * Ch('[" & ChGrpIndex & "]/[" & i & "]')")
    NEXT
    Regards,
    Song Du
    Systems Software
    National Instruments R&D

  • My deleted contacts still show up when I want to send a text message. But when I go to my address book there not there only when I want to send a text MSG there name comes up and if I select them it only show there number not name in the message.  How an

    My deleted contacts still show up when I want to send a text message. But when I go to my address book there not there only when I want to send a text MSG there name comes up and if I select them it only show there number not name in the message. How an I get rid of that

    Try this...
    have a text convo with the person you want to delete. Go to the top contact in the text convo, hit edit contact, and delete that contact.
    That resolution came from another thread on this issue, and this did solve to poster's issue.

  • I want to fill the rows of the report from the loop

    I want to fill the rows of the report from the loop
    For example, in forms
    cursor bdl is select code,decode(:global.user_lang,1,name,2,latin_name) name
    from GL_ANALYSISHDR
    begin
         go_block('bdls');
         clear_block;
         first_record;
         for rec in bdl loop
         :bdls.code:=rec.code;
         :bdls.name:=rec.name;
         next_record;
         end loop;
         go_block('bdls');
         first_record;
    end;
    I tried to use the REF CURSOR
    But it return the values in one time and does not allow me to conduct and control of

    Why do you need to do it by a curesor loop? Can't you put the query in the datamodel of the report and simply pass the parameter to restrict the query?

  • How can i do if i want to add number to the filenames of my pic in my macpro

    how can i do if i want to add number to the filenames of my pics in my macpro? if someone can help

    You could look into utilities like A Better Finder Rename or similar apps on the page I linked to.

  • I have few PDf files on my computer and I want to add them to my ipod touch, please tell me the procedure on how should I do that? Secondly I want to run these Pdf files through the ibook app, as it also have the Pdf file sections

    I have few PDf files on my computer and I want to add them to my ipod touch, please tell me the procedure on how should I do that? Secondly I want to run these Pdf files through the ibook app, as it also have the Pdf file sections

    You should be able to just place them in your Books library in iTunes and check to ensure that your Book library is configured to sync to your iPod when you sync your iPod to iTunes.

  • I want to set up my iphone to sync with my macbook but when I plug it in via USB my iphone doesn't show up under devices in itunes even though it is plugged in correctly and is charging through my computer. How do I get it to show up?

    I want to set up my iphone to sync with my macbook but when I plug it in via USB my iphone doesn't show up under devices in itunes even though it is plugged in correctly and is charging through my computer. How do I get it to show up? I've tried restarting my computer.

      If your iPhone does not appear under Devices in iTunes after you connect it to your Mac, refer to the troubleshooting suggestions here:
      http://support.apple.com/kb/ts1591

  • FW: [Adobe Reader] I want my credit card information to be removed from Adobe's file and I can't find a phone number to contact someone in your company, how come, please help!  Lucie

    What a dumb answer, the payment is done and charged already,
    ADOBE DOES NEED MY CREDIT CARD INFO ANYMORE, PLEASE REMOVE IT
    FROM YOUR DATABASE AS I CANNOT DO IT MYSELF.  It is quite annoying
    to be controlled like this, please confirm that my request has been answering
    with intelligence please.
    Lucie Lévesque
    Date: Mon, 8 Dec 2014 08:09:59 -0800
    From: [email protected]
    To: [email protected]
    Subject:  I want my credit card information to be removed from Adobe's file and I can't find a phone number to contact someone in your company, how come, please help!  Lucie
        I want my credit card information to be removed from Adobe's file and I can't find a phone number to contact someone in your company, how come, please help!  Lucie
        created by Bernd Alheit in Adobe Reader - View the full discussion
    Adobe needs the credit card information for the payments.
         If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/6995243#6995243 and clicking ‘Correct’ below the answer
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/6995243#6995243
         To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"
         Start a new discussion in Adobe Reader by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

    Adobe Reader is a FREE program, so you would not enter a credit card
    If you have a subscription to a PAID program, removing your credit card information would cause that program to stop working when you stop paying for your subscription
    If that is what you want, here is the information on how to cancel
    Cancel http://helpx.adobe.com/x-productkb/policy-pricing/return-cancel-or-change-order.html
    -or by telephone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html

Maybe you are looking for

  • "A serious error has occurred" when I attempt to drag a video clip to my timeline.

    Hello, I'm using Premier Pro CC on Yosemite 10.10.1.  For some reason, whenever I attempt to drag a clip into a timeline - any clip in any project, new or old - Premier immediately crashes and I get an error: "Sorry, a serious error has occurred. Ado

  • Debugging with sql developer 3.2

    I recently changed from version 2.1.1 to version 3.2 and i can not get debugging to work properly. It'll successfully establish the debugger connection and run through the procedure, but it will not break at any of the breakpoints. The procedure is c

  • Problems with Deployment, Startup classes and MBeanHome

    Hello, we have the following problem: How to initialize our application correctly??? We are using MDBs as message consumers but have to guarantee the order of incoming messages. Due to a shortcoming in the JMS implementation (Order of redelivered mes

  • I need help in this code

    wazap guys ? long time not 2 see U :) i need help , this application that will follow is supposed to count the words lengths i.e if typed "I am poprage" the program will output : the word length the occurence 1 1 2 1 3 4 5 6 7 1 compile it & u will u

  • Want to know abt jsp-precompile option

    Hi, if i passed jsp-precompile=true then what will happen? what situation we have to send that parameter... what is the exact functionality of jsp-precompile option.... In our application we are having 200 jsp files. in our application, once the user