Parameter  YEAR  value???

Hi All,
For my requirement I am using FM 'PYXX_READ_LAST_CRT'. See below:
CALL FUNCTION 'PYXX_READ_LAST_CRT'
    EXPORTING
      molga                         = '10'   " 'US'
      pernr                         = pernr
      year                          = ???
    TABLES
      last_crt                      = it_crt
I need to retrieve the data for a Fiscal year based on the begda & endda entered in the Data Selection Period. What value should I pass to the parameter YEAR above and how?
Thanks in advance.
Satish

Hi
To get the current fiscal year and period:
data: gjahr LIKE t009b-bdatj,
      per   LIKE t009b-poper.
  CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
    EXPORTING
      i_date         = sy-datum
      i_periv        = 'UT'
    IMPORTING
      e_buper        = per
      e_gjahr        = gjahr
    EXCEPTIONS
      input_false    = 1
      t009_notfound  = 2
      t009b_notfound = 3
      OTHERS         = 4.

Similar Messages

  • Is the task-flow input parameter class value being ignored by the framework

    hi
    Although I don't remember where, I think I read or heard about the task-flow input parameter class value that it is "being ignored by the framework".
    One example of this could be what is currently in the UI Shell sample application available
    at http://www.oracle.com/technetwork/developer-tools/adf/uishellapp-134633.zip
    It has in its task-flow in "flows\second.xml" an input parameter configured like
      <task-flow-definition id="second">
        <!-- ... -->
        <input-parameter-definition id="__3">
          <name id="__2">tabContext</name>
          <value>#{pageFlowScope.tabContext}</value>
          <class>oracle.ui.pattern.dynamicShell.TabContex</class>
          <required/>
        </input-parameter-definition>
        <!-- ... -->
      </task-flow-definition>Notice the missing "t" at the end of the class name "oracle.ui.pattern.dynamicShell.TabContex".
    Still this task-flow configuration does allow to use expressions like "#{pageFlowScope.tabContext.selectedTabIndex}", which suggests that the class value is indeed "being ignored by the framework".
    (see also forum thread "does the UI Shell sample break encapsulation in its task-flows"
    at does the UI Shell sample break encapsulation in its task-flows )
    All relevant references (bug numbers, documentation, blogs) explaining about this task-flow input parameter class value are welcome.
    If no such references exist, maybe someone from Oracle can give some feedback.
    many thanks
    Jan Vervecken

    fyi
    The feedback below was posted in the forum message
    at Re: does the UI Shell sample break encapsulation in its task-flows
    Richard Wright wrote:
    That appears to be a bug for which I am seeking confirmation.There is an enhancement request (i.e., 9377487) submitted over a year ago, that describes this behavior. It is listed as an ER as our documentation (e.g., Fusion Developer's Guide for Oracle ADF, online help ) does not specifically state that Java class for the input parameter definition is checked for type. Further anything using EL is untyped. So the expectation that types are enforced is somewhat puzzling to the development team.
    However, there is an acknowledgment within circles of the development organization, that some might come to have this expectation. One trigger might be the definition itself. The other is the existence of a design time audit on the definition. For example, if the class is specified inaccurately (e.g., typo), there is an audit warning to report "not found."
    Under consideration are a number of framework proposals to check for type without breaking backward compatibility or adding overhead to the production environment.
    In the interim, the following recommendations are given.
    Unless this breaks or can break your app in some way, no need exist for change. Nevertheless, if this is a real concern, write a test or consider a java assertion. By default, assertions are disabled at runtime. There is no need to override that default.I have been able to find enhancement request 9377487, "TASK FLOW PARAMETER VALUES NOT VALIDATED ACCORDING TO CLASS", on My Oracle Support. It currently has "Status 15 - To Internal (Oracle) Review" and "Updated 16-Dec-2010".
    In the context of service request 3-4185839067 recently bug 12838099, "THE TASK-FLOW INPUT PARAMETER CLASS VALUE BEING IGNORED BY THE FRAMEWORK", has been filed and it currently still has "Status 16 - Bug Screening/Triage".
    - about "... the expectation that types are enforced is somewhat puzzling to the development team ..."
    Hmm, strange ... so what are people supposed to expect when there is an option to configure a class name for a task-flow input parameter?
    regards
    Jan

  • Error Inconsistent input parameter (parameter: i_sid,value 0)

    Hi ,
    i got this error "Error Inconsistent input parameter (parameter: i_sid,value 0)" after i execute the query that i have created. How can i solve this problem?
    regards,
    soonwee

    Hello,
    (I know, the answer is a year late, but at least it will be documented for the future: i've recently had the same error in my system)
    I have debugged the problem and found that the exception happens somewhere after Include LRSDRC_INFOCUBEF06, form BASIC_QUERY_DATA_GET_ROLAP and  PERFORM check_for_request0.
    You can also get this error if you execute the transaction LISTCUBE for the Infocube, or if you click on "display data" in the context menu of an InfoCube in RSA1.
    The reason for the problem seems to be the missing "initial" record in the InfoObject "REQUID".
    This InfoObject tracks all the requests/data packages in your BW system, and usually has the similar contents:
    select * from /BI0/SREQUID
    REQUID                                            SID         CHCKFL DATAFL INCFL
                                                                    0          X     X     X
    REQU_4D9N9016ZEBZXYL3FKRS5Z5BK    8             
    ODSR_4D9N908VICXPGL4JLEU4G141C     9
    However, if the initial record with SID = 0 is missing, you may get the described error.
    The problem can be fixed by adding this record to two tables:
    (example for adding this record from the DB2 SQL interpreter; syntax may be slightly different with other DB platform)
    insert into "/BI0/SREQUID" values ('',0,'X','X','X')
    insert into "/BI0/RREQUID" values (0,'')
    (NOTE: the '' are two single quotes without any value between them, and not the double quote mark   )
    Hope this helps.
    Kind regards,
    Sergiy Malikov.
    SAP BI on DB2 for Linux, Unix and Windows
    Edited by: Sergiy Malikov on Mar 27, 2009 1:53 PM

  • Report parameter field value has a single quote. need to escape before pass

    Report has a parameter whose value might have a single quote in it. If I pass that value directly into the SQL Command... like
    where ... user_name = {?parm_user_name}...
    which would translate to
    user_name='O'Donnel Honda'
    I am getting an error... so would like to convert this parameter value into 'O''Donnel Honda' before passing into the query.
    I created a formula called parse_user_name with following:
    Replace ({?parm_user_name}, "'", "''")
    And used in the query like
    where ... user_name = {@parse_user_name}...
    I am getting an error like invalid SQL92 character...

    I think you should use the condition like this
    where ... user_name = '{?parm_user_name}'
    keep the parameter in single quote at the command level itself.
    Now use the same formula like
    replace({?Parameter},"'","''")
    This works only if the parameter is a single value parameter but not multi value parameter.
    Regards,
    Raghavendra

  • How can we use C# to read dynamic parameter's value list from .rpt?

    I'm using Cystal Report 2008. We know starting from CR XI we can create dynamic parameters, the list of items of this kind of parameter are fetching from database. So in general the SQLs to get the list of values for dynamic parameters are stored in the .rpt.
    In Crystal Report Designer, if I preview a report with dynamic parameters, it will first query the database and then show the input dialog with list of values from database for user to choose. My question is can we implement the same thing by our C# code? I'm planning to use C# code to read this dynamic parameter's value list from .rpt and render them on the web page. Then pass back the user selected values to the .rpt to run the report after user make the choice. I didn't find any APIs can do this. Is it possible?
    Thanks in advance!!

    Hi,
    Can you explain a bit in detail, I have similar scenario. I am using the following code but not getting the Column name for dynamic parameter list.
    foreach (ParameterFieldDefinition prm
                              in reportDocument.DataDefinition.ParameterFields)
                    try
                        string vParameterFieldName;                   
                        *vParameterFieldName = prm.ParameterFieldName.ToString();*
    Shakeel

  • How to use a parameter field value as a substring in a "like" statement?

    Hi all,
    I'm trying to use a parameter field in a Record selection formula where the parameter field value would be a substring of the data stored in the field.
    My parameter field (SlctResearcher) is constructed as follows:
    Type: string
    List of Values: static
    Value Field: (Reports) RptAuthors
    (in Value Options) Allow custom values?: True
    {Reports.PubDate} in DateTime (2009, 04, 01, 00, 00, 00) to DateTime (2010, 03, 31, 23, 59, 59) and
    {Reports.RptAuthors} like "*{?SlctResearcher}*"
    When I hit F5 to generate the data, I get no results (and the parameter prompt field does not even come up...)
    If I modify the formula to put a hard-coded string, like
    "*Jones*"
    after the 'like', I get results (all the reports where "Jones" is a substring in the RptAuthors string.) If I modify the formula to just use the parameter field without the quotes/stars like:
    {Reports.PubDate} in DateTime (2009, 04, 01, 00, 00, 00) to DateTime (2010, 03, 31, 23, 59, 59) and
    {Reports.RptAuthors} like {?SlctResearcher}
    I do get the parameter prompt field, but still no results even if I put in a valid substring value (since it is not searching for a substring anymore...)
    How can I do this?
    Thanks,
    Will

    1st thing... Make a copy of your report before doing anything!!!
    To use a SQL Command, you'll want to open the Database Expert and look at the Current Connections. Expand the data source and the 1st option you see is the Add Command option.
    To find the SQL That CR is currently using, choose Database from the menu bar and select Show SQL Query...
    You can copy this and paste it directly into the command window. (If you you can write your own SQL you don't need copy CR's, it's just an option.)
    You'll also want to take not of any parameters that you have, you'll need to add them the the Parameter List of the command as well... be sure to spell them EXACTLY as they are in the design pane.
    Anyway, once the SQL statement is in the Command window you'll be able to alter the WHERE clause to use the wild cards.
    For future reference... What type of database are you reporting against???
    Jason

  • Parameter Field Value Elimination Based on Another Parameter

    I'd like to make 3 grouping parameters with static values to produce 3 drop downs in the user prompt.  The problem is, I'd like for the second drop down to eliminate the choice made from the first drop down and the third drop down to have been eliminated to only one choice.  Is there a way to edit the parameter field values from the formula workshop?...Or maybe this would be better handled in the group selection formula area.  Any help would be very much appreciated.

    Can't be done unless you use one of the 3rd-party Crystal viewers listed at http://kenhamady.com/bookmarks.html
    A simpler approach is to have a record selection formula that causes no records to be retrieved if 2 parameters have the same selected value.  You can then unsuppress a text object telling the user their parameter selections can't be the same.

  • How to set a parameter's value in HttpServletRequest

    I want to change parameter's value in HttpServletRequest in my servlet before go to jsp, can I?

    Maybe you misunderstand me. I mean that I want change
    a parameter's value, the value passed by browser, for
    example: a url http://xxx.com/a.jsp?sname=svalue,
    when the url was post, I want to change svalue to
    another value,such as svalue1.If you are calling the URL through servlet, you can do like this:
    response.sendRedirect("http://xxx.com/a.jsp?sname="+svalue1);

  • Parameter name / value length issue

    hello,
    i do know that there is a length limit of the url (255 chars), so i can't use GET, because i have to pass a high number of parameters, which names are 9 chars long and values are 21 chars long.
    i'm wondering if there are any limits on the parameter name/value length, or a total length/size of parameters that can be passed without being truncated by server, or something like this....
    i can't find in api that there is any limit, but still, if my app designed the way it needs to pass a lot of parameters with long names (9 chars) and long values (21 chars).
    can this cause problems?
    if not, is it a good taste to build app that can use POST request only?
    thanks

    >
    i'm wondering if there are any limits on the parameter
    name/value length, or a total length/size of
    parameters that can be passed without being truncated
    by server, or something like this....Not that I recall. As far as I know there are none.

  • How to get or set default fiscal year value in billing doc

    Hi All, my question is simple, how to get or set default fiscal year value (VBRK_GJAHR) in billing document.. is it possible.
    Thanks.
    Regards,
    Michael

    Hi Michel
    If you feel that the fiscal year value should come  in the billing document then you have to use a user exit USEREXIT_NUMBER_RANGE .
    As this is a related to ABAP , you should give the inputs and ABAP'ers will give the number range as per our requirement .
    Regards
    Srinath

  • It takes long time to load the parameter's value when running we run report

    Hi,
    It takes long time to load the parameter's value when running we run report. What could cause this? How to troubleshoot the behavior of the report? Could I use Profile and what events should i select?
    Thanks

    Hi jori5,
    Based on my understanding, after changing the parameter, the report render very slow, right?
    In Reporting Service, the total time to generate a report include TimeDataRetreval, TimeProcessing and TimeRendering. To analyze which section take much time, we can check the table Executionlog3 in the ReportServer database. For more information, please
    refer to this article:
    More tips to improve performance of SSRS reports.
    In your scenario, since you mention the query spends less time, the delay might happens during report processing and report rendering section. So you should check Executionlog3 to check which section costs most of time, then you can refer to this article
    to optimize your report:
    Troubleshooting Reports: Report Performance.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu

  • Can we only year value from "0FISCPER" (Fiscal Year/Period) at BEx level

    Hi all,
    I have two time characteristics "0FISCYEAR" (Fiscal Year) and "0FISCPER" (Fiscal Year/Period). In DSO initially "0FISCPER" was there and later request came to add "0FISCYEAR". Now data in char. "0FISCPER" is since beginning (from 2000) and for char. "0FISCYEAR" is since 2010.
    User's requirement is to create a report which will display data Year wise.
    My issue is if i am using "0FISCYEAR" then user is not able to see year instead it shows #. I dont want to do data reloading as this is GL data and hold huge no. of records in it.
    So my concern is : Is there any way to use only year value from "0FISCPER" (Fiscal Year/Period) at BEx level? Is there any setting which I can apply and get the same value of Year as I can see from "0FISCYEAR". Please assist me on this.
    Thanks,
    Arvind

    Hi Arvind,
    Your requirement can be realised through virtual characteristics.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b04be008-86cc-2c10-4bad-e517ea3f4c80?QuickLink=index&…
    however, I would still suggest to reload the data. you will only need to reload years before 2010 and you can do this in phases.
    Hope this helps.
    -Swati.

  • Last year value

    I am having a table inv_sales_trgt_val and columns
    branch_cd number(3),
    vndr# number(3),
    yymm number(6) ,
    vgroup# number(3),
    sales_trgt_amt number(11,2),
    sales_actl_amt number(11,2),
    cuml_trgt_amt number(11,2),
    cuml_actl_amt number(11,2),
    last_yr_yymm_amt number(11,2)
    In report i need to get sum(sales_actl_amt) which is present year and sum(last_yr_yymm_amt) which is last year ,i am getting sum(sales_actl_amt) correct value but sum(last_yr_yymm_amt) getting different value .so from sales_actl_amt can i get last year value in report.
    please help me
    thank you.

    Hi Joss,
    In SQL Server Analysis Services, we can can compare revenue with the hierarchy periods (year, month, day) by using the PARALLELPERIOD function, and now you want to compare with custom periods. (NOTE: We cannot compare it with the PARALLELPERIOD function
    since
    PARALLELPERIOD function returns a member from a prior period in the same relative position as a specified member. So if the first time span not equal to the second one (such as the first period is 3 days, and the second period is 2 month)).  Here
    is a sample query about PARALLELPERIOD function for your reference.
    with
    set Hotels as
    [Hotels].[Hotel ID].&[1015],
    [Hotels].[Hotel ID].&[5640],
    [Hotels].[Hotel ID].&[8800]
    set Period as [Arrival Date].[Date].[Month].&[2012]&[1]:[Arrival Date].[Date].[Month].&[2012]&[12]
    member [Arrival Date].[Date].[0] as sum({ Period })
    member [Total Amount N-1] as (PARALLELPERIOD([Arrival Date].[Date].[Year], 1, [Arrival Date].[Date].[Year].&[2012]), [Measures].[Total Amount])
    select
    [Measures].[Total Amount],
    [Measures].[Total Amount N-1]
    } on 0,
    nonemptycrossjoin
    Hotels,
    Hotels.[Hotel].children,
    *{[Arrival Date].[Date].[0]}
    } on 1
    from [Booking_Cube]
    Regards,
    Charlie Liao
    TechNet Community Support

  • FNDLOAD fail update parameter's value set in concurrent program

    I am try to update 1 parameter's value set from one enviorment to other using the following script but that parameter is still using old value set:
    FNDLOAD apps1/xxx 0 Y DOWNLOAD $FND_TOP/patch/115/import/xx_afcpprog.lct XXPN_PTLAIO.ldt PROGRAM APPLICATION_SHORT_NAME="XXPN" CONCURRENT_PROGRAM_NAME="XXPN_PTLAIO"
    FNDLOAD apps2/xxx 0 Y UPLOAD $FND_TOP/patch/115/import/xx_afcpprog.lct XXPN_PTOLAO.ldt
    Is there a situation parameter cannot be updated?
    Or should i use afffload.lct to load?
    My machine version:
    RDBMS : 11.1.0.7.0
    Oracle Applications : 12.1.3
    Edited by: 901005 on Apr 19, 2012 3:37 AM
    Edited by: 901005 on Apr 19, 2012 3:43 AM

    compare date and author of paramaters and value sets
    if date of parameter (or valueset) in ldt earlier than date of parameter (or valueset) in system than no update
    you can try to use CUSTOM_MODE=FORCE

  • Can the Parameter Enter Value screen size be adjusted?

    I have a report that will have up to 4 to 5+ different individual Parameters that will require the users to populate. 
    Since I am using a larger number of parameters the Enter Value screen size is small and not all of the parameters are displayed on one screen.   the users are required to scroll down in order to see and populate the other Parameter selections. 
    Is there a way to adjust the default size of the Parameter enter Value screen that the end users will see when using the Cyrstal Report Viewer?

    Try Service Pack 3, if still not then it's likely the type of parameters you are using.
    Bottom line is if there is no option to change the size of that window. I believe someone asked for this and I entered it in as an enhancement request. Some future version may eventually have the ability to auto-size.
    At the top of this forum you'll see a Feature Request link, add your suggestion there, search first though in both of the links.
    Thank you
    Don

Maybe you are looking for

  • How do I set the delivery policy for a queue in iMQ 2.0?

    The list on page 67 of the 2.0 administration guide appears to be incomplete. Specifically, I'm interested in knowing how to set the default delivery policy for a Queue through the jmqobjmgr command. I need the valid attribute name to pass in to jmqo

  • How to access "Alternative Realm" or "Custom Realm" from components like Servlet ?

    Hello, Says if I have alternative realm or my custom realm which implement "ManageableRealm" interface. How can I access the realm from other component, like Servlet or EJB in same WLS ? I tried using code like this BasicRealm realm = Realm.getRealm(

  • Installing (using) JSSE to Visual Age

    Hi all, I have installed JSSE 1.0.2 in JDK 1.3.1 successfully.. Everything is working fine. However what I need to do is use JSSE under Visual Age 3.5... (my VA is iv3-4 jdk 1.2.2 (patched.)) I am importing three jar files which comes with JSSE but s

  • All items link are broken !! - Help

    Hi All, I'm having problems when adding items to a page using Portal 9.0.2. Every file, text document (displayed in other page), etc. I upload to a Portal's page generate a URL like this one here : http://machine:7779/pls/portal/url/ITEM/DAE1396C0F7B

  • How to Clean the iPod?

    I was wondering how you clean the metal panel on the back of the Nano. I used a tissue with soap and water and it got clean but I have heard people use metal wool to clean the back of their iPods in general. So how do you really clean the back of the