Project Code for Variables

Hello All,
I am able to use Variables in procedures and open tools ,interfaces etc. Variables #VariableName works well. But I was reading that the standard is to use #ProjectCode.VariableName .
Whenever we try to use #ProjectCode.VariableName our procedures,open tools,etc fails.
When a project is created the Code is the Project Code right ? or is it some other value.
- Henry.

As Keith have already told you that ODI automatically . substitutes #VariableName with #ProjectCode.VariableName.
You would need to use the #VariableName in the interface too so that ODI can automatically interpret it and applies the required value for it.
The reason why ODI can throw #ProjectCode.VariableName invalid character is that , since ODI does not find any variable with this name #ProjectCode.VariableName so it does not applies the project code and interpret it and so its still a varaible in the sql and oracle throws the error Invalid Character so you need to use the #Variable so ODI can apply the necessary suffix.
But there are some places where you would need to use the variable with project code . During Evalute Variable when you evaluating variable with another variable you would need to use the
#ProjectCode.VariableName format.

Similar Messages

  • Find SAP Exit code for Variable '0CMONTH '

    I am trying to fnd the SAP exit code for variable 0CMONTH so I can create a customer copy and make the variable 'ready for input'. Any ideas where I can find the code or a simple way to effectviely copy the delivered variable.
    I have tried looking in SE37 and then RSVAREXIT* but cannot seem to find the specific code I need.
    Thanks
    Steve

    Hi,
    Search the technical name for the variable in metadata repository and try to find the program where it is declared.  Then i hope u can go the code where it is written.
    Cheers.
    Ranga.

  • Please send the algorithm and project code for temperature sensing using daq usbdux fast if possible code also for general text gui icon programming.

    I have a daq card usb dux fast and I'm using linux zenwalk,
    so please if any one has done a program on daq using comedi language or any language or any other related to it.
    please send me the code and algorithm for it.
    if possible a algorithm and code for general gui text icon programming to [email protected]
    thanking you,

    Hi Vinay,
    you know you're posting in a LabVIEW forum?
    When you have questions on Comedi you should post in a Comedi-related forum!
    Or read some papers/manuals like this, easily found by Google...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Customer exit - code for variable

    Hi Friends,
    I have created a variable "CUST_EXIT_YEST" and defined the processing type as customer exit. Now would like to add code in CMOD.
    Requirement: The variable should allow take yesterday's date. Please help me with the code.
    Already there are some codes defined for other customer exit variables in CMOD. Can I add my code below that. If so please explain.
    Regards,
    Surjit

    If i'm not wrong you want to show previous day in the variable.
    At the bottom of the existing code before EndCase, u can write the below code
    Data: loc_var_range      LIKE rrrangeexit, (must be there this kind of declaration in ur existing code)
    WHEN 'CUST_EXIT_YEST'.
        IF I_STEP = '1'.
          Read Table I_T_VAR_RANGE into LOC_VAR_RANGE WITH KEY VNAM = 'CUST_EXIT_YEST'.
          myrange-SIGN = 'I'.
          myrange-OPT = 'EQ'.
          myrange-LOW = sy-datum - 1.
          APPEND myrange TO e_t_range.
        ENDIF.

  • Assign Project Code to Freight charges in AP Invoice

    Project Code field is not available in Freight Charges window at all though it can be displayed and edited by selecting Project Code to be visible and Active in Journal Entry Form Settings Table Format.  As this is a limitation in SAP B1 please feedback to Development for improvement.
    It is important to allocate Project Code to Freight charges in AP Invoice as every Purchase expense of Inventory or Non Inventory is assigned a Project Code for recognition in Profit and Loss Statement.  
    Kedalene Chong

    Hello,
    Your requirement to add project code on Freight Charges form is valid. This is well known issue and we have it on the waiting list; however, I cannot specify in which release this will be fixed.
    Is there any other specific requirement on Cost Accounting you would like to solve?
    Thanks.
    Peter Dominik
    SAP
    B1 Product Definition

  • Where to write code for i_step =0

    Hi,
    I have written code for variable i_step=0 in CMOD.
    I am not able to test the code.
    Could you pls tell us, how to test the code and when this code will be populated.
    Where do i need to set break point , to see the code execution in debugging.
    Thanks

    You will write the logic using CMOD transaction only.You can set the break point the cmod code itself to check your code is working fine or not.
    I_STEP = 0
    The enhancement is not called from the variable screen. The call can come from the authorization check or from the Monitor. This is where you want to put the mod for populating the authorization object.
    Check the sample code
    case i_vnam.
      WHEN 'ZGMGRANT'.  "Query field name
        if i_step = 0.
    BREAK-POINT
          clear wa_ETRANGE.
    *     Gets all grants a user is able to see from ZTable,
    *     which is populated elsewhere 
          select grant_nbr
            from ZGMUSERGRANTS
            into corresponding fields of table it_ZGMUSERGRANTS
           where UNAME eq sy-uname.
    *     Populate Authorisation Object. In i_step 0
    *     E_T_RANGE is used to populate the authorisation object
          loop at it_ZGMUSERGRANTS into wa_ZGMUSERGRANTS.
            wa_ETRANGE-sign = 'I'.
            wa_ETRANGE-opt = 'EQ'.
            CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
              EXPORTING
                INPUT         = wa_ZGMUSERGRANTS-grant_nbr
             IMPORTING
               OUTPUT        = wa_ZGMUSERGRANTS-grant_nbr.
            wa_ETRANGE-low  = wa_ZGMUSERGRANTS-grant_nbr.
            append wa_ETRANGE to E_T_RANGE.
          endloop.
        endif.
      ENDCASE.

  • DRQ : add the "Project Code" column in the "Recurring Postings" function

    Hello,
    This is a DRQ about the Recurring Postings function.
    It concerns the "Recurring Postings" functionality (Menu "Financials --> Recurring Postings").
    Version : 2007A SP00 PL38
    Description of requirements :
    In the current version of SBO ( 2007A SP00 PL38 ) when we create some recurring postings, our customers need to specify the "project code" information for each line (in addition to the "Distribution Rules").
    Business needs:
    Some of our SAP B1 customers use the Project codes for "Cost Accounting" follow up. They need to specify the "Project Code" for each line in the Journal entries created in SBO. In the Recurring Postings, it is not possile to specify that kind of information in the current version of SBO!
    Current Workaround:
    As it is not possible to specify the "Project Code" for each line added in the Recurring Postings recorded as templates, our customers have to re-open each Journal entries created thanks to Recurring Postings execution and to manually add the "Project Code" for each line where it is missing.
    Proposed solution:
    The solution is simple : simply add the "Project Code" column in the Recurring Postings templates will allow the journal entries created to automatically get this information and will avoid the users to modify manually each journal entries generated with the "Recurring Postings" function.
    Kind Regards.
    Grégory

    The "project" field should also be available in the "Account Balance" grid.  Every journal entry has a project code so it makes no sense that you can not view, filter, or sort by this field.

  • LabVIEW could not generate code for the shared variable.You must open the VI in the project that contains the library where the shared variable resides

    HI
    When I put a network shared variable with fifo RT activated on my diagram, the arrow is broken.and I' ve got this message:
    ""LabVIEW could not generate code for the shared variable.You must open the VI in the project that contains the library where the shared variable resides""
    If I uncheck FIFO RT option for this variable the arrow isn't broken anymore.
    I 've no idea how to correct this weird error?
    Autodeploy is on, and I've check copy / delete in diagram in tool/options\diagram
    regards,
    james

    Hello,
    I don't reproduce this error.
    Could you send your VI?
    Regards
    VéroniqueD
    NI France

  • T Code for Project Stock for a particular period

    I want to check my project stock for a particular period, is there any Standard T Code, if not how to find the solution. Please revert me the solution.
                                                                                    Thank you.

    Hi
    Please check the following Report
    S_P00_07000140 - Inventory and Raw Material for Special Stock Report
    To access the report, from the SAP Easy Access menu, choose Accounting >> Financial Accounting >> General Ledger >> Reporting >> Tax Reports >> Thailand >> Inventory and Raw Material for Special Stock Report
    OR
    please try to create a Query by using the following tables..
    MSPR
    MARA
    MAKT
    Tnx.
    Abdul

  • Hi i need a code for timetable generaation project

    Hi friends i am doing a project of timetable generation for college but i got confused so please send me the code for it on my email id [email protected] thank you

    Code for time table generation. No problem. Here you go.
    System.out.println("                  Sun  Mon  Tue  Wed  Thu  Fri  Sat ");
    System.out.println(" 9AM:");
    System.out.println("10AM:");
    System.out.println("11AM:");
    System.out.println("12PM:");
    System.out.println(" 1PM:");
    System.out.println(" 2PM:");
    System.out.println(" 3PM:");
    System.out.println(" 4PM:");
    System.out.println(" 5PM:");It is easy to get confused because of the way that "10" has more characters than "9". The trick is to put a space before the 9 so that the numbers will line up correctly.
    You can also put more spaces in between the days of the week if there isn't enough room to pencil in your classes.
    Good luck with your studies!

  • Custom Column for Project Code Number & Search Box to search Content in Project Server 2013

    Hi all,
    I want to add a custom column in Project Center view for showing some Numerical Projects codes like 4523, 5248,8956 like that... Each code will represent Project assigned with that code in Project Server 2013. Also let me now if i can add some search box
    in Project Center page through which i can search Project Code or Project Name. Currently, provided search bar not working in Project Server 2013.
    Need it urgent..Kindly help

    Hi,
    If you want to add this column in a project center view, be careful to choose a project view in the "manage views" views' list. Also it must be a project custom field and not a task field. As Paul said, we assume that the field with the code exists
    and has been previousky created by you.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, MCP |

  • How to insert a code for a function module into a Customer Exit Variable?

    I have two Key Figures viz., Net Prchs Rtl, and Net Prchs Unt. Both these Key figures have This Week (TW) and Last Week (LW). There is a variable for This week but there is no variable defined for Last week.
    I need to get data in the column LW (Last Week) for both the key figures.
    In function module EXIT_SAPLRRS0_001 one of the functions I have is:
    Get the previous Fiscal Week
              CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
    I need to create a new variable to get values in the Last week column for different key figures and use function “'DATE_TO_PERIOD_CONVERT'” in that variable.
    Can anyone please explain me the steps as to how to use a function module in a variable so that when the variable is used in a key figure it shows the output.
    In other words what I want to know is after creating a Customer exit variable of type Characteristic value how do I refer the above mentioned function moduel and insert the code for the function module into the Customer exit variable that I created.
    Thank you.
    TR.

    Hi Wond,
    Thanks a lot for your reply. I understand what you mean but I have never done this before so can you please explain it in a detailed manner. I have the following code:
    Get the previous Fiscal Week
              CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
                EXPORTING
                  i_date         = ld_date
                  i_periv        = lc_periv
                IMPORTING
                  e_buper        = ln_poper
                  e_gjahr        = ln_bdatj
                EXCEPTIONS
                  input_false    = 1
                  t009_notfound  = 2
                  t009b_notfound = 3
                  OTHERS         = 4.
              IF sy-subrc <> 0.
                MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
              ELSE.
                lc_poper = ln_poper.
                CONCATENATE ln_bdatj lc_poper+1(2) INTO wa_e_t_range-low.
                wa_e_t_range-sign = 'I'.
                wa_e_t_range-opt = 'EQ'.
                APPEND wa_e_t_range TO e_t_range.
              ENDIF.
            ENDIF.
          ENDIF.
        ENDIF.
    I believe I should now use the above code in my customer exit variable. If that's right can you please explain me the steps as to how should I do this so that the variable gets populated.
    Thank you.
    Regards,
    TR.

  • Unable to debug/correct the CMOD code for a variable used in a query

    unable to debug/correct the CMOD code for a variable used in a query
    i am using the data in a DSO in a query and using a custom coding variable in that query , but this data not coming in that query ..
    can anyone suggest how to debug that cmod code for the variable?
    code is written in CMOD tocde for the variable.

    belowis the code that i have written for a custom coding for a variable
    *******Start***
    IF i_step = 2.
      CASE i_vnam.
        WHEN 'IC_COMPCD'.
         TYPES:       BEGIN OF gt_itab_DyAuthTable,
                           username  TYPE /bic/afiop_o1200-/BIC/IC_USER,
                           companycode TYPE /bic/afiop_o1200-COMP_CODE,
                      END OF gt_itab_DyAuthTable,
                      BEGIN OF gt_itab_Cocd_all,
                            companycode TYPE /BI0/MCOMP_CODE-COMP_CODE,
                      END OF gt_itab_Cocd_all.
          DATA: gi_itab_DyAuthTable TYPE STANDARD TABLE OF gt_itab_DyAuthTable,
                wa_itab_DyAuthTable TYPE gt_itab_DyAuthTable.
           DATA: gi_itab_Cocd_all TYPE STANDARD TABLE OF gt_itab_Cocd_all,
                wa_itab_Cocd_all TYPE gt_itab_Cocd_all.
          SELECT /BIC/IC_USER
                 COMP_CODE FROM /bic/afiop_o1200
            INTO CORRESPONDING FIELDS OF TABLE gi_itab_DyAuthTable
            WHERE /bic/ic_user = sy-uname.
          LOOP AT gi_itab_DyAuthTable INTO wa_itab_DyAuthTable.
            IF wa_itab_DyAuthTable-companycode EQ '*'
              OR
              wa_itab_DyAuthTable-companycode EQ ' '.
              SELECT COMP_CODE FROM /BI0/MCOMP_CODE
                  INTO CORRESPONDING FIELDS OF TABLE gi_itab_Cocd_all.
              LOOP AT gi_itab_Cocd_all INTO wa_itab_Cocd_all.
                l_s_range-low    = wa_itab_Cocd_all-companycode.
                l_s_range-sign   = 'I'.
                l_s_range-opt    = 'EQ'.
                APPEND l_s_range TO e_t_range.
              ENDLOOP.
          to exit the loop if any one value is */space/all for a user's compcode values
            EXIT.
            ENDIF.
          ENDLOOP.
           if control is here means, the comp codes values didnt have */space
              LOOP AT gi_itab_DyAuthTable INTO wa_itab_DyAuthTable.
                l_s_range-low    = wa_itab_DyAuthTable-companycode.
                l_s_range-sign   = 'I'.
                l_s_range-opt    = 'EQ'.
                APPEND l_s_range TO e_t_range.
              ENDLOOP.
      Endcase.
    Endif.

  • Process code for project

    Hii ,
    I was just wondering if there was an inbound process code for message type PROJECT . I am trying to generate a inbound partner profile for message type PROJECT and idoc type PROJECT01 . I am not sure what process code should i use . Please tell me
    thank you

    Hi,
    The process code to use with Project/Project01 is 'BAPI' as the interface is based on a Bapi concept.
    Regards
    JF

  • Abap code for sap exit variables?

    Hi,
    i) Where can I find the abap code for SAP exit variables
    OP_KEYDT used for the net due date
    OP_KEYD2 used for the posting date
    OP_KEYD3 used for the clearing date, which are used in FI AR aging report(0FIAR_C03).
    Based on the Net Due Date, which  is key date(0NETDUEDATE),  entered by the user at runtime, the posting date and celaring date are populated.
    II) The problem is we want to simulate a similar scenario, but with key date, which user enters is based on the custom  Net Due Date(ZNETDUEDATE).And this date is populated to posting date and  clearing date variables.
    How do we acheive that.
    Thanks.

    Please tell how u solved ur issue i have the same scenario to be do.

