Populate a variable based on input (Customer Request Ship date)

Hi Gurus,
I have a requirement to code on a custom variables.
Created two Customer Exit Variables:  "ZCRD" AND "ZFYPRD."
Variable one - "ZCRD" - customer requested ship date.  ( input) variable.
Populate a variable - "ZFYPRD" based on users input - "ZCRD."
Please provide me if function module exist / how to code a new FM and code to populate the value on variable ZYPRD.
For Instance:
if user's input is "ZCRD = 05/30/08".
Populate the value in the variable (custom) "zfyprd" = 005/2008.
How would I code in ABAP If this is the condition.
Please help.
Thanks in advance.
BW

Hi Ramesh,
Thank you for the response.  Your input is valuable.  For this requirement its a BPS Planning Layout.
Do I need a function module to work this code?  The (key date) customer requested ship date (variable) is an input from users through planning area.  If function module requires please give me the code for the function module.
Users enter = customer requested ship date.
Variable for this fiscal yr/period should populate/ convert it to the period.
I used the function module convert it to period.  But which function module is to use to connect it to the variable for customer requested ship date in bps?
I created a variable (customer exit) for period in the query.  I referred the code given in the document to convert it to period from key date.  But while testing the variable customer requested ship date is coming as initial.  what is it that I am missing here?  Please help
Thanks in advance,

