Delete field value with DTW
Does anyone know how to delete a value in a field with DTW?
For example:
I want to use DTW to Update my BPs to delete the the Foreign Name for each BP.
Any thoughts?
Suda,
Thanks for the reply. That was my assumption, but I was hoping I was missing something.
On that note, besides going into SQL, are you aware of any solution that can delete large amounts of records at once?
i.e. Deleting all BP Catalogs?
Similar Messages
-
Can not set OARG.cstAllcAcc field value with CustomsGroups Object
Can not set OARG.cstAllcAcc field value with CustomsGroups Object, please open this field in this Object because it is a key field related to financial system.
I guess, it should work; instead of html:submit, try with button.
-
Reading deleted field values using change pointer
hi
i am triggering DEBMAS06 using change pointer technique for XD01/02/05/06 transactions.
now when i delete data(make nulll values) in partner functions the generated IDOC is not showing the complete field itself.when i am deleting the field value and making it null the IDOC must send the fields with null values.but unable to trace out how to do this.
can anyone let me know how to handle this situation?
and i have extended DEBMAS06 with customer hierarchy data i.e. KNVH.i have written change pointers.now how can i populate these fields into my extension?Hello Moorthy,
1. This message function in the Idoc is populated as 005 then it should replace the entrire values while posting,
2. To populate KNVH extension you have to populate this only if you have KNVV data.. so you can either create enhance menti perfrom FILL_SEGMENT_E1KNVVM i(nf Function moduler MASTERIDOC_CREATE_DEBMAS) inclduer LVV01F01. or you can write the logic in BAdi CUSTOMER_ADD_DATA->FILL_ALE_SEGMENTS_OWN_D or in user eixt EXIT_SAPLVV01_001.
Regards
Naresh -
How to modify person or group field value with new value
Hi
I have person or group field having property Person Only.
Thsi firls already have one value. Now I want to update it but this code to update value is not working.
string myName = @"ABC\myname";
web.EnsureUser(myName);
SPUser myUser = web.SiteUsers[myName];
SPFieldUserValue myNamevlaue = new SPFieldUserValue(web, myUser.ID, myUser.LoginName);
oSplistItem["My_x0020_User"] = myNamevalue;
oSplistItem.Update();
I am getting myNamevalue correct in the veriable. But why its not updating in the list?
is there any issue in the above code?
Do I need to delete previous value and then update new value in this field? How?Hi,
The format of the user value in people/Group field must be
ID;#Name, you can use the following code snippets to update the people/group field.
string loginName = "ABC\\myname";
SPUser user = web.SiteUsers[loginName];
SPList list = web.Lists.TryGetList("ListName");
if (list == null)
Console.WriteLine("list is not exist!");
return;
SPListItem item = list.GetItemById(3);
item["My_x0020_User"] = user.ID.ToString() + ";#" + user.Name;
item.Update();
Thanks,
Jason
Please remember to mark the reply as answer if it help, and unmark the answer if it provide no help. -
[LiveCycle Designer] Send Field Value with FDF Response
Hiya. I'm trying to send two FDF responses, a status message and a field/pair value, from a PHP script that has processed a HTTP POST. The status message is sent to the form successfully, but the field value is not sent to a form created in LiveCycle Designer (ES4 Version 11). Here's what I have:
<?php
header('Content-type: application/vnd.fdf');
// read and store the data however you want
// reply with some FDF data
echo <<<RESPONSE
%FDF-1.2
1 0 obj
<< /FDF <<
/Status (Wham bam! Journal data sent electronically. Save a copy of this PDF for your records.)
/Fields [ <</T(batchnum)/V(testt)>> ]
>>
>>
endobj
trailer
<< /Root 1 0 R >>
%%EOF
RESPONSE;
?>
<?php
I think I have tried the gamut, removed "!", "copy", "for" from the status message; adding quotes, single and double, as well as ``; spacing; changing and verifying field names; send only the /Status and sending only /Fields (btw no errors while is still not sent); and on. Additionally, the above PHP code works perfectly, sending both status and fields, on a form created in Acrobat Pro XI. But no success in LiveCycle where I need the form created to dynamically manage rows and such. Ideas? Anyone?It looks like the FDF you've written was designed for an AcroForm. You can still use a FDF on a XFA form, but it has to be done a bit differently. Use JavaScipt inside the FDF to set your fields. E.g.:
%FDF-1.2
1 0 obj
<<
/FDF
<<
/JavaScript << /After (FieldIWantTomodify.rawValue = ("My new value");) >>
>>
>>
endobj
trailer
<<
/Root 1 0 R
>>
%%EOF -
To Modify a field value with field symbols
we had a requirement like we are getting in a floating point value in a field of an IDoc segment like 12.327- .Here if we see that the negative sign is after the floating point value and if we try to insert this into a database then it will throw out an error.Before inserting the value we need to covert the incoming value in the form -12.327.
I used the field symbols inorder to get the values and to change them.
But iam not able to modify the internal table from the new value.
Here is my sample code.
DATA: IT_MBEW TYPE TABLE OF MBEW,
WA_MBEW TYPE MBEW,
IT_DFIES TYPE TABLE OF DFIES,
WA_DFIES TYPE DFIES,
IT_DD03L TYPE TABLE OF DD03L,
WA_DD03L TYPE DD03L,
L_FIELD TYPE VALUE,
WA_VALUE TYPE mbew,
L_MBEW TYPE DDOBJNAME VALUE 'MBEW'.
FIELD-SYMBOLS: <FS1> TYPE ANY.
FIELD-SYMBOLS: <FS3> TYPE ANY.
FIELD-SYMBOLS: <FS2> TYPE ANY.
SELECT * INTO CORRESPONDING FIELDS OF TABLE IT_MBEW
FROM MBEW WHERE MATNR = '000000000000100110'.
LOOP AT IT_MBEW INTO WA_MBEW.
WA_MBEW-SALK3 = - 354471.
MODIFY IT_MBEW FROM WA_MBEW.
ENDLOOP.
To call the FM inorder to get the fieldnames for MBEW table
CALL FUNCTION 'DDIF_FIELDINFO_GET'
EXPORTING
TABNAME = L_MBEW
FIELDNAME = ' '
LANGU = SY-LANGU
LFIELDNAME = ' '
ALL_TYPES = ' '
GROUP_NAMES = ' '
UCLEN =
IMPORTING
X030L_WA =
DDOBJTYPE =
DFIES_WA =
LINES_DESCR =
TABLES
DFIES_TAB = IT_DFIES
FIXED_VALUES =
EXCEPTIONS
NOT_FOUND = 1
INTERNAL_ERROR = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
SELECT TABNAME FIELDNAME DATATYPE POSITION INTO CORRESPONDING FIELDS OF TABLE
IT_DD03L FROM DD03L
WHERE TABNAME = 'MBEW'
AND DATATYPE = 'CURR'
ORDER BY POSITION ASCENDING.
*LOOP AT IT_MBEW INTO WA_MBEW.
LOOP AT IT_MBEW assigning <fs1>.
ASSIGN WA_MBEW TO <FS1>.
do.
LOOP AT IT_DD03L INTO WA_DD03L.
READ TABLE IT_DFIES INTO WA_DFIES WITH KEY FIELDNAME = WA_DD03L-FIELDNAME
DATATYPE = WA_DD03L-DATATYPE.
IF SY-SUBRC = 0.
ASSIGN WA_DFIES-FIELDNAME TO <FS2>.
ASSIGN COMPONENT SY-TABIX OF STRUCTURE <FS1> TO <FS3>.
MOVE <FS3> TO L_FIELD.
CONDENSE L_FIELD.
CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT'
CHANGING
VALUE = L_FIELD.
IF SY-SUBRC = 0.
ASSIGN L_FIELD TO <FS3>.
MODIFY ITMBEW INDEX SY-TABIX FROM <FS3>._
ENDIF.
ENDIF.
ENDLOOP.
*enddo.
ENDLOOP.
The Modify statement is not working.....Plesae help me in this regard.
Thanks
SrinivasHello.
When you write,
LOOP AT it_mbew ASSIGNING <fs1>.
ENDLOOP.
you don't need to use statements:
ASSIGN WA_MBEW TO <FS1>
nor
MODIFY it_mbew
after that.
If you just write:
LOOP AT it_mbew ASSIGNING <fs1>.
<fs1>-field1 = 'A'.
<fs1>-field2 = 'B'.
ENDLOOP.
all records of it_mbew will have field1 = 'A' and field2 = 'B'.
The point is, statement LOOP assigning <fs1> will make the field symbol to became a pointer to the records of the internal table. So, if you change the field symbol, you are changing the internal table already.
Regards.
Valter Oliveira. -
Replacing a fields value with somethingelse in PLD
Hi All,
In the Batch Number Transaction Report's PLD, I want to replace Doc. Type OWTR with Production Order. I have some idea that it would be handled through a formula field but dont know the exact work flow. Could anybody tell me how to handle it by giving an example.
ThxNaveed,
Quite Clear now !!
This is what you need to do. Add two fields of type text to the PLD
Field1: Text Value = Production Order
Set the link to field to the Formula 1 field that you would create as below
Field2: Text Value = Issue for Production
Set the link to field to the Formula 2 field that you would create as below
Create two formula fields
Formula Field 1: Field_DocType == "OWTR" (use the actual DocType field number here == "OWOR")
Formula Field 2: Field_DocType == "OIGE" (use the actual DocType field number here == "OIGE")
Please let me know if you have any question
Suda
OWTR for Production Order, OIGE for -
Deleting field value using bapi
Hi all,
I want to delete a field VBAP-FIXMG from a report because it is wrong fixed.
but i want to delete it using a bapi.
can any one help me out which bapi to use and how to use it.
thanks.Hi,
Use the BAPI " BAPI_SALESORDER_CHANGE". U can check the docuemntation of it and also where used list to see if we can use the bapi.
Regards,
Nagaraj -
How to display another table's field value with an LOV?
Hi all!
On my JSP application I'm using an LOV based on 2 tables (datasources). I take the EMP and DEPT tables as an example:
The user can click on the LOV button to select a department for a specific employee. I use the following code for the LOV:
<jbo:DataSource id="dsEmp" appid="am" viewobject="EmpView" />
<jbo:DataSource id="dsDept" appid="am" viewobject="DeptView" />
<jbo:InputSelectLOV datasource="dsEmp" dataitem="DeptId" displaydatasource="dsDept" displaydataitem="Id,Dname" displayvaluedataitem="Id" formname="my_form" />
So, the LOV windows shows the ID and Department Name from the DEPT table and returns Dept.Id into Emp.DeptId. This works fine but in the Edit JSP I want to display the Department Name instead of the Department Number. I don't know how I can pick the Department Name from the DEPT table. I tried to change the displayvaluedataitem="Name" but, as I thought, this didn't work.
Is there any possibility to handle this problem?!
PS: I'm using Oracle9i JDeveloper.
Thanks a lot!Tim,
See may answer to your other thread:
Re: constant value
Charles. -
Deleting date field value via import
I need to clear the value in a date field for a few thousand records. I tried doing this via import by setting the value to a space " " but it didn't work.
Any ideas on how this can be achieved through import or otherwise would be great.
Thanks.Hi Nakul,
Try any of the following, it will hopefully work in your case:
1) Import using excel with blank date field (no data in date field). This will erase the already existing value in the date field [provided there is no workflow that restricts such deletion of date data.]
2) Create a temp workflow on condition "before modified record saved" and update the date field value with blank (no values in fx), do the import, this workflow will delete the existing data.
Cheers!
Vix -
Unable to update Logical Delete field in AS400
hi all,
We have an ESB process that polls for data in AS400 DB and transfers this data into an Oracle DB. This polling is based on Logical Delete. The data transferred is in the range of some lakhs of records. So we are sending around 5000 records per transaction in ESB. When we deploy the process, the data in AS400 is being read and getting transferred. However, the status field is not changing to 'Read Value'. Due to this, we are facing a lot of issues like, when we're in middle of data transfer and the opmn restarts, the data which has already been transferred is also being read and this is throwing an error because of primary constraint violation. Even after the data transfer, if we delete any rows in Oracle DB, the data transfer resumes as the status field is not updated.
I have worked with logical delete in Oracle DB before and was working fine.
Please help me with Logical Delete functionality in case of AS400 Database and also please let me know the privilages we need to have on the AS400 DB to successfully run this process.
Thanks,
Kamal.Hi,
According to your post, my understanding is that you was unable to update managed metadata field in designer workflow.
You need to provide the exact string for the MMS value, in the form of <id>;<value>.
The format of the value you wanted to set is uncorrectly, so you cannot update the managed metadata field.
If you want to set the managed metadata field value with correct format, you’d better to create custom action.
There is an article for your reference, although it is about the SharePoint 2010, it is similar to SharePoint 2013.
http://patrickboom.wordpress.com/2013/07/23/workflow-activity-set-managed-metadata-column/
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
Update a filed value with powershell script with ordery by and where condition
Hi
I have below powershell script to update list columns but how i update a field value with ordery by a column and where condition
below is the part of my script
$list = $web.Lists[$listName]
$items = $list.items
$internal_counter = 1
#Go through all items
foreach($item in $items)
if($item["CourtNO"] -eq $null)
#if($item["CourtNo"] -eq '1')
$item["CaseNo"] = $internal_counter
#how to add a column ordery by Title
# and where Title field value from 1 to 10
$internal_counter++
adilHi,
You mean that you only need to update all items with Title field value in range 1..10 and order by them before run the loop statement update?
If so, use CAML query to get the items only match the condition.
#Build Query
$spQuery = New-Object Microsoft.SharePoint.SPQuery
$query = '<Where><And><Gte><FieldRef Name="Title" /><Value Type="Text">0</Value></Gte><Lte><FieldRef Name="Title" /><Value Type="Text">10</Value></Lte></And></Where><OrderBy><FieldRef
Name="Title"/></OrderBy>'
$spQuery.Query = $query
$spQuery.RowLimit = $list.ItemCount
$items = $list.GetItems($spQuery)
Hope this help!
/Hai
Visit my blog: My Blog | Visit my forum:
SharePoint Community for Vietnamese |
Bamboo Solution Corporation -
Delete COPA value fields in a productive system
Does anyone have practical experience with deleting COPA value fields in a productive system?
The issue is that old, no longer used value fields should be deleted from a productive system to allow creating new ones, as the maximun number of value fields is reached.
An alternative would be to delete the prior transaction data captured on these no longer to be used value fields and rename them for their new use (to avoid that different kind of old and new data is reported on the same value field).
I am refering to the documentation on transaction KEA0 (or OSS note 160892 up to release 4.5), where it is mentioned that deleting value fields should only be done for operating concerns that have not yet been used productively. Did anyone do this already in a productive system?
Cheers, PeterTo delete characteristics or value fields, you should perform the following
activities:
1. Delete the corresponding characteristics and value fields from
Customizing in all clients (this includes forms, reports, planning
layouts, and so forth). To locate characteristics and value fields, use
the appropriate where-used list in the Customizing Monitor. You can
access it by choosing Tools -> Analysis -> Check Customizing Settings
(TA KECM).
You can jump directly from the where-used list to the relevant
Customizing transaction and then delete the appropriate field there.
2. Switch to the screen for maintaining the data structure of an
operating concern (Maintain operating concern).
3. If you need to effect other changes to the datastucture for the
operating concern before making any deletions, effect those changes and
save the data structure.
4. In order to be able to select the fields of the data structure,
choose Extras -> Characteristics (or Value fields) -> Unlock.
5. Select the characteristics and value fields to be deleted and remove
them from the data structure with the "Reset fields" function.
6. Reactivate the operating concern. The system starts by checking
whether the operating concern contains any data and whether the fields
to be deleted are still being used in any Customizing settings.
7. If none of the fields are still in use, the system then starts the
re-activation. If the operating concern does not contain any data or
does not require the database system to be converted, the tables are
activated. You are then able to activate the environment for the
operating concern. In this case, the following activities no longer
apply.
If the operating concern already contains data, a system message tells
you that the database needs to be converted. If you proceed, an
activation log appears (at the top of the list).
8. Analyze the activation log. If it only contains error messages
telling you to convert the tables, proceed with the next activity.
You must otherwise remove the cause of the errors before the tables can
be converted. In this case, you should answer "No" to the next prompt,
which asks whether the conversion transaction should start.
9. If you still only receive error messages telling you to convert the
tables, choose "Back" and start the conversion.
10. Plan a job for the conversion. A list of the tables to be converted
is shown for this. If the tables only contain a small amount of data
(less than 10 000 records), then all the tables can be converted in one
job. In that case, you can select all the tables.
For larger tables, conversion should take place in several jobs.
However, you should ensure that table CE4xxxx (where xxxx = operating
concern) is the last table to be converted.
Warning. No other changes can be made to the operating concern during
the conversion.
A copy of the table is generated during the conversion. The database
system should have sufficient memory available for this copy.
To schedule conversion as a job, use the "Schedule selections" function.
You can display the current status of the conversion by selecting the
"Refresh" icon. Tables disappear from the list once they have been
converted sucessfully. If a conversion is taking a while, it is also
possible to leave the transaction. You can then continue the conversion
using DB requests -> Mass processing in one of the following ways:
With the job overview. You access this by choosing System -> Services ->
Jobs.
Using the database utility transaction. You access this by choosing
Utilities -> Database Utility in the ABAP Dictionary menu.
You can use the status function to call up the status of the operating
concern during operating concern maintenance. You need to activate all
tables after conversion.
11. To analyze errors that have occurred during the conversion, you can
use the database utility transaction by choosing Extras -> Logs. The log
has the same name as the conversion job: TBATG-date. You can also
restart the conversion with this transaction.
For more information on the database utility, choose Help -> Application
help while still in the above transaction.
12. Once you have activated all the tables in the operating concern,
generate the operating concern environment from within operating concern
maintenance.
You can then use the operating concern again.
Please, refer to the IMG documentation under Controlling ->
Profitability Analysis -> Structures -> Define operating concern
-> Maintain operating concern, for further details.
Hope it helps -
How to delete an asset with a capitalization date inefaceable and no value?
Hi all,
An asset was created on the wrong asset class. I would like to erase it but this is impossible because of the capitalization date.
Indeed, I cannot change the fields status variant of the capitalization date, it is compulsory.
Furthermore, as this asset was an error, there are no values on it.
I tried to enter a deactivation date, but this is not possible because of no acquisition performed.
Therefore, I would like to know if it is possible to erase an asset even if a capitalization date has been entered in the master data?
If it is possible, how can I do?
Thanks for helpHi,
This is the drawback in asset master, when you make cap date as mandatory for AS01 transaction.
As a standard practice, cap date gets updated automatically when posting MIGO / F-90 only along with the qty.
In your case, first ask your ABAP member to delete the values from cap date field from table ANLA. (Field Name: AKTIV) for your questioned asset.
Then you can delete that asset with AS06 by choosing Physically delete the asset.
This will resolve your issue.
But if you make your field status as optional to cap date, then you must not got these kind of issues in the future.
Regards,
Srinu -
Deleting a Date/Fields value
Hi I'm developing a XDP Form to be depolyed under XHTML, and I cannot find a way to clear a Date/Time Fields current value using Javascript.
I've tried fieldname.rawValue = "", fieldname.value = "", and fieldname.formattedValue = "", and = null for all properties mentioned. These do seem to visually remove the date's value (or put the string "null"), However when a server side script tries to read the value (should be empty) from the date/time field it still returns the original date value.
I've also tried combinations of xfa.host.resetData(), which only partially works if the date field had an original value of empty not if it was populated with a value, plus it seems to clear all the other fields on the form which is not desireable.
Is there any way to delete the Date/time fields value client side?
Any ideas would be greatly appreciated?No attachment appears on this end ....can you mail it to [email protected]
Thanks
Paul
Maybe you are looking for
-
Registry issue when invoking the save_business operation
When, I invoke the save_business operation on the UDDI_Publication_PortType I get the stack trace below. This really puzzles me because I've sent in a few different messages that validate against the uddi_v3.xsd. Anybody know how to determine which e
-
Can the video from my Ipad Mini be seen directly on a TV or computer by outputing video ..or does it all have to go thru ITunes first...is there viewable video to output from the Mini?
-
Data in tables AGR_1251, UST12 and USR12
Hi there, I know that table AGR_1251 contains authorization data for SAP Roles. USR tables contain authorization definitions for access and UST tables contain data for SUIM reporting. The USR and UST tables that concern me are USR12 and UST12. I have
-
Hi, I want to switch from my currently used Windows 2000 to a Linux-System. Therefore support of my Audigy 2 ZS soundcard is very important for me. On a little research I made in the web I found out, that the Audigy 2 ZS seems to be generally support
-
Hi Experts, I need some clarity on PXE boot 1. My PXE point (Secondary Server) has IP subnet with 10.171.X.X and I am trying to build the machine from the next building which is 10.6.X.X series. When I PXE boot I get the below error PXE-E53 - No Boot