Maybe you are looking for

  • How do I upload videos to Youtube from my iMac?  The videos were taken on my Iphone.

    I need to make some videos I took available to an online class.  The videos were taken on my Iphone and uploaded onto my Imac, and I want to either upload them to Youtube or Vimeo.  Youtube says that I am using an unsupported file.  {IMG.}  Can anyon

  • Xbox HD DVD Player

    I'm thinking about buying the Xbox HD DVD Player. I want to connect this with my Macbook and than over my DVI Hdmi cable to my projector. Is the Macbook graphics card a HDCP card? Do you think the qualti will be good or it get lost in the connection?

  • JScrollPane is smearing JPanel

    When painting to a panel inside a JScrollPane, I am having problems with the panel smearing as I scroll. It looks just as though it's repainting over what was already painted on the panel. Just as some testing, I called repaint within my paint method

  • Apple admits to nano LCD flaw in very small percentage

    http://www.macworld.co.uk/news/index.cfm?NewsID=12741 iPod flaw 'limited', Apple confirms By Jonny Evans Apple's all-new iPod nano has been in the news lately, receiving rave reviews worldwide on launch and a wave of criticism since recent claims tha

  • Class Creation Problem in Publish settings

    now iam working in flash 8 version .fla file.......firstly iam save as it to cs4 via Macromedia flash cs4....when i trying to add a new main class for this file it showing error as "This feature is not supported by flash 8 , Action script 2.0,to use