Copy Standard Variable into Z variable.

Hi all,
I am using a standard variable 0DAT in the query for 0calday.
Now i want to make a clone of the same variable.i.e i want to copy it with the same structure into Z variable.
Also, 0DAT is having SAP Exit and that should copy to Z variable.
Please suggest.
Regards,
Macwan James.

Hello,
User exit are variable specific, so if u create new z variable you have to write your own user exit.
Its pretty simple to create:
1) Create Zvariable type user exit with single and no ready for input
2) In CMOD write a simple code for this variable as
when 'zvariable'.
if i_step = 1.
l_t_range-low = sy-datum.
l_t_range-sign = 'I'.
l_t_range-opt = 'EQ'.
Regards,
Shashank

Similar Messages

  • Copy Standard Text into CRM_ORDERH

    Hello,
    maybe anybody has an idea for my problem: I need an default text in a textscheme in the order-header. I can do this manually, I create a standard text within the textobject "TEXT" with SO10, and in the transaction I can copy the text with help of the sapscripteditor into my text. But, I need this functionality automatised. When I create my transaction, I want to have a default text.
    I tried to manage this with access sequence, but I cannot see any possibility with this. The problem is, that the reference object "TEXT", were you can create standard texts, is not accessable from the order-header.
    Any ideas?
    Best regards and thanks
    Sab

    I think you should be able to solve this using Transaction Templates.
    This allows you to prefill data on the template and saves a lot of effort during business transaction creation.
    You can create templates for different transaction categories such as activities, leads, service orders and so on:
    Explanation for a service order: 
    Definition
    The template for the service order business transaction. As is the case with the service order, the service order template is used to map services in the system. A service order template enables you to define and store reusable service descriptions as a useful set of activities, products, services, and materials.
    Use
    You can use a service order template to reduce the workload involved in creating new business transactions (documents). You create templates for standard service processing tasks, for example. You can:
    ·        Copy templates to create new business transactions with the same object type
    ·        Include templates in an existing business transaction (such as service confirmation or product service letter)
    ·        Create a template as a follow-up document on the basis of an existing service order; business partner data is not transferred
    You can copy a template only if it does not contain any errors, has the status is Released, and is currently valid.
    The service order template can contain a large number of items and subitems. In the template, you can define a large number of values as attributes (conditions, price information, quantities, and so on). If you create a service order template on the basis of an existing service order, all the items that are not required for a general template, such as the sold-to party, are omitted.
    The service order template describes only the scope of services of the planned activities and not the actual execution (when and for whom).
    Structure
    A service order template has the same data structure as the associated operative business transaction, that is, it consists of a header and items (and subitems) with a large number of sets and enhancements that are valid for the business transaction.
    In a service order template, you cannot store any information about the sold-to party. For this reason, not all the functions of the service order transaction are available. You can enter information about the sold-to party in the relevant business transaction.
    Three different views of the service order template are available:
    Fast Entry view
    In the Header Data view, you enter data that is valid for the entire transaction. The top screen area contains the transaction ID, the transaction description, and a pushbutton for changing the status. In the bottom screen area, you can enter an item. You define additional items in the Item Details view.
    Item Details view
    In the Item Details view, you can enter additional items on various tab pages (Overview, Services, and so on). On the tab pages in the bottom screen area, you maintain detailed information about the individual items, such as statuses and prices.
    Transaction Data view
    In the Transaction Data view, you enter detailed information about the header data, such as organizational data, actions, and partner data.
    Example
    -          A service order template is to describe the standard maintenance procedure for a vehicle of a specific type. The catalog for the standard maintenance procedure includes services (filter replacement, oil change, engine check) and materials (1 filter, 12.5 liters of oil).
    -          You use a service order template to plan a recall for a specific automotive category. The catalog for the recall contains the following activities: scheduled appointments with customer, repairs, confirmation to car manufacturer, and invoice for car manufacturer.
    -          An Engine Replacement service order template already exists. When planning a repair in detail, you have to arrange for the engine to be replaced. You include the Engine Replacement order template in the existing service process (in this case, a repair service order). The system then copies the items from the order template to the service process.
    Hope this is usefull for your requirement
    cheers
    davy

  • Copying Standard tcode

    Dear experts.
    How can we copy standard tcode into Ztcode?
    plz if u have any article for this kindly send me.
    Thanks in advance.

    Hi farook,
    1. Open SE93
       enter the standard tcode
       Press the copy button on tool bar to copy.
       Then enter the details of the new z tcode.
    PS: This will only create a new z tcode which
       will point to  the original program and screen.
      This will not copy the original program.
    regards,
    amit m.

  • Copying a standard text into another text in so10

    Hello Gurus,
           I have an issue where i need to track offer letter,i have a standard text which is been automatically used in pb40 while generating offer letter and that is ww-offer-contract in which i need to change the code ( in textid palt )but it is read only document. i need to copy the text into another text.So that i can do the changes required in that.
    If i go with Utilities-->copy from client then it is allowing me to copy but not allowing me to change into it.it is giving me the dump.Since it is asking for the permission,i went for stop protection.but still it is giving me the dump.
    Any one plzz help me out with this.
    Thank you all.
    Edited by: BHAVANI MADIREDDY on Feb 12, 2008 12:34 PM

    There is a selection screen parameter
    parameters: par_bi like rfpdo1-f100buch   default ' '.
    Comment this and declare a variable and pass 'X' or space into that as per the requirement.

  • Proceedure to copy the standard BAPI into ZBAPI

    Hi Gurus..
       I found the standard BAPI and I want to copy the standard BAPI into ZBAPI(for my company purpose) and use it in SAP xMII.
      Please give the steps for copying.
    Thanks
    R M

    Hi,
    To copy the standard BAPI into ZBAPI.
    check this link:
    how to copy BAPI
    How to Copy standard BAPI to ZBAPI....
    Regards
    Adil

  • Standard variable of PO for MIRO Transaction

    hi,
          durinf transaction MIRO, when we hit pricing procedures then i want the standard variable for PO(ekko/ekpo) flowing in the pricing procedure so that i can use it in pricing procedure.
    Thanks,
    Gaurav

    Hi gibi,
    You can check both PO price and changed invoice value in ME80FN report.
    1.Execute ME80FN with relevant PO number.
    2.On the ALV icon list last icon u can change your view, change it to "Purchase Order History"
    3.Then you wll get the PO history.
    4.Now click "Change Layout" icon and add "Invoice Value in FC" field in to your display list.
    5. Now you can compare your PO price - "Amount" with "Invoice value in FC"
    Hope this will helpful.
    thanks
    Sandun

  • Change SAP standard variables

    Hi Experts,
    I have a scenario where we have done Broadcasting settings for some queries so that they run on weekly basis.  This has been automated to some extent.  But, these queries use variables which are mandatory manual input type and are standard SAP variables.  For this, we need to change the values everyweek.
    Instead of changing manually, can we change these variables as Mandatory customer exit default value variables so that we can write code for this and then can completely make the broadcasting automated.
    The variables I am asking whether we could change are SAP Standard variables:  0P_FYEAR (fical year), 0P_FPER (posting period).
    Please suggest.
    Regards,
    Ravi

    Hi,
    Thanks for the quick reply.
    The problem here is there variables are again used in calculating some other variable values either single value or intervals.  Also there are many queries which use these variable I am discussing about.  So, in this case it will be really hectic to change all these queries.  Even though if we change these variable properties, I think as these are mandatory customer exit default value variables, there wont be any effect.  If at all any exists can you please let me know what type?
    What do you suggest?
    Regards,
    Ravi

  • Copy Standard T.code into Z T.code

    Hi,
    I want to Copy Standard T.code into Z T.code....with all includes and Function Group......
    Plz tell me step-by-step....
    Prince

    Hi,
    When I do like u say....it shows ABAP RUNTIME ERRORS...
    The current application triggered a termination with a short dump.
    What happened?
    The current application program detected a situation which really
    should not occur. Therefore, a termination with a short dump was
    triggered on purpose by the key word MESSAGE (type X)....
    Now can I do....
    Prince

  • BI 7.0 Standard Variable

    Hi Experts,
    Does anyone have a list of standard variables used in BI 7.0. If anyone has it pls forward the same.
    Thanks

    Hi
    The following table gives an overview of the possible combinations of variable types and processing types. The dialog steps that the variable wizard offers for each combination are also listed.
    Variable Type/Processing Type
    Manual entry / default value
    Replacement Path
    Customer Exit or SAP Exit
    Authorization
    Characteristic Value Variable
    Details
    Default Values
    Replacement Path: Replacement with Query
    Details
    Details
    Hierarchy Variable
    Details
    Default Values
    Details
    Hierarchy Node Variable
    Details
    Default Values
    Details
    Details
    Text Variable
    Details
    Default Values
    Characteristic
    Replacement Path: Replacement with a Characteristic Value
    Details
    Formula Variable
    Details
    Currencies and Units
    Default Values
    Characteristic
    Replacement Path: Replacement with a Characteristic Value
    Currencies and Units
    Details
    Currencies and Units

  • Copying Text Variables still crashes In Design CS6

    Copying Text Variables text boxes still crashes InDesign CS6 (or makes the program unresponsive) as they were in CS5. Any solution?

    Hey thank you osgood for the reply!
    When I look at code for long hours it sort of blurs together, and I miss things... I think that happens to the most of us
    Ya I found what was blocking my text fields in my desktop.css
    I primarily work through code view, and currently working on quite a few projects kind of makes your eyes miss the small errors.
    Thanks again!

  • Is there any way to copy S.Variables via Maxl or Essbase

    Guyz,
    Is there any way to copy S.Variables from one App to another app via Maxl or Essbase.
    Cheers
    Cnee

    you can copy substitution variables between different Essbase servers through Admin console.
    At first you should be able to add both the essbase servers in the admin console.
    Then you can copy the subst variables from one essbase server to other.
    in subst variable window -> select copy -> select server, app, db -> select subst variable to be copied -> you can tick overwrite existing variables option if needed -> click OK.
    the other way is to collect the subst variable information through maxl & then write maxl scripts to create the subst variables on the other server.
    - Krish

  • Standard variable exist for calendar day that uses current working day

    Hi
    Is there any standard range Variable that exists for info-object calendar day that uses the manual entry for the lower limit and upper limit as current working day .
    Please advise.
    Thanks.

    There are a number of standard variables 0n 0CALDAY - of processing type SAP exit, Input Allowed, Select-option or Range. You will have to check whether they give the default value of current date though as that will have to be looked up from documentation or user-exit code (or from the name of variable).
    To shorten the candidate list, SE16 on table RSZGLOBV where
    OBJVERS = D (Delivered version)
    IOBJNM = 0CALDAY
    VARTYP = 1
    VARPROCTYP = 4 (SAP Exit)
    VPARSEL = I, S (Range or select-option)
    VARINPUT = 'X' (Ready for input)
    It should give you about 6-7 variables that you can explore further. It is likely that none of these default to current date. Some of these are
    0DAY_***
    0TWB_30T
    0CDL12CM
    0I_CCMDR
    0CD_L14D
    0S_CALDAY
    0CD_L7D
    I see that you are looking for current 'working' day as default. Very likely the answer is 'no' in such case.
    Edited by: Ajay Das on Mar 1, 2011 7:39 AM

  • Copy Standard FM

    I am trying to copy Standard FM IDOC_INPUT_ORDERS
    ( The Function Group and Includes ) .I am getting a message  "There is more than one main program" if I double click on any function.
    Question : Do I need to copy each and every includes into Z* ?
    I fear since the Sub Includes are still Standard Incl.
    when the performs are called would the passing variables still retain the value?
    I am getting syntax error in one of the nested Incl.However allows me to activate the Main program without any issues?
    Pl Advise

    Hey Prakash,
    Follow these steps :
      Re: Copying a standard function module  
    Posted: May 5, 2006 12:13 AM      Reply      E-mail this post 
    1. The FUNCTION GROUP is VEDA
    2. goto se80
    3. open function group VEDA
    4. Right-click on it and select copy.
    5. Enter the new function group as ZVEDA.
    6. Then it display all the  function module IDOC_INPUT_ORDERS and
    ask to copy it to new name.
    7. Prefix Z to this fm.
    8. click ok, and then it creates everything.
    <b>Now activate the function group zveda. and then try to click on that user exit in the fm ZIDOC_INPUT_ORDERS .
    It should work.</b>
    Regards,
    Kunal.
    Message was edited by: Kunal Kumar
    Message was edited by: Kunal Kumar

  • How to add new fields in sap copied standard form using itcsy structure

    hi guys,
      i want add some fields in sap script copied standard form using itcsy structure.
    let me know the procedure with any example.
    thanks,
    anitha.

    Hii anitha
    plz c code below
    Syntax goes like this
    /: PERFORM <form> IN PROGRAM <prog>
    /: USING &INVAR1&
    /: USING &INVAR2&
    /: CHANGING &OUTVAR1&
    /: CHANGING &OUTVAR2&
    /: ENDPERFORM
    INVAR1 and INVAR2 are variable symbols and may be of any of the four SAPscript symbol types.
    OUTVAR1 and OUTVAR2 are local text symbols and must therefore be character strings.
    Example:
    In script form
    /: PERFORM READ_TEXTS IN PROGRAM 'Z08M1_FORM_EKFORM1'
    /: USING &EKKO-EKORG&
    /: USING &EKPO-WERKS&
    /: USING &EKKO-EKGRP&
    /: USING &EKKO-BSTYP&
    /: CHANGING &COMPNAME&
    /: CHANGING &SENDADR&
    /: CHANGING &INVCADR&
    /: CHANGING &COMPADR&
    /: CHANGING &COVERLTR&
    /: CHANGING &SHIPADR&
    /: CHANGING &REMINDER&
    /: CHANGING &REJECTION&
    /: CHANGING &POSTADR&
    /: CHANGING &LOGO&
    /: ENDPERFORM
    In program
    FORM Read_texts - To extract the standard texts from the table *
    FORM READ_TEXTS TABLES IN_PAR STRUCTURE ITCSY
    OUT_PAR STRUCTURE ITCSY.
    DATA : L_EKORG TYPE EKORG,
    L_WERKS TYPE WERKS_D,
    L_BSTYP TYPE BSTYP,
    L_EKGRP TYPE BKGRP.
    READ TABLE IN_PAR WITH KEY 'EKKO-EKORG' .
    CHECK SY-SUBRC = 0.
    L_EKORG = IN_PAR-VALUE.
    READ TABLE IN_PAR WITH KEY 'EKPO-WERKS' .
    CHECK SY-SUBRC = 0.
    L_WERKS = IN_PAR-VALUE.
    READ TABLE IN_PAR WITH KEY 'EKKO-EKGRP' .
    CHECK SY-SUBRC = 0.
    L_EKGRP = IN_PAR-VALUE.
    READ TABLE IN_PAR WITH KEY 'EKKO-BSTYP' .
    CHECK SY-SUBRC = 0.
    L_BSTYP = IN_PAR-VALUE.
    CLEAR Z08M1_ORG_TEXTS.
    SELECT SINGLE * FROM Z08M1_ORG_TEXTS WHERE EKORG = L_EKORG
    AND WERKS = L_WERKS
    AND EKGRP = L_EKGRP
    AND BSTYP = L_BSTYP.
    IF SY-SUBRC NE 0.
    SELECT SINGLE * FROM Z08M1_ORG_TEXTS WHERE EKORG = L_EKORG
    AND WERKS = L_WERKS
    AND EKGRP = L_EKGRP
    AND BSTYP = SPACE.
    ENDIF.
    READ TABLE OUT_PAR WITH KEY 'COMPNAME'.
    OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_COMP.
    MODIFY OUT_PAR INDEX SY-TABIX.
    READ TABLE OUT_PAR WITH KEY 'SENDADR'.
    OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_ADRS.
    MODIFY OUT_PAR INDEX SY-TABIX.
    READ TABLE OUT_PAR WITH KEY 'INVCADR'.
    OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_INVC.
    MODIFY OUT_PAR INDEX SY-TABIX.
    READ TABLE OUT_PAR WITH KEY 'COMPADR'.
    OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_CPAD.
    MODIFY OUT_PAR INDEX SY-TABIX.
    READ TABLE OUT_PAR WITH KEY 'COVERLTR'.
    OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_COVR.
    MODIFY OUT_PAR INDEX SY-TABIX.
    READ TABLE OUT_PAR WITH KEY 'SHIPADR'.
    OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_SHIP.
    MODIFY OUT_PAR INDEX SY-TABIX.
    READ TABLE OUT_PAR WITH KEY 'REMINDER'.
    OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_RMDR.
    MODIFY OUT_PAR INDEX SY-TABIX.
    READ TABLE OUT_PAR WITH KEY 'REJECTION'.
    OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_RJCT.
    MODIFY OUT_PAR INDEX SY-TABIX.
    READ TABLE OUT_PAR WITH KEY 'POSTADR'.
    OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_POST.
    MODIFY OUT_PAR INDEX SY-TABIX.
    READ TABLE OUT_PAR WITH KEY 'LOGO'.
    OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_LOGO.
    MODIFY OUT_PAR INDEX SY-TABIX.
    ENDFORM.
    reward points if useful
    regards
    Jaipal

  • Import Format: Copy source account into UD1

    The Source G/L Account is used for both the HFM Account and HFM UD1 (Custom1). The mapping for FM Accounts and FM UD1 is set-up based on the GL Accounts. UD1 is not included in the GL extract file.
    How can I easy copy source Account into UD1 through the import format that can be used for several locations with different import formats?
    Example:
    GL Account: 1000 -> HFM account: 1000 > HFM UD1: FinS
    GL Account: 3000 -> HFM account: ctrl_Logic -> HFM UD1: Stat
    Currently I use for UD1 a script like DW.Utilities.fParseString(strRecord,4,2) to do that and it works. Unfortuntely I have at least many different locations with different import formats that would require this script to be adjusted for each import format.
    Any idea? Thanks for your help!

    Good day
    To get this working for different import format layouts you need to make use of the Res.PVarTemp1,,5 FDM variables, you can store information between different fields in the import fields. There are also workarounds if you need to store more than 5 values.
    So you need to create two scripts, the TempPut is attached to the account import field and the TempGet is attached to the UD1 import field
    Function TempPut(strField, strRecord)
    Res.PvarTemp1 = strfield
    TempPut = strfield
    End Function
    Function TempGet(strField, strRecord)
    TempGet= Res.PVarTemp1
    End Function
    Hope this helps

Maybe you are looking for

  • Looking for a replacement of a lost MXI-4 PXI-PCI copper cable, does a RS232 1:1 cable work?

    Hi All, is anyone able to help me out of this misery? Thanks a lot! Juergen Solved! Go to Solution.

  • Adding a link to a file

    I have an MP3 file uploaded in my Public folder on Mobile Me. I am using iWeb to create my home page and want to make a link to this file. Is the only way to do this to share it, send a link to myself (that does not expire) and then use this link on

  • Connection to SOAP WebServ refused

    Hi there. Me again with another issue. I created a ASP.NET WebService (SOAP based), which I try to use as data source to my BI Publisher report. The web service works fine, but after I add the WSDL and method in BI Pub, when I click View, It raises t

  • No sound in videos with Safari, Chrome, Firefox

    Hello, When I try to watch videos on any site (Youtube, Vimeo, News site, video tutorials...) with these 3 browsers the sound is" blocked" (an x appears besides the loudspeaker icon). I have no problem listening to iTunes, watching my videos with Qui

  • Dragging bookmarks

    Whenever there are certain types of display messages it is impossible to drag bookmarks. This has been going on for many versions of Firefox. An example: I have the bookmark toolbar active. I have a bookmark in one folder and want to drag it onto the