Not getting attribute values in IPC routines Scenerio R/3 B2B using AP 7.0

Hi,
Our Scenerio is using ISA R/3 B2B using AP 7.0. I have developed IPC routines but when i debug my routines in SM53 I notice that I'm not getting any attribute value except for VKORG.
I'm pasting the code below. Please help me if I have to implement some BADI or do something more to get the attribute values.
I have defined the attributes properly in Routine assignment in tcode /n/sapcnd/ueass
userexitlogger.writeLogDebug("*requirment 901*" + "Plant = "plant"||ANZ_MONATE ="+ item.getAttributeValue(ANZ_MONATE_STR).toString()"||ANZ_JAHRE="item.getAttributeValue(ANZ_JAHRE_STR).toString()"||MATKL="item.getAttributeValue(MATKL_STR).toString()"||PSTYV="item.getAttributeValue(PSTYV_STR).toString()"||VKORG="item.getAttributeValue(VKORG_STR)"||PRSFD="item.getAttributeValue(PRSFD_STR)"||MVGR2="item.getAttributeValue(MVGR2_STR).toString()"||PRSDT="item.getAttributeValue(PRSDT_STR).toString()"||AUDAT="item.getAttributeValue(AUDAT_STR).toString());
I would reward points for help
Many Thanks n regards,
Dipender

I would like to go through each Value of the xml file and give each Value a name
e.g. from the xml file <VentCount Value=1> Retreive the value above and giving it the name VentCount. Then I would beable to use the name vent count as follows:
setVentCount() //My own method can use as follows: setVentCount(VentCount); I would like to do his for ever value, each value with a specific name

