Fiiling multiple entries in model node.

Hi Experts,
I am new to wdjava,i have query please help me on this:
In my RFC(General reimbursement) i need to fill table(multiple entries), which is described under table tab.When i execute that filling the data in table, my entries gets saved in the backend.
My issue is how to set multiple enteris in the model node(table which is required to be filled before execution).Moreover do i need to set this model node to context node .(zhr_welfare_rem_input).
i am also using the addelement() method in loop but that is overwriting my previous data and thus outcome is single data.
Regards:
somya

Hi Tony,
I tried using the method as mentioned by you.
The code in use is as mentioned below :
Zess_Emp_Welfare_Input inpNew= new Zess_Emp_Welfare_Input();
IPrivateEmployeeWalfareOverView.IU_DetailsNode nunode = wdContext.nodeU_Details();     
for(int i=size-1;i>0;i--)
Zwelfare_Details inp1 = new Zwelfare_Details();
IPrivateEmployeeWalfareOverView.IU_DetailsElement nuele = wdContext.nodeU_Details().createU_DetailsElement(inp1);
          if(lead==i || wdContext.nodeU_Details().isMultiSelected(i))
                     nuele.setAmount(new BigDecimal(wdContext.nodeCa_PPTE_INS().getCa_PPTE_INSElementAt(i).getAmount()));
     nuele.setBer_Type("PPTE");
     nuele.setBill_Date(wdContext.nodeCa_PPTE_INS().getCa_PPTE_INSElementAt(i).getBill_Date());
     nuele.setBill_No(wdContext.nodeCa_PPTE_INS().getCa_PPTE_INSElementAt(i).getBill_No());
     nuele.setParticulars(wdContext.nodeCa_PPTE_INS().getCa_PPTE_INSElementAt(i).getParticulars());
     nuele.setZmonth("AUG");
     nuele.setZyear("2009");
     nuele.setMandt("180");
     nuele.setPernr(wdContext.currentOutputElement().getE_Pernr());                          
nunode.addElement(i,nuele);      
inpNew.setMode("INS");
     inpNew.setI_Year("2009");
     wdContext.nodeZess_Emp_Welfare_Input().bind(inpNew);
try
     wdContext.currentZess_Emp_Welfare_InputElement().modelObject().execute();
     wdContext.currentZess_Emp_Welfare_InputElement().modelObject().modelInstance().disconnectIfAlive();
     wdComponentAPI.getMessageManager().reportSuccess("Mahesh567");
catch(Exception ex)
     wdComponentAPI.getMessageManager().reportSuccess("Mahesh");
Then I execute my RFC.
RFC name is  Zess_Emp_Welfare
Model node in which it needs to be inserted is U_Details.
The structure for U_Details is Zwelfare_Details.
Please do let me know the solution at the earliest.
Thanks and Regards,
Soumyadeep Ghosh.

