Update value for XABLN in LIKP table
Hi ,
Is there any way to update the LIKP-XABLN filed yhrough BAPI?
I tried with this FM BAPI_OUTB_DELIVERY_CHANGE , but could not succeed.
Edited by: nancy coner on Jan 27, 2010 9:39 AM
Hi,
I need to update LIKP-XABLN field from a Smart Form driver program programaticaly only when the Form is successfully printed.
I dint find any BAPI / Std Function Module which does the update.
I dont know how MB_XAB_NUMBER_GET works to update the XABLN field?
Edited by: nancy coner on Feb 1, 2010 8:03 AM
Similar Messages
-
Default value for a column in Table Control
Hi friends, can i set dinamcally a default value for a column in table control?, this column is check type. This default value must appear in empty rows,
thanksADD A MODULE AS Module yyyy In ur PAI.
as
In PAI.
LOOP at itab.
Module YYYY
ENDLOOP.
Module YYYY.
LOOP AT SCREEN.
IF SCREEN-NAME = 'ITAB-VAL.
ITAB-VAL = 'XXXXXXXX' "(DEFAULT VALUE)
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
End module.
*note
make this event work only if the previous column is filled okay.
the display will be in display mode on the screen as screen-input = 0.
see that in the table control u can get the table field for all the rows even though you are processing on some fields .
so what u do is make that particular filed masked(no i/p field and populate the field that will be better instead of populating all the columns okay.
hope this helps you out ,
regards,
vijay. -
Update values of custom fields in table HRPAD506-Additional Data for PAD506
Hi Experts,
my requirement is write a report program to upload a file with records.
I have to capture this records into an internal table and have to update values of 5 custom fields based on ADATANR.
Can anyone suggest me about any FM or any way of doing this.
Urgent requirement.
Will HRIQ_RFC_BOOKING_CHANGE help.
thankx.
Duttad.hi,
Above mentioned that when the values are entered in the customised fields they are not updating in the to the table mara.
so, the program name and screen number which you are configuring in the spro, in that program name and in that screen number code it as below:
(you could find the field statements in that screen for the standard fields like FIELD MARA-MEINS.)
for example:
PROCESS BEFORE OUTPUT.
PROCESS AFTER INPUT.
FIELD MARA-zzfieldname.
Refer the oss note : 38229
Thanks and regards. -
Updating values with in the same table for other records matching conditions
Hi Experts,
Sorry for not providing the table structure(this is simple structure)
I have a requirement where i need to update the columns of a table based on values of the same table with some empid and date match. If the date and empid match then i have take these values from other record and update the one which is not having office details. I need the update query
Before update my table values are as below
Sort_num Emp_id office start_date
1 101 AUS 01/01/2013
2 101 01/01/2013
3 101 15/01/2013
4 103 USA 05/01/2013
5 103 01/01/2013
6 103 05/01/2013
7 104 FRA 10/01/2013
8 104 10/01/2013
9 104 01/01/2013
After update my table should be like below
Sort_num Emp_id office start_date
1 101 AUS 01/01/2013
2 101 AUS 01/01/2013
3 101 15/01/2013
4 103 USA 05/01/2013
5 103 01/01/2013
6 103 USA 05/01/2013
7 104 FRA 10/01/2013
8 104 FRA 10/01/2013
9 104 01/01/2013
Thanks in advanceI do not have time to create the table with data but basically you should be able to code the following
update table a
set office = ( select office from table b where b.emp_id = a.emp_id
and b.start_date = a.start_date
and b.office is not null
where exists ( [same query as in set] )
and a.office is null
I believe that will do the trick.
HTH -- Mark D Powell -- -
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 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.
SeemaHi 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. -
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!! -
ADF Updating bindings for filtered rows in table
I have an ADF UIX table with say 10 rows each row having 8 fields. 2 of these are editable. So 6 fields use uix.current.fieldname and 2 editable use bindings.fieldname.
I have a drop down list on top of the table. Selecting an option fires an event which sets parameters in the view and filters the table and reduces the rows say to 4.
The table is now showing correct values for the non editable fields. But the editable fields are not showing the correct value. They show the older first four rows values.
How do I update the bindings when I reexecute the view for filtering the rows?
Appreciate your help.
Thanks,There is absolutly no reason to use PL/SQL (e.g. nested cursors, logic etc.) use MERGE
MERGE INTO emp target
USING (SELECT emp.empno,emp.sal,dept.dname,
CASE WHEN dept.dname ='ACCOUNTING'
THEN TRUNC(emp.sal * 1.2) ELSE TRUNC(emp.sal * 1.1) END new_sal
FROM emp
INNER JOIN dept
ON (emp.deptno = dept.deptno)
)source
ON (target.empno = source.empno)
WHEN MATCHED THEN UPDATE
SET target.sal = source.new_sal;And, if the factor of the update is stored in a special table / query, it gets even easier to maintain.
-- andy -
Hi Experts
Can you explain me that, in table some of the fields has predefined values, whether its a value table or what.
Pls explain, how to set predefined values for particular fields to our own tables.
Thank in advance.
Regards
RajaramHi,
you can explicitly mention domain range as value table for the fields in the database table.
Also the search help can be maintained for the fields in SE11 transcation where the value table can be specified.
Reward appropriate points.
Regards,
Mansi. -
Hello,
The project server workflows were running fine on my servers (2 App and 2 WFE). suddenly workflows are not working anymore.
and I am getting the below error:
DBNull.. Trace: at Microsoft.Office.Project.Server.Schema.WorkflowDataSet.WorkflowInstanceRow.get_WORKFLOW_INSTANCE_UID() at Microsoft.Office.Project.Server.BusinessLayer.Workflow.StartWorkflow(Guid projectGuid, Guid enterpriseProjectTypeUid, Boolean
isNewProject, Guid previousEntepriseProjectTypeUid, Boolean skipStage, Guid stageToSkipTo):
WorkflowExceptionStartingWorkflow (35115). Details: id='35115' name='WorkflowExceptionStartingWorkflow' uid='047a6f2d-8a44-e411-8bf4-0050568b37eb'.
I checked all DBs; all running fine. Also I tried to re-register the workflow with my site collection. but nothing worked.
Any suggestions?
Twitter : @MShoubaki | http://jo.linkedin.com/in/mshoubakiHi Mohammad,
I was able to resolve my issue by installing KB2880963. I did not have any of the other updates mentioned installed, but it did resolve the issue.
Note: I did need to restart my servers.
See Below from
http://social.technet.microsoft.com/Forums/windowsserver/en-US/b189e4b8-bb9e-4ade-a3d5-cd2e0f90e93f/workflow-not-working-after-installing-service-pack-1-and-patches?forum=sharepointadmin
Here is
the security update which you will need to install.
Update 2880963 for SharePoint Server 2013
http://support.microsoft.com/kb/2880963
Chcek the link for details.
http://expertsharepoint.blogspot.de/2014/08/workflow-not-working-after-installing.html -
Using Calc Manager to update values for Members with Text Data Type
Hi All,
In my outline I have a member of text data type. The purpose is to allow users to be able to enter comments.
Each line item is created through a business rule and I am prompting the user to enter the key values at the launch of the calc manager rules. I want to be able to prompt the user for the comments in the calc manager rule because I know that it supports variables of type string. However I am unable to assign this string variable directly to the member.
I appreciate that essbase only stores numeric data and that all text data type members really store numeric values which are basically the id's of the text string stored in a relational table by planning. however I cannot update the database table through calc manager and then bring in the generated id. Is there any way I can do this?
I don't want to skip this field in the calc manager rule and expect the user to enter the comments AFTER the line item has been created because the users want this to be a mandatory field and insist that a new line item not be created unless comments are specified.
Many thanks in advance for any help I can get.
ShehzadIf the comments are a set definition you could you smart lists in your planning forms.
create this in your smart list
xxxx = 1
yyyy = 2 -
Default value for first row in table after row has rendered
I have a master-detail type page where the first row in the detail table appears with no values when the page first renders. After the user enters some data in the master area, the default value is available. I then use something like this to set the default in one column of the first row:
MyVOImpl vo = (MyVOImpl)am.getMyVO1();
MyRowImpl voRow = (MyRowImpl)vo.first();
voRow.setMyAttribute("some value");
When I do this and run the code in the debugger, I can see that the default value is stored somewhere in the row object. However, the value is not displayed in the screen.
What must I do to get the default value to display after the user has tabbed out of the master data area, and before the user attempts to enter data in the row?Hi. Thanks again.
Here is more detail of the code:
if (pageContext.isLovEvent())
* Form was submitted because the user selected
* a value from the LOV modal window,
* or because the user tabbed out of the LOV input.
* This code executes when the event is either
* LOV_UPDATE or LOV_VALIDATE
String lovInputSourceId = pageContext.getParameter(SOURCE_PARAM)
// Find out the result values of the LOV.
Hashtable lovResults =
pageContext.getLovResultsFromSession(lovInputSourceId);
// Find out which LOV input triggered the event.
if (lovInputSourceId.equals("myLovItemId"))
String myDefaultVar = null;
if (lovResults != null)
myDefaultVar = "some stuff " + (String)lovResults.get("myResultItemId")
if (myDefaultVar != null && myDefaultVar != "") // yes, this is always true in this case
// now set the default for the first line.
// Added lines will be defaulted by the
// EO.create() method.
MyVOImpl myVo = (MyVOImpl)am.getMyVO1();
MyVORowImpl myVoRow = (MyVORowImpl)myVo.first();
myVoRow.setAttribute("myRowItemId", myDefaultVar); // THIS LINE DOES NOT CAUSE DISPLAY TO CHANGE
The problem, as noted in the code, is that setAtrribute() does not cause the default value to display in the field.
What can cause this, and what can fix it?
Edited by: user522137 on Nov 9, 2010 12:06 PM -
Select last value for each day from table
Hi!
I have a table that stores several measures for each day. I need two queries against this table and I am not quite sure how to write them.
The table stores these lines (sample data)
*DateCol1 Value Database*
27.09.2009 12:00:00 100 DB1
27.09.2009 20:00:00 150 DB1
27.09.2009 12:00:00 1000 DB2
27.09.2009 20:00:00 1100 DB2
28.09.2009 12:00:00 200 DB1
28.09.2009 20:00:00 220 DB1
28.09.2009 12:00:00 1500 DB2
28.09.2009 20:00:00 2000 DB2Explanation of data in the sample table:
We measure the size of the data files belonging to each database one or more times each day. The value column shows the size of the database files for each database at a given time (European format for date in DateCol1).
What I need:
Query 1:
The query should return the latest measurement for each day and database. Like this:
*DateCol1 Value Database*
27.09.2009 150 DB1
27.09.2009 1100 DB2
28.09.2009 220 DB1
28.09.2009 2000 DB2Query 2:
The query should return the average measurement for each day and database. Like this:
*DateCol1 Value Database*
27.09.2009 125 DB1
27.09.2009 1050 DB2
28.09.2009 210 DB1
28.09.2009 1750 DB2Could someone please help me to write these two queries?
Please let me know if you need further information.
Edited by: user7066552 on Sep 29, 2009 10:17 AM
Edited by: user7066552 on Sep 29, 2009 10:17 AMFor first query you can use analytic function and solve it.
with t
as
select to_date('27.09.2009 12:00:00', 'dd.mm.yyyy hh24:mi:ss') dt, 100 val, 'DB1' db from dual union all
select to_date('27.09.2009 20:00:00', 'dd.mm.yyyy hh24:mi:ss'), 150, 'DB1' from dual union all
select to_date('27.09.2009 12:00:00', 'dd.mm.yyyy hh24:mi:ss'), 1000, 'DB2' from dual union all
select to_date('27.09.2009 20:00:00', 'dd.mm.yyyy hh24:mi:ss'), 1100, 'DB2' from dual union all
select to_date('28.09.2009 12:00:00', 'dd.mm.yyyy hh24:mi:ss'), 200, 'DB1' from dual union all
select to_date('28.09.2009 20:00:00', 'dd.mm.yyyy hh24:mi:ss'), 220, 'DB1' from dual union all
select to_date('28.09.2009 12:00:00', 'dd.mm.yyyy hh24:mi:ss'), 1500, 'DB2' from dual union all
select to_date('28.09.2009 20:00:00', 'dd.mm.yyyy hh24:mi:ss'), 2000, 'DB2' from dual
select dt, val, db
from (
select row_number() over(partition by trunc(dt), db order by dt) rno,
count(*) over(partition by trunc(dt), db) cnt,
t.*
from t)
where rno = cntFor second you can just group by
with t
as
select to_date('27.09.2009 12:00:00', 'dd.mm.yyyy hh24:mi:ss') dt, 100 val, 'DB1' db from dual union all
select to_date('27.09.2009 20:00:00', 'dd.mm.yyyy hh24:mi:ss'), 150, 'DB1' from dual union all
select to_date('27.09.2009 12:00:00', 'dd.mm.yyyy hh24:mi:ss'), 1000, 'DB2' from dual union all
select to_date('27.09.2009 20:00:00', 'dd.mm.yyyy hh24:mi:ss'), 1100, 'DB2' from dual union all
select to_date('28.09.2009 12:00:00', 'dd.mm.yyyy hh24:mi:ss'), 200, 'DB1' from dual union all
select to_date('28.09.2009 20:00:00', 'dd.mm.yyyy hh24:mi:ss'), 220, 'DB1' from dual union all
select to_date('28.09.2009 12:00:00', 'dd.mm.yyyy hh24:mi:ss'), 1500, 'DB2' from dual union all
select to_date('28.09.2009 20:00:00', 'dd.mm.yyyy hh24:mi:ss'), 2000, 'DB2' from dual
select trunc(dt) dt, avg(val) val, db
from t
group by trunc(dt), db
order by trunc(dt) -
Onblur get values for form field from table.
Hello,
I created one from with report for TableA.TableA has 5 column. Now after i enter first field ,on blur, i want 2 other fields should get populated.They should get the 2 values from TableB.Table A and Table B are connected through primary key foreigh key constraint.First field is primary key of TableA.
How can i do this.I am writing a javascript function which i am calling from first form field.
But in the function how to take values from the table for the other 2 fields.
Can i just Select statements inside javascript function?
Thanks
Swapna.TSwapna,
You can do this using AJAX. See link.
Hope it helps
Cheers,
Hari -
BO-how do we get unique summerised value for both graph and table
When we add the column it shows 15 but when we create a graph with the same column and week no column it is taking distinct value resulting 7 as sum please let me know if there is any option to remove distinct values.
"Index your foreign keys if you EVER
o update parents primary key
{code}
When a deadlock is to due to a _unindexed FK_, the corresponding deadlock graph should at _least show one TM_ (DML enqueue). This is not the case here. So, unindexed FK are not the case here
Mohamed Houri
Maybe you are looking for
-
Changing attribute order in a mapping operator
Is there a way that I can easily change the position or order of a mapping operator or object (e.g. Joiner object) without having to remove all the attributes in an object, and then either entering them manually or pulling them from the source to the
-
Web Based Messageboard (JSP, XML, XSLT) - Just Looking For Advice Please!
I have a general question - I am not looking for any code, just some advice if possible. I am studying on a Masters course and I have been given an assignment to do which I am having difficult getting started. I have worked a lot with Java up until n
-
Help setting up sharing for music playlists family sharing vs home sharing
how do I set up sharing for music playlists for my iPad ios8 and sister new iPad. previous set up was home share between our macs. Now want to share with iPads added to the mix does family share offer playlist sharing how does (or not) match come int
-
Problem while using BAPI_OUTB_DELIVERY_CREATE_SLS
Hi All I am using BAPI_OUTB_DELIVERY_CREATE_SLS to create delivery, everything is fine. problem is suppose if i select 2 line items it is creating two deliveries, but i am submitting 2 items in one table , but result is two deliveries are created. BA
-
How to draw an image at the center of a JscrollPane
I have an image that I want to be centered in my JScrollPane. When I zoom-in, I want the image to fill the entire jscrollpane. When I zoom out it returns to the original scale. My problem is, when I open the image, it appears at the upper left corner