Similar Messages

  • How to get attribute value of a node

    Hi experts
    I have a mapped node in my view context from component controller context. This node consists of 2 value attributes inside
    Example:
    NODE1             -
    > Cardinality 1..1, seleciton 1..1
       -- x_date         -
    > type DATS
       -- x_years        -
    > dec3
    How do I get the attribute value attr1 and attr2 ??
    Here is my code in my view method
      DATA: lr_node_info TYPE REF TO if_wd_context_node_info,
            l_date       TYPE dats,
            l_xyears     TYPE i.
      lr_node_info = wd_context->get_node_info( ).
      lr_node_info = lr_node_info->get_child_node('NODE1').
       l_date       = lr_node_info->get_attribute( name = 'X_DATE' ).
       l_xyears     = lr_node_info->get_attribute( name = 'X_YEARS' ).
    It does not seems to work since it says < the result type of the function method can not be converted into the result type L_DATE>
    I try to understand why but not sucessful, please help and thank you for your kindness

    Hi Dean,
    Regading uour problem of reading the attributes value of the context node, you have to  use the code wizard. that ia avaliable on the top toolbar when you are inside the View Method
    There is option to read context  select that radio button option and then thru F4 help
    if you can select the node then Code is automatically generated with variable declaration.!!
    Like this :
      DATA lo_nd_node1 TYPE REF TO if_wd_context_node.
        DATA lo_el_node1 TYPE REF TO if_wd_context_element.
        DATA ls_node1 TYPE wd_this->element_node1.
        DATA lv_x_date LIKE ls_node1-x_date.
        DATA lv_x_year LIKE ls_node1-x_year.   
      navigate from <CONTEXT> to <NODE1> via lead selection
        lo_nd_node1 = wd_context->get_child_node( name = wd_this->wdctx_node1 ).
      get element via lead selection
        lo_el_node1 = lo_nd_node1->get_element(  ).
      get all declared attributes
        lo_el_node1->get_static_attributes(
          IMPORTING
            static_attributes = ls_node1 ).
        lv_x_date = ls_node1-x_date.
        lv_x_date = ls_noe1-x_year.
    if you can select the attribute then Code is automatically generated with variable declaration.!!
    DATA lo_nd_node1 TYPE REF TO if_wd_context_node.
      DATA lo_el_node1 TYPE REF TO if_wd_context_element.
      DATA ls_node1 TYPE wd_this->element_node1.
      DATA lv_x_date LIKE ls_node1-x_date.
    navigate from <CONTEXT> to <NODE1> via lead selection
      lo_nd_node1 = wd_context->get_child_node( name = wd_this->wdctx_node1 ).
    get element via lead selection
      lo_el_node1 = lo_nd_node1->get_element(  ).
    get single attribute
      lo_el_node1->get_attribute(
        EXPORTING
          name =  `X_DATE`
        IMPORTING
          value = lv_x_date ).
    Hopes this will helps you.
    Regard
    Manoj Kumar

  • Not getting any value in my method

    Hi,
            I wnat to use  attributes value Company code in my custom method in the BUS ZZBUS2081 . company code is key field of another BUS  BUS0002. For that I am using  swc_get_element CONTAINER 'CompanyCode' COMPANYCODE. but when I am executing BUS zzbus2081,attributes value is populated but i am not getting this value in my custom method. please help.

    You can try to do some thing like this
    1. First if you want to access the key element of the BOR then first import the instantiated BOR from which you want to access the attributes.
      In your case it is BUS0002
    DATA:    lv_obj    type swc_object.
    swc_get_element container '<name of the instantiated BOR>' lv_obj.
    2.once you have the instantited bor element in the Mehtod then make use of the macro
    SWC_GET_PROPERTY
    please check the below snippet
    swc_get_element  container     '_Workitem'          lv_wi_object.
    swc_get_property lv_wi_object  'Workitemid'         lv_wiid.

  • How to get attribute value from standard page ?

    Hi,
    How to get attribute value from standard page ?
    String str = (String)vo.getCurrentRow().getAttrbute("RunId");
    But this value is returning a null value ....
    Can anyone help me to get this attribute value which is actually having a actual value .

    getCurrentRow() would always return null if no setCurrentRow() is used.
    Please check the page design and understand how many rows of VO are there. You can also use the following to get the row:
    vo.reset();
    vo.next();
    Regards
    Sumit

  • Not getting field value in Input field of field exit

    Hi all
       I  am using field exit for data element GWLDT in transaction code IE02. But in this field exit I am not getting the value entered in the field "Begin guarantee date(GWLDT)" in the INPUT field of field exit.How I can get the value in the INPUT field of field exit?
    Regards
    Deepak

    Use this statement in source code.
    output = input.

  • JPA Error:Could not get a value to be injected from the factory

    HI friends ,
    I am  trying to replicate the example JPAEXample01 using JPA in CE1 from  the blogs written by
    Sabine Heider/Adrian Görler.
    During the testing of the method create employee i am getting the following error.
    "Could not get a value to be injected from the factory."
    I tried couple of examples using the above process, still held up with same error.
    Any pointers to trouble shoot this ?
    Thanks in advance
    Chandra Dasari

    HI Isaias Cristiano Barroso,
    There are lot of enries most of them pertaining to properties set to yes or no.
    out of which therre are tow errors. the log is as follows
    Message Info: Failed (javax.management.MBeanPermission,#[:j2eeType=trace,name=EndToEndCentralMBean,],isActive,getGuidByName,getTraceLevelByName,getTraceLevelByName,importTrace,isFileExistsLocally,removeTraceFile)java.lang.reflect.InvocationTargetException
    Failed (javax.management.MBeanPermission,*,DISPLAY)java.lang.reflect.InvocationTargetException
    category: com.sap.security.core.role.PermissionData
    Location:com.sap.security.core.role.PermissionData.get(ClassLoader)
    Frankly the above log is above my understanding ,Prob it may help to you undertand my the issue
    Thanks once again

  • JAPEXample01 published in sdn:error Could not get a value to be injected

    HI friends ,
    I am  trying to replicate the example JPAEXample01 using JPA in CE1 from  the blogs written by
    Sabine Heider/Adrian Görler.
    During the testing of the method create employee i am getting the following error.
    "Could not get a value to be injected from the factory."
    I tried couple of examples using the above process, still held up with same error.
    Any pointers to trouble shoot this ?
    Thanks in advance
    Chandra Dasari.

    HI Pritya Ranjan,
    Let me know the entities  and their relations ships you are using for quicker response.
    To know the proper error, use the path as mentioned
    nwa->problem management ->logs & traces->locks.
    Email the error code,
    The issue might be because of some many probabilities mentioned below.
    Point no 1
    Are you using Named queries  : If so check the queries syntax, the syntax used here is different from regulat sql queries.
    Point no 2:
    Are you using Java DIctionary  or generic  db and connecting to max db?
    check this part also
    Point no 3:
    Check your connection profile parameters:
    Point no 4 :
    Check the data-source-alias,persistence.xml and data-source.xml parameters..
    Beacuse i trouble shooted a lot on JPA's and found why the typical error's occurs.
    Regards
    chandra dasari

  • I can not get link-value  from af:tree.

    Hello.
    I use jdeveloper 10g.
    I can not get link-value from tree.
    I use following code:
    <f:facet name="nodeStamp">
    <h:panelGroup binding="#{backing_dialogDic_dic_ETS.panelGroup1}"
    id="panelGroup1">
    <h:outputText value="#{item.vidNum} #{item.vidName}"
    binding="#{backing_dialogDic_dic_ETS.outputText1}"
    id="outputText1"/>
    <af:commandLink
    binding="#{backing_dialogDic_dic_ETS.commandLink2}"
    id="commandLink2"
    action="#{backing_dialogDic_dic_ETS.returnObject}">
    <af:setActionListener from="#{item.idVid}"
    to="#{processScope.ETSId}"/>
    <af:objectImage source="/images/icons/10.gif"
    shortDesc="Выбрать"
    binding="#{backing_dialogDic_dic_ETS.objectImage2}"
    id="objectImage2"/>
    </af:commandLink>
    </h:panelGroup>
    </f:facet>
    </af:tree>
    //in java bean:
    public String return_Object() {
    Object ob = JSFUtils.getManagedBeanValue("processScope.ETSId");
    System.out.println(o);
    return null;
    In console I see null.
    How I get this value???
    I can get this value if i use treeTable instead of tree.
    Thx, Dema.

    Hi,
    not that I think it matters, but the processScope is not a managed bean but a memory scope. So if
    JSFUtils.getManagedBeanValue("processScope.ETSId");
    assumes a managed bean then this may be incorrect as most likely there exist no managed bean with this name. You should be able to access the process scope from AdfFacesContext.getProcessScope(), which then returns a Map, which you call get("ETSId") on
    Frank

  • Object - MLST_NETW container not getting the values?

    Hi,
    I created a custom FM for the object -  MLST_NETW and event STARTED 
    and in the workflow container  I created Element for this object - by selecting Obect type  - MLST_NETW
    Now the problem is - When we do status change in tcode - CJ20N it is triggering the custom worklfow but in the worklfow container it is not getting any values.  Container fields are empty.  I need to get the project defination field value to the workflow.
    Can any one tell me what could be wrong?
    Thanks in advance.
    M.

    Hi Murali,
    Yes. Binding for event to workflow not defined.
    For that, press Ctrl + F8 in the workflow template then it will take you to verision dependent tab. There you can find the start events tab.
    Here only you entered the Business object and event. Right? So there one button is there for binding. CLick on it and check whether event to workflow binding has done or not.
    Event container EVT_OBJTYPE should binded with your workflow business object.
    Thanks.

  • OWHS table not getting any value in PLD

    I am trying to make a pld in which i want to pull the database table owhs and place the warehouse address i am not getting any value in the PLD however there is adress in the ware house field still its not getting me any result
    Please help
    Regards,
    manish

    Hi Manish....
    Even if you get the OWHS table you wont get the address format as you desire. That is complete concatenated address. It will be like city, street, country like that.....
    Regards,
    Rahul

  • I'm fairly new to Mac, just got the iWeb program, I dont have and can not get a Mobile Me account, does this mean I can use iWeb?

    I'm fairly new to Mac, just got the iWeb program, I dont have and can not get a Mobile Me account, does this mean I cant use iWeb?

    iWeb gives you two other options for publishing...
    http://www.iwebformusicians.com/iWeb/Publish-Website.html
    "I may receive some form of compensation, financial or otherwise, from my recommendation or link."

  • JAXB: not able to get Attribute value

    Hi there,
    I am using oracle JAXB for XML processing. I am not able to get the value of an attribute. I ran the same code in SUN JWSDP 1.3, which worked correctly. I am not able to get the "foo" attribute for <Table> element using oracle JAXB.
    The XML schema follows:
    <?xml version='1.0' encoding='UTF-8' ?>
    <schema targetNamespace="http://www.oracle.com/iAS/aggregator"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
    xmlns:ag="http://www.oracle.com/iAS/aggregator"
    xmlns="http://www.w3.org/2001/XMLSchema"
    jaxb:version="1.0"
    elementFormDefault="qualified">
    <annotation>
    <appinfo>
    <jaxb:globalBindings fixedAttributeAsConstantProperty="true"
    />
    <jaxb:schemaBindings>
    <jaxb:package name="oracle.dms.aggregator.adml"/>
    </jaxb:schemaBindings>
    </appinfo>
    </annotation>
    <complexType name="Adml_T">
    <sequence>
    <element name="Table" type="ag:Table_T" minOccurs="0" maxOccurs="unbounded"/>
    </sequence>
    <attribute name="Version" type="token" fixed="10.1.3"/>
    </complexType> <!-- Adml -->
    <complexType name="Table_T">
    <attribute name="foo" type="Name"/>
    </complexType> <!-- Table -->
    <element name="Adml" type="ag:Adml_T"/>
    </schema>
    The XML file is:
    <?xml version='1.0' encoding='UTF-8' ?>
    <Adml xmlns="http://www.oracle.com/iAS/aggregator">
    <Table foo="foosailor">
    </Table>
    </Adml>
    The java file is:
    import javax.xml.bind.JAXBContext;
    import javax.xml.bind.Unmarshaller;
    import java.io.File;
    import java.util.List;
    import java.util.Iterator;
    import oracle.dms.aggregator.adml.Adml;
    import oracle.dms.aggregator.adml.TableT;
    public class JaxbQA
    public static void main (String[] args)
    throws Exception
    Adml adml;
    String fileName = "aggregator.xml";
    String instancePath = "oracle.dms.aggregator.adml";
    JAXBContext jc = JAXBContext.newInstance(instancePath);
    Unmarshaller u = jc.createUnmarshaller();
    u.setValidating(true);
    Object obj = u.unmarshal(new File(fileName));
    adml = (Adml)obj;
    List tables = adml.getTable();
    for (Iterator iter = tables.iterator();
    iter.hasNext();)
    TableT admlTable = (TableT)iter.next();
    String name = admlTable.getFoo();
    System.err.println("table foo=" + name);
    c:\oracle\jdk\bin\java.exe -classpath .;c:\oracle\xdk\lib\xmlparserv2.jar;c:\oracle\xdk\lib\xml.jar JaxbQA
    table foo=null

    I tested in both 10.1.0.2.0 and 10.1.0.3, which both showed the same problem. A bug #3621204 has been filed.

  • Could not getting field values from form

    hi,
    hellow, can you help me for solving the bellow problem
    i have form its enctype attribute of form tag is setted as multipart/form-data. when i am submiting this form, i call a request.getParameter(); in the submitting jsp file. But for any controls such as text,checkbox,select box etc could not get its corresponding value.

    Its obvious why its not picking up the change in the second action.
    Lets see...
    Here is your case I
    You get the populated form which is also put in the request with updated value from the JSP....
    (1)
    protected Forward updateGoalObjective(GoalsForm form)
    form.setGoalId(44); //int field set to 44
    return new Forward("success");
    You set one of the fields some other value....in one but how will the second action know about it???
    You try to execute the second action and the action grabs the form from the request again. This is the original form submitted by the JSP so you still see that value...
    You will have to pass in the customized or processed form for the form to be able to get it...
    protected Forward showGoal(GoalsForm form)
    System.out.println(form.getGoalId()); //prints 68
    return new Forward("success");
    In your second case you create a new form...why would you want to do that if you have a form value being set in JSP??
    The answer is you should be doing something Like this:
    * @jpf:action form="goalsForm"
    * @jpf:forward name="success" path="showGoal.do"
    protected Forward updateGoalObjective(GoalsForm form)
    //other code
    form.setGoalId(44); //int field set to 44
    return new Forward("success", form);
    * @jpf:action form="goalsForm"
    * @jpf:forward name="success" path="Goal.jsp"
    protected Forward showGoal(GoalsForm form)
    System.out.println(form.getGoalId()); //prints 68
    return new Forward("success");
    }

  • NullPointerException getting attribute value

    Hi friends,
    Apps R12.
    In Projects Setup screen , I've extended both CO and AM (TabSetupLayoutCo and TabSetupAMImpl) to xxTbSetupLayoutCO and xxTabSetupAMImpl.
    In the page, there's a VO (visible for the AM) that contains Project Information: ProjectBasicInfoVO.
    In the AM , I want to get the value of attribute ProjectStatusCode (It's in ProjectBasicInfoVO)
    So I do:
    (myprocedure is called from CO)
    public String myprocedure(){
    ProjectBasicInfoVOImpl projectbasicinfovoimpl = (ProjectBasicInfoVOImpl) findViewObject("ProjectBasicInfoVO");
    ProjectBasicInfoVORowImpl projectrow = (ProjectBasicInfoVORowImpl)projectbasicinfovoimpl.getCurrentRow(); //this works, it shows current Project previously searched
    String pProjectStatusCode;
    pProjectStatusCode = projectrow.getProjectStatusCode(); // <<--------- THIS DOES NOT WORK . Line 45 of xxTabSetupAMImpl
    Error that appears is :
    java.lang.NullPointerException
    *     at mycomp.oracle.apps.pa.setup.server.xxTabSetupAMImpl.rendersubmitprocedure(xxTabSetupAMImpl.java:45)*
    getProjectStatusCode exists in xxProjectBasicInfoVORowImpl
    public String getProjectStatusCode() {
    return (String) getAttributeInternal("ProjectStatusCode");
    And attribute ProjectStatusCode exists in the VO
    So.. how could I get this info?
    Thanks for any help
    Regards,
    Jose.

    Hi John,
    How to enable log in R12?Since there is no Jserv as in 11i, there is no more dependency on jserv.properties file for enabling of log.Here are the details how to enable log on R12:
    In R12,
    Goto $ORA_CONFIG_HOME/10.1.3/opmn/conf
    take the backup of opmn.xml
    edit opmn.xml for data id="java-options" and add the following:
    -DAFLOG_ENABLED=true -DAFLOG_LEVEL=statement
    -DAFLOG_MODULE=fnd%
    -DAFLOG_FILENAME=/tmp/aflog.txt -Djbo.debugoutput=console
    The log message should get written in,
    $INST_TOP/logs/ora/10.1.3/opmn/oacore_default_group_1/oacorestd.out
    Please refer to http://mukx.blogspot.com/
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to get attribute value from an object inside an object in Xpress

    Does anyone know how to get an attribute value from an object in Xpress in a workflow? I have an object structured as follows:
    <ResourceInfo accountId='mj628' tempId='3483372b787ce7dd:-5d99a0c5:130cb238483:-3600'>
    <ObjectRef type='Resource' name='Google Apps'/>
    </ResourceInfo>
    I need if possible to get the name='Google Apps', which is inside the ObjectRef, so I guess its an attribute value of an object inside an object.

    If the ResourceInfo object is accessible in a variable, i.e. named "myResInfo", you just have to check the Java API and call the relevant method:
    <invoke name='getResourceName'>
      <ref>myResInfo</ref>
    </invoke>

Maybe you are looking for

  • Need recomendation - best WIFI card?

    Hey guys, I have a question, I want to add my Power Mac to my network (wifi) at work. Currently it is the last one without wireless. But its kinda out of the way, which is the best wireless card? Should I just use the original Airport card that it ta

  • We have PI-7.0 but our client requires work on XI-3.0.

    we have PI-7.0 but our client requires work on XI-3.0. is it possible to transfer objects in PI-7 TO XI-3.0 and is it ok to work on PI-7.0 insted of XI-3.0 which is wanted by our client.

  • FREEZES WHEN FLASH ASKS FOR ALLOW OR DENY

    INTEL mac freezes when flash player ask for allow or deny on all browsers, safarrie, chrome , and foxfire?  Hellp!

  • Problem with cd music

    Hi, I have a macbook intel based. I have bougt some original cd music. I have problems because my mac don't recognize the cd. I need help. What I do for play my cd music?

  • Just started to program in java

    Hi, beginning to learn Java and running into an issue that hoping more experienced ppl can shed some light on: var payload = payload = Packages.java.lang.Integer.valueOf(apayload, 16).intValue(); apayload is coming in as "18a3f1c6dac211ddb98c5bfb9700