Changin the code of this form to include current month + the next 8 months

Hi All,
please i need to change the code of this BW ABAP routine to filter the data between the current month + the next 8 months
example:
if i execute my BW DTP (data transfer process) with this 0calmonth date 201007 i want to extract data between 201007 and 201103
actually the code is:
form compute_
tables l_t_range structure rssdlrange
changing p_subrc like sy-subrc.
Insert source code to current selection field
$$ begin of routine - insert your code only below this line -
data: l_idx like sy-tabix.
read table l_t_range with key
fieldname = ' '.
l_idx = sy-tabix.
if l_idx 0.
modify l_t_range index l_idx.
else.
append l_t_range.
endif.
p_subrc = 0.
$$ end of routine - insert your code only before this line
can you help me please on how should be the ABAP code.
thanks
Bilal

Hi All,
this is the right code for this routine BW:
*&  Include           RSBC_SEL_ROUTINE_TPL
program conversion_routine.
Type pools used by conversion program
type-pools: rsarc, rsarr, rssm.
tables: rssdlrange.
Global code used by conversion rules
$$ begin of global - insert your declaration only below this line  -
TABLES: ...
DATA:   ...
$$ end of global - insert your declaration only before this line   -
    Fieldname       = CALMONTH
    data type       = NUMC
    length          = 000006
form compute_CALMONTH
  tables l_t_range structure rssdlrange
  changing p_subrc like sy-subrc.
      Insert source code to current selection field
$$ begin of routine - insert your code only below this line        -
data: l_idx like sy-tabix.
data : v_date like sy-datum.
data : v_new_date like sy-datum.
v_date = sy-datum.
read table l_t_range with key
fieldname = 'CALMONTH'.
l_idx = sy-tabix.
l_t_range-iobjnm = '0CALMONTH'.
l_t_range-FIELDNAME = 'CALMONTH'.
l_t_range-sign = 'I'.
L_T_RANGE-OPTION = 'BT'.
l_t_range-low = v_date+0(6).
    CALL FUNCTION 'DATE_CREATE'
    EXPORTING
      anzahl_monate = 8
      datum_ein = v_date
    IMPORTING
      datum_aus = v_new_date.
l_t_range-high = v_new_date+0(6).
if l_idx <> 0.
modify l_t_range index l_idx.
else.
append l_t_range.
endif.
p_subrc = 0.
$$ end of routine - insert your code only before this line         -
endform.

