Fetching value from deep structure

Hi All,
I need to take value from deep structure into a variable.
IS_DESDLVRY_NOTIF-DELIVERY-ITEM[1]-PURCHASE_ORDER_REFERENCE-ID is that structure.
Value is available in debugger.
But in editor gives syntax error- item[1] doesnt exist,Item exist.
If i delete [1] from item i wont get value.
can you guide how to resolve error?
Thanks.
Edited by: sanj_dell on Jun 17, 2011 8:20 AM

Hi,
you have to read table IS_DESDLVRY_NOTIF-DELIVERY-ITEM index 1 into a matching structure!
Regards,
Klaus

Similar Messages

  • Fetch value from Table with respect to APP_USER.

    Hi,
    i want to fetch value from Table with respect to APP_USER.
    i am using
    SELECT ID,NAME,FILE_OBJ_ID,MIME_TYPE,DOC_SIZE,BLOB_CONTENT,DESCRIPTION,UPLOAD_DATE,'Download' FROM DUMY_FILE where CREATED_BY =:APP_USER;
    Show me error
    failed to parse SQL query:
    ORA-00911: invalid characterThanks
    Edited by: 805629 on Jan 13, 2011 2:09 AM

    Hello,
    I too have the same problem.
    I am using this query:
    select manager from leave_mgmt where support_engg=:APP_USER
    and source type is SQL Query(return single value)
    but nothing is coming up in the text field. Its empty.
    Please advice. Thanks in advance.

  • From deep structured to flat itab

    Hi experts!
    I need to copy three columns from an internal table <u>itab_upload</u>. I defined the structure for it in the DDIC. It contains 5 columns and another table(<u>Itab_note)</u> for possible entries. For a report I need to copy 3 columns of the itab_upload table (<u>not</u> from the itab_note) into another table and display this using ALV.
    Can you please advise how to get the 3 columns from the structured into the flat table so I can use ALV for displaying?
    Thanks a lot!
    Johann

    You can use the same internal table itab_upload to pass to the ALV Function Module. If this is a deep structure, pass only the field that contains the internal table values in that deep structure.
    Ex. itab_upload-field1-field12
    If you want to show only 3 fields form the internal table on the ALV, create the fieldcat manually so that only those 3 fields are present in the fieldcat that is passed to the ALV Function module.
    Ex. to create a fieldcat manually :
    data : it_fieldcat    type slis_t_fieldcat_alv,
           wa_fieldcat    like line of it_fieldcat,
      clear wa_fieldcat.
      wrk_pos = wrk_pos + 1.
      wa_fieldcat-col_pos   = wrk_pos.
      wa_fieldcat-tabname   = 'ITAB_UPLOAD'.
      wa_fieldcat-fieldname = 'FIELD1'.
      wa_fieldcat-seltext_m = 'Field 1 Description'.
      wa_fieldcat-emphasize = ''.
      wa_fieldcat-hotspot   = 'X'.
      append wa_fieldcat to it_fieldcat.
      clear wa_fieldcat.
      wrk_pos = wrk_pos + 1.
      wa_fieldcat-col_pos   = wrk_pos.
      wa_fieldcat-tabname   = 'ITAB_UPLOAD'.
      wa_fieldcat-fieldname = 'FIELD3'.
      wa_fieldcat-seltext_m = 'Field 3 Description'.
      wa_fieldcat-emphasize = ''.
      wa_fieldcat-hotspot   = ''.
      append wa_fieldcat to it_fieldcat.
    Also refer :
    Read a Deep Structure
    Programmatically copy a deep structure - exactly.
    Regards,
    Anish Thomas

  • Short Dump while fetching values from a Database view

    Hi ALL,
    Here is the code that is giving short dump
    SELECT * FROM ZVMATLMOVE INTO TABLE I_MATLMOVE
        WHERE BUDAT >= V_LASTRUN_DATE
        AND   WERKS IN S_WERKS
        AND   LIFNR IN S_LIFNR
        AND   EBELN IN S_EBELN
        AND   MATNR IN S_MATNR
        AND   BWART IN S_BWART
    (Please don't say that I am using * in the select query,
    I knew that it is not a good way of fetching values)
    Declaration of the internal table is:
    DATA  I_MATLMOVE LIKE ZVMATLMOVE OCCURS 0 WITH HEADER LINE.
    The variable V_LASTRUN_DATE is:
    DATA  V_LASTRUN_DATE LIKE SY-DATUM.
    We will be getting the lastrundate value from another table. And it is passing correct value (ex. 20060731)
    ZVMATLMOVE is a database view created for MKPF and MSEG table. And I checked both table were consistent.
    Dump Analysis:
    Runtime errors         DBIF_RSQL_SQL_ERROR          
    Exception              CX_SY_OPEN_SQL_DB
    Every thing is fine. But I don't know how it is going to dump. Any suggestions?

    Hi !
    It seams that your table is not correct / fully activated.
    To check it out you should try the following:
    - Go to the SE11
    - Give it your table name and go to "Display"
    - Check if the table is "active"
    - Choose "Utilities->Database Object->Check" and see
      if there are any errors
    - go back and choose "Utilities->Runtime Object->Check"
      and see if there are any errors
    If there are any errors - try to activate the table again. You may need the "Utilities->Database Utiliy" for that.
    After there are no more errors by checking all these your program should work.
    Regards
    Rainer
    Some points would be nice if thate helped a bit.

  • Fetching Values from Ancestors based on UDA condition

    Hi,
    I have a typical requirement where I  need to fetch data from the ancestor based on a particular UDA condition.
    For ex: See the below exhibit
    Dimension
    ----A (UDA: xyz)
    -------B (UDA: xyz)
    ------------C
    -----------------D
    -----------------E (UDA: xyz)
    -----------------F
    Requirement: (Should be a member formula on a particular Account member - No calc script)
    1- Calculations should happen only for members with UDA 'xyz'
    2- The value for member 'E' should come from its first immediate ancestor with same UDA as'E' has - in the above case the value of 'E' should be from member 'B' (and not 'A')
    similarly while calculating member 'B', it should take value from member 'A'
    I have tried the member formula like:
    @ANCEST(DimName,@Currmbr(Dimname)) AND @UDA(DimName,'xyz)
    but this gives 'DOUBLE VALUE STRING' error.
    Can anyone help me with how I should develop the logic for this requirement.
    Thanks again.

    DEAR ALL !
         I HAVE SOLVED THE ISSUE BY USING ANOTHER BAdI " HRBAS00_STRUAUTH".
    THANKS AND REGARDS,
    S.SURESH

  • Fetching values from database into a drop down box

    in my JSP page there are 3 drop down boxes for date of birth......
    what i need is i want to get the values from database into that drop down box when i access the JSP page.......
    session is there....'m getting all other values.......
    I will attach the JSP page.....
    Please help me...........
    Thanks in Advance......
    <%@ taglib uri='/WEB-INF/taglib/struts-bean.tld' prefix='bean'%>
    <%@ taglib uri='/WEB-INF/taglib/struts-logic.tld' prefix='logic'%>
    <%@ taglib uri='/WEB-INF/taglib/dyna.tld' prefix='dyna'%>
    <%@ taglib uri='/WEB-INF/taglib/struts-html.tld' prefix='html'%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title><bean:message key="page_title"/></title>
    <link href="<bean:message key="context"/>/CSS/default.css" rel="stylesheet" type="text/css" />
    <script src="<bean:message key="context"/>/js/AC_RunActiveContent.js" type="text/javascript"></script>
    <link href="<bean:message key="context"/>/CSS/screen.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <%!
    Membership mShip = null;
    %>
    <script language="javascript" >
    function checkDate(Form){
    var d;
    d = Form.year.value+"-"+Form.month.value+"-"+Form.day.value;
    alert("Date is:"+d);
    Form.dob.value = d;
    </script>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td>
         <jsp:include flush="true" page="../templates/header.jsp"/>     </td>
    </tr>
    <tr>
    <td class="menuTD">     
         <jsp:include flush="true" page="../templates/menu.jsp"/>     </td>
    </tr>
    <tr>
    <td class="sub_menuTR"> </td>
    </tr>
    <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td class="column" valign="top" width="170"><jsp:include flush="true" page="../templates/left_panel.jsp"/></td>
    <td valign="top" align="left">
              <dyna:message error="error" warning="warning" message="message"/>
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td width="80%" valign="top" align="left">
                   <%
                   if(session != null){
                   mShip = (Membership)session.getAttribute("member");
                   %>
                        <form action="updateContactDetails.dy" method="post" name="form1">
                        <input type="hidden" name="m" value="<%=request.getParameter("m")%>" />
                             <table width="100%" border="0">
                             <tr>
                                  <td>First Name</td>
                                  <td><input name="first_name" type="text" id= "first_name" value = "<bean:write name = "member" property = "first_name" />" /></td>
                             </tr>
                             <tr>
                                  <td>Last Name </td>
                                  <td><input name="last_name" type="text" id="last_name" value = "<bean:write name = "member" property = "last_name" />" > </td>
                             </tr>
                             <tr>
                                  <td>Address</td>
                                  <td><input name="address1" type="text" id="address1" value = "<bean:write name = "member" property = "address1" />" ></td>
                             </tr>
                             <tr>
                                  <td> </td>
                                  <td><input name="address2" type="text" id="address2" value = "<bean:write name = "member" property = "address2" />" ></td>
                             </tr>
                             <tr>
                                  <td>Suburb/City </td>
                                  <td><input name="city" type="text" id="city" value= "<bean:write name = "member" property = "city" />" ></td>
                             </tr>
                             <tr>
                                  <td>State/Territory</td>
                                  <td><input type="text" name="state" value = "<bean:write name = "member" property = "state" />" ></td>
                             </tr>
                             <tr>
                                  <td>Postcode</td>
                                  <td><input type="text" name="postcode" value = "<bean:write name = "member" property = "postcode" />" ></td>
                             </tr>
                             <tr>
                                  <td>Contact Phone</td>
                                  <td><input type="text" name="home_phone" value = "<bean:write name = "member" property = "home_phone" />" ></td>
                             </tr>
                             <tr>
                                  <td>Mobile</td>
                                  <td><input type="text" name="mobile" value = "<bean:write name = "member" property = "mobile" />" ></td>
                             </tr>
                             <tr>
                                  <td>Date of birth</td>
                                  <td nowrap="nowrap"><select name="day">
    <option>Day</option>
    <option value="01">1</option>
    <option value="02">2</option>
    <option value="03">3</option>
    <option value="04">4</option>
    <option value="05">5</option>
    <option value="06">6</option>
    <option value="07">7</option>
    <option value="08">8</option>
    <option value="09">9</option>
    <option value="10">10</option>
    <option value="11">11</option>
    <option value="12">12</option>
    <option value="13">13</option>
    <option value="14">14</option>
    <option value="15">15</option>
    <option value="16">16</option>
    <option value="17">17</option>
    <option value="18">18</option>
    <option value="19">19</option>
    <option value="20">20</option>
    <option value="21">21</option>
    <option value="22">22</option>
    <option value="23">23</option>
    <option value="24">24</option>
    <option value="25">25</option>
    <option value="26">26</option>
    <option value="27">27</option>
    <option value="28">28</option>
    <option value="29">29</option>
    <option value="30">30</option>
    <option value="31">31</option>
    </select>
                                  <select name="month">
                                       <option>Month</option>
                                       <option value="01">January</option>
                                       <option value="02">February</option>
                                       <option value="03">March</option>
                                       <option value="04">April</option>
                                       <option value="05">May</option>
                                       <option value="06">June</option>
                                       <option value="07">July</option>
                                       <option value="08">August</option>
                                       <option value="09">September</option>
                                       <option value="10">October</option>
                                       <option value="11">November</option>
                                       <option value="12">Decembber</option>
                                  </select>
                                       <select name="year" onChange = "checkDate(this.form);" >
                                       <option>Year</option>
                                       <option value="1957">1957</option>
                                       <option value="1956">1956</option>
                                       <option value="1955">1955</option>
                                       <option value="1954">1954</option>
                                       <option value="1955">1955</option>
                                       <option value="1956">1956</option>
                                       <option value="1957">1957</option>
                                       <option value="1958">1958</option>
                                       <option value="1959">1959</option>
                                       <option value="1960">1960</option>
                                       <option value="1961">1961</option>
                                       <option value="1962">1962</option>
                                       <option value="1963">1963</option>
                                       <option value="1964">1964</option>
                                       <option value="1965">1965</option>
                                       <option value="1966">1966</option>
                                       <option value="1967">1967</option>
                                       <option value="1968">1968</option>
                                       <option value="1969">1969</option>
                                       <option value="1970">1970</option>
                                       <option value="1971">1971</option>
                                       <option value="1972">1972</option>
                                       <option value="1973">1973</option>
                                       <option value="1974">1974</option>
                                       <option value="1975">1975</option>
                                       <option value="1976">1976</option>
                                       <option value="1977">1977</option>
                                       <option value="1978">1978</option>
                                       <option value="1979">1979</option>
                                       <option value="1980">1980</option>
                                       <option value="1981">1981</option>
                                       <option value="1982">1982</option>
                                       <option value="1983">1983</option>
                                       <option value="1984">1984</option>
                                       <option value="1985">1985</option>
                                       <option value="1986">1986</option>
                                       <option value="1987">1987</option>
                                       <option value="1988">1988</option>
                                       <option value="1989">1989</option>
                                       <option value="1990">1990</option>
                                       <option value="1991">1991</option>
                                       <option value="1992">1992</option>
                                       <option value="1993">1993</option>
                                       <option value="1994">1994</option>
                                       <option value="1995">1995</option>
                                       <option value="1996">1996</option>
                                       <option value="1997">1997</option>
                                       <option value="1998">1998</option>
                                       <option value="1999">1999</option>
                                       <option value="2000">2000</option>
                                       <option value="2001">2001</option>
                                       <option value="2002">2002</option>
                                       <option value="2003">2003</option>
                                       <option value="2004">2004</option>
                                       <option value="2005">2005</option>
                                       <option value="2006">2006</option>
                                       <option value="2007">2007</option>
                             </select ></td></tr>
                             <tr>
                                  <td><input type="hidden" name = "dob" /> </td>
                                  <td nowrap="nowrap"><input type="submit" value="Submit" /></td>
                             </tr>
                             </table>
                        </form>
                   </td>
    <td width="40"></td>
    <td width="200" valign="top">
                   <div id="headlines">
    <jsp:include flush="true" page="../templates/profile.jsp"/>
    </div>
                   </td>
    </tr>
    </table>
              </td>
    <td> </td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td><jsp:include flush="true" page="../templates/footer.jsp"/></td>
    </tr>
    </table>
    </body>
    </html>

    i think normally u will get data from databsae as objects.they are like java beans having getter and setter methods.so you create a collection of those objects like collect all the objects coming from database into an arraylist or....
    suppose you want to populate the dropdown box with say "username" from database object s, your code will look like that
    <html:select property="name">
    <html:options collection="databaseList" property="username" />
    </html:select>
    "databaseList" is collection(say.. ArrayList) of objects you are getting from database.this dropdown will contain all the "usernames" you are getting from database.

  • Fetching Values From JAVA classes into ABAP report

    Hi Experts,
    I have a requirement, in which I need to fetch Java Roles/Groups from  the portal to a ABAP report, for specific users.  The roles inside of our project are not always in sync with the central system.
    I could not find any link with talks about this. Could anybody guide me on how to proceed?
    Regards,
    Trishna

    I have written a report which takes users and specific  roles as the input. Eg, userID :12345  and role/profile :SAP_ALL, SAP_ADMIN..etc in a table. and gives back if the user 12345 has SAP_ALL or not.
    Now I have used RFCs to fetch all the roles for the user from different SAP systems which i further compare .
    What I am unable to do is fetch the portal roles .
    PROBLEM : The portal roles also exist in the central system, but might not be always consistent since they get manually updated in the central system. Hence I want to directly fetch the data from the JAVA Portal.
    WHAT I KNOW : I need to write a JAVA class in NW developer studio which will take the user as the input and give me all the roles/profiles for the same user as output.
    How do I further pass the values to and from  the Java class to my ABAP report?
    I know that I need to use the UME in some way to have this work for me. But since i do not expertize in java I need guidance/steps as to how to proceed.
    Regards
    Trishna

  • Fetch values from characteristic slection variable by using text variable

    Hi Gurus,
    i got BEx Variable for characteristic SalesOrganization. It is a selection variable.
    Theat means the users can select one or more than one value. For example 001 or 001, 004.
    Now i want to fetch these values by using a text variable. Problem ist that the standard SAP text variable in BEx can filled by using replacement path and i can only can select "from" or "to". But i only want the endtered values. Is there another way without using an User Exit?
    Regards,
    Adem

    Hi Adem,,
    Instead of user exit,
    How about replacement path .. ? Have you ever tried this one before ??
    You can go through this link for the detail:
    http://www.sd-solutions.com/documents/SDS_BW_Replacement%20Path%20Variables.html
    Hopefully it can meet your requirement ..
    Regards,
    Niel
    thanks a lot for the points you choose to assign.

  • Pick first value from source structure out of multiple satisfying condition

    Hi PI Experts,
    I have mapping situation as follows. Looking for best way to achieve this.
    I have source structure
    Src Header
       Src Line ITems ( 1.. N)
             Line Field 1
            Src Details records ( 1....N)
                  Field 1
                  Field 2
    My Target stucture is
    Target (1.. N)  ( Cardinality same as the Src Details records)
    Line Field1
    Field 1  
    Field 2  ( This is should field2 of the first Src detail records which matches the condition based on field 1)
    From the source message  I want to repeat the field 2 in the target from that source record which matches the condition.
    e.g if Field1 =  PR00 then Copy of the values of records field 2 in the all the output target records.
    I was thinking of useOneOfMany but the issue is my source i can have multiple records which may satisfy the condition but i want only the first one which is satisfying condition from the source records to be output in targe.
    Thanks,
    Mahesh

    Hello,
    Use Collapse Context & SplitByValues like this
    Field2collapseContext-SplitByValue---Target Field
    Set the context of field to one level Up
    Regards

  • Fetch Value from Client Session

    Hi,
    I have a requirement where Vendor code is getting set in the session from a Hidden iView on Portal. Now, my Web Dynpro application has to extract the vendor code value present in the session. I have read few threads and tried by using different code :
    1)    HttpSession session = ((IWebContextAdapter)WDWebContextAdapter.getWebContextAdapter()).getHttpServletRequest().getSession();
    String abc = (String)session.getAttribute("VendorCode");
    2) IWDProtocolAdapter protocolAdapter = WDProtocolAdapter.getProtocolAdapter();
    IWDRequest request = protocolAdapter.getRequestObject();
    String paramValue = request.getParameter("VendorCode");
    3) WDScopeUtil.get(WDScopeType.CLIENTSESSION_SCOPE,"VendorCode")
    None of the code seems to work. All return a null value. Is there any way I can check when the Session contains the attribute Vendor Code itself or how I can get the Value.
    Can I fetch the same by creating a custom portal development where in I can have the Web Dynpro application running in an iView or is there any other way to extract the session attribute itself?
    Please reply,
    Points will be awarded.

    Hello,
    I too have the same problem.
    I am using this query:
    select manager from leave_mgmt where support_engg=:APP_USER
    and source type is SQL Query(return single value)
    but nothing is coming up in the text field. Its empty.
    Please advice. Thanks in advance.

  • Problem shile fetching values from navigateAbsolute

    hi,
    i need to pass a value which has "+" in end...
    for example:
    String Name = "aditya+" ;
    WDPortalNavigation.navigateAbsolute(iviewpath,WDPortalNavigationMode.SHOW_INPLACE,
    null,null,WDPortalNavigationHistoryMode.NO_HISTORY,null,null,
    "Name=" +Name );     
    but when i fetch the value..
    IWDProtocolAdapter protocolAdapter = WDProtocolAdapter.getProtocolAdapter();
    IWDRequest request = protocolAdapter.getRequestObject();
    String Name = request.getParameter("Name");
    i get name = aditya
    it doesnt give me "+"...
    i believe it is taking + as an operator rather than string
    can anyone help in finding out solution..
    Thanks and Regards,
    Aditya Deshpande

    Hi, Aditya
    This looks like a bug
    My suggestion is to escape "+" character in some way (for example, with "\u002b") when making parameters string, and unescape when retrieving parameter values. I guess not only plus character can produse such effect.

  • Problem in fetching values from Java Web Service returning ArrayList

    Hi all,
    I am calling an External Java web Service from BPEL. That Java Web Service is returning an Arraylist.
    I am not able to assign the values returned by the Java web service to local String Variables of BPEL.
    Kindly help me...

    Hi,
    My problem has been resolved..
    I have used
    bpws:getVariableData('Invoke_1_useSSH_OutputVariable','parameters',concat('/ns7:useSSHResponseElement/ns7:result/ns8:item\[',bpws:getVariableData('count'),']'))
    where count is the local int variable which contains the index value of the arraylist i.e. which index element we want to retrieve from arraylist.
    Thanks....
    Edited by: user643533 on Sep 12, 2008 12:10 AM

  • Fetch value from custom container in WD Abap component

    Hi all,
    I am using a web service to call a RFC function module into my web dynpro component.When I create a new service then a new custom controller will created and in this controller a method is created for FM.
    Now my query is, when I run the WD application, FM will retun a table at my end and I want to use it at view level.
    I declared a global table in Component controller attribute and want to fill that table when I execute service. when I use wd_this-><Table name> (at custom controller level, in method for FM) then it shows me that this table is not exist.
    Please suggest how to fetch table's value.
    Thanks
    Sanket sethi

    solved.

  • Problem in Fetching value from Employee Master Date in Crystal Report

    Hi All,
    I am using the SAP Standard report for Sales Quotation and now my client needs a new requirement.
    That is, for certain sales employee they need a manger and the manager name, email, mobile no from employee master data should be fetched.
    I tried this way,
    Assigned the Manager name in the OSLP, memo field and tried to equate the employee name in the OHEM table by using a parameter and tried to fetch the fields but i am not able to view any of the fields from the OHEM table.
    How to fetch the fields from the OHEM table?
    Help me solving this issue.
    Regards,
    Jananisuba S

    hi.
    Janani..
    Fetching means what .
    i am not able to understood...
    linking you are not able to understood or any other.
    in crystal report are u getting the problem.
    First in sql it slef are u able to get the problem..what just explain...

  • Members supposed to have no value fetching value from somewhere else

    Hi,
    I have preactively added few members in my Load file which are presently not there in the outline and are to be added in future.
    So in load file when i am retrieving from essbase those members are taking value of some other member and displaying over there.Instead they must display 0 over there.
    Is this a excel add-in bug or something else.
    How to resolve this.

    Hi,
    I am pretty confused with the query.
    what you meant by load file? were you using this load file to load the data into cube or using just for retrieval in excel.
    have you checked if there were any excel formula written in the cells where the unexpected data is sowing off.
    - Krish

Maybe you are looking for

  • Problem with Applets in same page

    Hai to all, I am having a problem with GUI in applets My first class extends a JPanel named A_a import javax.swing .*; import java.awt.*; import java.awt.event.*; public class A_a extends JPanel JButton jb; JTextArea text; public A_a() setLayout(new

  • I have Employee Discount

    Hi, I have a discount through employer, been on it for about 5 years.  I just renewed it about 4 months ago through email prompt, and saw Verizon trying to charge me full price without the discount.  The rep manually discounted the unwarranted charge

  • How to I get to the STandard Design view Mode

    Don't have a manual and trying to find out how to switch modes to standard design view instead of layout mode?

  • SQL (Like /REGEXP_LIKE)

    Can you help me to write a query which returns emp_name with the first name matches with the value in reference table? EmployeeTable_* Id     Emp_Name 1     Mark Anthony 2     Issac Newton 3     Albert Einstein 4     Abraham Lincoln ReferenceTable_*

  • Fit to page

    Hello everyone! I have a question I built a little website in dreamweaver 8 and I want my pages to be displayed from edge to edge so it fits in everones monitor. How is this achieved? Can you direct me to a tut or give me the code and tell me where i