Error while executing customer Exit Variable (No value could be determined for variable.  BRAIN 632)

Hello,
I created a customer exit variable which has to show the range between the first and last day of the previous month. The query will be executed every first of the month.
Variable is declared as: Customer exit, based on 0CALDAY, Interval, Mandatory and NOT input.
When i debug the query, it is making the calculation but its not populating my variable; when I execute the query from RSRT, the output test shows a message:
ENo value could be determined for variable ZRANGE_PREVMONTH.                            BRAIN               632ZRANGE_PREVMONTH
Below the code i'm using (SAP 7.4)
***Customer Exit to calculate previous month.
IF i_step = 2.
     CASE i_vnam.
          WHEN 'ZRANGE_PREVMONTH'.
DATA:  LS_RA_SID  TYPE   RSR_S_RANGESID.
DATA:  yyyy(4) TYPE n.
DATA:  mm(2) TYPE n.
DATA:  dd(2) TYPE n.
DATA:  fst_date LIKE sy-datum.
DATA:  fst_date2 LIKE sy-datum.
LOOP AT i_t_var_range_c INTO loc_var_range
    WHERE vnam = '0DAT'.
      dd = sy-datum+6(2).
      mm = sy-datum+4(2).
      yyyy = sy-datum+0(4).
      fst_date2 = sy-datum.
      IF dd = '01' AND mm = '01'.
        mm = '12'.
        yyyy = yyyy - 1.
      ELSEIF dd = '01' AND mm <> '01'.
        mm = mm - 1.
      ELSEIF dd <> '01'.
        mm = mm - 1.
      ENDIF.
      CLEAR: fst_date.
      CONCATENATE yyyy mm '01' INTO fst_date.
      fst_date2 = fst_date2 - 1.
      CLEAR: ls_ra_sid.
      ls_ra_sid-sign = 'I'.
      ls_ra_sid-opt = 'BT'.
      ls_ra_sid-high = fst_date2.
      ls_ra_sid-low = fst_date.
      APPEND ls_ra_sid TO e_t_range.
ENDLOOP.
ENDCASE.
   ENDIF.

Hi Fernanda,
Try this:
DATA:  LS_RA_SID  TYPE   RSR_S_RANGESID.
DATA:  fst_date LIKE sy-datum.
   CASE i_vnam.
          WHEN 'ZRANGE_PREVMONTH'.
fst_date = sy-datum - 1.
concatenate fst_date(6) '01' into ls_ra_sid-low.
      ls_ra_sid-sign = 'I'.
      ls_ra_sid-opt = 'BT'.
      ls_ra_sid-high = fst_date.
      APPEND ls_ra_sid TO e_t_range.
ENDLOOP.
ENDCASE.
   ENDIF.
Just post here for any queries..
Regards,
Loed