Similar Messages

  • What is the use of this form?

    Hi all,
    What is the use of this form in include RV61B901?
    How does this code send any information to the program calling it? Is Sy-subrc global so that main program will know the reuslts?
    Code:
    FORM KOBED_901.
      DATA : l_anzpk LIKE likp-anzpk.
      SELECT SINGLE anzpk FROM likp
                          INTO l_anzpk
                          WHERE vbeln = komkbv2-vbeln.
      IF l_anzpk NE 0.
        sy-subrc = 4.
        exit.
      ENDIF.
      sy-subrc = 0.
    ENDFORM.
    Thanks,
    Charles.

    Hello,
    This form sets the value of sy-subrc(which is global) based
    on the value of l_anzpk.
    Regards
    Greg Kern

  • Hi I want to create a search form with drop down search criteria. This form should then search on the same site and display the search results. Is there HTML available for this? Or an oline site that I can use to build this form? I created a form in Jotfo

    Hi I want to create a search form with drop down search criteria. This form should then search on the same site and display the search results. Is there HTML available for this? Or an oline site that I can use to build this form? I created a form in Jotform.com, but this form doesn't search the site, instead it sends me an e-mail. Do you have a solution for me? Thanks.

    Hi I want to create a search form with drop down search criteria. This form should then search on the same site and display the search results. Is there HTML available for this? Or an oline site that I can use to build this form? I created a form in Jotform.com, but this form doesn't search the site, instead it sends me an e-mail. Do you have a solution for me? Thanks.

  • Problem viewing forms.This form is not supported with the current version of Adobe Reader.Upgrade to the latest version for full support. That does that mean exactly?

    Problem viewing forms.This form is not supported with the current version of Adobe Reader.
    Upgrade to the latest version for full support.
    What exactly do I need to do?

    That means you were probably using Adobe Acrobat to view PDF's. Acrobat is totally unnessary, you can view PDF's in Preview (Applications - Preview).
    BTW PLEASE complete your profile. It's very difficult to help  someone when they don't provide any information about their system. You can easily do this by clicking Your Stuff in the upper right of this page, then click Profile and fill in the pertinent information.

  • I have adobe xi pro, but i can´t edit a form create with adobe 8.0, the message is this form can´t be edit with adobe, use adobe livecycle designer. need I to buy another program?

    I have adobe xi pro, but i can´t edit a form created with adobe 8.0. The message is: this form can´t be edit with adobe, use adobe livecycle designer. need I to buy another program?

    If the form was created using LCD then it can only be edited there. This
    application used to be bundled with Acrobat Pro, but that's no longer the
    case. So if you want to edit this file then you need to purchase it, yes.
    On Sat, Apr 4, 2015 at 6:39 PM, monicad4417911 <[email protected]>

  • TS1292 itunes says my itunes card "has not been properly activated" when i enter the code.  this is not the "invalid" message related to entering the code improperly.

    itunes says my itunes card "has not been properly activated" when i enter the code.  this is not the "invalid" message related to entering the code improperly.

    Are you able to go back to the store that you bought it from and ask them to activate it properly ? If not then you will need to try contacting iTunes Support (you will probably need to give them images of the front and back of the card, and possibly its receipt) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then iTunes Cards And Codes

  • This form template is currently browser-enabled but it cannot be browser enabled on the site

    Hi,
    we have an issue with infopath form when trying to publish the form with browser enabled feature it is showing error "this form template is currently browser-enabled but it cannot be browser enabled on the site" and also "Enable thisf orm
    to be filled out by using browser" option is disabled
    i have triedfollowing
    1. Site Collection Features has "Enterprise Features enabled"
    2. Site Features also has "Enterprise Features" enabled
    3. Forms Library has "View as Web Page" enabled in advance settings
    4. Infopath Forms Service has Render and User Browser Compatible Forms enabled
    5. Tried creating a form with simple section and design checker does not flash any errors (And, yes, the form is made browser compatible)
    6. Tried enable and disable of Infopath Forms Service, Enterprise Features, etc and did an IISRESET each time
    7. Default Form Templates library is also there in view all site contents page, this is also
    8. This is only happening in one site collection, on other site collections this is working
    Anyone please help me on this

    Thanks Darrell,
    Apologies for my delayed response. I wish it was that simple! When I publish, the files are saved throughout the site with files from my 7 other animations (some of which I've decided not to use). Very confusing for an Edge noob. Anyway I've identified and collected them all using Finder into a folder to zip. Now I have to finish sorting about 1.25 GB of images (when I started experimenting with Edge I made the mistake of using big pixel dimensions and many duplicates of varying sizes) that aren't in the animation I want to send you. I don't know which ones to delete without inserting each one in the edge animate composition first as distinguishing the names in the library seems to be a lost cause. Thanks for your patience and I'll send the zipped file with the pruned images within 48 hrs. I'm working with a full laptop that's at the end of its natural life so its taking a lot longer. I hope the whole problem is because of my huge image folder and not to do with javascript etc. The animations work fine by themselves in any browser and after publishing by themselves it seems. Just not in DW...
    Cheers, Gene. 

  • I write the code like this ...i didn't get output properly

    Hi Experts,
    I write the code like this ...i didn't get output properly......the selected file name is not copied to v_fname........
    Points will be rewared...
    tables : kna1.
    parameters : P_FNAME  type rlgrap-filename.
    data : v_fname(200) type c . "lower case.
    data : begin of itab occurs 0,
           kunnr type kna1-kunnr ,
           end of itab .
    select kunnr from kna1 into table itab up to 50 rows .
    at selection-screen on value-request for P_FNAME  .
    CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
      EXPORTING
         PROGRAM_NAME        = SYST-REPID
         DYNPRO_NUMBER       = SYST-DYNNR
         FIELD_NAME          = v_fname
      STATIC              = ' '
      MASK                = '   '
        CHANGING
          FILE_NAME           = P_FNAME 
    EXCEPTIONS
      MASK_TOO_LONG       = 1
      OTHERS              = 2
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    start-of-selection.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
      BIN_FILESIZE                    = 'v_fname'
          FILENAME                        =
         FILETYPE                        = 'ASC'
        TABLES
          DATA_TAB                        = ITAB
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.

    You are exporting field v_fname, not importing it.  The field v_fname isn't for the file name anyway; field p_fname is for the file name. You also need to pass your file name to the function module GUI_DOWNLOAD for it to work.
    - April King

  • HT2534 What is iTune gift card? How can i get the code from this?

    What's iTune gift card? How can i get the code from this?

    "What's iTune gift card?"
    It is a gift card like any other gift card.  It is a card that contains credit for purchases in the itunes store.
    "How can i get the code from this?"
    Genreally there is a scratch of area under which the code lies.

  • When I send an email notification that the form has been sent I want the receiver to get a copy of the actual filled out form not a ling to the data, how can I make this happen?

    When I send an email notification that the form has been sent I want the receiver to get a copy of the actual filled out form not a ling to the data, how can I make this happen?

    Hi,
    you can find documentation for Designer under this website
    http://help.adobe.com/en_US/livecycle/10.0/documentation.html#task=4,5&module=2
    In Designer you can use the JavaScript API of Acrobat.
    So the Devnet for Acrobat is also a good source.
    http://www.adobe.com/devnet/acrobat.html
    http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/js_api_reference.pdf

  • The message I get is: Time Machine could not complete the backup. This backup is too large for the backup disk. The backup requires 111.27 GB but only 42.1 GB are available.

    I have a problem with my Time Capsule.  The message I get is: Time Machine could not complete the backup. This backup is too large for the backup disk. The backup requires 111.27 GB but only 42.1 GB are available. As a result, my backups are no longer running. My umderstanding was that the Time Capsule would automatically delete old backups to make space. Can anyone help me figure out how to get my backups to run again?

    If you have more than one user account, these instructions must be carried out as an administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Enter the word "Starting" (without the quotes) in the String Matching text field. You should now see log messages with the words "Starting * backup," where * represents any of the words "automatic," "manual," or "standard." Note the timestamp of the last such message. Clear the text field and scroll back in the log to that time. Select the messages timestamped from then until the end of the backup, or the end of the log if that's not clear. Copy them (command-C) to the Clipboard. Paste (command-V) into a reply to this message.
    If there are runs of repeated messages, post only one example of each. Don't post many repetitions of the same message.
    When posting a log extract, be selective. Don't post more than is requested.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Some personal information, such as the names of your files, may be included — anonymize before posting.

  • HT1349 i over scratched the code on my itunes card and some of the digits are missing what do i do?

    i over scratched the code on my itunes card and some of the digits are missing what do i do?

    Copied from another discussion. Taken from the More Like This box on the right side of your post.
    On the bottom of your card, beneath the barcode, you will se a long number that starts with GCA, PBH, or maybe 6. That is the card serial number.
    Go to apple.com/support/itunes/contact.html to email the iTunes store support.
    Just explain that the redemption code was scratched off, and give them the card serial number. Someone from the iTunes Store will email you back with the cards redemption code.

  • If I'm in Lightroom 5, and try to Edit in Photoshop CS6, I always get the following message: "This version of Lightroom may require the Photoshop Camera Raw plug-in version 8.6 for full compatibility." But I have updated to 8.6 and have no remaining updat

    If I'm in LIghtroom 5, and try to Edit in Photoshop CS6, I always get the following message: "This version of Lightroom may require the Photoshop Camera Raw plug-in version 8.6 for full compatibility." But I have updated to 8.6 and have no remaining updates. How can I fix this?
    If I click "Open Anyway" or "Render using Lightroom", I get the following message:
    "Adobe Photoshop CS6 cannot be opened because of a problem.
    Check with the developer to make sure Adobe Photoshop CS6 works with this version of OS X. You may need to reinstall the application. Be sure to install any available updates for the application and OS X."
    Please tell me what to do so I can edit from Lightroom to Photoshop.

    In Photoshop, if you choose Help - About Plug-in... - Camera Raw, does it say 8.6?
    Seems to me there was some hiccup they found in the update process, which prompted this:
    Camera Raw updates cannot be applied
    I honestly don't know if the problem could apply to 8.6 as well, which is why I asked you to check to make very sure you really got it.
    -Noel

  • We recently updated to Lion, prior to this update we could plug in our Sony Mini DV camera using the appropriate firewire and the iMovie would recognize the camera. This function no longer works after the update to Lion. Any suggestions?

    We recently updated to Lion, prior to this update we could plug in our Sony Mini DV camera using the appropriate firewire and the iMovie would recognize the camera. This function no longer works after the update to Lion. Any suggestions?

    Zap the PRAM and Reset the SMC, then try again.

  • Bootcamp support drivers "the version of this file is not compatible with the version of windows you are running"

    Hi,
    I've searched everywhere I can think of for a solution to this problem with no success. I see other people have reported similar issues and these have not yet been resolved.
    I have installed Windows 7 32 bit on a new Mac Mini under Bootcamp. When I go to install the Bootcamp drivers in Windows, I get the message "the version of this file is not compatible with the version of windows you are running". 
    Other people have reported this issue when trying to install 3rd party software on a 64 bit version of windows but I'm simply trying to install the Bootcamp drivers on a 32 bit version of Windows.
    Is it possible the Mac Mini needs a 64 bit version of Windows installed under Bootcamp? I haven't seen this requirement mentioned anywhere.
    Appreciated all and any help that can be offered.

    Welcome to the Apple Support Communities
    That's because the Late 2012 iMac and Mac mini only supports the 64-bit Windows 7 version, so the drivers you downloaded are designed to work with the 64-bit version and you can't install them on a 32-bit version. Install the 64-bit Windows 7 on your computer

Maybe you are looking for

  • Questions about Prompts -

    Hi, I have two questions about Prompt. 1) We have a dashboard with multiple tabs - We have noticed the Prompt Values copy from one tab to another. User doesn't want this to happen. Every tab should have there own default. Is it possible that previous

  • Illustrator no longer opens files or saves changes w/ Mac

    Since I downloaded a new Security Update (Snow Leapord 10.6.8) I can no longer open new files in Illustrator.  Also when I open old files they will no longer save to PDF.  Anybody else see this issue? thanks

  • I need facetime on my ipad

    I bought a new ipad 4.When i get it there was no facetime icon on the home screen and is the restrictions there was no facetimetoo.But in the notification center w There was facetime. That wasin ios 6.1.3 so after 2 weeks ios 7 was made.i have make t

  • AccessKey or hotkeys in Webdynpro 7.0.14

    Is posible to create access key or hotkeys (for example key ALT+S) in webdynpro java (Netweaver 7.0.14) ?? thanks

  • Dataguard 10g question

    This is from the doco: A physical standby database can be opened temporarily in read/write mode for development, reporting, or testing purposes, and then flashed back to a point in the past to be reverted back to a physical standby database. When the