How to update values for qty n batch in mska table
Hi experts,
i would lke to know is it possible that we can update value of availabity of stock which is existing batch wise in MSKA table field 'kalab' (qty) n charg (batch).
i mean we have devided material per document number into batch a b c.
suposse
we have '20015' material
for doc1 (vbeln) -- A qty 5
B qty 5
C qty 0
for doc2 (vbeln) A qty 2
C qty 5
B qty 0
But after delivery we want to change the distribution of stock material like .
for doc1 A qty 2
B qty 3
C qty 5
and for doc2 A qty 5
B qty 2
C qty 0
i create one programe and check the availabity in mska table n give input field to reorder the batch n quantity but how should i send these values in mska table so that sap will show the correct availabity of stock batch wise.
if somebody did it before. through ur input please .
Thanks.
Seema
Hi sutar,
Seems it is not WD related Question.
You are updating two tables here, but not updating in Database. check two tables how they are related.
and mysuggestion is try to update thease two tables by using code in se38. you will get where the problem is.
Cheers,
Kris.
Similar Messages
-
How to bind values for input parameters from an adf table?
Hi,
The version I am using is
Jdev TP4 11.1.1.0.0
I need to know how to bind values for input parameters to methods.
I have created an af:table and I have a button created using a method which is outside the af:table. This method needs to take input parameter values from the column values in the table.
When I have an adf form instead of the table the binding works.
Any help?
Thanks.Hi Balaji,
you need to bind you table to a backing bean and call a method in the backing bean when you hit the button. In the method you get the selected row from the table and have access to the columns of it. Then call the the method with the parameters.
To bind the table to a bean select the properties of the table, go to behavior section and look for the advanced section 'Binding' property.
Select the small down arrow at the right side and click edit. In the dialog select or create a bean and property for the table.
Go to the button properties, look for 'Action', again select the small down arrow and click 'Edit'. Select the bean which holds the table property and create a method for the button.
The method look like public void bearbeitenQuelle(ActionEvent actionEvent)
// Add event code here...
RichTable lTable = getYourTable();
Object lData = lTable.getSelectedRowData();
FacesCtrlHierNodeBinding lNB = (FacesCtrlHierNodeBinding) lData;
YourViewRow lRow = (YourViewRow ) lNB.getCurrentRow();
}Hope the get you started
Timo -
Update values for additional (new) keyfield in database table
Hi All,
Here in our firm we have a Z table with data in it. As part of the new requirement I had to add a new key field in it.
Now I have to maintain values for these key fields in the already existing data.
I cannot maintain it though SM30 as the maintenance view grays that field in SM30.
Is there any way of updating this new key field data in database.
Thanks,
KajalHello Rob,
thank you for this information. Up to now, I thougth, that it is impossible to update the primary key. I've checked it in our system and it works. But it seems, that you have to use the "update set" to update a field of the primary key - am I correct?
@Kajal,
I've created a table:
Field Key Data element
MANDT X MANDT
MATNR X MATNR
MAKTX MAKTX
Then I've tried the following coding:
data: wa_test type zithtest.
select single * from zithtest into wa_test.
move: 'DE' to wa_test-spras.
update zithtest from wa_test.
write: sy-subrc.
select * from zithtest into wa_test.
write: / wa_test.
endselect.
result: sy-subrc = 4 and no update of the primary key
Then I've tried the following:
data: wa_test type zithtest.
select single * from zithtest into wa_test.
move: 'DE' to wa_test-spras.
update zithtest set spras = wa_test-spras
where matnr eq wa_test-matnr.
write: sy-subrc.
select * from zithtest into wa_test.
write: / wa_test.
endselect.
Result: sy-subrc = 0 and the primary key has been updated.
By the way - reward points to Rob, as he has given the correct solution.
Best regards
Stephan
Edited by: Stephan Theis on Jan 17, 2008 9:50 PM -
How to populate values for a new field in target infoprovider
Hi Experts,
am new to BI. i would like to know on how to populate values for a new field in the target cube with start rotuine.In my case, i have a source infoprovider, which has 3 fields and a target infoprovider, which has 5 fields. i need to populate the new 2 fields in start routine. i dont want to populate using Field routine and am using 3.5 version. please assist with code on how to solve this issue.
Thank you,
Chitra.
Edited by: Chitra_BI on Jun 13, 2011 10:23 AMDebug the standard code and see where the other fields are getting update. you can use the similar approach and area to code for the new field.
Regards,
Lalit Mohan Gupta. -
Can we see costing value for line item batch in Batch Information Cokcpit r
Can we see costing value for line item batch in Batch Information Cokcpit report - BMBC?
Business like to see standard cost/ item and extended cost which should be qty in inventory * standard cost.
Help appreciated.
Edited by: Tom_Eric on Jan 13, 2012 2:33 AMHI.
YES it is passible.
If the GL is activated line item display check box is active then we can able to see the data as per line items.
T<Code. Fbl5n
Thanks.
Vasu
Edited by: Vasu Enaguthi on Apr 7, 2010 8:46 AM -
How to set value for trim and bleed using jsx script?
I have tried using bleedoffsetRect but somehow it is not working. Can anybody please help me on how to set value for trim and bleed using jsx script? Any example will be highly appreciated.
Following is the code I am trying with:
var _saveName = new File ( root_path +_strFileName+".pdf");
var _saveOpts = new PDFSaveOptions();
_saveOpts.printerResolution = 300;
var bleedarray = new Array();
bleedarray[0] =9.00;
bleedarray[1]=9.00;
bleedarray[2]=9.00;
bleedarray[3]=9.00;
_saveOpts.bleedOffsetRect = bleedarray;I would expect although I've not actually tried this for the bleed off set box to be larger than the artbaord and the first two values to be negative or 0…
var bleedarray = new Array(-9,-9,artboard.width+9,artboard.height+9);
Where 'artboard.width' & 'artboard.height' you will have calculated from your file. An Array(9,9,9,9); would not constitute any boxes bounds. -
How to assign values for more than one field
Hi,
I have written following code
constants: fieldname(30) value '(SAPMF02D)KNA1-AUFSD'.
constants: fieldname1(30) value '(SAPMF02D)KNA1-LISFD'.
constants: fieldname2(30) value '(SAPMF02D)KNA1-FAKSD'.
field-symbols: <L_FIELD> TYPE ANY.
field-symbols: <L_FIELD1> TYPE ANY.
field-symbols: <L_FIELD2> TYPE ANY.
Assign (fieldname) to <l_field>.
<L_FIELD> = 'ZB'. " value according to your requirement
Assign (fieldname1) to <l_field1>.
<L_FIELD1> = 'ZB'.
while debugging <l_field1> is not assinging (fieldname1).
Im able to assing for (fieldname).
how to assign value for (fieldname1).
plz suggest me to assign values for more than one field.
Regards,
BrahmajiHello,
Because there is no field name called LISFD in KNA1. Actually you misspelled the field name.
It is KNA1-LIFSD -
How to update apps for my iPOD
How to update apps for my iPOD
On the iPod go to App store app and tap Updates in lower right. Then tap on Update all or update individual ones.
Note that if yo do not have iOS 6, you may not be able to update the the latest version of some apps since some require iOS 4.3 or higher. some iOS 5 or higher or some iOS 6. -
How to update firmware for SSD Toshiba Air 2012
How to update firmware for SSD Toshiba THNSNS128GMFP ??
My disk see on system as SandForse 200026BB 33Kbhttps://discussions.apple.com/message/22108992#22108992
https://discussions.apple.com/thread/5120950?start=0&tstart=0
https://discussions.apple.com/message/22649139#22649139
https://discussions.apple.com/thread/5300125?tstart=0
Seems to be a real issue. Here's to hoping Apple will address this issue sooner rather than later. -
Hi, I need help on how to update software for my ipad1, can someone help me?
The iPad 1 can not be upgraded beyond 5.1.1. If you haven't upgraded to iOS 5.1.1, see the info below.
If your iDevice is using a version of iOS lower than 5, you will need to use iTunes on your syncing computer to perform the upgrade. Use the Apple link below as a guide for the upgrade.
http://support.apple.com/kb/HT4972
Also read the instructions from the section entitled "Update your device using iTunes" at the link below.
http://support.apple.com/kb/HT4623
Information regarding transferring purchases from your iDevice to iTunes on your syncing computer can be found at the link below.
http://support.apple.com/kb/ht1848 -
How to set value for radio button in sap crm survey suite
Hi ,
I created a survey in CRM Service, in which I added a question with answer as '10 Selection Button Group ('radio button'). And answer has 11 answer options (which means 11 radio buttions). Now when we test the survey, the value for the radio buttons is appearing like 'id_0050569b03091ee480a29d8ee61e953c'. But i want to set a specific value for each radion button (from 1 to 11). So, how to set value for radio button in sap crm survey suite???.
Thanks & Regards,
SeshuHi,
I found solution myself. Click on Goto -> Editing Mode -> Expert Mode. Now you can set value for radio button.
Regards,
Seshu -
How to set value for selectOneChoice
Hello,
How to set value for selectOneChoice defined as:
<af:selectOneChoice label="Label" id="soc1" binding="#{DepositorMergingBean.socSurnameComponent}">
<f:selectItems id="si1" value="#{DepositorMergingBean.socSurnames}"/>
</af:selectOneChoice>
where socSurnames is List<SelectItem> - manually filled list of SelectItem(SomeObject, (String)text_description), so - SOC is filled manually (no binded iterators, etc..)
Neither socSurnameComponent.setValue( new Integer(0) ) nor socSurnameComponent.setValue( socSurnames.get(0) ) do not help.
Thanks in advance.this.selectOneChoice.setValue(selectItems.get(2).getValue());Try as per the following sample:
SelectOneChoiceTest.JSPX:
<af:form id="f1">
<af:selectOneChoice label="Select One Choice" id="soc1"
binding="#{SelectOneChoiceTestBean.selectOneChoice}">
<f:selectItems value="#{SelectOneChoiceTestBean.selectItems}"
id="si1"/>
</af:selectOneChoice>
<af:commandButton text="Set Selected Value" id="cb1"
actionListener="#{SelectOneChoiceTestBean.onClick}"/>
</af:form>
SelectOneChoiceTestBean.java:
import java.util.ArrayList;
import java.util.List;
import javax.faces.event.ActionEvent;
import javax.faces.model.SelectItem;
import oracle.adf.view.rich.component.rich.input.RichSelectOneChoice;
public class SelectOneChoiceTestBean {
private RichSelectOneChoice selectOneChoice;
public SelectOneChoiceTestBean() {
super();
private List<SelectItem> selectItems;
public void setSelectItems(List<SelectItem> selectItems) {
this.selectItems = selectItems;
public List<SelectItem> getSelectItems() {
selectItems = new ArrayList<SelectItem>();
selectItems.add(new SelectItem("One", "One"));
selectItems.add(new SelectItem("Two", "Two"));
selectItems.add(new SelectItem("Three", "Three"));
return selectItems;
public void setSelectOneChoice(RichSelectOneChoice selectOneChoice) {
this.selectOneChoice = selectOneChoice;
public RichSelectOneChoice getSelectOneChoice() {
return selectOneChoice;
public void onClick(ActionEvent actionEvent) {
this.selectOneChoice.setValue(selectItems.get(2).getValue());
Thanks,
Navaneeth -
How to estimate value for LogBufParallelism
how to estimate value for LogBufParallelism.
Are there any dependencies between LogBufParallelism and LogFlushMethod ?If you are going to use logbufparallelism
please make sure to use a release >= 11.2.1.7.0, as there was a bug related to using logbufparellelism in previous releases:
In previous releases, the replication agent could crash and invalidate the database when the replication agent was reading close to the end of the in-memory logs. This problem could occur when the value of the connection attribute LogBufParallelism was greater than 1. In that case, one particular log record could cause a log strand reader to block and cause other strand-readers to read records in an incorrect order. This problem has been fixed. (BugDB 10174319 and 10176689)
The suggestion is that you can set to any value up to the number of processors or cores that you have.
Most people though I usually choose to set it something slightly lower than that if they want cpu(s) to be used other processes on the machine.
There is no dependency with LogFlushMethod, but there is one for LogBufMb:
If you change the value of LogBufParallelism, you also may need to change the value of LogBufMB to
satisfy the constraint that LogBufMB/LogBufParallelism >=8
Jim -
How to insert / Update value for PFAKT in BP Relationship
Hi Friends / Experts,
How to insert the value for PFAKT ( Function value ) in BP Relationship in BP tcode , in SAP CRM.
I have tried it but it BAPI_BUPR_CONTP_CREATE. But I need it with BAPI_BUPR_RELATIONSHIP_CREATE Function Module.
Please help me out.
Any Enhancement points in BAPI_BUPR_RELATIONSHIP_CREATE or any user exists. Please let me know.
Regards,
KMF.you can also acheive this using MERGE( available in sql 2008 and above).
also, you are referring to DTS. DTS is legacy solution now..are you using sql 2000, you can use ssis, if you want and it available in sql 2005. as said, there are multiple ways you can do this.. it find the below one a easy solution, since your are
talking about only one table..
try this example..
create table test1(sno int primary key,sname varchar(20),scity varchar(20))
go
create table test2(sno int primary key,sname varchar(20),scity varchar(20))
go
insert into test1
values(1,'stan','atlanta'),(2,'william','newyork')
go
insert into test2
values(1,'robin','orlando')
go
--set this in you sql job and let it run for every half an hour
MERGE test2 t2
USING test1 t1
ON t2.sno = t1.sno
WHEN MATCHED THEN
UPDATE
SET t2.sname = t1.sname,t2.scity=t1.scity
WHEN NOT MATCHED by target THEN
Insert(sno,sname,scity)
values (sno,sname,scity);
go
--check this table and clean up
select * from test2
go
drop table test1
go
drop table test2
Hope it Helps!! -
How to pass values for compound primary keys for updating the record in db.
i have a entity bean in my ejb with two primary keys to it...eg. roleid,rolename...
when iam retriving the record i use only one primary key ...so again to modify and update he same record which i retrived is a pbm..
i cannot set the values for the compoundpk,,,
but i can do the update for the bean with single primary key..
i need to know how to pass the values/parameters for the coumpound primary key in my update method...
thanx in advance...
Arjun.GI istantiated a object for the pk class and assign the values for the primary key fields...
Arjun.G
Maybe you are looking for
-
How can I set MAIL to open to the "inbox" by default? If I am viewing the "JUNK" folder and close mail-the next time I open mail it will open to the Junk folder. If I am viewing the "TRASH" folder and close mail-the next time I open mail it will open
-
Install Both SQL Express 2012 & LocalDB on Same Dev PC?
Q. How do I install both SQL Express 2012 & LocalDB 2012 on the same development PC? I tried running the LocalDB 2012 Wizard installer and it failed because I have a 'Higher Version' of SQL Express installed. I currently cannot run a web app using Lo
-
LMS 3.1 Device Discovery
Hi, Having had a fully operational version of Ciscoworks on a very old server we were advised to move it to a virtual server, with a new IP address. Unfortunately since then the device discovery is not collecting data on all devices on our network, a
-
I am using OS 10.6.8 on my iMac. I am also using Apple Works V 6, Pages V 4.1 and Numbers V 2.1. I can drag a document or spreadsheet from Apple Works to Pages or Numbers icons on my doc and convert them to Pages or Numbets documents and spreadsheet
-
Salut, J'ai travaillé toute la journée sur un grand projet sur Windows XP SP2 avec Photoshop CS2 (9.0.2). Il a atteint 1895Mo d'utilisation de la RAM! J'ai 3.5Go de RAM. Lorsque j'essaie de modifier une zone de texte par exemple, le message d'erreur