Similar Messages

  • Text Variable error "No value could be determined for variable " Brain 632

    Hi,
    I want to display current fiscal period as description in the colomn of a query.
    Ex. If current fiscal period is 005.2009 in the colomn it should display 2009005
    For that I have created a text variable.(Is it correct to create a text variable for this?)
    But it gives me following error.
    "No value could be determined for variable " Brain 632 Error.
    Please help.

    I assume that your requirement is suppose a user enter a date as 01/12/2010 - 31/12/2010 in the selection screen then he should get the data for this  range in one keyfigure and 01/11/2010 - 31/11/2010
    For this requirement you have to create one customer exit variable on calendar day :
    I have taken into account only the two values .
    Important is to take into account what if a month has 31 days and previous month has 30 days.
    The user exit will trow an error in this case .
    You need to handle this in the code .
    Data :
    day type string,
    year type string ,
    Month type string ,
    LS_Calday type Date.
    IF i_step = 2.
      CLEAR loc_var_range.
      READ TABLE i_t_var_range INTO loc_var_range
        WITH KEY vnam = 'Z_PCG1'.
    day = loc_var_range-low+6(2) .
    Year=loc_var_range-low+0(4).
    Month =loc_var_range-low+4(2) .
    if month = 01 ,
    year= year -1 .
    month = '12'
    concatenate year month day into LS_Calday .
    else if month = 03
    and day =31 or day = 30 or day = 29 .
    day = 28 .
    month = month -1 .
    month_high = month 
    concatenate year month day into LS_Calday .
    else if month = 05 or month = 07 or month = 10 .
    month = month -1 .
    concatenate year month day into LS_Calday .
        CLEAR l_s_range.
        l_s_range-low  = LS_Calday .
         l_s_range-sign = 'I'.
        l_s_range-opt  = 'EQ'.
        APPEND l_s_range TO e_t_range.
      ENDIF.
    ENDIF.
    restrict the first keyfigure with the user input variable and second with this customer exit variable .

  • No value could be determined for variable (Material)

    Hi,
    I have Planning filter where im restricting the Material with a Zvariable. This is a Customer Exit variable. This works fine in development but throws me error No value could be determined for variable (Material) in QA system.
    Could some one help me in resolving this in
    Thanks

    either your code is wrong or you just have no data.
    debug the code, check if you do have the desired data according to your code.
    regards
    Cornelia

  • No value could be determined for variable 0P_KEYD2

    Hello Gurus,
    I am creating a report for Vendor Ageing. I have included the characteristic 0PSTNG_DATE (with restriction variable - 0P_KEYD2) . when I execute the query it gives the following error :-
    No value could be determined for variable 0P_KEYD2.
    Do I need to edit the SAP Exit for modifications. The query does'nt prompt me for a Key Date.
    Thanks in advance..

    Hi,
    Did you not find any code for the variable in the include program. Try activating the variable in the business content using before and after data flow.
    Also check this link:
    http://help.sap.com/saphelp_nw04/helpdata/en/ea/fd740780b135428ed0016168974284/content.htm
    Bye
    Dinesh
    (Do not forget to assign points!!)

  • No value could be determined for variable 0P_FVAEX

    We are on BW 7.0 and BEx7.0
    I have activated BI Content of InfoCube  0WBS_C11 and all it's SAP delivered Query elements. The InfoCube is loaded with data already.
    When I run any of the query in BEx, I got the same error as below:
    Initial RANGE-LOW for customer exit variable 0P_FVAEX corrected to #
    No value could be determined for variable 0P_FVAEX
    Please help.
    Thanks

    Hi,
    There is no value for the variable 0P_FVAEX for fiscalyear variant. default it is populating #.
    In company code masterdata(attr & text) there should be fiscalyear variant for FI loading and Controlling area masterdata for other modules loading. 0FISCVART should be filled in masterdata (company code/ controlling area) then you can get report .
    If it is not there in the masterdata ask the functional consultant fill the company code data with fiscalyear variant.
    This should  solve the error.
    Thanks,
    Satya

  • No Value could be determined for variable ZCE0018

    Hi experts,
    I am getting an error while running reports for few selections on Sales Org.(without giving site/store) as below
    It is working fine with some other sales org.
    *Selection covers data from multiple comp.codes which carry more than one Fisc.Yr Variant not possible to report in multiple Fy variants.Plz refine selections.
    *No Value could be determined for variable ZCE0018.
    Please reply me how to rectify this error.
    Thanks in advance.
    regards,
    <BMP>

    Hello,
    the description for the error is:
    Diagnosis
    This error diagnosis is specific only to the variables 0P_FVAEX or 0P_CTPCA !
    Termination message BRAIN 632 appears:
    Could not determine value for variable 0P_FVAEX (or 0P_CTPCA).
    System Response
    1. Operation method of SAP-Exit-Variables 0P_FVAEX or 0P_CTPCA
    With queries from the CO application, both SAP-Exit-Variables look for an entry for 'controlling area'. With this controlling area from the selection screen, the SAP-Exit-Variables program reads the attributes for InfoObject 0CO_AREA (controlling area).
    With queries from the FI application, the SAP Exit Variable 0P_FVAEX looks for an entry for 'company code'. With this company code from the selection screen, the SAP Exit Variables program reads the attributes for InfoObject 0COMP_CODE (Company Code).
    0P_FVAEX determines the fiscal year variant (attribute 0FISCVARNT) from the attributes for 0CO_AREA (CO queries) or 0COMP_CODE (FI queries). 0P_CTPCA determines the currency type of the profit center local currency (attribute 0CURTP_PCA) from the attributes for 0CO_AREA.
    2. Cause of Error
    The attributes for the controlling area (InfoObject 0CO_AREA) or company code (InfoObject 0COMP_CODE) were not loaded into the BW system, or the attributes for the controlling area are not active in the BW system.
    Check whether this is the cause of the error in your BW system. Display the contents of table /bi0/mco_area or /bi0/mcomp_code using transaction se16.
    Application CO:
    Check whether the attributes 'fiscal year variant' (field FISCVARNT) and 'profit center local currency currency type' (field CURTP_PCA) are filled in the 'A' version (field OBJVERS) for the selected controlling area. If the fiscal year variant in the OBJVERS = 'A' is empty, then the error is with variable 0P_FVAEX. If the currency type of the profit center's local currency in OBJVERS = 'A' is empty, then the error is with variable 0P_CTPCA.
    Application FI:
    Check whether or not the attribute 'fiscal year variant' (field FISCVARNT) is filled in the 'A' version (field OBJVERS) for the selected controlling area. If the fiscal year variant is empty in OBJVERS= 'A', then the error is with variable 0P_FVAEX.
    Procedure
    Using InfoSource 0CO_AREA, load the attributes for the controlling area or company code into your BW system.
    Afterwards, activate the attribute changes in your BW system. To do this, use transaction rsa1, path 'Tools > Hierarchy/Attribute changes', functions button 'InfoObject list'. Choose InfoObject 0CO_AREA or 0COMP_CODE from this list, and activate the attribute changes.
    Check through the context in the report what variables are affecting. Anyways it is a BW issue not SCM Logistics, please contact someone from BW-BEX or create a SDN thread in BW forum.
    Best Regards,
    Christian Rosa

  • Error Message : " No value could be determined for Customer Exit Variable "

    Hello BI Experts ,
    I have created a "ZYTD_PERIOD" Customer Exit Variable  Interval  Mandatory and ready for input check mark removed.
    The reference character is '0FISCPER' .
    I want to have YTD figures when the user enter single Fiscal Year Period for variable 0P_FPER.
    So I have written below code in SE37 : EXIT_SAPLRRS0_001 and include program : ZXRSRU01
    ==================================================================
      case i_vnam.
                  WHEN 'ZYTD_PERIOD'.
                  IF I_STEP = 2.
                  LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE WHERE VNAM = '0P_FPER'.
                  CLEAR L_S_RANGE.
                  L_S_RANGE-LOW0(4) = LOC_VAR_RANGE-LOW0(4).
                  L_S_RANGE-LOW+4(3) = '001'.
                  L_S_RANGE-HIGH = LOC_VAR_RANGE-LOW.
                  L_S_RANGE-SIGN = 'I'.
                  L_S_RANGE-OPT = 'BT'.
                  APPEND L_S_RANGE TO E_T_RANGE.
                  EXIT.
                  ENDLOOP.
                  ENDIF.
    ===================================================================
    After that I use this 'ZYTD_PERIOD' variable in the query .
    Also I have used the variable 0P_FPER in another structure.
    When I execute the query by entering the value of 0P_FPER as 010.2009 or any other value ,
    I am getting below error message ,
    *No value could be determined for variable ZYTDPERIOD*_
    Below is details of this Error message ,
    Note that I have proper Master and Text data for 0CO_AREA and 0COMP_CODE loaded into BI.
    =======================================================================
    Diagnosis
    This error diagnosis is specific only to the variables 0P_FVAEX or 0P_CTPCA !
    Termination message BRAIN 632 appears:
    Could not determine value for variable 0P_FVAEX (or 0P_CTPCA).
    System Response
    1. Operation method of SAP-Exit-Variables 0P_FVAEX or 0P_CTPCA
    With queries from the CO application, both SAP-Exit-Variables look for an entry for 'controlling area'. With this controlling area from the selection screen, the SAP-Exit-Variables program reads the attributes for InfoObject 0CO_AREA (controlling area).
    With queries from the FI application, the SAP Exit Variable 0P_FVAEX looks for an entry for 'company code'. With this company code from the selection screen, the SAP Exit Variables program reads the attributes for InfoObject 0COMP_CODE (Company Code).
    0P_FVAEX determines the fiscal year variant (attribute 0FISCVARNT) from the attributes for 0CO_AREA (CO queries) or 0COMP_CODE (FI queries). 0P_CTPCA determines the currency type of the profit center local currency (attribute 0CURTP_PCA) from the attributes for 0CO_AREA.
    2. Cause of Error
    The attributes for the controlling area (InfoObject 0CO_AREA) or company code (InfoObject 0COMP_CODE) were not loaded into the BW system, or the attributes for the controlling area are not active in the BW system.
    Check whether this is the cause of the error in your BW system. Display the contents of table /bi0/mco_area or /bi0/mcomp_code using transaction se16.
    Application CO:
    Check whether the attributes 'fiscal year variant' (field FISCVARNT) and 'profit center local currency currency type' (field CURTP_PCA) are filled in the 'A' version (field OBJVERS) for the selected controlling area. If the fiscal year variant in the OBJVERS = 'A' is empty, then the error is with variable 0P_FVAEX. If the currency type of the profit center's local currency in OBJVERS = 'A' is empty, then the error is with variable 0P_CTPCA.
    Application FI:
    Check whether or not the attribute 'fiscal year variant' (field FISCVARNT) is filled in the 'A' version (field OBJVERS) for the selected controlling area. If the fiscal year variant is empty in OBJVERS= 'A', then the error is with variable 0P_FVAEX.
    Procedure
    Using InfoSource 0CO_AREA, load the attributes for the controlling area or company code into your BW system.
    Afterwards, activate the attribute changes in your BW system. To do this, use transaction rsa1, path 'Tools > Hierarchy/Attribute changes', functions button 'InfoObject list'. Choose InfoObject 0CO_AREA or 0COMP_CODE from this list, and activate the attribute changes.
    =====================================================================================
    Is there any special settings needed before writing BEx Customer Exit ?
    I have already created a project in CMOD and assinged a proper RSR00001
    and EXIT_SAPLRRS0_001 and project is active.
    Any help please ....
    Regards ,
    Amol

    My Code is as below ,
              case i_vnam.
                  WHEN 'ZYTD_PERIOD'.
                  IF I_STEP = 2.
                  LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE WHERE VNAM = '0P_FPER'.
                  CLEAR L_S_RANGE.
                  L_S_RANGE-LOW0(4) = LOC_VAR_RANGE-LOW0(4).
                  L_S_RANGE-LOW+4(3) = '001'.
                  L_S_RANGE-HIGH = LOC_VAR_RANGE-LOW.
                  L_S_RANGE-SIGN = 'I'.
                  L_S_RANGE-OPT = 'BT'.
                  APPEND L_S_RANGE TO E_T_RANGE.
                  EXIT.
                  ENDLOOP.
                  ENDIF.
                  ENDCASE.

  • Error in F-02 : "No chart of accounts could be determined for Company Code

    Hi SAP GURUs,
    When we tried to post an Journal Entry it is giving the error message as "No chart of accounts could be determined for company code".
    Could you please help me with the reason & resolution for this.
    Best Regards,
    Pavan

    Dear,
    Please try tcode obd4, define a/c group with COA.
    hope it helps
    regards

  • Error while executing custom task.

    Hello All,
    I am testing my custom task in the workflow. I get the following error: "Error when accessing method properties" when the workflow starts executing my custom task.
    Any help is appreciated.
    Thanks and Regards.
    Srinivas

    Hi Sudhi,
      Here is the error from the technical details of the workflow log:
    "Method container for work item cannot be created"
    "Error when accessing method properties (TS90700187)"
    "Component CREATENBOBJECT does not exist"
    CREATENBOBJECT was the original method in my custom class ZCL_HRMSS_RECRUITING_WF

  • Error while process the CPPR-Rfx "No receiver could be determined"

    Hi Experts,
    We are working on SRM 7.0 Extended Classic Scenario, While testing the CPPR-Rfx process we are getting the error msg in Portal
    "No receiver could be determined".
    We implemented Badi ME_REQ_SOURCING_CUST & BBP_EBPXML_OUT_BADI
    We are getting this ERROR " No receiver could be determined" While clicking the "CREATE RFX" with reference to Purchase Requisition through Hormonized roles.
    Pl suggest what could be the problem.
    Regards,
    Mohan

    Check if below settinjgs are in place:
    Parameter CV_EXT_RFX_IND is set to true in ME_REQ_SOURCING_CUST  to create RFX.
    Business functions are activated in backend ECC system.
    In backend system Event type linkage is activated for receiver WS53800009, event RFXREQUESTED and BO BUS2105
    In Backend system Activate outbound messages for events RFCREQUESTED for object type BUS2105.
    RFC user used in PI system is assigned to Purch org in SRM org structure.
    Maintain the service call RFQRequestSUITERequest_In in XI/PI.
    Maintain transac type for RFx in SRM.
    Do you see any entries in XI monitor and queues?
    Thanks,
    Jagadish

  • Error while executing FIGL query

    Hello All,
    While executing a standard FIGL report in the Anayzer, I am getting the following error:
    No Value could be determined for variable 0P_FVAEX.
    I know that this error is related to Fiscal year variant
    Please let me know the reason and the solution for this error.
    Thanks
    Sneha

    Hi,
    i think value for 0P_FVAEX is being populated. This variable is not checked for Ready for Input and it is a custome exit variable. I think you need to populate this variable in the customer exit using some constant value or logic which determines correct fiscal year variant.
    hope this helps,
    Purvang

  • Error while executing query in BEX

    Hi All,
    I am experiencing an issue while executing query on FIAR_C03.
    "Abort No Values could be determined for variable 0P_FVAEX
    Error specify a value for 0P_FVAEX
    Abort system error in program SAPLRRKO and form APPEND_KHANDLE_1-01-
    I had searched SDN forums and found the similar error which is inculded in the below link:
    Bex Variable
    However, the solution specified is only for a particular 3 queries. Also the solution is that the 3 queries(Which are having errors) are replaced by another 3 queries.
    Can anybody help us in this regard.
    Regards
    YJ

    hi JY,
    try 858477 steps for other 'infected' webtemplates ?
    try implement correction in 660514 ?
    (also search other notes with keyword 0P_FVAEX
    e.g 585202)
    hope this helps.

  • Error while executing Batch Risk Analysis job in full sync mode

    Hi Gurus,
    I am getting following error while executing Batch Risk Analysis job in full sync mode for the first time, please help me out.
    May 12, 2011 3:57:26 AM com.virsa.cc.multi.node.dao.NodeDAO deleteMTGenObjTable
    INFO: In deleteMTGenObjTable() deleting from VIRSA_CC_MTGENOBJ for jobid = 100
    May 12, 2011 3:59:53 AM com.virsa.cc.multi.node.dao.NodeDAO deleteMTGenObjTable
    INFO: In deleteMTGenObjTable() deleting from VIRSA_CC_MTGENOBJ for jobid = 100
    May 12, 2011 3:59:53 AM com.virsa.cc.xsys.bg.BatchRiskAnalysis performBatchSyncAndAnalysis
    INFO: --- Batch Sync/Analysis/Mgmt Report completed ---  elapsed time: 104907817 ms
    May 12, 2011 3:59:53 AM com.virsa.cc.xsys.bg.BgJob setStatus
    INFO: Job ID: 100 Status: Error
    May 12, 2011 3:59:53 AM com.virsa.cc.xsys.bg.BgJob updateJobHistory
    FINEST: --- @@@@@@@@@@@ Updating the Job History -
    2@@Msg is Error Job not completed
    May 12, 2011 3:59:53 AM com.virsa.cc.xsys.bg.dao.BgJobHistoryDAO insert
    INFO: -
    Background Job History: job id=100, status=2, message=Error Job not completed
    May 12, 2011 3:59:53 AM com.virsa.cc.xsys.riskanalysis.AnalysisDaemonBgJob scheduleJob
    INFO: -
    Complted Job =>100----
    May 12, 2011 3:59:53 AM com.virsa.cc.xsys.riskanalysis.AnalysisDaemonBgJob scheduleJob
    INFO: Daemon idle time longer than RFC time out, terminating daemon [211288050]/usr/sap/DAC/JC21/j2ee/cluster/server0/. Thread ID 0
    May 12, 2011 3:59:53 AM com.virsa.cc.xsys.riskanalysis.AnalysisDaemonBgJob start
    INFO: Analysis Daemon ID [211288050]/usr/sap/DAC/JC21/j2ee/cluster/server0/. Thread ID 0 terminiated
    May 12, 2011 4:00:35 AM com.virsa.cc.xsys.bg.AnalysisDaemonThread run
    FINEST: Analysis Daemon Thread: Invoking (HTTP): http://10.66.218.68:52100/webdynpro/dispatcher/sap.com/grc~ccappcomp/BgJobStart?daemonId=[211288050]/usr/sap/DAC/JC21/j2ee/cluster/server0/.&threadId=0&daemonType=BG
    May 12, 2011 4:01:36 AM com.virsa.cc.xsys.bg.AnalysisDaemonThread run
    FINEST: Analysis Daemon Thread: Invoking (HTTP): http://10.66.218.68:52100/webdynpro/dispatcher/sap.com/grc~ccappcomp/BgJobStart?daemonId=[211288050]/usr/sap/DAC/JC21/j2ee/cluster/server0/.&threadId=0&daemonType=BG
    May 12, 2011 4:02:37 AM com.virsa.cc.xsys.bg.AnalysisDaemonThread run
    FINEST: Analysis Daemon Thread: Invoking (HTTP): http://10.66.218.68:52100/webdynpro/dispatcher/sap.com/grc~ccappcomp/BgJobStart?daemonId=[211288050]/usr/sap/DAC/JC21/j2ee/cluster/server0/.&threadId=0&daemonType=BG
    May 12, 2011 4:02:37 AM com.virsa.cc.xsys.riskanalysis.AnalysisDaemonBgJob start
    INFO: Analysis Daemon ID [211288050]/usr/sap/DAC/JC21/j2ee/cluster/server0/. Thread ID 0 started
    May 12, 2011 4:02:38 AM com.virsa.cc.xsys.riskanalysis.AnalysisDaemonBgJob start
    FINEST: Another Analysis Daemon ID [211288050]/usr/sap/DAC/JC21/j2ee/cluster/server0/. Thread ID 0 is already running

    Hi,
    May be it worked in your case How the job names going to affect the execution of the job. The issue is purely because of RFC timeout (As per the logs). I recommend to change the parameter in the configuration tab as recommended by Sunny in the previous thread.
    Regards,
    Raghu

  • Error while executing the Job:Cannot assign NULL to host variable 1

    Hello!
    I have the following issue:
    Error while executing the Job:Cannot assign NULL to host variable 1. setNull() can only be used if the corresponding column is nullable. The statement is "INSERT INTO "VIRSA_... (see log for details)
    Note 1362138 - Rule generation - null pointer exception virsa_cc_rtmap  doesn't me. After uploading files of ZCC_DOWNLOAD_SAPOBJ and ZCC_DOWNLOAD_DESC I got the same problem during job running...
    How can I find out where is the problem?

    Hi
    That looks like your fields are disabled but they could still be causing the problem edited ( nah - talking rubbish as you've put dummy " " in there) edited - the 'null' error caused many background jobs to fail but, once we had the evidence to show the space (somebody had pressed enter instead of delete/backspace to clear the entry) it stopped the problem - just a bit of learning on the job which we all go through for the GRC chaps in KL.
    A " " would be valid but a    (I know you can't see it but it's there wouldn't be      )
    edited.When you did an edit/replace did it say it had replaced anything please?edited
    The word doc option does sound good!
    Cheers
    David
    Edited by: David Berry on Nov 4, 2010 7:33 PM

  • ERROR WHILE executing susbsititution variable in 11.1.3

    Facing error while executing the susbsititution variable inside the fix command IN 11.1.3
    FIX(&CURRVERSION,COLA)
    Unit=units*5;
    dataexport "file" "," "E:\NEW.TXT";
    ENDFIX
    Error throws delimiter not balanced (]) inside the fix statement
    When i used the susbsititution variable outside fix statement
    its working
    i want know whether precisely went wrong
    Regards
    SHENNA

    HI shenna,
    we can fix a substitution variable, that should not be a problem. when you say that you are able to use substituion variable outside, do you mean to say that when you are not fixing, its parsing perfectly.
    Sandeep Reddy Enti
    HCC
    http://hyperionconsultancy.com/

Maybe you are looking for