Similar Messages

  • Sales order Customer Requested Delivery Date

    Hi Experts
    We are getting date difference of Customer Requested Delivery Date in MD04 and Product View for one customer.
    Scenario:
    Created Sales order by giving CRD date as 26.07.2010 and In APO Product View the same sales order shows 25.07.2010.
    Please advice.
    Thanks
    Kanth

    Hi Kanth,
    Please check your settings under transaction /sapapo/cp3
    Also check sap notes 423626, 394113
    Regards
    R. Senthil Mareeswaran.

  • How to script creating variables based on input

    I am looking to do something that I am sure is possible but at a loss on how to do it. Maybe someone can assist. What I am looking to do is have a question that is asked, the input will be a number, what I want to do with that number is have it stored into
    a variable called "$variableX" where the X is the number someone enters.
    For example:
    Question:  Type a number from 10-20
    The user types 15, then the script outputs the Variable $Variable15, then when asked to enter a another number and they enter 19, then another variable is created called $Variable19.
    Hope this makes sense.   I was thinking of writing a bunch of If statements but I don't want to enter 10-20 of them, if one smaller script can do them all.
    Thanks,

    Yes, they will be asked "Are you adding a new disk to the server?", if the answer is yes then it will then ask for the disk number.  After they do that it will then say "Is there another disk to add?"  If so then it
    will run it again.  If no, then it will stop.
    You can wrap what I've posted above in a do loop to accomplish this.
    http://ss64.com/ps/do.html
    Don't retire TechNet! -
    (Don't give up yet - 13,225+ strong and growing)

  • Actual shipping date vs original/requested shipping date

    Hi Experts
    We are new with SNC and want to not only measure supplier delivery performance on delivery date but also on shipping date - i.e. measure if the supplier shipped the goods on time.
    Do you know how we can get a hold of these two dates (actual vs original shipping date)? Are there any table fields to obtain this info or perhaps an option to load the dates into BW info cube?
    Thank you in advance.
    Best regards,
    Dan Bruun

    Hi Dan,
    You can get actual shipping date  and original shipping date from the table /1OM/ORDR4SDL<your client name>.(if client=800 then table will be /1OM/ORDR4SDL800).
    Go to table /1OM/ORDR7MP3<your client name> enter the PO number in field ORD.NO and copy ORDID use this ORDID in table /1OM/ORDR4SDL<your client name>.
    select the record with ORDID(copied from above table) and field SLDType=CONF then field TSTFRFRT will give you the original shipping date and TSTFRTOT will give you original delivery date.
    select the record with ORDID(copied from above table) and field SLDType=ASNC then field TSTFRFRT will give you the actual shipping date and TSTFRTOT will give you actual  delivery date.
    Regards,
    Nikhil

  • Is the CURRENT_YEAR variable based on our systems Financial Year?

    Hi,
    I have a report that uses the CURRENT_YEAR variable to filter data. The value of that variable is currently 2010, but our financial year starts on 1 October, so we are still in the 2009 finacial year?
    My question is: Is the CURRENT_YEAR variable based on the Financial Year start date configured in our CRM instance? or is it a "global" variable which is the same for everyone regardless of their financial year start date.
    Thanks.

    In my customer, CURRENT_YEAR and CURRENT_MONTH returns the fiscal year and month...
    Antonio

  • Customizing tables not asking for Customizing Request while saving data

    Hi,
    I have some customizing tables in my development server (Delivery Class = 'C').
    These always used to ask for a Customizing Request whenever data was saved in them.
    Suddenly, I have noticed they are no more asking for any Customizing Request. I cross-checked in the Transport Organizer and confirmed that there are no customizing requests of mine which may be already holding any data entries of these tables.
    I wonder why this may be happening (believe it to be some basis configuration issue. also asked my basis guy but he has no clue).
    Kindly suggest.
    Thanks,
    Z

    Thanks Navneet and Gautham.
    My problem is now solved. Let me summarize the problem and the solution now.
    -> The customization tables suddenly stopped asking for a request while saving data.
        Somehow the settings had been reset, and as Gautham pointed out, it was corrected in the tcode SCC4
    -> Most of the tables now worked fine, but still few of them didnt ask for requests
        Here, I found out that the developers had chosen "no, or user, recording routine" instead of  "standard recording routine". For such tables, when i check in the tcode SE54, menu path Environment -> Maintenance Objects -> Change, I find the Transport category 'No Transport'. Regenerating the maintenance generator choosing "standard recording routine" fixes this and the tables now ask for a customizing request.
    Thanks, both, for the quick response.

  • Problem with customer exit variable that is input ready as well

    Hello all,
    I'm facing an issue with a customer exit variable that again has been defined as input ready. I'm not sure why it is working incorrectly and I#m wondering if this is a bug or if I do s.th. stupid.
    The problem is that in the exit program ZXRSRU01 this varibale does not go into the program code I have prepared for this variable. I have added entry points for all three i_step values 1,2,3, but the code will never be touched and in debugging I can see that it simply pypasses the code for this variable.
    I have tried to enter a value or to leave it blank, no difference.
    When I run another test by just using a customer exit variable w/o input ready capability, then I have no issue, the exit does exactly what I have coded.
    Does this mean, that a customer exit variable along with input readiness dows not work ?????
    You may ask why I need this variable. Well, my intention is to use the input value of this variable A to derive other values for a complete different variable B. Afterwards I want to erase the input given into variable A to have it blank.
    Any comments are appreciated
    Thanks

    Hi Heiko,
    I assume A & B variables are defined on different Characteristics. If you wish to derive B based on A, you can create the Query Characteristic Restriction on B & have a dummy RKF restricted on A whose processing is by Manual Input; where processing of B is by Customer Exit. In istep 2 you can check for B, read A & derive B. There would not be a need to blank out A since the Query would not be restricted on A - you can hide the dummy RKF from showing in the output. Just a thought.
    --Priya

  • Modifying the cell content based on input parameter from variable screen.

    I am trying to modify a cell content in the BEX Web Application Report based on the input parameter from the variable screen.
    I am already aware of how to change the cell content by creating a new ABAP class and inheriting CL_RSR_WWW_MODIFY_TABLE.
    I do not know how to get the input parameter variable from the variable screen in my custom class ZCL_RSR_WWW_MODIFY_TABLE. I am not very familiar with ABAP and would appreciate your help.
    Thanks
    Sowmini

    in the start method
    define a work area like line of n_r_data_set->N_SX_VERSION_20A_1-TXT_SYMBOLS
    loop at n_r_data_set->N_SX_VERSION_20A_1-TXT_SYMBOLS into <wa> ..
    endloop .
    This will have all the filter, variable values entered in the selection.
    Regards
    Raja

  • Restriction of f4 help of a bex variable based on another variable input

    Hi,
    Could you please let me know if there is any possibility to restriction of f4 help of a bex variable based on another variable input.
    eg: when i select particular company code in one variable, i need to restrict the f4 help for another variables eg: pur. group based on selected company code.
    Regards
    Kasi

    Hi,
    Try using replacement path option in bex with replace variable with variable selction.
    Thanks.

  • Activate or deactivate a condition based on Input Variable

    Hi,
    Is it possible to Activate/De activate a condition based on Input variable, if yes can any one tell me how this could be done...

    Hi... Is there any other round about way other than using a User exit????
    Basically this is what I am looking for
    Quest to User: Y/N
    if "Y" then Activate the condition and suppress the records based on the condition
    If "N" then do not activate the condition and publish all the records...
    Any thoughts....

  • Populate a another value based on input value using abap webdynpro

    Dear All,
    I am new to WDA.I have a requirement to calculate priciple amount based on the user requested amount.Here requested amount is input field and principle amount is defined as text view.
    Now let's say user entered requested amount as 12000,dynamically priciple amount has to be generated by calculating requiredamount/120(number of months).Pls help!
    Thanks,
    Reddy.

    Thanks ,I am able to do it before watching u r answer.I searched in forum and I was able to it.
    Now i have one more question.Now I want to retrict the user not to enter any amount beyong eligible amount.Eligible amount is the field which I am getting from database table and displaying in a text view and the eligible amount is different for different users.I know this validation also has to be handled in ONENTER event.But I am not sure how to show the alert?
    I have to code in ONENTER event handler like
    if lv_requiredamount>lv_eligibleamount
    what need to be done to show some alert are popup.
    Please help.
    Thanks,
    Reddy.

  • To retreive the data based on input in a variable in web interface.

    Hello all,
    I am working on BW-BPS.
    I have a web interface which has many variables.One of them is Version.
    I fill in the values in the variables(including the version) and save the data.
    This saves the plan data in the Infocube.
    Now next time the user opens the web interface.when he enters the version which is existing in the cube,then
    all the variables should get filled in with the values in the cube for that particular version.
    how do i achieve this??I mean how do i code this in the BSP page of my web interface.
    I have read about methods for redefinition in the class CL_UPWB_BSP_APPL.but do not know much about this.
    Regards,
    Dhanya.

    hi,
    you have to create a sub class of CL_UPWB_BSP_APPL i.e(create a class whose super class is CL_UPWB_BSP_APPL).
    since the BSP Event Handlers are implemented in it
    you can change accordingly.
    check this for enhancement for web interface:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/62/e5a562753511d5b3d70050dadfb23f/frameset.htm
    regards,

  • How to get the current month for a variable based on info object 0FISCPER3

    Hie Gurus
    I am working on the financial reports i am failing to derive the Current month from the variable based on infobject 0FISCPER3 PERIOD .
    I would also like to get the same month from the prevoius year. Any ideas?

    If I understood correctly, you need in your repot
    Current Month Plan This year || YTD Plan This Year || Current Month Plan Last Year || YTD Plan Last Year
    Your variable 0I_FISCPER3 must be on the object 0FISCPER3 which is nothing but just the Fiscal Period. This variable is a user entry mandatory Interval variable.
    if you are entering a range in the input screen for this variable, you will get cumulative values. If you just need to get the value for a month in first column your report, you will have to create another variable of type Customer Exit which will read the "To value" entered for the variable 0I_FISCPER3 and columns for Current Month should be restricted on this variable.
    if you are entering a single value in the selection screen of this variable, current month column should be restricted on this variable with "Equal To" operation and YTD colmns should be restricted to "Less Than Equal to" operator with this variable.
    0FISCPER3 just have posting period and not year, so you will have to use varialbes for 0FISCYEAR separately.
    Please let us know if it helps or if you are using some other variable based on 0FISCPER3 or 0FISCPER.
    Regards,
    Gaurav

  • Can we apply an event handler only for a custom request in oim 11G?

    Hi,
    We would like to create a custom request for user creation, modification etc.
    I saw that event handlers allow to add business rules by running java code during differents steps of processes.
    I would like to know if we can trigger an event handler on a specific request and not on all user CREATION, UPDATE etc.
    For example, we would like to have differents creation requests and a differents event handler on each request.
    And can we add "logical" input on request form and read them in event handler?
    For example, 3 inputs: day, month and year on the form which fill one user attribute "end contract date".
    Regards,
    Pierre

    thank you Akshat,
    I saw part 19 in the developper's guide. If I understand, I can change the default CreateUserRequestData to define ALL form components that will be used in my differents user creation request templates.
    I can use prepopulation adapter to pre populate field with java code.
    I can use the plug-in point oracle.iam.request.plugins.StatusChangeEvent to run custom java code.
    But they don't mention where you can run java code for a specific creation template named "MyUserCreationTemplate1" and other java code for an other specific creation tempalate" MyUserCreationTemplate2".
    That makes me think we must retrieve the template name in java code and execute the appropriate business logic.
    if request name==MyUserCreationTemplate1
    Edited by: user1214565 on 31 mai 2011 07:42

  • Using JavaScript to auto populate a field based on numeric value of a separate drop down field

    Hello, I am trying to set up a simple, I hope, javascript which will enable to me auto populate one field based on the numberic value of another field using Acrobat Pro XI.
    Essentially I have 2 drop down fields (we'll call them DD1 and DD2).
    DD1 is the sum of 8 preceding drop down values. That sum can be anywhere from 0 - 40. Whatever that sum falls within a range which identifies a rating. The ratings and ranges are below:
    0-8: Non-Performer  
    9-16: Low Performer  
    17-24: Performer  
    25-32: High Performer  
    33-40: Exceptional Performer
    DD2 is where the rating ("non-performer", "low performer", etc.) will be captured. Instead of requiring the user to look at DD1, determine the value, and then identify and input the rating manually, I would like DD2 to auto populate the rating based on the value (sum) in DD1.
    For example, if DD1 shows a value of 27 then DD2 would auto populate "High Performer". So how do I write this code or execute this? In excel I would use an if, then statement. Is there something similar in Acrobat Pro XI.
    Any help is greatly appreciated. Thank you in advance.

    If you use a text field, the custom calculation script could be:
    // Custom calculation script for text field
    (function () {
        var s = getField("DD1").valueAsString;
        // Blank this field if input is blank
        if (!s) {
            event.value = "";
            return;
        // Convert string to number
        var v = +s;
        // Set this field's value based on the input
        if (v <= 40 && v >= 33) {
            event.value = "Exceptional Performer";
            return;
        if (v < 33 && v >= 25) {
            event.value = "High Performer";
            return;
        if (v < 25 && v >= 17) {
            event.value = "Performer";
            return;
        if (v < 17 && v >= 9) {
            event.value = "Low Performer";
            return;
        if (v < 9 && v >= 0) {
            event.value = "Non-Performer";
            return;
        // If none of the above fit, blank this field
        event.value = "";

Maybe you are looking for

  • ITunes stuck on "Accessing iTunes Store"

    I posted in reply to a thread of complaints about this on the "iTunes for Mac" side but realized my error only afterwards and so am posting this here instead/as well; apologies for repetition, I have no idea what forum etiquette here is. I'm running

  • Getting error while running page application page developed in Jdev ADF

    Hi, i m facing this error while running page application page developed in Jdev ADF can anybody help?? JBO-30003: The application pool (model.ChakDeTrackersLocal) failed to checkout an application module due to the following exception:oracle.jbo.JboE

  • How do I back off 5.1.1 and go back to 5.0.1 ?

    I have 2 chargers, and 4 USB cables.  Ever since I applied 5.1.1 to my daughter's iPod Touch, every cable and both chargers come up with "Charging is not supported with this accessory" when I try to charge her iPod.  Searching on the web has revealed

  • User define functions in Mapping - Need help...

    I have the following Source structure <root> (1...Unbounded)   <field1>   <field2>   <field3> </root> and need to map this in   <target>       <fields1>       <struct1>          <field2>        </struct1>       <struct1>          <field3>       </str

  • Why you tube doesn't play videos-error says "flashvars" and "playerEmbed" not found

    Safari plays YouTube videos fine. But, Firefox gives a ribbon error across the top: Quality selector disabled: "flashvar" not found (flashBlock?) Then second line of error says: Download Link Disabled: "PlayerEmbed" not found. How do I remedy these t