Set value of project code to Reciept from production matrix.

Hello Friends,
I want to set value of project code to Reciept from production matrix after selecting Production order number.I have taken project code field in Production order header.That project code value i have to set  in Reciept from production. I got the Project code no by query but I cant set it to Reciept from production  Matrix project column.
RS.DoQuery("Select U_PrjCode from OWOR where DocEntry='1')
str = RS.Fields.Item("U_PrjCode").Value
oMatrix.Columns.Item("21").Cells.Item(1).Specific.value = str
this code give me an error
"Item-Cant set value on item because the item cant get focus"
Plz give me solution for this..
Thanks & Regards,
   Swati

Hello Swati,
The cell should be foucsed before setting value for it. try this:
RS.DoQuery("Select U_PrjCode from OWOR where DocEntry='1')
str = RS.Fields.Item("U_PrjCode").Value
oMatrix.Columns.Item("21").Cells.Item(1).Click()
oMatrix.Columns.Item("21").Cells.Item(1).Specific.value = str
Kind Regards
-Yatsea

Similar Messages

  • Reciept from production posting date

    Hi Everybody,
                           I m facing a problem in reciept from production document. I am adding Issue for production for a Production order in july date, now when I add recipt from production for that Production order in march, sap B 1 allowing me.
    I want to stop this, Pls tell me the solution.
    if SP is must for this , Pls provide me.
    Thanks a lot in advance
    Deepak Tyagi

    Hi Deepak,
    Check the thread
    Re: Production order - post date - cannot change
    *Close the thread if issue solved.
    Regards
    Jambulingam.P

  • Movement code for return from Production without WBS?

    Hi All
    How can I return material from production without entering a WBS. Currently we use MB1A movement type 222 but we have difficulty in identifying material coming back from production. But we have to enter a WBS element. As you know, this takes the cost of the material from the WBS. If we have no WBS we cannot return it into stock.
    How can I return material into a warehouse from production without entering (no reference) to a WBS? Material is issued to production using movement types 221 and 281.
    Thanks
    Darren

    Hi,
    Please try to use the movement types: 521 (or) 531 , to receive goods without referring Production Orders/ WBS elements.
    Regards,
    Narayana.

  • Set value of variable in one bean from another bean

    Using JDeveloper 11.1.1.4, I thought this would be simple to do, but I haven't been able to figure out the correct syntax and am just learning java. In my view controller I have one bean set as pageflow scope, and another bean set as a request scope. How do I set the value of a variable in the first bean from the second bean? The first bean has setters and getters, but when I try to reference them in the second bean, it says it isn't allowed. The first bean looks like:
    public class ViewAmtsParameters {
        String asOfDateParam = null;
        public void setAsOfDateParam(String asOfDateParam) {
            this.asOfDateParam = asOfDateParam;
        public String getAsOfDateParam() {
            return asOfDateParam;
    }Thanks in advance,
    Troy

    for ur reference: go through entire docs.
    http://balusc.blogspot.com/2006/06/communication-in-jsf.html
    Edited by: Erp on Oct 7, 2011 9:12 PM

  • Replication of Project Server 2010 databases from Production to Development

    HI
    We have One Production, One Development and One QA server but the Production data is not matching with the Dev and QA.
    Now our client is asking is there any possibility that we can copy the production data bases and replicate in the Dev and QA.
    Is there any auto sync method where the production data updates will be updated in Dev and QA automatically.
    Our environment is Project Server 2010  4 PWA data bases and 1 config data base and 1 config data base for project sites.
    Please suggest a best possible way to solve this issue as i thought to take the the PWA back up frm central admin along with the 4 db back up from pwa--- 6 db back up from sql server---- restore all of them in the Dev and QA---i don't think it is the right
    approach.
    Thanks
    Geetha
    Geeth If you feel that the answer which i gave you is Helpful please select it as Answer/helpful.

    As per your First post you only want to update the data of DB on regular basis. 
    Now you are talking about back up restore Please be clear what you want . 
    If you have all the configuration ready on qa and dev then only replication need to be done. 
    can i use the replication mechanism for all the 5 databases in PS 2010 at time won't be a problem right
    ?  YES
    other wise 
    If i want to copy the PWA configuration part can i use play book or any other steps i need to perform.
    YES
    We have some workflows on PWA instance. Create workflow on Dev and QA
    kirtesh

  • Project code mandatory

    There is one column at row level Project code in marketing document when any user going to enter any marketing document
    project code is mandatory for user how it will possible

    Here are the complete query SBO SP TN for your requirement:
    /* Start */
    if @transaction_type in ('A', 'U')
    and @object_type in ('23','17','15','16','203','204','13','14','22','20','21','18','19')
    begin
         if exists(
              --Sales Quotation
              select DocEntry
              from QUT1 with (nolock)
              where @object_type = '23'
                   and @list_of_key_cols_tab_del = N'DocEntry'
                   and DocEntry = @list_of_cols_val_tab_del
                   and isnull(Project,'') = ''
              union all
              --SO
              select DocEntry
              from RDR1 with (nolock)
              where @object_type = '17'
                   and @list_of_key_cols_tab_del = N'DocEntry'
                   and DocEntry = @list_of_cols_val_tab_del
                   and isnull(Project,'') = ''
              union all
              --DO
              select DocEntry
              from DLN1 with (nolock)
              where @object_type = '15'
                   and @list_of_key_cols_tab_del = N'DocEntry'
                   and DocEntry = @list_of_cols_val_tab_del
                   and isnull(Project,'') = ''
              union all
              --Return
              select DocEntry
              from RDN1 with (nolock)
              where @object_type = '16'
                   and @list_of_key_cols_tab_del = N'DocEntry'
                   and DocEntry = @list_of_cols_val_tab_del
                   and isnull(Project,'') = ''
              union all
              --A/R DP
              select DocEntry
              from DPI1 with (nolock)
              where @object_type = '203'
                   and @list_of_key_cols_tab_del = N'DocEntry'
                   and DocEntry = @list_of_cols_val_tab_del
                   and isnull(Project,'') = ''
              union all
              --A/R Invoice
              select DocEntry
              from INV1 with (nolock)
              where @object_type = '13'
                   and @list_of_key_cols_tab_del = N'DocEntry'
                   and DocEntry = @list_of_cols_val_tab_del
                   and isnull(Project,'') = ''
              union all
              --A/R Credit Memo
              select DocEntry
              from RIN1 with (nolock)
              where @object_type = '14'
                   and @list_of_key_cols_tab_del = N'DocEntry'
                   and DocEntry = @list_of_cols_val_tab_del
                   and isnull(Project,'') = ''
              union all
              --PO
              select DocEntry
              from POR1 with (nolock)
              where @object_type = '22'
                   and @list_of_key_cols_tab_del = N'DocEntry'
                   and DocEntry = @list_of_cols_val_tab_del
                   and isnull(Project,'') = ''
              union all
              --GRPO
              select DocEntry
              from PDN1 with (nolock)
              where @object_type = '20'
                   and @list_of_key_cols_tab_del = N'DocEntry'
                   and DocEntry = @list_of_cols_val_tab_del
                   and isnull(Project,'') = ''
              union all
              --Goods Return
              select DocEntry
              from RPD1 with (nolock)
              where @object_type = '21'
                   and @list_of_key_cols_tab_del = N'DocEntry'
                   and DocEntry = @list_of_cols_val_tab_del
                   and isnull(Project,'') = ''
              union all
              --A/P DP
              select DocEntry
              from DPO1 with (nolock)
              where @object_type = '204'
                   and @list_of_key_cols_tab_del = N'DocEntry'
                   and DocEntry = @list_of_cols_val_tab_del
                   and isnull(Project,'') = ''
              union all
              --A/P Invoice
              select DocEntry
              from PCH1 with (nolock)
              where @object_type = '18'
                   and @list_of_key_cols_tab_del = N'DocEntry'
                   and DocEntry = @list_of_cols_val_tab_del
                   and isnull(Project,'') = ''
              union all
              --A/P Credit Memo
              select DocEntry
              from RPC1 with (nolock)
              where @object_type = '19'
                   and @list_of_key_cols_tab_del = N'DocEntry'
                   and DocEntry = @list_of_cols_val_tab_del
                   and isnull(Project,'') = ''
         begin
              set @error = -1
              set @error_message = N'project code is missing'
         end
    end
    /* End */

  • Set value to variable into trigger

    Hello all. I am Andrew.
    I try to set value variable following code:
    create or replace TRIGGER "ITOP".SERVER_TRG
    BEFORE INSERT ON SERVER
    FOR EACH ROW
    BEGIN
    SELECT SERVER_SEQ.NEXTVAL INTO :NEW.ID_SERVER FROM DUAL;
    (:P4_ID_SERVER) := :NEW.ID_SERVER;
    END;
    But compile completes with error:
    PLS-00049: bad bind variable 'P4_ID_SERVER'
    Why ?
    Please help me.
    Andrew.

    Replace
    (:P4_ID_SERVER) := :NEW.ID_SERVER;
    with
    APEX_UTIL.SET_SESSION_STATE('P4_ID_SERVER' ,:NEW.ID_SERVER);

  • Set the default field value to transaction code field, when calling from WD

    Hi all,
    Can we pass the value in a input field of a standard transaction calling from WD application. Suppose we are calling a transaction VA03 in an external window, then how will be pass the value in the VBAK_VBELN screen field.
    Is there any way to pass the value to this transaction field. I have also tried out to set the parameter ID 'AUN' for VA03 transaction VBELN field. But it did not work for me.
    Is there any way to set the default field value to transaction code field, when calling from WD?
    Please suggest, if anyone have any idea.
    Thanks
    Sanket

    Hi,
    I am using the below code to open a standard transaction. It will help you to explain my point more easily.
    DATA: url TYPE string,
              host TYPE string,
              port TYPE string.
    *Call below method to get host and port
      cl_http_server=>if_http_server~get_location(
         IMPORTING host = host
                port = port ).
    *create URL
      CONCATENATE 'http'
      '://' host ':' port
      '/sap/bc/gui/sap/its/webgui/?sap-client=&~transaction=' 'VA03'
       INTO url.
    *get the window manager as we are opening t code in external window.
      DATA lo_window_manager TYPE REF TO if_wd_window_manager.
      DATA lo_api_component TYPE REF TO if_wd_component.
      DATA lo_window TYPE REF TO if_wd_window.
      lo_api_component = wd_comp_controller->wd_get_api( ).
      lo_window_manager = lo_api_component->get_window_manager( ).
    call the url which we created above
      lo_window_manager->create_external_window(
      EXPORTING
      url = url
      RECEIVING
      window = lo_window ).
      lo_window->open( ).
    Note*
    One more query I want to add to this thread, that is there any possibility to call a custom transaction as well?

  • How to get multipe data set values from Decision Table.

    Hi All,
    I need to use SAP BRM for one of the scenario where based one some Code Group I need to get a set of questions and for each question a set of possible answers.
    The structure of Decision Table will be like below :
    Table 1 : To get set of questions based on Project Code
    Input                   Output           Output
    Project Code
    Question Id
    Question Description
    Table 2 : To get set of answers based on question
    Input                   Output            Output
    Question ID
    Answer Id
    Answer Description
    I already searched in forum to get the multiple values based on some input and that works fine for a single field with multiple outcome.
    Handling Selective Multiple Actions in  SAP Business Rules Management System
    In my scenario I need to get a set of Id and description as multiple outcome.
    Can anyone please let me know how this can be achieved in BRM.
    Thanks in advance
    Ravindra

    Create an XSD in the BRM project with the desired data structure and import the XSD alias in the 'Project Resources'. Add this XSD alias as input/output of the decision table.
    Refer this:
    Creating a Simple BRM Ruleset in 30 Easy Steps using NWDS 7.3 (Flow Ruleset with a Decision Table)

  • How to set value from one view to other view's context node attr b4 save

    HI all,
    My requirement is as below:
    There are two views in component BP_CONT.
    BP_CONT/ContactDetails    IMPL class
    BP_CONT/SalesEmployee   SALESEMPLOYEE    STRUCT.SALESEMPLOYEE
    I want to set value from first view to second view's context node's attribute.
    i get Sales Employee BP number in ContactDetails view, from here i want to set that value in to STRUCT.SALESEMPLOYEE
    of second view in the same component.
    please send me code snippet for doing the same.
    Thanks in advance.
    seema

    Hi Seema
    You can access the fields from different views by either using custom controllers or by using component controllers, in your case you can access the Sales employee BP number from the Component controller.
    first access the component controller  as below in BP_CONT/SalesEmployee  (in do_prepare_output method) or in (specific setter method)
    lv_compcontroller type ref to CL_BP_CONT_BSPWDCOMPONENT_IMPL,
    lv_partner type ref to cl_crm_bol_entity,
    lv_role type string,
    lv_partner_no type string.
    lv_employee TYPE REF TO if_bol_bo_property_access,
    lv_compcontroller  = me->COMP_CONTROLLER.
    lv_partner ?= lv_compcontroller  ->typed_context->-partner->collection_wrapper->get_current( ).
    lv_role = lv_partner->get_property( iv_attr_name = 'BP_ROLE' )
    IF LV_ROLE = 'SALESEMPLOYEE'
      lv_partner_no ?= lv_current->get_property( iv_attr_name = 'BP_NUMBER' ).
    endif.
    now set the value
    lv_employee ?= me->typed_context->salesemployee->collection_wrapper->get_current( )
    CHECK lv_employee IS BOUND.
        lv_employee->set_property( iv_attr_name = 'SALESEMPLOYEE' iv_value =  lv_partner_no  )
    Thanks & Regards
    Raj

  • How to set value in combox by code

    how to set value in combox by code

    Dear
    You can use the following code to set the values in combobox by a query
       strQuery = "select ItemCode,ItemName  from OITM"
            oRecSet = Me.SBO_Company.GetBusinessObject(BoObjectTypes.BoRecordset)
            oRecSet.DoQuery(strQuery)
                 oCombo = Me.oForm.Items.Item(encontrolName.colEmpType).Specific
            If oRecset.Fields.Count > 0 Then
                While oRecset.EoF = False
                    oCombo.ValidValues.Add(oRecset.Fields.Item(0).Value, oRecset.Fields.Item(1).Value)
                    oRecset.MoveNext()
                End While
            End If
    Regards
    Rupinder

  • Setting value in cookie using ABAP code

    Hai All,
    Is it possible to set value in a cookie using ABAP code.
    Regards,
    H.K.Hayath Basha.

    Hai Thomas Jung,
    In Enterprise portal SAP has standard functionality to set inactivity timeout. We can set whatever time we want, say for example if we set the time as 15 minutes. If the user is not interacting with the system for 15 minutes then portal will logout the user automatically without any information.
    Our user wants a popup to be shown that the system will be logged out due to inactivity.
    Since Portal logout the user automatically without any information. I want to put in my own framework to handle inactivity timeout.
    What idea I have is, when ever user interacts with any function in portal. I will set current time in a cookie. Someother application will read this cookie at regular interval, if the time difference between the cookie and system is 15, then I will force the user to logout by showing a popup screen.
    In our portal we have three different type of application, they are, Java Webdynpro, ABAP-Webdynpro and BSP.
    I think that from Java Webdynpro and BSP we can call a javascript to set value in a cookie, from ABAP-Webdynpro I don't know how to set a value in cookie.
    This is my business requirement. Is there anyother solution to fullfill this business requirement.
    Thanks & Regards,
    H.K.Hayath Basha.
    Let me tell the business requirement.  Our user want to give a popup message when

  • Where the set value come from

    where is the set value come from, can the value come from Servlet
    create or replace
    PACKAGE BODY TRIGGER_test as
    function setStudentNum(sn in varchar2) return varchar2 as
    Begin
      staff_num := sn;
      return ('Success');
    Exception
    When OTHERS then
      return ('Error');
    End setStudentNum;
    function getStudentNum return varchar2 as
    Begin
      if (staff_num is not null) then
       return (staff_num);
      else
       return ('undefine');
      end if;
    End getStudentNum;
    end TRIGGER_test;

    Hjava wrote:
    >i am assuming that the function trigger_test.setStudentNum() gets executed first which will initialize the staff_num variabl
    when and how?
    Some 'other' bit of code somewhere.  How do we know, as we don't have your application/process code.  There will be something somewhere that calls the setStudentName function, so that when the getStudentName function is called it can return a value.  Values don't just magically appear.
    The only time there may be some code that initializes a value (other than in the declaration of the variable itself) is in a package body execution section e.g.
    SQL> create or replace PACKAGE TRIGGER_test as
      2    function setStudentNum(sn in varchar2) return varchar2;
      3    function getStudentNum return varchar2;
      4  end TRIGGER_test;
      5  /
    Package created.
    SQL> create or replace PACKAGE BODY TRIGGER_test as
      2    staff_num varchar2(30);
      3    function setStudentNum(sn in varchar2) return varchar2 as
      4    Begin
      5      staff_num := sn;
      6      return ('Success');
      7    End setStudentNum;
      8
      9    function getStudentNum return varchar2 as
    10    Begin
    11      return (staff_num);
    12    End getStudentNum;
    13  begin
    14    staff_num := 'undefined';
    15  end TRIGGER_test;
    16  /
    Package body created.
    SQL> select trigger_test.getStudentNum() from dual;
    TRIGGER_TEST.GETSTUDENTNUM()
    undefined
    SQL> select trigger_test.setStudentNum('1234') from dual;
    TRIGGER_TEST.SETSTUDENTNUM('1234')
    Success
    SQL> select trigger_test.getStudentNum() from dual;
    TRIGGER_TEST.GETSTUDENTNUM()
    1234
    As you can see, the first time the package is instantiated in memory (the first time we call any function in it), the package body execution section is called which sets the variable to "undefined" in this example, before the function itself is called to return what the value is.

  • Running SSIS Package from SQL Job - with Set Values, a string containing";"

    Can anybody help with this problem please?
    I’m using “set value” in SQL agent to pass in an email address to my SSIS package, if I put in a value of:
    [email protected]
    It works fine, but if I attempt to input multiple email addresses it fails
    [email protected];[email protected]
    It doesn’t appear to like the “;”.
    Any ideas anyone???
    BoroFC

    Hi Jamie, many thanks for the response.
    If I look at my command line table when Email = [email protected], it looks like:
    /SET "\package.Variables[EmailAddress].Value";"[email protected]" /REPORTING E
    If I change the value to “[email protected];[email protected]”, it looks like:
    /SET "\package.Variables[EmailAddress].Value";"\""" [email protected];"" [email protected] ""\"" /REPORTING E
    But the weird thing is, if I close the job properties window and re-open it again, I lose this line from my set values screen all together!!!
    Help ???
    BoroFC

  • Set value of zzidarea from another context node

    Hi is it possible to set the value of the zzidarea field of the context node header from the method  get_employeename of the context node employeename?
    Thanks!!

    Hi,
            Your question should be framed better. I suppose that you are trying to set the value of a header attribute from one of the child relations. Assuming that the relations are buffered, it is possible to reach the header entity by using the get_parent or get_root and using relations again. However it is not a good practice trying to set values in a getter method. You should find another proper approach to your problem.
    Regards,
    Arun Prakash

Maybe you are looking for

  • Itunes match playlists empty

    I ran update itunes match, and all of the songs in my playlists were deleted.  The main library is untouched.  none of my itunes backups are restoring the playlists, and copying and re-naming the old .itl files isn't working either.  is there any way

  • Jpeg image won't scale to fit box. Any ideas?

    I am trying to add text to my scanned watercolor illustrations for a childrens book I wrote.  I am using Illustrator and I just loaded a jpeg image into illustrator, and it is HUGE!  I tried to use the scale tool and I can't figure out how to get the

  • HP Laserjet P1006 Can not get new print cartridge into printer.

    HP Laserjet P1006 Can not get new print cartridge into printer. Received two new cartridges from HP. CB435A, 35A are correct numbers for replacement but round part on left side appears too large for channel provided. I can not get the old cartridge b

  • WTFFFF!!

    Okay just got the ipod nano few weeks ago.. worked fine till today.. i carried it regularly in my hand all day at school. set it down softly and so on.. got home today turned it back on and everything is in black and white! what the ****? i checked a

  • HT201322 Downloaded a song from iTunes on my iPhone but only shows on my iPad.  Setup for same iCloud.

    Downloaded a song from iTunes on my iPhone but only shows on my iPad.  Setup for same iCloud.