Give condition for date.

dear all,
if i hve to give condition for some system date that it hould be valid for some limited period ,like for any festivel.in a range.but presently i m taking any date input.
with which condition i shld compare and wht will be syntax.
thanx.

Hi Robin,
You can use function module <b>DATE_CONVERT_TO_FACTORYDATE</b> to check for a particular date. You need to pass Calendar ID to <b>factory_calendar_id</b>. You can see details of different calendar using Tcode '<b>SCAL</b>'.
<b><REMOVED BY MODERATOR></b>
Regards,
Amit
Message was edited by:
        Alvaro Tejada Galindo

Similar Messages

  • Extraction problem - selection conditions for data load using abap program

    Hi All,
           I have a problem loading data over a selected period where the selection of date range is done using ABAP routine (type 6). Here though in the request header tab in monitor screen i'm able to see the selection date range populated correctly, no records are being extracted. But if i delete the abap filter and directly give the same date range for selection we are able to extract data. if any body has faced similar problem and have a solution for it please help me with yur suggestion.
    Thanks,
    nithin.

    It seems the the data range is not properly set in the routine.
    You can check the value of selection period generated by routine in the data selection tab-> execute button is there .
    Click it to to test the selection values generated by the ABAP routine..
    If the value here seems correct one then paste the code of the routine that u have written with brief logic details that u have applied.
    Sonal.....

  • When we give wildcard for date field

    can we give wild card for date field in range table.
    my code is this
    RAnges r_erdat for mara-erdat
    r_erdat-sign = 'I'.
    r_erda-option =  'CP'.
    r_erdat-low = '2009'.*
    append r_erdat.
    select erdat from mara
      INTO CORRESPONDING FIELDS OF TABLE itab
      where erdat
      in
       r_erdat.
    Moderator Message: Basic date questions are not allowed.
    Edited by: kishan P on Oct 5, 2010 10:46 AM

    <<Don't answer questions that break the rules. Date questions are not permitted>>
    Hi,
           Instead you can take the entire range for that particular year.
    r_erdat-sign = 'I'.
    r_erda-option = 'BT'.
    r_erdat-low  = '20090101'.   <- begin date
    r_erdat-high = '20091231'.   <- end date
    append r_erdat.
    Regards,
    Srini.
    Edited by: Matt on Oct 5, 2010 12:46 PM

  • Set condition for date to be valid

    Hi
    We've just implemented RC and I'm still very new in the tool. I hope to be able to take advantage of the many experts in this forum.
    We have some services with longer delivery from the supplier. How do I set a condition to say that the earliest date the requestor can set in the form is, for example, 2 weeks from now?
    Thanks for your help.
    BR/Christine

    Hi Christine,
    There are a couple of posts in the portal with some information that might be helpful to you:
    https://supportforums.cisco.com/message/3492704#3492704
    https://supportforums.cisco.com/message/3492817#3492817
    Also, attached is a zip by Emir (American Express) with some code he developed

  • Two Date Characteristics As An OR Condition For Date Range Input

    Hello,
    Here's the requirement.  The user inputs a date range.  In the query, we have two date characteristics.  If at least one of the date characteristics falls between the inputted date range, then the row should show up on the report.  This is essentially an OR condition.  How can this be done?
    Thanks!

    hi,
    just a tought... but worth a try.
    1) Create an 2 Formula variables with User Exit.(ZF1 & ZF2)
    2) These will be filled with data with SETP2(User Exit) from the user Entry Variable. One variable will have from date & the next one will have to date.
    3) Then create 2 more Formula variables (ZR1 & ZR2) this time with replacement path for the 2 date you have and the create a global Key Figure with If Condition.
    CKF's:
    (( ( ZR1 >= ZF1) AND ( ZR1 <= ZF2 ) ) * (your vales)
    repeat the same for the ZR2 also.
    Regards, Siva

  • How to acheive between and condition for dates in prompts

    Hi all,
    can any one tell me how to achieve between and condtion in obiee 11g
    i used like this,
    i in the filter i put active date is between and put two presentation variables(pre_var1 and Pre_var2) and in prompts
    is used to one prompt active date is between when i am passing the same date the result is not getting. the prompt that i used is set a presentation variable(Pre_var1) is it correct?
    can any one help in this

    HI,
              What i got from ur ques is that u want single record for every customer havin oldest start date and most future end date. If it is so then in ur update routine from source ODS to Target ODS try this code :
    Sort data_package by customer startdate ascending enddate descending.
    delete adjacent duplicates from data_package comparing customer.
    after sorting u will have all records of a customer together with oldest start date and most future end date as first record. Delete will remove rest of the records for a customer from data_package.
    Regards:
    Jitendra
    Edited by: Jitendra Gupta on Jul 11, 2009 12:53 PM

  • How to get the salesprice and condition for a customer / material / date

    Hi all,
    how can I get the correct price and condition for a customer / material / date ?
    I know this is possible using the BAPI_SALESORDER_SIMULATE, but this bapi is using to much ressources on the system.
    I'm trying to get the correct price and condition WITHOUT using that BAPI.
    Does anyone know how it is possible ? As said before : I have the customer, material and a date.
    thanks in advance for your help

    Hi
    You need it because it's possible to have a complex pricing procedure, and you can't do it with a simple select on a table. Think that you can have pricing requirements, formulas (ie: VOFM) and so on in your pricing procedure (tcode V/08).
    I hope this helps you
    Regards
    Eduardo

  • How to give authorization for create and change particular Condition Type

    Hi...
       In my requirement is , Only one user can be authorized to create and change a particular condition type 'ZABC' in vk11 and vk12 .
    For remaining condition type can be used as in normal .
    How to do this ? How to give authorization for a particular user for particular condition type ?
    Plz guide me ..
    Thanks in advance .
    Deepa .

    Hi Deepa ,
    u can check A.Object V_KOND_VEA, in user profile u can assign condition type or tables.
    have a word with ur basis guy , so he can help u in better way.
    aand also ref FM SD_COND_AUTH_CHECK
    Regards
    Prabhu

  • Wrong Exchange rate for Import PO with past Condition Price date

    Hi
    We do update Exchange rate type "M" on daily basis, but exchange rate in Import PO is wrong. While creating import PO, the PBXX condition automatically obtain the "exchange rate" with Old "condition price date" despite the Table "TCURR" has maintained updated data. Why system behavior is like this?
    As per our requirement, system should obtain the data based on PO date. Kindly help with your experiences.
    Prashant

    Hi Biswajit,
    Use the user parameter EVO to indicate that no price adoption from last Purchase Order must take place:
    IMG: MM -> Purchasing -> Environment data -> Default values for Buyers -> Setting for Default values.
    Select or setup a default value and on the "price adoption" tab you may choose how copying of conditions from last purchase order must behave. Select "Do not copy". Then assign this default value to the user, using the EVO parameter.
    Prashant

  • Maintain pricing conditions for the material for the excise invoice date

    When I am doing MIGO (Release GR Blocked Stock-movement type) t)he system is giving an error "Maintain pricing conditions for the material for the excise invoice date"I am attaching screen shot for reference.
    I request if any one can provide me the solution

    Hi,
    Check did you have entry of that movement type in the following path where you specify which movement type relating to goods receipts involve excise invoices
    SPRO -
    > Logistics general -> tax on Goods Movements-> India -> Business Transactions--> Specify Which Movement Types Involve Excise Invoices
    Regards,
    Biju K

  • Can anyone give me some documents for data cluster

    Hi,
    can anyone give me some documents for data cluster?
    ths!
    regards!

    Hi ,
    The following is a documentation on the <b>Data Cluster</b>:
    <b>Data clusters</b> are specific to ABAP. Although it is possible to read a cluster database using SQL statements, only ABAP can interpret the structure of the data cluster.
    You can store <b>data clusters</b> in special databases in the ABAP Dictionary. These are called ABAP cluster databases, and have a prescribed structure:
    <u><b>Cluster Databases</b></u> ( I have explained the cluster databse below )
    This method allows you to store complex data objects with deep structures in a single step, without having to adjust them to conform to the flat structure of a relational database. Your data objects are then available systemwide to every user. To read these objects from the database successfully, you must know their data types.
    You can use cluster databases to store the results of analyses of data from the relational database. For example, if you want to create a list of your customers with the highest revenue, or an address list from the personnel data of all of your branches, you can write ABAP programs to generate the list and store it as a data cluster. To update the <b>data cluster</b>, you can schedule the program to run periodically as a background job. You can then write other programs that read from the data cluster and work with the results. This method can considerable reduce the response time of your system, since it means that you do not have to access the distributed data in the relational database tables each time you want to look at your list.
    <b>Cluster Database :</b>
                    Cluster databases are special relational databases in the ABAP Dictionary that you can use to store data clusters. Their line structure is divided into a standard section, containing several fields, and one large field for the <b>data cluster.</b>
    <b>Creating a Directory of a Data Cluster</b>
    To create a directory of a data cluster from an ABAP cluster database, use the following statement:
    Syntax
    <b>IMPORT DIRECTORY INTO <dirtab>
                     FROM DATABASE <dbtab>(<ar>)
                     [CLIENT <cli>] ID <key>.</b>
    This creates a directory of the data objects belonging to a data cluster in the database <dbtab> in the internal table <dirtab>. You must declare <dbtab> using a TABLES statement.
    To save a <b>data cluster</b> in a database, use the <b>EXPORT TO DATABASE</b> statement .
    For <ar>, enter the two-character area ID for the cluster in the database. The name <key> identifies the data in the database. Its maximum length depends on the length of the name field in <dbtab>. The CLIENT <cli> option allows you to disable the automatic client handling of a client-specific cluster database, and specify the client yourself. The addition must always come directly after the name of the database.
    The IMPORT statement also reads the contents of the user fields from the database table.
    If the system is able to create a directory, SY-SUBRC is set to 0, otherwise to 4.
    The <b>internal table</b> <dirtab> must have the ABAP Dictionary structure CDIR.
    <b>******** Sample Program illustrating the data cluster .</b>
    PROGRAM Zdata_cluster.
    TABLES INDX.
    ******to save data objects in cluster databases
    DATA: BEGIN OF ITAB OCCURS 100,
            COL1 TYPE I,
            COL2 TYPE I,
          END OF ITAB.
    DO 3000 TIMES.
      ITAB-COL1 = SY-INDEX.
      ITAB-COL2 = SY-INDEX ** 2.
      APPEND ITAB.
    ENDDO.
    INDX-AEDAT = SY-DATUM.
    INDX-USERA = SY-UNAME.
    INDX-PGMID = SY-REPID.
    EXPORT ITAB TO DATABASE INDX(HK) ID 'Table'.
    WRITE: '    SRTF2',
         AT 20 'AEDAT',
         AT 35 'USERA',
         AT 50 'PGMID'.
    ULINE.
    SELECT * FROM INDX WHERE RELID = 'HK'
                       AND   SRTFD = 'Table'.
      WRITE: / INDX-SRTF2 UNDER 'SRTF2',
               INDX-AEDAT UNDER 'AEDAT',
               INDX-USERA UNDER 'USERA',
               INDX-PGMID UNDER 'PGMID'.
    ENDSELECT.
    ****To create a directory of a data cluster from an ABAP ****cluster database
    DATA DIRTAB LIKE CDIR OCCURS 10 WITH HEADER LINE.
    IMPORT DIRECTORY INTO DIRTAB FROM DATABASE
                                      INDX(HK) ID 'Table'.
    IF SY-SUBRC = 0.
      WRITE: / 'AEDAT:', INDX-AEDAT,
             / 'USERA:', INDX-USERA,
             / 'PGMID:', INDX-PGMID.
      WRITE  / 'Directory:'.
      LOOP AT DIRTAB.
        WRITE: / DIRTAB-NAME,  DIRTAB-OTYPE, DIRTAB-FTYPE,
                 DIRTAB-TFILL, DIRTAB-FLENG.
      ENDLOOP.
    ELSE.
      WRITE 'Not found'.
    ENDIF.
    *******run this program and see the result.
    Hope this documentation will give you an idea of data cluster.
    if useful, do reward with the points.
    Regards,
    Kunal.

  • Hello !  pls give some ti[ps how to use bapi's for data uploading?

    hello !
      pls give some ti[ps how to use bapi's for data uploading?
    regards,
    Arjun

    Hi,
    See the below report extract:
    where it_data is having uploaded data.
    LOOP AT<b> it_data</b> INTO wa_data.
        line_count = sy-tabix.
        "Date Validation
        CONCATENATE wa_data-uplft_date4(4) wa_data-uplft_date2(2) wa_data-uplft_date+0(2)
        INTO wa_data-uplft_date.
        "READ TABLE it_ekko INTO wa_ekko WITH KEY lifnr = wa_data-vendor.
        LOOP AT it_ekko_temp INTO wa_ekko_temp WHERE lifnr = wa_data-vendor.
          IF wa_ekko_temp-kdatb <= wa_data-uplft_date AND wa_ekko_temp-kdate >= wa_data-uplft_date.
            MOVE-CORRESPONDING wa_ekko_temp TO wa_ekko.
            APPEND wa_ekko TO it_ekko.
          ENDIF.
        ENDLOOP.
        "IF sy-subrc = 0 AND wa_ekko-kdatb <= wa_data-uplft_date AND wa_ekko-kdate >= wa_data-uplft_date.
        LOOP AT it_ekko INTO wa_ekko.
          wa_data_header-pstng_date = wa_data-uplft_date.
          wa_data_header-doc_date = sy-datum.
          wa_data_header-bill_of_lading = wa_data-bill_of_lad.
          wa_data_header-ref_doc_no = wa_data-del_no.
          CONCATENATE wa_data-header_text1 '-'
                      wa_data-header_text2 '-'
                      wa_data-header_text3 '-'
                      wa_data-header_text4
                      into wa_data_header-HEADER_TXT.
          IF wa_data-indicator = 'Y'.
            wa_data_item-material = '000000000000200568'.
          ELSE.
            wa_data_item-material = '000000000000200566'.
          ENDIF.
          LOOP AT it_ekpo INTO wa_ekpo WHERE ebeln = wa_ekko-ebeln AND matnr = wa_data_item-material.
            "Collect Item Level Data
            wa_data_item-plant = '1000'.
            wa_data_item-stge_loc = '1001'.
            wa_data_item-move_type = '101'.
            wa_data_item-vendor = wa_data-vendor.
            wa_data-qnty = wa_data-qnty / 1000.
            wa_data_item-entry_qnt = wa_data-qnty.
            wa_data_item-po_pr_qnt = wa_data-qnty.
            wa_data_item-entry_uom = 'KL'.
            wa_data_item-entry_uom_iso = 'KL'.
            wa_data_item-orderpr_un = 'KL'.
            wa_data_item-orderpr_un_iso = 'KL'.
            wa_data_item-no_more_gr = 'X'.
            wa_data_item-po_number = wa_ekpo-ebeln.
            wa_data_item-po_item = wa_ekpo-ebelp.
            wa_data_item-unload_pt = wa_data-unload_pt.
            wa_data_item-mvt_ind = 'B'.
            APPEND wa_data_item TO it_data_item.
            CLEAR wa_data_item.
          ENDLOOP.
          CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
            EXPORTING
              goodsmvt_header = wa_data_header
              goodsmvt_code   = goodsmvt_code
              testrun         = 'X'
            TABLES
              goodsmvt_item   = it_data_item
              return          = return.
          READ TABLE return INTO wa_return WITH KEY type = 'S'.
          IF sy-subrc <> 0.
            DESCRIBE TABLE return LINES sy-tfill.
            IF sy-tfill = 0.
              CALL FUNCTION <b>'BAPI_GOODSMVT_CREATE'</b>   
            EXPORTING
                  goodsmvt_header = wa_data_header
                  goodsmvt_code   = goodsmvt_code
                  testrun         = ' '
                TABLES
                  goodsmvt_item   = it_data_item
                  return          = return.
              CALL FUNCTION <b>'BAPI_TRANSACTION_COMMIT'</b>
               EXPORTING
                 WAIT          = 'X'
              IMPORTING
                RETURN        =
            ENDIF.
          ENDIF.
          LOOP AT return INTO wa_return.
            WRITE: 'Messsage TYPE  ', wa_return-type,
                  /,'ID  ', wa_return-id,
                  /, 'Number  ', wa_return-number,
                  /, 'Message  ', wa_return-message,
                  /, 'Long Text  ', wa_return-message_v1,
                                    wa_return-message_v2,
                                    wa_return-message_v3,
                                    wa_return-message_v4,
                 /, 'Failed at line', line_count.
          ENDLOOP.
          CLEAR: wa_ekko, wa_ekpo, wa_data, it_data_item[], wa_data_header.
        ENDLOOP.
    Reward if useful!

  • How to put condition for one date range should not interfear with another ?

    hi friends,
    how to put condition for one date range should not interfear with another  date range.
    my data base table has two fields
    from date
    to date.
    when we enter the date range in the data base , new date range means from date and to date should not interfear.
    can  anybody help me.
    thanks &Regards,
    Revanth
    Edited by: rk.kolisetty on Jul 1, 2010 7:18 PM

    Do it the SAP way....
    First entry...from is today, to is 99991231.
    New dates entered, now we have two rows...:
        from is original date  to becomes yesterday.
        From is today          to is 99991231

  • Error when giving untill condition for System time and date

    Hi Experts,
    i am using Untill Loop in my workflow to set condition for System time and date.According to this condition when system date and time is greater than equal to some date and time then mail goes to an agent.But during testing , the workflow gets into error stage.
                 In workflow log i am getting error like
    'Maximum number of    10000 nodes reached' in executed action 'DEQUEUE_NEXT_NODE'  for false condition.
                        Please suggest what may be possible cause or solution for it?
               Points will be rewarded for any good solution.
    Thanks
    Snehasish Das

    Hi,
    You should not use loop for that kind of purpose. It sounds to me that your workflow is looping all  the time, and the maximum numer of nodes is reached soon, and the workflow goes into error.
    You should use the WF deadline functionality for your purpose. For example use in a relevant step the "latest end" tab, and define the deadline there. Then when your deadline is reached, the workflow will continue in a separate outcome, and there you can send your mail.
    Regards,
    Karri

  • Issue regarding condition pricing date as system date for some condition types in sales order

    Hi
    I have already created a sales order on 30.04.2014. Today I am adding new line item to sales order in VA02 transaction. in this order new line items condition pricing date for conditions JEX2,JECX should show as 12.06.2014. But currently it is showing as 30.04.2014. I need condition pricing date as system date for above conditions.
    Regards
    prashant

    Hi
    When I am changing pricing date VBKD-PRSDT in sales order header . It is changing the condition pricing date for all. Sales order is created on 04.06.2014. I have added line item 150 on 14.06.2014.
    After adding line item 150 , there I have changed the pricing date as 14.06.2014. in sales A tab of item 150. But still it is taking from Sales order header date as 04.06.2014 for all conditions. But my requirement is for line item it should take as system date for some conditions like JEX2,JECX& JA1Y but for other conditions it will take as Order creation date. Please suggest. I have also attached screen shot below. please go through it.
    Regards
    PK
    Sales order header change mode VA02
    Here pricing date VBKD-PRSDT = 04.06.2016
    Item change mode
    I have added new line item 150 on 14.06.2014
    Changed the condition pricing date to 14.06.2014 & saved
    After saving I have gone to Va02 screen of line item 150
    & there I have gone to condition pricing date field from item condition tab
    for JEX2 condition type but still here condition pricing date is showing as
    04.06.2014 as below.
    Condition pricing date
    My requirement is like this
    For some particular conditions like JEX2  condition pricing date will take as system
    date instead sales order creation date when I will add a new item 150 on
    14.06.2014.but for other conditions it will show as order creation date for the
    same line item 150 .

Maybe you are looking for

  • HT3176 Apple remote for apple tv (3rd gen)

    How to use apple remote for apple tv (3rd gen)?

  • Getting space at the bottom in the pdf output

    I'm designing a pre-printed Invoice report using BI Pub. The template is in word and when I take pdf output I get space at the bottom, even though there is no space at the bottom in template(rtf). The template fits propely in pre-printed paper, but w

  • The reason for all the negative posts

    Got mine last night. Love it. Activation went perfectly. I usually have a lot of luck with technical stuff mainly because I READ ALL THE INFORMATION before starting. You find that nearly all complaints are coming from people who had some 'grand visio

  • 11g Em Could not resync with catalog database

    Hai, I have installed 11g oms and added 2 nodes. the agents are uploading regulary and i can manage the 2 target successfully without any problem. In one of the node I have installed recovery catalog and the same catalog has been added in the EM Grid

  • How to Customize "CASH FLOW(indirect method) STATEMENT"

    Dear Guru's, this is an urgent task for me.Kindly give me the steps to customize the CASH FLOW(indirect method) STATEMENT.kindly send me the material related to this to [email protected] Regards Sap Guru