ME21N BADI get BSART VALUE
Hi,
How do I get in ME21N Badi the selected value of BSART
Thx
Hi,
In case the transaction is ME21N after saving the document only the document number will be generated so we can not use select statements in side the BADI implementation.
Write the code like below.
data :i_header TYPE REF TO if_purchase_order_mm,
i_ekko TYPE mepoheader.
CALL METHOD im_item->get_header
RECEIVING
re_header = i_header.
CALL METHOD i_header->get_data
RECEIVING
re_data = i_ekko.
In I_ekko structure BSART value will be there.
Regards,
Surendar Reddy.
Similar Messages
-
Hi everybody.
Im implementing a Badi and I would like to get the value that has been filled by the user in the original dynpro. I can´t get this value from exporting and importing structures that are received in the badi.
I know two ways to get the field:
- With the FM CALL FUNCTION 'DYNP_VALUES_READ'.
- With field symbols with the name of the program and the name of the field.
The problem is that the filed I can get its value is and object text and this two ways doesn´t work.
Neither I cant get this value with the function READ_TEXT.
How could I get this value???
Thanks a lot!!!!Come On!!
yesterday I tried in my system and it worked.
If you put (SAPLIQS0)LTXTTAB[] in the debugger variable window you can see entries in the internal table. I think you are mistaking while reading the content of the internal table to your internal table.
And believe me you have the solution.
Now try this following code in the BADI implementation.
FIELD-SYMBOLS: <fs_ltxttab> TYPE tline_t.
ASSIGN ('(SAPLIQS0)LTXTTAB[]') TO <fs_ltxttab>.
IF sy-subrc eq 0.
ENDIF.
You will have the subject description content you maintained in the notification in <fs_ltxttab>.
Thanks,
Mainak -
Get selected values from Listbox control
Hi All,
I'm still new to SL so please bear with me.
I have a ListBox being bound with some records from a DB. Here's the xaml:
<ListBox x:Name="lstClassSeries" SelectionMode="Multiple" DisplayMemberPath="Description" Grid.Row="11" Grid.Column="1"></ListBox>
What I need is to get the values of the items that were selected and I can't seem to get it to work. I've tried looping through the SelectedItems but there's no property for value or text. I even tried to cast the item as a ListBoxItem but I
get the following error:
Unable to cast object of type 'UI.Silverlight.TransactionService.DTODropDown' to type 'System.Windows.Controls.ListBoxItem'.
How can I get the values of the items selected?
ThanksYou're using windows forms style techniques with xaml.
This is a bad idea.
You ought to learn MVVM.
You probably don't think you want to learn it, but trust me on this one.
Learn MVVM as soon as you can.
There's a selecteditems collection.
You have to cast to listboxitem, it has a content property which you cast to whatever you put in there originally.
Here's a snippet.
I have a class foo, load a bunch of them in. Do stuff. Work out what's selected in the click event of a button.
public class foo
public int id {get;set;}
public string description {get;set;}
public partial class MainPage : UserControl
public MainPage()
InitializeComponent();
lb.Items.Add(new ListBoxItem{Content=new foo{ id=1, description="a"}});
lb.Items.Add(new ListBoxItem { Content = new foo { id = 2, description = "b" } });
lb.Items.Add(new ListBoxItem { Content = new foo { id = 3, description = "c" } });
private void Button_Click(object sender, RoutedEventArgs e)
List<foo> selectedfoos = lb.SelectedItems.Cast<ListBoxItem>().Select(x=>x.Content as foo).ToList();
Hope that helps.
Recent Technet articles: Property List Editing;
Dynamic XAML -
Dvt:pivotFilterBar - how to get selected values from filter
Hi all,
I have a question: how to programmatically get selected values from pivot table's filter bar?
I have tried to use
pivotTable.getDataModel().getDataAccess().getValueQDR(startRow, startCol, DataAccess.QDR_WITH_PAGE);but for page edge dimensions it returns BAD DATA, it seems that it returns some cached values.
Environment: JDev 11.1.1.3.0 without any patches.
thanks,
MiroslawHi,
You can retrieve the selected value in the PivotFilterBar through the model of PivotFilterBar, instead of dataaccess:
// get the model from the pivot filter bar instance
QueryDescriptior queryDescriptor = (QueryDescriptor)pivotFilterBar.getValue();
// retrieve a list of criterion, each one is used to populate each lov within the pivot filter bar
ConjunctionCriterion conjunctionCriterion = queryDescriptor.getConjunctionCriterion();
List<Criterion> criterionList = conjunctionCriterion.getCriterionList();
for (int i=0; i<_criterionList.size(); i++) {
AttributeCriterion criterion = (AttributeCriterion)criterionList.get(i);
// _selected is the currently selected value
Object selected = criterion.getValues().get(0);
System.out.println(_selected);
Hope that helps,
Chadwick -
Not able to get the values from screen field?
hello
i am using MIRO and there is a screen name withholding tax and from there i want to retreive the withholding tax code before saving so that i can do some validations on it but how can i retrieve the values.
when i press f1 there it shows structure not the table and structure contains no value so please help me in this so that i can retreive that value during run time
thank youHi Vikas,
you can use this badi MRM_WT_SPLIT_UPDATE, the method will be WHTAX_SPLIT_UPDATE
in this badi please see the importing and exporting parameters, you will get the values of withholding tax code as TE_RBWS in export parameters.
Please search in google or SCN you will get how to use it. -
Need to get the values from "Signed" field from PDF form.
Hi,
This is Dinesh. I am PHP Developer. My issue is "I am not able to get the value of "signed" field from the PDF form when the form has been submitted.". I want to get the Digital Signature value of that field and i need to store it in the DB.
Please help me here Or Please forward this issue to any of the PHP developer who solved this issue and let me know.
Thanks & Regards
DineshHi Vikas,
you can use this badi MRM_WT_SPLIT_UPDATE, the method will be WHTAX_SPLIT_UPDATE
in this badi please see the importing and exporting parameters, you will get the values of withholding tax code as TE_RBWS in export parameters.
Please search in google or SCN you will get how to use it. -
Hi Friends..
In Tcode FINT (Item Interest Calculation) , i am implementing the BADI FI_INT_CUS01 method INT_ADD_ITEMS . using this method INT_ADD_ITEMS i am adding more items into ct_items from table BSID. In my SQL Query based on the user input in selection screen of FINT (Performance Tab ->Special GL Indicator A_UMSKZ) i want to get the items. But A_UMSKZ is out of scope in Method INT_ADD_ITEMS. How can i get the values of A_UMSKZ.
Thanks in Advance.
N.G. Mahender.Hi Friends,
I got the Answer. in Method INT_ADD_ITEMS contains the importing internal Table it_frange. It contains structure selopt_t. This structure contains the data of the field a_umskz.
i was added the following code to get this.
Data:
lwas_selopt_umskz TYPE fintselopt,
lwa_frange TYPE fint_frange.
CLEAR: lwas_selopt_umskz , lwa_frange.
READ TABLE it_frange INTO lwa_frange WITH KEY fieldname = 'A_UMSKZ'.
READ TABLE lwa_frange-selopt_t INTO lwas_selopt_umskz INDEX 1.
Warm Regards,
N.G. Mahender. -
How can we get the value of the key field in a custom data model using governance API?
Dear Team,
How can we get the value of the key field in a custom data model, to be used for manipulation of the change request fields using governance API?
Any kind of help would be sincerely appreciated.
Thanks & Regards,
Tushar.Hi Michael,
Thanks for direction. Let me give more context on this as I'm interested to get more details..One of the issue was to read cross entity field values on UI based on user action and set other entity field behaviour...It is similar to what is being posted here.
For ex: Reading MTART from Basic Data UIBB in MM MDG UI and set the field properties in some other custom entities say ZZETEST. This cannot be done using UI BADI as it only supports single entity at a time and not cross entity. So alternatively we found a solution where we can enhance existing PLMB feederclass cl_mdg_bs_mat_feeder_form by reading the model and the entity as needed as it it proved that it supports cross entity UI field behaviours and so business requirements.
This is a workaround for now.
So the question is How do we achive it using governance API for cross entity field behiaviours.?or what is the right way doing this.
Can we do that using governance API and its' methods?
In the Governance API doc you provided below has referring to below external model as part of gevernance API.
The active or inactive data (before or during the derivation or the check) can be read
with the external data model interface IF_USMD_MODEL_EXT with the method READ_CHAR_VALUE and
the corresponding READ_MODE parameter. To avoid unnecessary flushes (derivations), the NO_FLUSH
parameter should b
e set to ‘X’.
Thanks
Praveen -
Badi-Virtual keyfigure value not populating in query
HI all,
I am trying to populate a constant value into the virtual keyfigure when the query is executed but the value is not getting populated.
I followed the steps how to do this by looking into the step by step process for keyfigure article which i found in SDN.
When i execute my BADi in se19 i am able to get the value but not in the query.
Is there a special way to create keyfigures or is it the same way as we create a normal keyfigure.
Can someone tell me how to get the values in query.
Thanks in advance.
Regards,
HarishHi,
why dont you debug the badi while executing the report from RSRT t-code. This will give you some idea.
To debug, put a break point in 'define' as well as 'compute' function of your Badi-implementation, then go to RSRT t-code, enter your query name and then click generate. It will stop at the break-point. Here you can see what is the problem
Regards
akshay -
Get all values from request.getParameter
In ASP, I can do something like that...
For each item in Request.Form
Response.write "Name is:" & item & " value is:" & Request(item)
Next
How about in JSP? How do i get the names and values of the form using a loop?You can use request.getParameterNames() which will return an enumeration, then you can iterate through the enumeration and use request.getParameterValue(String paramName) method to get the values.
-
How to get the values from popup window to mainwindow
HI all,
I want to get the details from popup window.
i have three input fields and one search button in my main window. when i click search button it should display popup window.whenever i click on selected row of the popup window table ,values should be visible in my main window input fields.(normal tables)
now i am able to display popup window with values.How to get the values from popup window now.
I can anybody explain me clearly.
Thanks&Regards
kranthiHi Kranthi,
Every webdynpro component has a global controller called the component controller which is visible to all other controllers within the component.So whenever you want to share some data in between 2 different views you can just make it a point to use the component controller's context for the same. For your requirement (within your popups view context) you will have have to copy the component controllers context to your view. You then will have to (programmatically) fill this context with your desired data in this popup view. You can then be able to read this context from whichever view you want. I hope that this would have made it clear for you. Am also giving you an [example|http://****************/Tutorials/WebDynproABAP/Modalbox/page1.htm] which you can go through which would give you a perfect understanding of all this. In this example the user has an input field in the main view. The user enters a customer number & presses on a pushbutton. The corresponding sales orders are then displayed in a popup window for the user. The user can then select any sales order & press on a button in the popup. These values would then get copied to the table in the main view.
Regards,
Uday -
How to get the values from a html form embedded in a swing container
Hi all,
I am developing an application in which i have to read a html file and display it in a swing container.That task i made it with the help of a tool.But now i want to get the values from that page.ie when the submit button is clicked all the values of that form should be retrived by a servlet/standalone application.I don't know how to proceed further.Any help in this regard will be very greatful
Thanks in advance,
PrakashBy parsing the HTML.
-
How to get multiple values from the list
I've a list of an item which I queried it from the database. I also created a button that will takes a selected items from the list when it was clicked. I used javabean to get the data from database.
<% // clicked on Select District Button
Vector vselectedDistrict = new Vector();
Vector vdistrictID = new Vector();
String tmpSelectDistrict = "";
tmpSelectDistrict = request.getParameter("bSelectDistrict");
if(tmpSelectDistrict != null)
// get multiple values from the list
String[] selectedDistrict = request.getParameterValues("usrTDistrict");
vselectedDistrict.clear();
vdistrictID.clear();
if((selectedDistrict != null) && (selectedDistrict.length != 0))
for(int i=0;i<selectedDistrict.length;i++)
vselectedDistrict.addElement(selectedDistrict);
vdistrictID = dbaseInfo.getcurrentDistrictID(nstate,vselectedDistrict);
for(int i=0;i<vdistrictID.size();i++)
out.println("district = " + selectedDistrict[i]); out.println("district ID= " + vdistrictID.get(i).toString());
%>
// get vdistrict from the database here......
<select name="usrTDistrict" size="5" multiple>
<% for(int i = 0; i< vdistrict.size(); i++)
%>
<option value="<%=vdistrict.get(i).toString()%>"><%=vdistrict.get(i).toString()%></option>
<%
%>
</select>
<input type="submit" name="bSelectDistrict" value="Select District">
Lets say the item that i selected from the list is 'Xplace' and I clicked on the Select District button,
what I got is this error message:
org.apache.jasper.JasperException: Unable to convert string 'Xplace' to class java.util.Vector for attribute usrTDistrict: java.lang.IllegalArgumentException: Property Editor not registered with the PropertyEditorManager
So where is going wrong and what the message means?. Any help very much appreciated. ThanksThese are just guesses that might hopefully steer you in directions you haven't looked in yet.
I presume you used triangle brackets (< >) to avoid having the Jive Forum think it was the "italics" tag?
Are you certain this: dbaseInfo.getcurrentDistrictID(nstate,vselectedDistrict);
expects a Vector as its second parameter? And returns a Vector?
I don't believe you've shown how you use the javabean, or its code? Perhaps it should be rewritten to accept an array of strings instead of a Vector? -
Problem getting arraylist values from request
Hi All,
I am trying to display the results of a search request.
In the jsp page when I add a scriplet and display the code I get the values else it returns empty as true.Any help is appreciated.
<%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
<%@ include file="/includes/header.jsp"%>
<title>Research Results</title>
</head>
<body>
<div class="ui-widget ui-widget-content">
<%
ArrayList<Research> research = (ArrayList<Research>) request.getAttribute("ResearchResults");
Iterator iterator = research.iterator();
while(iterator.hasNext()){
Research r = (Research) iterator.next();
out.println("Result Here"+r.getRequesterID());
out.println("Result Here"+r.getStatus());
%>
<form>
<c:choose>
<c:when test='${not empty param.ResearchResults}'>
<table cellspacing="0" cellpadding="0" id="research" class="sortable">
<h2>RESEARCH REQUESTS</h2>
<tr>
<th><a href="#">RESEARCH ID</a></th>
<th><a href="#">REQUESTOR NAME</a></th>
<th><a href="#">DUE DATE</a></th>
<th><a href="#">REQUEST DATE</a></th>
<th><a href="#">CLIENT</a></th>
<th><a href="#">STATUS</a></th>
<th><a href="#">PRIORITY</a></th>
</tr>
<c:forEach var="row" items="${param.ResearchResults}">
<tr title="">
<td id="researchID">${row.RESEARCH_ID}</td>
<td>${row.REQUESTER_FNAME} ${row.REQUESTER_LNAME}</td>
<td><fmt:formatDate pattern="MM/dd/yyyy" value="${row.DUE_DATE}"/></td>
<td><fmt:formatDate pattern="MM/dd/yyyy" value="${row.CREATED_DATE}"/></td>
<td>${row.CLIENT}</td>
<td>
<c:choose>
<c:when test="${row.STATUS=='10'}">New Request</c:when>
<c:when test="${row.STATUS=='20'}">In Progress</c:when>
<c:when test="${row.STATUS=='30'}">Completed</c:when>
</c:choose>
</td>
<td>
<c:choose>
<c:when test="${row.PRIORITY=='3'}">Medium</c:when>
<c:when test="${row.PRIORITY=='2'}">High</c:when>
<c:when test="${row.PRIORITY=='1'}">Urgent</c:when>
</c:choose>
</td>
</tr>
</c:forEach>
</table>
</c:when>
<c:otherwise>
<div class="ui-state-highlight ui-corner-all">
<p><b>No results Found. Please try again with a different search criteria!</b> </p>
</div>
</c:otherwise>
</c:choose>
</form>
<%@ include file="/includes/footer.jsp"%>
</div>
</body>
</html>What is ResearchResults?
Is it a request parameter or is it a request attribute?
Parameters and attributes are two different things.
Request parameters: the values submitted from the form. Always String.
Request attributes: objects stored into scope by your code.
They are also accessed slightly differently in EL
java syntax == EL syntax
request.getParameter("myparameter") == ${param.myparameter}
request.getAttribute("myAttribute") == ${requestScope.myAttribute}
You are referencing the attribute in your scriptlet code, but the parameter in your JSTL/EL code.
Which should it be?
cheers,
evnafets -
Get column values from list of values programmatically
hi all
how i get column values from list of values programmatically in the
returnPopupDataListener methodIf this answers your question , please close this thread by marking it as answered.
Thanks
Maybe you are looking for
-
Business Area not populated for F110 but it works for FBZ2
Hi all Gurus, I have marked my co code in OBY6 for Business Area Financial Statement. In GL a/c, I also marked the FSG to be "Required" field. For posting key field status, it set to "Optional" During F110 auto payment run, the Business Area field
-
Disk Utility Repair Permissions conflict for ./Private and ./private
After applying the latest Security Update 2008-003 (PPC) (http://www.apple.com/support/downloads/securityupdate2008003ppc.html), Repair Permissions in Disk Utility has conflicting requirements for permissions on ./Private and ./private. One of them i
-
IS IT OK that a newly purchased iMac -intel Lion- gets So HOT That it smells like Burnt Plastic,Not Warm but Hot!!??.. Just only by using safari-reading mails or newspapers- And playing Radio with VLC??!!!!...Or i must throw it away before it explo
-
Get pictures and movies of iphone to PC
hi how do I get the pictures and movies taken with the iphone to mij PC. (also the movies created in imovie on the iphone) it seems that it's not possible in itunes...? iphone 4, 4.0.2software PC with windows XP SP3, with latest itunes software thank
-
Computer won't recognize ipod and ipod flases foler with exclamation point
Last week, my computer randomly said it did not recognize my ipod. I continued to use it and figured I'd worry about updating it another time. Then today, I was using my nano and it stopped and flashed the folder with the exclamation point icon and b