Similar Messages

  • How to populate multiple entries to Bapi Table

    Hi all,
      How to populate multiple entries to Bapi Table.....
    Here is the code(in component controller)
      Z_Recr_Apply_Point_Input request = new Z_Recr_Apply_Point_Input(WDModelScopeType.TASK_SCOPE);
           int  size = wdContext.nodeApplicants().size();
                for(int i = 0 ; i < size ; i++)
                    String isselected = wdThis.wdGetContext().nodeApplicants().getElementAt(i).getAttributeAsText("Appl_Number");
                     if(isselected == "true")
                               com.models.veteranpoint.Zrecr_Aplno appid = new
                                    com.models.veteranpoint.Zrecr_Aplno();                                        
                                    appid.setAppl_Number(wdContext.nodeApplicants().
                                        getApplicantsElementAt(i).getAppl_Number());
                               request.addApplicants(appid);
    I want to pass the selected input field to bapi..
    Please tel me where i pass the input field...
    Please correct my code...
    Thanks & regards
    Mathi s

    Hi,
    Steps to insert multiple entries to BAPI table.
    1.Create an instance for BAPI input
    2.Bind the instance to the Node of the BAPI input
    3.Create instance of the Structure(BAPI table) to which input has to be added.
    4.Set the input values to the Structure instance.
    5.Add the instance to the BAPI input.
    6.Execute
    From the given example,I assume Z_Recr_Apply_Point_Input  is the BAPI Input and com.epiuse.us.recruitment.models.veteranpoint.Zrecr_Aplno as Structure
    Step 1:
    Z_Recr_Apply_Point_Input request = new Z_Recr_Apply_Point_Input(WDModelScopeType.TASK_SCOPE);
    Step 2:
    <b>wdContext.nodeZ_Recr_Apply_Point_Input.bind(request);</b>
    Steps 3 & 4:
    int size = wdContext.nodeApplicants().size();
    for(int i = 0 ; i < size ; i++)
    String isselected = wdThis.wdGetContext().nodeApplicants().getElementAt(i).getAttributeAsText("Appl_Number");
    if(isselected == "true")
    com.epiuse.us.recruitment.models.veteranpoint.Zrecr_Aplno appid = new
    com.epiuse.us.recruitment.models.veteranpoint.Zrecr_Aplno();
    appid.setAppl_Number(wdContext.nodeApplicants().
    getApplicantsElementAt(i).getAppl_Number());
    <b>wdContext.currentZ_Recr_Apply_Point_InputElement().modelObject().addRecr_Aplno(appid);</b>
    Step 5:
    <b>wdContext.currentZ_Recr_Apply_Point_InputElement().modelObject().execute();</b>
    Regards,
    Viji Priya

  • How to populate a Value Attribute of a Value Node inside Model Node

    Hello
    I have my context like this.
      Context
    ..          - ModelNode
    ....                      - Model Attr1
    ....                      - Model Attr2
    ....                      - Model Attr3
    ....                      - Model Attr4
    ....                      - Value Node
    ......                                  |
    ......                                   - Value Attr1
    Model Node is of Cardinality 0..N
    Value Node is of Cardinality 1..1
    I want to create multiple records in my Model Node and one record for every Model Node in Value Node.
    How to do this?
    All good suggestions are welcome.
    Regards,
    Shubham

    Hi Shubham,
    With your context structure the code will be
    for(int i = wdContext.nodeModelNode().size()-1 ; i>=0 ; i--)
        IPublic<comp name>.IModelNodeElement ele =   wdContext.nodeModelNode().getModelNodeElementAt(i);
        IPublic<comp name>.IValNodeElement valEle = wdContext.nodeModelNode().nodeValNode().createValNodeElement();
        valele.setValAttr("");
        ele.nodeValNode().addElement( valEle);
    Your val node should be non singleton (singleton property = false)
    Regards,
    Jaydeep

  • How can I create a model node in SAP Records Management

    Product: SAP Records Management
    Hi,
    I would like to create a model node in a record tree.
    I found in the function modul BAPI_RECORD_ADDELEMENT no entry for the creation of a model node. Only the instance and the structure node can create by this function modul.
    So, does anyone know a solution to create a model note?
    Regards,
    Thomas Fanninger

    Hi Thomas,
    it is not possible with the BAPI due to the piece of coding:
    case  myElementType.
            when glob_const_elem_type_instance.
              myRecordElement->Type_Set( if_srm_sp_record_element=>type_instance ).
              myRecordInstanceElement ?= myRecordElement.
              loop at element_sp_poid into myElementSpPoidWa.
                mySpPoidWa-id = myElementSpPoidWa-name.
                mySpPoidWa-value = myElementSpPoidWa-value.
                insert mySpPoidWa into table myElementSpPoidTab.
              endloop.
              myElementSpsId = sps_id.
              myElementPoid = myClientService->poid_get_instance( im_rms_id  = myRmsId
                im_sps_id  = myElementSpsId  im_sp_poid = myElementSpPoidTab ).
              myService->check_sp_connection( myElementPoid ).
              myRecordInstanceElement->poid_set( myElementPoid ).
            when glob_const_elem_type_folder.
              myRecordElement->Type_Set( if_srm_sp_record_element=>type_folder ).
            when others.
              perform set_error using '852' return.
              return.
          endcase.
    But you can do that by using directly the Records API. How to use this is demonstrated in the report 'SRM_RECORD_API_HOWTO'. Search there for the subroutine 'fillrecordelement'. There a record element for insert is created and its type is set. You can set the type there to 'IF_SRM_SP_RECORD_ELEMENT~TYPE_MODEL'. Of course your POID then may not be an instance POID.
    Best regards,
    Thomas

  • How to set the Model Class for a newly created Model Node ?

    Hello All,
      I am trying to map a Model node from SourceA to DestinationB.
      To do so, I created a model node for Destination B in the interface controller (set the isInputElement to true). However why I try to map the node, I get an error saying that "Both context nodes have to be bound to a model class". Upon a closer look, I realised that the model node that I created in DestinationB has no entries under the properties.
      Does anyone knows/advise how I can add the model class entry to the model node that I have created as I am not able to do so. Or otherwise, is there a way to map a model node to another model node across different components ? Thank you very much.
    from
    Kwok Wei
    from
    Kwok Wei

    Hello Pascal
      The instructioons that you gave are for mapping the model between the view controller and the component controller within the same component is that right ?
      I am tryng to map a model node in the component controller of SourceA to another model node that belongs to another Component. I do believe that in this case I will need to create a model node in the interface controller of DestinationB and map that to the component controller of SourceA. However, by creating my own model node, how do I change the property modelClass in the context ?
      Thanks !
    from
    Kwok Wei

  • How to set value to Model Node of cardinality 0..N

    hi
    I am looking for a way to set value to a model node of cardinality 0..N
    i imported a WSDL into my applicaion , which has the following Node Structure.
    Context
    --- ModelNode_Request
          ---ModelNode2_Input
          ---ModleNode3_Roles  [ cardinality 0..n singleton 1..1]
               ****Model_Attribute RoleID     <<<<<<<<<<<<
               ****Model_Attribute SysID      <<<<<<<<<<<<
      ---ModelNode_Response
    i tried with the below code  but effort went in vain.
    i tried following ways to set the value but , i get Nullpointer expection error.
         wdContext.nodeRequest__SubmitRequest().nodeRequestDetails().nodeRoles().
              currentRolesElement().setRoleId("BASIC");
         wdContext.nodeRequest__SubmitRequest().nodeRequestDetails().nodeRoles().
              currentRolesElement().setSysId("R3_220");
    i aslo looked into the forum  https://www.sdn.sap.com/irj/scn/thread?messageID=2035342 but couldnt find any solid solution.
    It would be great if some one can throw some snippets on the same.
    Thanks
    Edited by: RR on Dec 22, 2008 5:48 PM

    Hi RR,
    As far as i know u can set model nodes and values nodes are different. whats shown in the link is for values node. u should do differently for model node..
        Since this is a model node...u first need to create an object of the node type. then create an arraylist for that and then add values..
    try this..
    // Create an object for structures in the node to be used
    Yweb_Po_Items objPOItems = null; // where Yweb_Po_Items is the structure of the node...
    // Create an abstractlist for structures in the RFC node to be used, if u are planning to give single or multiple rows (in node/table) as input to the RFC
    AbstractList POObjAbsList = new Yweb_Po_Items.Yweb_Po_Items_List();
    objPOItems = new Yweb_Po_Items();
    //    /set first set of values
    objPOItems.setColumn1(u201Cabcu201D); // here hard codede for example
    objPOItems.setColumn2(u201Cabcfghu201D);
    // add the object to the abstract list
    POObjAbsList.add(objPOItems);
    //    /set second set of values
    objPOItems.setColumn1(u201Cnewabcu201D);
    objPOItems.setColumn2(u201Cnewabcfghu201D);
    // add the object to the abstract list again
    POObjAbsList.add(objPOItems); // now u got 2 records
    // now set the abstractlist to the node in the RFC
    objGoodsReceiptPO.setPo_Items_In(POObjAbsList);
    Hope this information is useful...
    Thanks
    Md. Yusuf

  • Duplicate records in input structure of model node

    Hi,
    Following is the way, I am assigning data to a model node:
    //Clearing the model input node
    for (int i = wdContext.nodeInsppointdata().size(); i > 0; i--)
         wdContext.nodeInsppointdata().removeElement(wdContext.nodeInsppointdata().getElementAt(i - 1));
    //Creating element of the input model node
    IPrivateResultsView.IInsppointdataElement eleInspPointData;
    //START A
    Bapi2045L4 objBapi2045L4_1 = new Bapi2045L4(); //Instance of the input structure type
    //Populating data
    eleInspPointData = wdContext.nodeInsppointdata().createInsppointdataElement(objBapi2045L4_1);
    wdContext.nodeInsppointdata().addElement(eleInspPointData);
    eleInspPointData.setInsplot(wdContext.currentContextElement().getInspectionLotNumber());
    eleInspPointData.setInspoper("0101");
    //Inspection_Validate_Input is the model node. Adding instance to main node
    wdContext.currentInspection_Validate_InputElement().modelObject().addInsppointdata(objBapi2045L4_1);
    //STOP A
    //Now executing the RFC
    Above code seems to be fine. Works very well for the first time. But, when the user clicks on the same button for the second time, I can see duplicate records getting passed to RFC [Debugged using external breakpoint]. When I am sending 4 records, I can see there are total of 6 records. The number keeps increasing when clicked on the button.
    I am adding multiple records to input model node using the code from START A to STOP A. Does the code look fine? Why do I see multiple records?
    Thanks,
    Sham

    Issue solved.
    After executing RFC, I used following code to clear the input model node:
    try
         wdContext.current<yourBAPI>_InputElement().modelObject().get<yourinputnode>().clear();
    catch (Exception e1)

  • Creating dependant model nodes dynamically

    Hi,
    currently I am facing the following challenge.
    I have imported an RFC which has two TABLES parameters as follows:
    T_SECURITIES
    T_RATINGS
    There is 1-n relationship between T_SECURITIES and T_RATINGS, so for each T_SECURITIES entry there may be 0..n T_RATINGS entries.
    In my WebDynpro I would like to enable a user to edit a single security entry together with its associated ratings. Therefore I have a two Tabs. One for editing the security and another one for editing the associated ratings in a table.
    Furthermore all retrieved securities are displayed in a navigation tree so the user can quickly switch between different securities.
    Unfortunately I wasnt able to filter the associated ratings of a single security element each time the user selects a different security.
    Can anyone tell me of a best-practice pattern how to resolve this 1-n relation issue ?
    My ModelController Context looks as follows:
    Input
    |...
    |--Output
        |--T_SECURITIES
        |--T_RATINGS

    Ok guys,
    I solved the issue. And it works great.
    So here is what I did:
    My View which specifically is to display associated ratings of a selected security entry has the following context nodes:
    Context Root
    |
    |---Securities (Model node mapped to my model controller)
    |----|-Ratings (Model node, NO MAPPING BUT IS TYPED WITH THE RFC MODEL CLASS WHICH WAS GENERATED DURING IMPORT, its node elements are generated dynamicall using a supplyFunction).
    Here is what my supplyFunction does.
    Each time the parent lead selection changes my supplyFunction is recalled.
    WDCopyService.copyElements(this.wdThis.wdGetWDSecuritiesController().wdGetContext().nodeT_Secratings(), ratingsNode);
    Initially, ratingsNode will contain all ratings from my ModelController.
    Afterwards I remove those elements which are not associated with my parent security element. My resulting ratingsNode will contain a collection referencing to those model elements in the ModelController which are solely associated with the currently selected security entry. So, changes made by the user will be propaged directly to the model elements.

  • Udev to map multiple entries to *few* *partitioned* devices

    Having read then followed wiki's Using udev to map multiple entries to a device, I cannot yet adapt it for my externel 160GB partitioned HDD.
    Here is what I have :
    - plugged the HDD to my laptop with no other external storage
    - Found its supposed SYSFS{serial} :
    # udevinfo -a -p `udevinfo -q path -n /dev/sda` | grep SYSFS{serial}
    SYSFS{serial}=="DEF1091BE9A1"
    SYSFS{serial}=="0000:00:05.2"
    - Created /etc/udev/rules.d/00.rules with those lines :
    # DD usb
    BUS="usb", SYSFS{serial}="DEF1091BE9A1", KERNEL="sd?", NAME="%k", SYMLINK="ddusb", GROUP="storage"
    BUS="usb", SYSFS{serial}="0000:00:05.2", KERNEL="sd?1", NAME="%k", SYMLINK="ddusb", GROUP="storage
    - Edited /etc/fstab with
    # DD usb
    /dev/ddusb1 /media/ddusb1 ext3 user,exec,noauto 0 0
    /dev/ddusb5 /media/ddusb5 vfat noauto,user,noexec,nodev,nosuid 0 0
    /dev/ddusb6 /media/ddusb6 vfat noauto,user,noexec,nodev,nosuid 0 0
    - checked /etc/group for "usbstorage" which was here with "hal" user, on which I added my main user.
    - Restarted udev.
    Now I found
    /dev/ddusb -> sda1
    , +
    # ls -l /dev/sd*
    brw-rw---- 1 root disk 8, 0 2005-11-25 23:48 /dev/sda
    brw-rw---- 1 root disk 8, 1 2005-11-25 23:48 /dev/sda1
    brw-rw---- 1 root storage 8, 2 2005-11-25 23:48 /dev/sda2
    It seems I haven't finished with Using udev to map multiple entries to a *partitioned* device :?
    Please Archies do you have any ideas or links  :?:

    Thanks for the reply Lanrat. I followed your advice and now I have
    /media/ Mp3-sda1   (Mp3)
    /media/USBHD-sdb1   (Ext HD with multiple partitions)
    /media/ USBHD-sdb2
    /media/ USBHD-sdb3 
    I do have a problem with my USB Memory stck.
    [root@localhost ~]# ls -l /dev|grep sd
    lrwxrwxrwx  1 root root         3 2005-12-20 00:23 USB-sda -> sda
    lrwxrwxrwx  1 root root         4 2005-12-20 00:23 USB-sda1 -> sda1
    lrwxrwxrwx  1 root root         3 2005-12-20 00:23 USB-sdb -> sdb
    lrwxrwxrwx  1 root root         4 2005-12-20 00:23 USB-sdb1 -> sdb1
    lrwxrwxrwx  1 root root         4 2005-12-20 00:23 USB-sdb2 -> sdb2
    lrwxrwxrwx  1 root root         4 2005-12-20 00:23 USB-sdb3 -> sdb3
    lrwxrwxrwx  1 root root         3 2005-12-20 01:17 USB-sdc -> sdc
    brw-rw----  1 root users    8,  0 2005-12-20 00:23 sda
    brw-rw----  1 root users    8,  1 2005-12-20 00:23 sda1
    brw-rw----  1 root users    8, 16 2005-12-20 00:23 sdb
    brw-rw----  1 root users    8, 17 2005-12-20 00:23 sdb1
    brw-rw----  1 root users    8, 18 2005-12-20 00:23 sdb2
    brw-rw----  1 root users    8, 19 2005-12-20 00:23 sdb3
    brw-rw----  1 root users    8, 32 2005-12-20 01:17 sdc
    [root@localhost ~]#
    As you can see  sdc (Memory Stick) doesn't creat /dev/sdc1
    I did copy and paste SYSFS{product}=="Flash Disk      " and make sure the spaces are correct.
    udevinfo -a -p /sys/block/sdc  <====Memory Stick
        BUS=="scsi" <<<<<<<<<<<<<<<<<<<
        ID=="5:0:0:0"
        DRIVER=="sd"
        SYSFS{device_blocked}=="0"
        SYSFS{iocounterbits}=="32"
        SYSFS{iodone_cnt}=="0x19"
        SYSFS{ioerr_cnt}=="0x18"
        SYSFS{iorequest_cnt}=="0x19"
        SYSFS{max_sectors}=="240"
        SYSFS{model}=="Flash Disk      "
        SYSFS{queue_depth}=="1"
        SYSFS{queue_type}=="none"
        SYSFS{rev}=="2.00"
        SYSFS{scsi_level}=="3"
        SYSFS{state}=="running"
        SYSFS{timeout}=="30"
        SYSFS{type}=="0"
        SYSFS{vendor}=="OTi     "
    udevinfo -a -p /sys/block/sda  (Mp3 Player)
        BUS=="usb"
        ID=="1-1.3"
        DRIVER=="usb" <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
        SYSFS{bConfigurationValue}=="1"
        SYSFS{bDeviceClass}=="00"
        SYSFS{bDeviceProtocol}=="00"
        SYSFS{bDeviceSubClass}=="00"
        SYSFS{bMaxPacketSize0}=="64"
        SYSFS{bMaxPower}=="100mA"
        SYSFS{bNumConfigurations}=="1"
        SYSFS{bNumInterfaces}==" 1"
        SYSFS{bcdDevice}=="1001"
        SYSFS{bmAttributes}=="c0"
        SYSFS{configuration}=="USB/MSC LCD Player"
        SYSFS{devnum}=="3"
        SYSFS{idProduct}=="5512"
        SYSFS{idVendor}=="1462"
        SYSFS{manufacturer}=="<USB MF>"
        SYSFS{maxchild}=="0"
        SYSFS{product}=="<USB PRODUCT>   "
        SYSFS{serial}=="0000410536D48894"
        SYSFS{speed}=="12"
        SYSFS{version}==" 1.10"
    I can see there are a lot of rules in udev.rules (Arch Default) for BUS=SCSI but none of the create sdc1.
    could you show me how to incoporate BUS=SCSI to these automounting rules please.
    Thanks
    Ben
    I've put this in the forum as well
    ==================================================================================
    KERNEL=="sd[a-z]", NAME="%k", SYMLINK+="USB-%k", GROUP="users", OPTIONS="last_rule"
    ACTION=="add", KERNEL=="sd[a-z][0-9]", SYMLINK+="USB-%k", GROUP="users", NAME="%k"
    #ACTION=="add", KERNEL=="sd[a-z][0-9]", RUN+="/bin/mkdir -p /media/USB-%k"
    #New Rules Product Specific
    ACTION=="add", KERNEL=="sd[a-z][0-9]", SYSFS{product}=="<USB PRODUCT>   ", RUN+="/bin/mkdir -p /media/Mp3-%k"
    ACTION=="add", KERNEL=="sd[a-z][0-9]", SYSFS{product}=="Flash Disk      ", RUN+="/bin/mkdir -p /media/USBKey-%k"
    ACTION=="add", KERNEL=="sd[a-z][0-9]", SYSFS{product}=="USB TO IDE", RUN+="/bin/mkdir -p /media/USBHD-%k"
    ACTION=="add", KERNEL=="sd[a-z][0-9]", RUN+="/bin/ln -s /media/Mp3-%k /mnt/Mp3-%k"
    ACTION=="add", KERNEL=="sd[a-z][0-9]", PROGRAM=="/sbin/vol_id -t %N", RESULT=="vfat", RUN+="/bin/mount -t vfat -o rw,noauto,sync,dirsync,noexec,nodev,noatime,dmask=000,fmask=111 /dev/%k /media/Mp3-%k"
    ACTION=="add", KERNEL=="sd[a-z][0-9]", RUN+="/bin/mount -t auto -o rw,noauto,sync,dirsync,noexec,nodev,noatime /dev/%k /media/Mp3-%k"
    ACTION=="remove", KERNEL=="sd[a-z][0-9]", RUN+="/bin/rm -f /mnt/Mp3-%k"
    ACTION=="remove", KERNEL=="sd[a-z][0-9]", RUN+="/bin/umount -l /media/Mp3-%k"
    ACTION=="remove", KERNEL=="sd[a-z][0-9]", RUN+="/bin/rmdir /media/Mp3-%k"
    ACTION=="add", KERNEL=="sd[a-z][0-9]", RUN+="/bin/ln -s /media/USBKey-%k /mnt/USBKey-%k"
    ACTION=="add", KERNEL=="sd[a-z][0-9]", PROGRAM=="/sbin/vol_id -t %N", RESULT=="vfat", RUN+="/bin/mount -t vfat -o rw,noauto,sync,dirsync,noexec,nodev,noatime,dmask=000,fmask=111 /dev/%k /media/USBKey-%k"
    ACTION=="add", KERNEL=="sd[a-z][0-9]", RUN+="/bin/mount -t auto -o rw,noauto,sync,dirsync,noexec,nodev,noatime /dev/%k /media/USBKey-%k"
    ACTION=="remove", KERNEL=="sd[a-z][0-9]", RUN+="/bin/rm -f /mnt/USBKey-%k"
    ACTION=="remove", KERNEL=="sd[a-z][0-9]", RUN+="/bin/umount -l /media/USBKey-%k"
    ACTION=="remove", KERNEL=="sd[a-z][0-9]", RUN+="/bin/rmdir /media/USBKey-%k"
    ACTION=="add", KERNEL=="sd[a-z][0-9]", RUN+="/bin/ln -s /media/USBHD-%k /mnt/USBHD-%k"
    ACTION=="add", KERNEL=="sd[a-z][0-9]", PROGRAM=="/sbin/vol_id -t %N", RESULT=="vfat", RUN+="/bin/mount -t vfat -o rw,noauto,sync,dirsync,noexec,nodev,noatime,dmask=000,fmask=111 /dev/%k /media/USBHD-%k", OPTIONS="last_rule"
    ACTION=="add", KERNEL=="sd[a-z][0-9]", RUN+="/bin/mount -t auto -o rw,noauto,sync,dirsync,noexec,nodev,noatime /dev/%k /media/USBHD-%k", OPTIONS="last_rule"
    ACTION=="remove", KERNEL=="sd[a-z][0-9]", RUN+="/bin/rm -f /mnt/USBHD-%k"
    ACTION=="remove", KERNEL=="sd[a-z][0-9]", RUN+="/bin/umount -l /media/USBHD-%k"
    ACTION=="remove", KERNEL=="sd[a-z][0-9]", RUN+="/bin/rmdir /media/USBHD-%k", OPTIONS="last_rule"

  • Have Multiple entries in Fnd_nodes..Please suggest

    Hi,
    I have multiple entries in the production fnd_nodes table. Please suggest if its ok to have below mentioned entries. Please suggest the possible steps if we need to clean it up.
    The environment is single instance and on 11.5.10.2 on IBM AIX OS.
    From FND_NODES
    Node_name     Description
    ==========================================
    <ProdInst_Name>     (null)     
    AUTHENTICATION     Authentication Value     
    Thanks a lot for the help.
    Hari

    The reason I was ambiguous about these entries is, our Test,QA,Dev instances fnd_nodes table have these 2 entries (mentioned above in this thread) plus their respective Instance entries. This raised a doubt, do we need to have only 1 entry i.e. entry of the respective instance in this table or is it OK to have other values like AUTHENTICATION, other instance information in this table.You should have more than one entry in this table, one for AUTHENTICATION and one for each database/application tier node.
    Also, I see continuous error messages in Prod concurrent manager log as indicated below. I Read in one of the articles to check for fnd_nodes having multiple entires might be a reason for below error messages. Thats why I wanted to check with you all, to see if there is any thing needs to be done to avoid future issues. BTW,The instance is working great...Just that I am concerned with CMLog having these error messages populating all the time...
    Would highly appreciate your helpTo make sure you have proper entries, please purge FND_NODES table and run AutoConfig on each tier node.
    How to get a clean Autoconfig Environment ? [ID 391406.1]
    How to Clean Nonexistent Nodes or IP Addresses From FND_NODES [ID 260887.1]
    CM Log sample error message info
    ===========================
    Process monitor session started : 10-JUN-2012 07:28:52
    CONC-SM TNS FAIL
    Call to PingProcess failed for FNDOPP
    CONC-SM TNS FAIL
    Call to StopProcess failed for FNDOPP
    Process monitor session ended : 10-JUN-2012 07:28:54
    ================================Those errors are related to OPP -- Please see these docs.
    Concurrent Processing - ICM log file shows 'CONC-SM TNS FAIL', 'Call to PingProcess failed', and/or 'Call to StopProcess failed' for FNDCPGSC/FNDOPP [ID 1312632.1]
    Mails are not Received Using Delivery Option while Submitting Concurrent Request In R12.1.3 [ID 1339491.1]
    Thanks,
    Hussein

  • Invalidate concept for value node and model node

    Hello everybody,
    We have invalidate method for value node and model node.
    I want to know basic concept behind this method.
    What this method acually does?
    Regards,
    Bhavik

    Hi Pran and all,
    I figured out the problem. Input parameters are going multple times. So, depending upon that it gives multiple values.
    My scenario is:
    Root Node
    |_ Input_node1
         |_Attr1
    |_ Input_Node2
         |_Attr2
    |_Output_node
         |_Result
    I am passing values in Attr1 and Attr2 attributes.
    For this, first of all, i wrote following code.
    In controller, i have initialized Root node:
    Root_Node model = new Root_Node();
    wdcontext.nodeRoot_Node().bind(model);
    In view, I set values for attr1 and attr2 using following code:
    Ipublic<View>.IInput_node1Element ele = wdcontext.createInput_node1Element();
    ele.setAttr1("<value>");
    wdcontext.nodeInput_node1().addElement(ele);
    Ipublic<View>.IInput_node2Element ele1 = wdcontext.createInput_node2Element();
    ele1.setAttr2("<value>");
    wdcontext.nodeInput_node2().addElement(ele);
    But this code didnt work. Model was executed without data in this case.
    So, i thought that these elements were created at view level only. And corresponding model objects were not created.
    So, I have changed code like following way:
    I have removed initialization code for Input_Node1 and Input_Node2 from view. Now, I am getting input values in two different value nodes. And before calling custom controller's method to execute model, I am making two ArrayLists and filling data in it. Now, i am passing these ArrayList objects as parameters to controller's method.
    In this method, i am setting both values as follows:
    wdcontext.currentRoot_NodeElement().modelObject().setInput_Node1(List1); 
    wdcontext.currentRoot_NodeElement().modelObject().setInput_Node2(List2); 
    Then i am executing my model.
    But, When i am setting values for Input_Node1 and Input_Node2 as shown above, values are appended instead of overwritting the value. Because of this appended values, it gives mupltiple results.
    Means, Both ways are not proper. What should be the proper and best way to pass values in this case?
    Thanks,
    Bhavik

  • Creation of new element in Model Node

    Dear All,
    I am facing one problem, I have two  model node. I want to copy one model node to other model node.while copying its giving error saying the you can bind the element, coz target node doesn't have valid parent.
    Pl don't suggest me work on Value node.
    Can i create a element in model node at run time.
    Thanks & Regards
    Manoj Sahoo

    Hi Manoj,
                   Model node properties :
    1.A context model node makes a model object look like any other context node.  I.E. it gives the model object an API that is very similar to a value node.
    2.  A model node is not considered valid until it is bound to a corresponding model object.  Therefore, a model node always inherits its metadata from the model object to which it is bound.
    3. The element collection in a model node does not hold the actual runtime data!   Instead, it holds a list of references to the relevant model object instances.
    If u check the 2nd property, u will find the cause of ur exception. As u have already told, don't suggest to use value nodes, i don't have any other comment.
    regards
    Sumit

  • Data in the cube is showing multiple entries when compared with ODS

    Hello BW Gurus,
    We have a waste report in production planning on Cube and ODS separately. The same info package loads both targets (which means same infosource) but when we run a report on Cube, the records are showing multiple entries (i.e. Key Figures are not matching when compared to ODS) where as the ODS records are showing correctly as it was in R/3. There are totally 6 key figures out of which 4 pulled from R/3 and 2 are populated in BW.
    An Example:
    Waste report in PP run for plant 1000 for 12/2005 and process order 123456. The operational scrap should be 2.46% and the component scrap should be 3.00% for material 10000000. The report is showing 7.87% for planned operational waste % and 9.6% for planned component waste %. These values are not correct. The ODS values for order 123456 matched the data in R/3 for component and operational scrap.
    There is a Start routine to the ODS and also to the cube. I am not good at ABAP so requesting your Help.
    Here is the ODS Code:
    tables: /BI0/PPRODORDER.
    loop at data_package.
    select single COORD_TYPE
    PRODVERS
    into (/BI0/PPRODORDER-COORD_TYPE,
    /BI0/PPRODORDER-PRODVERS)
    from /BI0/PPRODORDER
    where PRODORDER = data_package-PRODORDER
    and OBJVERS = 'A'.
    if sy-subrc = 0.
    if /BI0/PPRODORDER-COORD_TYPE = 'XXXX'
    or /BI0/PPRODORDER-COORD_TYPE = 'YYYY'.
    data_package-PRODVERS = space.
    else.
    data_package-PRODVERS = /BI0/PPRODORDER-PRODVERS.
    endif.
    endif.
    if data_package-calday = space
    or data_package-calday = '00000000'.
    if data_package-TGTCONSQTY NE 0.
    data_package-calday = data_package-ACTRELDATE.
    endif.
    endif.
    modify data_package.
    endloop.
    Here is Cube Code:
    tables: /BI0/PPRODORDER,
    /BIC/ODS.
    TYPES:
    BEGIN OF ys_mat_unit,
    material TYPE /bi0/oimaterial,
    mat_unit TYPE /bi0/oimat_unit,
    numerator TYPE /bi0/oinumerator,
    denomintr TYPE /bi0/oidenomintr,
    END OF ys_mat_unit.
    DATA:
    l_s_mat_unit TYPE ys_mat_unit,
    e_factor type p decimals 5.
    loop at data_package.
    select single COORD_TYPE
    PRODVERS
    into (/BI0/PPRODORDER-COORD_TYPE,
    /BI0/PPRODORDER-PRODVERS)
    from /BI0/PPRODORDER
    where PRODORDER = data_package-PRODORDER
    and OBJVERS = 'A'.
    if sy-subrc = 0.
    if /BI0/PPRODORDER-COORD_TYPE = 'XXX'
    or /BI0/PPRODORDER-COORD_TYPE = 'YYY'.
    data_package-PRODVERS = space.
    else.
    data_package-PRODVERS = /BI0/PPRODORDER-PRODVERS.
    endif.
    endif.
    if data_package-calday = space
    or data_package-calday = '00000000'.
    if data_package-TGTCONSQTY NE 0.
    data_package-calday = data_package-ACTRELDATE.
    endif.
    endif.
    data_package-agsu = 'GSU'.
    data_package-agsu_qty = 0.
    select single gr_qty
    base_uom
    into (/BIC/ODS-gr_qty,
    /BIC/ODS-base_uom)
    from /BIC/ODS
    where prodorder = data_package-prodorder
    and material = data_package-material.
    if sy-subrc = 0.
    if /BIC/ODS-base_uom = 'GSU'.
    data_package-agsu_qty = /BIC/ODS-gr_qty.
    else.
    SELECT SINGLE * FROM /bi0/pmat_unit
    INTO CORRESPONDING FIELDS OF l_s_mat_unit
    WHERE material = data_package-material
    AND mat_unit = 'GSU'
    AND objvers = 'A'.
    IF sy-subrc = 0.
    IF l_s_mat_unit-denomintr <> 0.
    e_factor = l_s_mat_unit-denomintr /
    l_s_mat_unit-numerator.
    multiply /BIC/ODS-gr_qty by e_factor.
    data_package-agsu_qty = /BIC/ODS-gr_qty.
    ENDIF.
    else.
    CALL FUNCTION 'UNIT_CONVERSION_SIMPLE'
    EXPORTING
    INPUT = /BIC/ODS-gr_qty
    NO_TYPE_CHECK = 'X'
    ROUND_SIGN = ' '
    UNIT_IN = /BIC/ODS-base_uom
    UNIT_OUT = 'GSU'
    IMPORTING
    OUTPUT = DATA_PACKAGE-gsu_qty
    EXCEPTIONS
    CONVERSION_NOT_FOUND = 1
    DIVISION_BY_ZERO = 2
    INPUT_INVALID = 3
    OUTPUT_INVALID = 4
    OVERFLOW = 5
    TYPE_INVALID = 6
    UNITS_MISSING = 7
    UNIT_IN_NOT_FOUND = 8
    UNIT_OUT_NOT_FOUND = 9
    OTHERS = 10.
    endif.
    endif.
    endif.
    modify data_package.
    endloop.
    some how the AGSU qyt is not populating in the cube and when I dbug the code, I could see a clean record in the internal table but not in the cube.
    your suggestion and solutions would be highly appreciated.
    thanks,
    Swathi.

    Hi Swathi
    In ODs we have option of overwriting and addition however in Cube we have only adition.Thats why you are getting multiple enteries.
    If you are running daily full load on the cube then please delete the earlier requests.
    So at one point of time there should be only one full load request in cube. Hope this will solve your problem.
    Regards,
    Monika

  • Can I combine multiple entries into a single statement?

    I am relatively new to Live Cycle so forgive my lack of technical wording.
    I would like to use multiple entry fields to fill in a statement.
    For example:
    I'd like the user to see this:
    Target Dropdown     Endo Dropdown     Type Dropdown     Version # Entry     Date 1 Entry     Date 2 Entry
    and then have the form merge all that together into a line that looks like this:
    RS_(target)_(endo)_(type)\(version)_(date)_(date)
    Preferably without repeating information on the page as we'll have multiple of these entries and the page will get hectic quick.
    Is this possible?
    I first had each dropdown in individual table fields, but due to regulations we follow the entries need to be merged without spaces.
    I always have a backup if this can't be done, but any help is appreciated.

    Not sure where you're sending it, but if you have a global variable named "bob".
    bob.value = "RS_"+target.rawValue+"_"+endo.rawValue+"_"+type.rawValue+"\"+version.rawValue+"_"+date.r awValue+"_"+date2.rawValue;
    Something like that should work.

  • Need help to read model node input field attribute present in view - first time developer.

    Hello Experts,
    I am new to CRM Web UI development.
    Presently, I am trying to develop a Guided Activity Page having 2 views.
    First view has the field Business Partner Number, I have added model Node BuilHeader and the attribute BP_NUMBER while creation of the view.
    The Second View consists of 2 fields from the Model Node BuilHeader, namely First Name and Last Name.
    The requirement is to enter the BP Number on the first screen then click on the NEXT button from the Guided Activity buttons, on navigating to the Second View, the Names should auto-populate.
    I have Created both views and the GP page, the GP navigation is also happening. Initially the fields were showing Not Bound text in value, so I commented the line in GET_I and GET methods to enable the field and remove the Not Bound text. I have created a custom controller with BuilHeader
    I have tried doing this but facing the below problems :
    1) When I enter the BP number on the first view and press Enter, the value disappears. How to solve this ?
    2) Does clicking on the NEXT button on the GP Navigation trigger a Server Roundtrip ?
    3) How to read the context node value of BP Number entered on the first view and populate the Name fields on the second view.
    Please help.........

    you can take reference from from below code as in above case we use BuilHeaderAdvancedSearch search object, to get current entity.
    data:    query        TYPE REF TO cl_crm_bol_dquery_service,.
      query ?= me->typed_context->BuilHeaderAdvancedSearch->collection_wrapper->get_current( ).
    Do not remove code from getter setter of fields , it will not clear.
    Check with http://scn.sap.com/thread/3391203 , for basic understanding of UI.
    Regards,
    Harish Kumar

Maybe you are looking for

  • Problem of communication with compactrio

    Hello, I am working with a compactrio 9014 and labview 8.5 I have a problem of communication with my compactrio. I acquire sound with NI 9215 and transmit points from the fpga VI to the VI on the real time target at a rate of 10Khz. On the VI on the

  • Retrieve List Items based on condition in Where Clause

    Hello Experts,  I am trying to retrieve list items from a list (CityList)  which contains 2 columns one is city(string) and State(Lookup) based on Lookup value, but i am getting all city names. here is my query below. function MainFunction() {      

  • How do you activate full screen mode in safari on ipad ios7???!!!!

    I've spent an hour trying to figure this out!!!!! It's working well on my iPhone but not on ipad!! Please help!

  • Is anyone else having problems with Discounts

    When I got my plan 3 years ago they told me I had a discount with my job. I received an email to renew my discount and it wouldn't let me upload my check stub at work, so I went to the store. The lady there told me everything was good the discount wa

  • Installing ML on SL at work

    I have a 2007 MBP 3,1 that my boss "loaned" me for work.  It is running SL 10.6.8.  I have a 2011 MBA at home that is running ML 10.8.1.  I really love ML (never used SL until now).  I'm logged into the work computer with my apple ID.  If I update it