Can I Make a Static Range Table_ _ SCN

Embed Size (px)

Citation preview

  • 8/17/2019 Can I Make a Static Range Table_ _ SCN

    1/2

    Getting Started Newsletters Store 

    Products Services & Support About SCN Downloads

    Industries Training & Education Partnership Developer Center  

    Lines of Business University Alliances Events & Webinars Innovation

    Log On Join UsHi, Guest   Search the Community

     Activity Communications Actions

    Browse

    0   Tweet

    4 Replies   Latest reply: 02-Feb-2010 04:59 by Venkat O  

    Share   0Like

    491 Views

     Average User Rating

    (0 ratings)

    Can I make a static range table?

    This question has been Answered.

    Hi, Is there any way to make a Range Table as below STATIC?

     SELECT RANGES

      RANGES: LR_RYEAR FOR GLPCA-RYEAR. " Fiscal Year 

     Thanks!

    Kenneth Murray   01-Feb-2010 22:23

    Correct Answer

    by Venkat O  on Feb 2, 2010 4:59 AM

    Hi Kenneth, You have to use STATICS  statement inside subroutine. Check F1 help for where to

    use. You have to use range table like below.

    *&‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐*

    *& Form xyz

    *&‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐*

      form xyz.

      STATICS: lr_ryear TYPE RANGE OF glpca‐ryear.

      DATA: wa_ryear LIKE LINE OF lr_ryear.

    ENDFORM. "xyz

    Thanks Venkat.O

    Re: Can I make a static range table?

    data: LR_RYEAR type standard table of selopt.

     ranges: LR_RYEAR type range of GLPCA-RYEAR.

    Like (0)

    Jay Raj  01-Feb-2010 22:46 (in response to Kenneth Murray)

    Re: Can I make a static range table?

    I don't think this makes a STATIC range table of type GLPCA-RYEAR.

    Kenneth Murray  01-Feb-2010 22:50 (in response to Jay Raj)

    http://scn.sap.com/community/uachttp://scn.sap.com/contenthttp://scn.sap.com/activityhttp://scn.sap.com/communicationshttp://scn.sap.com/actionshttp://scn.sap.com/welcomehttp://scn.sap.com/welcomehttp://scn.sap.com/thread/login.jspahttp://scn.sap.com/login.jspahttps://twitter.com/intent/tweet?hashtags=scn&original_referer=http%3A%2F%2Fscn.sap.com%2Fthread%2F1595296&ref_src=twsrc%5Etfw&text=Can%20I%20make%20a%20static%20range%20table%3F&tw_p=tweetbutton&url=http%3A%2F%2Fscn.sap.com%2Fthread%2F1595296&via=SAPCommNethttp://scn.sap.com/community/developer-centerhttp://scn.sap.com/people/venkat.ohttp://scn.sap.com/message/8693195#8693195http://scn.sap.com/activityhttp://scn.sap.com/actionshttp://scn.sap.com/people/kenneth.murray2http://scn.sap.com/people/kenneth.murray2http://scn.sap.com/message/8693188#8693188http://scn.sap.com/community/getting-startedhttp://-/?-http://scn.sap.com/community/feeds/messages?thread=1595296http://scn.sap.com/community/uachttps://twitter.com/intent/tweet?hashtags=scn&original_referer=http%3A%2F%2Fscn.sap.com%2Fthread%2F1595296&ref_src=twsrc%5Etfw&text=Can%20I%20make%20a%20static%20range%20table%3F&tw_p=tweetbutton&url=http%3A%2F%2Fscn.sap.com%2Fthread%2F1595296&via=SAPCommNethttp://scn.sap.com/people/kenneth.murray2http://scn.sap.com/people/jay.sadaramhttp://scn.sap.com/people/kenneth.murray2http://scn.sap.com/people/venkat.ohttp://scn.sap.com/contenthttp://scn.sap.com/welcomehttp://scn.sap.com/community/newslettershttps://www.sapstore.com/?url_id=banner-US-2015-SCN-HeadLinkhttp://scn.sap.com/community/downloadshttp://scn.sap.com/message/8693155#8693155http://scn.sap.com/people/jay.sadaramhttp://scn.sap.com/communications

  • 8/17/2019 Can I Make a Static Range Table_ _ SCN

    2/2

    Follow SCNSite Index Contact Us SAP Help Portal

    Privacy T erms of Use Legal Disclosur e Copyr ight

    0   TweetShare   0Like

    Re: Can I make a static range table?

    Try the following.

    TYPES:

      BEGIN OF t_ryear,

      sign(1) TYPE c,

      option(2) TYPE c,

      low LIKE glpca‐ryear,

      high LIKE glpca‐ryear,

      END OF t_ryear,

      it_ryear TYPE TABLE OF t_ryear.

    STATICS: lr_ryear TYPE it_ryear.

     

    Like (0)

    Gabriel Pill-Kahan  02-Feb-2010 01:25 (in response to Kenneth Murray)

    Re: Can I make a static range table?

    Hi Kenneth, You have to use STATICS  statement inside subroutine. Check F1 help for where to

    use. You have to use range table like below.

    *&‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐*

    *& Form xyz

    *&‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐*

      form xyz.

      STATICS: lr_ryear TYPE RANGE OF glpca‐ryear.

      DATA: wa_ryear LIKE LINE OF lr_ryear.

    ENDFORM. "xyz

    Thanks Venkat.O

    Like (0)

    Correct Answer 

    Venkat O  02-Feb-2010 04:59 (in response to Kenneth Murray)

    Like (0)

    http://www.sap.com/corporate-en/our-company/legal/copyright/index.epxhttp://-/?-http://bit.ly/SCNyouThttp://scn.sap.com/docs/DOC-19361https://accounts.sap.com/ui/public/viewTextResource?scenario=SCN&spId=504efd8ee4b0555c3c17b94e&resourceType=RESOURCE_TERMS_OF_USE&version=1&spDisplayName=SAP%20Community%20Network&locale=enhttp://help.sap.com/http://scn.sap.com/people/gabriel.pill-kahanhttp://bit.ly/SCNTwRhttp://scn.sap.com/people/gabriel.pill-kahanhttp://scn.sap.com/message/8693336#8693336http://scn.sap.com/people/venkat.ohttps://accounts.sap.com/ui/public/viewTextResource?scenario=SCN&spId=504efd8ee4b0555c3c17b94e&resourceType=RESOURCE_PRIVACYPOLICY&version=1&spDisplayName=SAP%20Community%20Networkhttp://bit.ly/SCNFBhttp://scn.sap.com/docs/DOC-18476http://-/?-http://www.sap.com/corporate-en/our-company/legal/impressum.epxhttp://spr.ly/SCNgoogleplushttp://scn.sap.com/message/8693630#8693630http://scn.sap.com/people/venkat.o