Problem in Updating a field in corpNAB resource through workflows
Hi,
I am working in Sun Java system identity manager 7.1 version.
I have created one workflow which sends a list of Ids to a sub work flow,The sub workflow updates a field called user name in person document of corpNAB resource for each user.
Username consists set of values like fullname,certifier etc.
I am appendng each such values to a list and setting in the person document.
The order in which i am appending the values is not reflecting in the corpNAB person document field.
Please refer to the code and help me to solve.
Thanks in advance.
<append name='user.accounts[CorpNAB].FullName'>
<concat>
<ref>short_name</ref>
<s>/Corp/lexmark</s>
</concat>
<concat>
<ref>fullname</ref>
<s>/Corp/lexmark</s>
</concat>
<concat>
<ref>fullname</ref>
<ref>temp_cert</ref>
</concat>
<ref>short_name</ref>
<ref>fullname</ref>
</append>
Hi..
Change ur Select statement as below .
<b>select knumv sum(kbetr)</b>
from konv
into table it_konv
for all entries in it_vbrk
where kschl = 'ZFQT'
and knumv = it_vbrk-knumv
<b>group by knumv .</b>
Here you need not to Retrieve the Field KSCHL since it is anyway given in the WHERE clause.
Let me know incase of any other issue.
<b>Reward if Helpful.</b>
Similar Messages
-
Updating EAN11 field in mara table through BAPI_MATERIAL_SAVEDATA
Hi,
I want to update EAN11 field in mara table through BAPI_MATERIAL_SAVEDATA could anybody please guide me how to achieve.
it would be great if is there any sample code for the same.
ThanksPlease give the following fields in the lwa_uom structure as well
lwa_uom -ALT_UNIT
lwa_uom -NUMERATOR
lwa_uom -DENOMINATR
DATA: lwa_uom TYPE BAPI_MARM,
lwa_uomx TYPE BAPI_MARMX.
DATA: lt_uomx TYPE STANDARD TABLE OF BAPI_MARM,
lt_uomx TYPE STANDARD TABLE OF BAPI_MARMX.
lwa_uom-ean_upc = '123456' " enter the value here
lwa_uom-ean_cat = 'abcd'.
append lwa_uom to lt_uom.
lwa_uomx-ean_upc = 'X'.
lwa_uomx-ean_cat = 'X'.
append lwa_uomx to lt_uomx.
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
unitsofmeasure = lt_uom
unitsofmeasurex = lt_uomx.
Edited by: Rahul Babukuttan on Dec 21, 2011 4:23 PM -
Problem with Update Text fields in Infoset
Hi experts,
Here i would like to rephrase the question. Normaly while working with Infosets, when press "update text fields" button, those fields having text is updated. But one of my field is not updated. I need some help from you for that.
One more question i've that my field is having check table so i would like to know how exactly the text field is updated.
scenario.
Customized IT9320 has field prt_pos added. This field is having check table T528B. But i want text field to be attached is IT1000-STEXT.
How this can be done, because i suspect that just using check table field IT1000-STEXT is not attached to IT9320-prt_pos.
Please help. I'm really got stuck here.
Thanks a lot,
Toral.
Hi,
I'm working on customised Infotype. I need to add one new customised field ie Present Position. This field has number as well as text associated with it. There is a check table attached with this field so that text can be displayed alongwith number.
I need this field in SAP/Adhoc query. But when i go to SQ02 this fields shows only value. Text is disabled for this field. I'm not sure why is it so.
I looked into other infotype which as one field using same data element, and that field shows both value as well as text. Please help me to rectify this issue for present position field.
Thanks,
Toral.
Edited by: Toral Sheth on Jul 4, 2008 2:01 PMYou would be much better off with one multi-line form field.
There are many problems with trying to determine when one is at the end of the display field with text entry. -
Problem with updating email fields thru ADRMAS idoc
Hi
I have a ABAP program which calls the function module to create a vendor -ERP_IDOC_INPUT_CREDITOR'.
During the creation of the vendor i can update the adress and telephone numbers but i cant input the email address .
To solve this i am calling the function module (BAPI_IDOC_INPUT1-function module used in ADRMAS idoc).
When i run the idoc it updates the field but when i call the Bapi in the abap program it does not update the data that i have entered in the function module .
I tried doing a BAPI_TRANSACTION_COMMIT but it still does not update it.
Any suggestions to solve it.
Also at the end of submitting the idoc it gives me a message
BAPI SAVEREPLICA has been called successfully
Is that what adrmas should be giving .
ThanksHi ,
Check your BAPI Returen Parameters, if it successfull then goto ADRC,ADR2,ADR6 tables and check your entry...
email address in ADR6 table -
Problem in updating table fields while enhancing screen fields using BDT
Hi all,
I have added some fields in REBE object using BDT. and also appended those fields in standard table(VIBDPR). But Data entered on those fields are not getting updated in table fileld..Can anyone Know the reson....?
Regards,
VijayHi,
I had the same problem. Here is an example code to resolve it:
REPORT ytestfg.
DATA: i_bsid LIKE bsid OCCURS 0,
i_bsid2 LIKE bsid OCCURS 0.
TABLES: bsid.
DATA: doc LIKE vbak-vbeln,
pos(6) TYPE n.
DATA e_fpla LIKE fpla.
DATA e_fplt LIKE fpltvb OCCURS 0 .
DATA: zfpla LIKE fplavb OCCURS 0,
zfplt LIKE fpltvb OCCURS 0.
DATA zfplt2 LIKE fpltvb OCCURS 0 WITH HEADER LINE.
doc = 'G03060619'.
pos = '000010'.
CALL FUNCTION 'SD_SALES_DOCUMENT_READ'
EXPORTING
document_number = doc.
CALL FUNCTION 'SD_SALES_BILLINGPLAN_READ'
EXPORTING
i_vbeln = doc
i_posnr = pos
IMPORTING
e_fpla = e_fpla
TABLES
e_fplt = e_fplt
EXCEPTIONS
no_billingplan_allowed = 1
no_billingplan_found = 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.
Read the billing plan
CALL FUNCTION 'BILLING_SCHEDULE_READ'
EXPORTING
fplnr = e_fpla-fplnr
I_VFKDAT =
I_BFKDAT =
TABLES
zfpla = zfpla
zfplt = zfplt
Upddate the ZFPLT2 table with the new values
MOVE zfplt[] TO zfplt2[].
READ TABLE zfplt2 INDEX 1.
zfplt2-afdat = '20080927'.
Very important to set field updkz = 'U' ***
zfplt2-updkz = 'U'. "--> UPDATE!!
MODIFY zfplt2 INDEX 1.
CALL FUNCTION 'BILLING_SCHEDULE_SAVE'
TABLES
fpla_new = zfpla
fpla_old = zfpla
fplt_new = zfplt2 " --> NEW
fplt_old = zfplt.
CALL FUNCTION 'SD_SALES_DOCUMENT_SAVE'.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
Regards,
Edited by: PHO_BA on Mar 9, 2009 5:28 PM -
Problem in updating screen field.
Hi all,
We have a requirement to fill a blank screen field in table control in the screen by taking the value of one of the other fields in the same screen.I have used DYNP_VALUES_READ to read value from one screen field of the screen and DYNP_VALUES_UPDATE to update the read value in another screen field in table control of the same screen.I am able to read the value but unable to update value.
Flow logic.
Value in the Project # field should be updated in the Partner field column in the table control on selecting Sold-To-Party, option. I have created field exit for Sold-To-Party field and in the field exit function module I have written the code.
Thanks and regards
Kiran VangalapatiIt depends on how you have your table control set up. When you say that you are updating the table control field, are you updating the value of the field wherever the table control data is being pulled from (I.e. the original table)? Or are you updating the value in the internal table that is part of the table control definition (I.e. the field shown within the table control if you look at the screen layout)? Make sure that if you are changing the data in the original table that you then also update the actual table control fields as well. Also, are you making your changes in the PBO module before the screen is ever displayed? You may need to use a MODIFY SCREEN statement after you make your changes, depending on when your code is called. I hope this helps.
- April King -
BLOBDestination. Problem in updating BLOB field
hi,
Im trying to customize BLOBDestination package to update a BLOB field. So I modified the method insertBLOB replacing the insert statement with this
stmtStr = "UPDATE " + " " + tab + " " + "SET "+ "'" blobCol "'=" + "'" + "empty_blob()" + "'"+ "WHERE " + "'"+keyCol+"'=" + "'" + key+ "'" ;
stmt.executeUpdate(stmtStr);
calling BLOBDestination from form I got this stmtStr:
UPDATE MYTABLE SET blob_field=empty_blob() WHERE col1 = 'val1' (copied from OC4J_BI_Forms log file)
but the execution returns this error:
REP-50125: blobdestination : exception: java.sql.SQLException: ORA-00933: SQL command not properly ended
I can affirm that the statement works if executed from TOAD or SQL*Plus
what's wrong?It depends on how you have your table control set up. When you say that you are updating the table control field, are you updating the value of the field wherever the table control data is being pulled from (I.e. the original table)? Or are you updating the value in the internal table that is part of the table control definition (I.e. the field shown within the table control if you look at the screen layout)? Make sure that if you are changing the data in the original table that you then also update the actual table control fields as well. Also, are you making your changes in the PBO module before the screen is ever displayed? You may need to use a MODIFY SCREEN statement after you make your changes, depending on when your code is called. I hope this helps.
- April King -
To Update Custom field in mch1 table through MIGO Tcode
Dear champs,
I have added one custom field in mch1 table ( date ).
Now , In MIGO Tcode when i am doing posting, MCH1 table is also updated.
I want to know how to update my custom field in mch1 table at the time of posting.
Please tell me where to write logic to update mch1 table.
Regards,
Satyen TrivediHi Satyen,
what data has to be update in MCH1 table new field, for this did you added any screen or you want to implement your own custom logic.
1) if you implemented the screen , then you have to write logic there itself.
2) If you want to update through custom logic , then you takeup with the Enhancements or BADI.
Regards,
Krishna -
Problem in Payment term field in invoice posting through MIRO
We are using BAPI_INCOMINGINVOICE_CREATE FM to post the invoice in MIRO transaction.
We are passing the following things in the BAPI FM
CALL FUNCTION 'BAPI_INCOMINGINVOICE_CREATE'
EXPORTING
headerdata = l_wa_header
IMPORTING
invoicedocnumber = l_v_belnr
TABLES
itemdata = l_i_itemdata
accountingdata = l_i_accountingdata
taxdata = l_i_taxdata
return = l_i_msg.
Its successfully creating the invoices but when we check in MIR4 for the created invoice all the fields are populated properly except the 'Pmnt terms' field in the Payment Tab.
Note we are getting the Number of days in payment tab
and even the Basic data tab has values like 'Paymt terms : 30 Days net'
What could be the possible problem?
Please help me ASAP.
Thanks in advance.
Bhaskar RHi,
Currently, we are also facing the same problem.
The payment term are not getting populated after posting the invoice.
Could you please help to overcome the issue.
Thank you.
Warm Regards,
Kalyani -
How to update Assignment field in Accounting Document through BAPI ?
I need to change Assignment field in already posted accounting document through bapi or some other automatic method. Please tell me exactly which bapi I should use and how can I pass the changed assignment field?
Hey,
I couldnt find any BAPIs which update an accounting document. I think the safest way is to record FB02 and use BDC/Call Transaction.
-Kiran
*Please reward useful answers -
Assign ldap resource through workflow
I'm trying to assign a ldap resource to a user through a custom workflow. I get the user view and I've tried adding the ldap resource to user.accounts, user.waveset.accounts, user.waveset.resources, user.accountInfo.accounts and checkin the view. But adding none off these creates a LDAP account. What do you add the the user view to assign a resource account to a user? Thanks in advance.
<set name='user.waveset.resources'>
<appendAll>
<ref>user.waveset.resources</ref>
<list>
<s>LDAP</s>
</list>
</appendAll>
</set>will keep the current resource values and add the additional i think
-Rob -
Problem with updating oracle DB with java date thru resultset.updateDate()
URGENT Please
I am facing problem in updating oracle database with java date through resultset.updateDate() method. Can anybody help me please
following code is saving wrong date value (dec 4, 2006 instead of java date jul 4, 2007) in database:
ResultSet rs = stmt.executeQuery("SELECT myDate FROM myTable");
rs.first();
SimpleDateFormat sqlFormat = new SimpleDateFormat("yyyy-mm-dd");
java.util.Date myDate = new Date();
rs.updateDate("myDate", java.sql.Date.valueOf(sqlFormat.format(myDate)));
rs.updateRow();I believe you should use yyyy-MM-dd instead of yyyy-mm-dd. I think MM stands for month while mm stands for minute as per
http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html
(If this works, after spending so much of your time trying to solve it, don't hit yourself in the head too hard. I find running out of the room laughing hysterically feels better).
Here is a more standard(?) way of updating:
String sqlStatement=
"update myTable set myDate=? where personID=?"
PreparedStatement p1= connection.prepareStatement(sqlStatement);
p1.setDate(1,new java.sqlDate());
p1.setInt(2, personID);
p1.executeUpdate(); -
Problem with update of BLOB field in a table with compound primary key
Hi,
I've been developing an application in Application Express 3.1.2.00.02 that includes processing of BLOB data in one of the tables (ZPRAVA). Unfortunately, I've come across a strange behaviour when I tried to update value in a BLOB field for an existing record via a DML form process. Insert of a new record including the BLOB value is OK (the binary file uploads upon submiting the form without any problems). I haven't changed the DML process in any way. The form update process used to work perfectly before I'd included the BLOB field. Since than, I keep on getting this error when trying to update the BLOB field:
ORA-20505: Error in DML: p_rowid=3, p_alt_rowid=ID, p_rowid2=CZ000001, p_alt_rowid2=PR_ID. ORA-01008: not all variables bound
Unable to process row of table ZPRAVA.
OK
Some time ago, I've already created another application where I used similar form that operated on a BLOB field without problems. The only, but maybe very important, difference between both the cases is that the first sucessfull one is based on a table with a standard one-column primary key whereas the second (problematic one) uses a table with compound (composite) two-column PK (two varchar2 fields: ID, PR_ID).
In both cases, I've followed this tutorial: [http://www.oracle.com/technology/obe/apex/apex31nf/apex31blob.htm]).
Can anybody confirm my suspicion that Automatic Row Processing (DML) can be used for updating BLOB fields within tables with only single-column primary keys?
Thanks in advance.
ZdenekIs there a chance that the bug will be included in the next patch?No, this fix will be in the next full version, 3.2.
Scott -
Problem DB Trigger and ADF Application for update a field.
I again,
I have a Data Base table as following :
--Solicitudes*
id number not null,
extern_code integer,
delivery_date timestamp( 6 ),
... and more fields
And a Trigger as following :
create or replace trigger update_delivery_date
before update of on Solicitudes
for each row
begin
if ( :new.extern_code = 9 ) then -- I need update the "delivery_date" to the current date and timestamp
select systimestamp into :new.delivery_date from dual;
end if;
end;
The trigger works fine in the DB, but when I update the 'Solicitudes' data base table through the ADF Application, the 'delivery_date' field is updated to different current systimestamp , for example suppose right now is : 19-JUN-*2012** 10.45.30.773000000 PM -04:00 , it field should be update to this date, but it is not update to that date, it is update to : 10-DEC-*1989* 10.45.30.773000000 PM -04:00.
Why is this ?
I put in the SQL Developer's query editor : select systimestamp from dual; and it show me the correct date and time.
That problem occurs only when I update the table through my ADF Application.Marco,
I don't see any issue with ADF in this. Just tried with a dummy table created with similar structure and tried updating it (have a similar trigger as well). It updated with proper timestamp (tried from SQL Developer, AppModule Tester and in jspx page - all same result).
Can you check the system date on the machine where your DB is hosted. I guess you are using different database for testing the query and the app is using a different db.
If not, try creating a simple testcase (as I mentioned in the first line) and see if you are able to reproduce the issue.
-Arun
P.S : I tried this in 11.2.0.1 DB & JDev 11.1.2.0.0 -
Adobe Interactive - Problem Updating Form Fields within tables
I am working with Interactive forms. My scenario is I download the form, update, upload to the Web and then submit to the backend, I am basically use a blend of the tutorials available. From a Web Dynpro perspective all is working well.
The problem I am having is in the Form itself.
I have 10 fields which I want the user to update. Fields which are bound at Page Level, work fine. e.g.
<CONTEXT>.<PAGE>.<FIELD>::Change
Data_Source.Page1.Langu::Change
However Fields in a table do not seemed to work properly. e.g.
<CONTEXT>.<PAGE>.<TABLE>.<ROW[x]>.<CELL[y]>.<FIELD>::Change
Data_Source.Page1.tblCusDetails.Row[0].Cell[1].Name
If I perform an update in the form Langu works well, Name does not.
e.g. Page1.Langu.rawValue = "EN" This works OK
Page1.tblCusDetails.Row[0].Cell[1].Name = "Andrew " This does not work.
I got round this issue by searching for the attribute at runtime.
Now (Based on my scenario) I am trying to update my form;
I download the form to the front end. Update and save. When I open the form again only Langu has saved, Name reverts back to <Emtpy>.
My workaround would be to remove all the tables, which I will start now, but I am wondering if I am doing something wrong or if its a bug in the form,?
Can anyone help?
AndrewHello Bhavik:
Thank you, for your quick response. To be honest, I went through the tutorial from SAP TechEd, "Creating Interactive Forms in Web Dynpro for JAVA, and it is drving me crazy.
I did create under the Contect actually Value Node:
DataSource and within that two Value Node for PersonalData and TravelData. For PersonalData, the following Value Attribute: CostCenter, Department, Name etc etc........
The properties is already set for the value attributes to string, I tried to change it to init it will not take it?
Please call me Amr. Thank you,
Maybe you are looking for
-
How can I downgrade to iTunes 11.1.2? URGENT!!!
I haven't been able to use iTunes since I upgraded to 11.1.3 some time in November. Today I finally got a chance to visit the Genius Bar, but the guy there couldn't solve the problem, which basically that when I open iTunes seconds after opening the
-
Keeps asking for password when deleting file ?
I updated to Mac OS Lion and now every time I delete any file it asks me for my password. Any file - be it on the Desktop, in the Downloads folder or in any other place. It asks me for my password every time. That behaviour is annoying. Is it the new
-
Controlling Resolution of .pdf
Hello, I'm building some charts that I need to offer as downloadble .pdfs and want to be able to control the size of the image that get's printed out after downloading. I'm doing a 'Save as .pdf' but when I open in Preview the chart is only about 320
-
Fatal error with installation of je22 con. arch. beta impl.
In step 6 it says that classpath must start with connector.jar and welogic60J2eeConnector.jar. But if I do that then the following fatal error occurs. But if the jar files are after weblogic_sp.jar and weblogic
-
How to query Opentype fonts with Contextual Alternates
Hi, I am using the C++ API for Indesign CS4. Is there a specific way to query Opentype fonts with contextual alternatives? The method that I use right now results in special reserved characters being outputted. It works however, for other Opentype fo