Ap_vendor_pub_pkg.update_vendor_site API is not updating a field
Hello
I want to update the Calculate Tax field on the supplier site level.
I am using the ap_vendor_pub_pkg.update_vendor_site API to update the ap_supplier_sites_all.auto_tax_calc_flag field. But the API does not update the field. I want to change the value of the auto_tax_calc_flag from 'L' or 'N' to 'Y'
I am running the API as a concurrent request. Thus the org_id should be set when you use the relevant responsibility
Below is my code. Am I missing a parameter? The API does complete successfully. The ap_supplier_sites_all table does show as updated when you look at the last_update_date field. But the auto_tax_calc_flag value does not change
Any ideas why the api is not updating
create or replace procedure apps3_mtnaol.mtn_update_supp_sites(errbuf in out varchar2, retcode in out number) is
v_error_message varchar2(3000);
l_vendor_site_rec ap_vendor_pub_pkg.r_vendor_site_rec_type;
l_return_status varchar2(1000);
l_msg_count number;
l_msg_data varchar2(2000);
l_msg_dummy varchar2(3000);
l_output varchar2(3000);
l_vendor_name varchar2(3000);
l_vendor_number varchar2(3000);
l_vendor_site_code varchar2(3000);
v_vendor_site_code varchar2(3000);
v_vendor_site_id number;
v_party_site_id number;
l_remmitance_email varchar2(2000);
v_party_id number;
v_party_site_name varchar2(3000);
v_ext_payee_rec iby_disbursement_setup_pub.external_payee_rec_type;
cursor c_1
is
select segment1
,vendor_name
,vendor_id
--,vendor_site_id --vendor_site_id from org_id 22970
,vendor_site_code
,vendor_type_lookup_code
,org_id
,party_id
,party_site_id
from mtn_supplier_site_22970
where 1 = 1
and segment1 = '661699';
begin
for rec in c_1 loop
select assa.vendor_site_id -- get vendor_site_id from org_id 5001
,assa.party_site_id
into v_vendor_site_id
,v_party_site_id
from ap_supplier_sites_all assa
where 1=1
and org_id = 5001
and assa.vendor_id = rec.vendor_id
and vendor_site_code = rec.vendor_site_code;
select party_id
,party_site_name
into v_party_id
,v_party_site_name
from hz_party_sites
where 1=1
and party_site_id = v_party_site_id;
fnd_msg_pub.delete_msg(null);
fnd_msg_pub.initialize();
l_return_status := '';
l_msg_count := '';
l_msg_data := '';
l_vendor_site_rec.vendor_site_code := rec.vendor_site_code;
l_vendor_site_rec.auto_tax_calc_flag := 'Y'; --calculate_tax field that needs to be set to Yes
l_vendor_site_rec.org_id := 5001;
l_vendor_site_rec.vendor_id := rec.vendor_id;
l_vendor_site_rec.party_site_id := v_party_site_id;
l_vendor_site_rec.party_site_name := v_party_site_name;
v_ext_payee_rec.payee_party_id := v_party_id;
v_ext_payee_rec.supplier_site_id := v_vendor_site_id;
v_ext_payee_rec.payee_party_site_id := v_party_site_id;
v_ext_payee_rec.payer_org_id := 5001;
ap_vendor_pub_pkg.update_vendor_site(p_api_version => 1.0,
p_init_msg_list => fnd_api.g_true,
p_commit => fnd_api.g_true,
p_validation_level => fnd_api.g_valid_level_full,
x_return_status => l_return_status,
x_msg_count => l_msg_count,
x_msg_data => l_msg_data,
p_vendor_site_rec => l_vendor_site_rec,
p_vendor_site_id => v_vendor_site_id
l_output := '';
if l_return_status <> 'S' then
for i in 1..l_msg_count loop
fnd_msg_pub.get(i, fnd_api.g_false, l_msg_data, l_msg_dummy);
l_output := l_output || (to_char(i) ||': '|| substr(l_msg_data,1,250));
fnd_file.put_line(fnd_file.output, 'Unsuccessful Update:'||l_return_status||': '||l_msg_count||', '||l_output);
fnd_file.put_line(fnd_file.output, 'Vendor Number: ' ||l_vendor_number);
fnd_file.put_line(fnd_file.output, 'Vendor Name: ' ||l_vendor_name);
fnd_file.put_line(fnd_file.output, 'Vendor Site Code: ' ||l_vendor_site_code);
fnd_file.put_line(fnd_file.output, 'Calculate Tax: ' ||l_vendor_site_rec.auto_tax_calc_flag);
end loop;
else
fnd_file.put_line(fnd_file.output, 'Successful Update:' ||l_return_status||': '||l_msg_count||', '||l_output);
fnd_file.put_line(fnd_file.output, 'Vendor Number: ' ||l_vendor_number);
fnd_file.put_line(fnd_file.output, 'Vendor Name: ' ||l_vendor_name);
fnd_file.put_line(fnd_file.output, 'Vendor Site Code: ' ||l_vendor_site_code);
fnd_file.put_line(fnd_file.output, 'Calculate Tax: ' ||l_vendor_site_rec.auto_tax_calc_flag);
end if;
commit;
end loop;
exception when others then v_error_message:= 'Other error: ' || SQLERRM;
fnd_file.put_line(fnd_file.output, 'Error Message: '||v_error_message);
fnd_file.put_line(fnd_file.log,'***************************************************************************');
fnd_file.put_line(fnd_file.log, 'Other error: ' || SQLERRM);
fnd_file.put_line(fnd_file.log,'***************************************************************************');
end;
/
Yes the API works outside my code.
I have used this exact same API to successfully update other fields on the ap_supplier_sites_all table like hold_unmatched_invoices_flag, match_option, pay_group_lookup_code, pay_date_basis_lookup_code, and always_take_disc_flag fields
Similar Messages
-
DYNP_VALUES_UPDATE not Updating the Field on my Dynpro
Hi.
I want to create a dynpro where two fields are. Field 1 allows the user to enter a customer number, field two shall come up with a number that is calculated somehow. The calculation can last up to 20 seconds, so I dont want to make the user waite for this number.. .he shall be able to work with the rest of the dynpro.
Therefore I called the function that does the calcuiation like that:
MODULE user_command_0100 INPUT.
DATA: lv_guid_16 TYPE guid_16.
IF kna1-kunnr IS NOT INITIAL AND kna1-kunnr <> gv_kunnr
CALL FUNCTION 'GUID_CREATE'
IMPORTING
ev_guid_16 = lv_guid_16.
gv_taskid = lv_guid_16+8(8).
CALL FUNCTION 'YDETERMINE_DEPOTDISTANCE'
STARTING NEW TASK gv_taskid
PERFORMING receive_depent ON END OF TASK
EXPORTING
i_kunnr = kna1-kunnr.
ENDIF.
ENDMODULE.
The next piece of code shall get the returning value if the function wants to return its results.
FORM receive_depent USING i_task TYPE clike.
TABLES: d020s.
DATA: dyname LIKE d020s-prog,
dynumb LIKE d020s-dnum.
DATA: BEGIN OF dynpfields OCCURS 1.
INCLUDE STRUCTURE dynpread.
DATA: END OF dynpfields.
IF i_task = gv_taskid.
RECEIVE RESULTS FROM FUNCTION 'YDETERMINE_DEPOTDISTANCE'
IMPORTING
e_depent = kna1-yydepent
e_accuracy = gv_accuracy.
MOVE 'KNA1-YYDEPENT' TO dynpfields-fieldname.
MOVE kna1-yydepent TO dynpfields-fieldvalue.
APPEND dynpfields.
dyname = sy-cprog.
dynumb = '0100'.
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
dyname = dyname
dynumb = dynumb
TABLES
dynpfields = dynpfields
EXCEPTIONS
invalid_abapworkarea = 01
invalid_dynprofield = 02
invalid_dynproname = 03
invalid_dynpronummer = 04
invalid_request = 05
no_fielddescription = 06
undefind_error = 07.
ASSERT sy-subrc = 0.
ENDIF.
Problem is: The DYNP_VALUES_UPDATE does not update the field on my dynpro at all. If I hit enter another time, then the field is provided by the value as another PBO will be processed. What is my mistake here?
Regards
Manfred
Edited by: Rob Burbank on Oct 29, 2010 12:07 PMHi Manfred,
Replace all the DYNP_VALUES_UPDATE-related content by the following statement:
SET USER-COMMAND 'xxx'.
While DYNP_VALUES_UPDATE does update the fields, a roundtrip is not triggered so the content of the fields will not be refreshed. The SET USER-COMMAND does that.
Hope this helps you!
Cheers, Roel -
SC Workflow not updating standard field
Hi,
I am using SRM 5.0 .After approval of SC which have multiple item not updating standard field of source_ind to all the line items .
It's getting updated in only first line item .
Recent Package : SAP_ABA SAPKA70011
Thanks ,
SachinHi,
DO you mean to tell that after the shopping cart is approved , only the first item is send to the sourcing cockpit?
ANd the other items of the shopping cart are not send to the sourcing cockpit?
Can you please compare the category for the two lines? is it the same?
can you check wether the category mentioned for the second line has got category which has been configured for sourcing cockpit? -
Work order should not update the fields in PR
Hi Gurus
My requirements is that workorder should not updates the purchasing data fields in PR do not go to the shoping cart. How can make it possible.
Thanks in AdvanceHi,
I am not sure of your requirement clearly but check up the below user exits :-
COZF0001 Change purchase req. for externally processed operation
COZF0002 Change purchase req. for externally procured component
or BADI :- IWO1_PREQ_BADI BAdI for Manipulation of P.Reqs from Orders + Networks ,SE18
regrds
pushpa -
DYNP_VALUES_UPDATE not updating SCREEN FIELD PERNAM
Following code not working. screen field pernam not getting updated. pls advise.
tables:zmara ,DFIES.
PARAMETER: pmatnr LIKE zmara-matnr,
pernam like zmara-ernam.
AT SELECTION-SCREEN ON PMATNR.
perform p2.
FORM P2.
*****READ
DATA: SCREEN_VALUES TYPE TABLE OF DYNPREAD ,
SCREEN_VALUE LIKE LINE OF SCREEN_VALUES.
DATA: MATNR1 LIKE ZMARA-MATNR,
ERNAM1 LIKE ZMARA-ERNAM.
SCREEN_VALUE-FIELDNAME = 'PMATNR' . " Field to be read
APPEND SCREEN_VALUE TO SCREEN_VALUES. " Fill the table
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
DYNAME = SY-CPROG
DYNUMB = SY-DYNNR
TRANSLATE_TO_UPPER = 'X'
TABLES
DYNPFIELDS = SCREEN_VALUES.
read TABLE SCREEN_VALUES INDEX 1 INTO SCREEN_VALUE.
MATNR1 = SCREEN_VALUE-FIELDVALUE.
*OVERLAY MATNR1 WITH '000000000000000000'.
*SHIFT MATNR1 RIGHT DELETING TRAILING SPACE.
UNPACK MATNR1 TO MATNR1.
SELECT ERNAM FROM ZMARA INTO ERNAM1 WHERE MATNR = MATNR1.
ENDSELECT.
*message ERNAM1 TYPE 'I'.
**********UPDATE
CLEAR SCREEN_VALUES[].
CLEAR SCREEN_VALUE.
SCREEN_VALUE-FIELDNAME = 'PERNAM' . " Field to be read
SCREEN_VALUE-FIELDVALUE = ERNAM1.
APPEND SCREEN_VALUE TO SCREEN_VALUES. " Fill the table
CLEAR SCREEN_VALUE.
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
DYNAME = sy-CPROG
DYNUMB = SY-DYNNR
TABLES
DYNPFIELDS = SCREEN_VALUES.
loop at screen_values into screen_value.
message SCREEN_VALUE-FIELDVALUE TYPE 'I'.
ENDLOOP.
ENDFORM.
Moderator Message: Put a little more effort from your end. Did you check in Debugger?
Edited by: kishan P on Mar 30, 2011 12:21 PMHi Manfred,
Replace all the DYNP_VALUES_UPDATE-related content by the following statement:
SET USER-COMMAND 'xxx'.
While DYNP_VALUES_UPDATE does update the fields, a roundtrip is not triggered so the content of the fields will not be refreshed. The SET USER-COMMAND does that.
Hope this helps you!
Cheers, Roel -
BADI MB_MIGO_BADI not updating custom field in MSEG Table
Dear Experts,
I am working on screen exit In MIGO transaction for transfer Posting.
I checked that BADI MB_MIGO_BADI having facility for screen exit and method line_modify having facility to change GOITEM Structure for the changed line item.
Now, to make this functionality work I have enhanced include structure CI_COBL which is available in both mseg table and goitem structure, now I have this customized fields on my custome tab through the enhancement and also to update this value 2 custom fields created in goitem structure and MSEG table through include structure CI_COBL.
Here my question is at the time of transfer posing creation in MIGO when I am passing the value in custom fields through screen and assigning it to custom fields of structure GOITEM through LINE_MODIFY method, it is giving me below worning message
BADI: Field GOITEM-ZZIDNLF is not ready for input. (Change is not taken over)
Now I have debuged the code, also checkout many threads and came to know that because of few checks in standred program (iNCLUDE:LMIGOKL3) these fields will not be updated WHERE IT always checks whether these fields are ready for input or not and if not ready then instead of assigning the values it throws worning message.
Now can you please through some light how can I go ahead as I have check out many threads and also tried to change value of cs_goitem structure using field symbol but throughing dump that it is blocked against changes through field symbol.
The helpful answers will be highly appriciated.Hi,
In the badi mentioned by you GOITEM is the importing parameters & if the relevant field is not used in any MIGO screen you cannot change the data.
Please check example BADI interface: IF_EX_MB_MIGO_BADI~LINE_MODIFY
Please check the BADI documentation:
Changed data in GOITEM is only adopted if the relevant fields are visible and ready for input.
Changed data in GOITEM is not adopted if the relevant field is not used in any MIGO screen (warning via MIGO 049).
Changed data in GOITEM is not adopted if the relevant fields are not ready for input (warning via MIGO 050)
Thanks and Regards,
Chandra -
When-Remove-Record, does not update header field
i have master-detail form and in that there is a DB field eh_amount, which takes it value from
the computed non-db summary field m_amount
my E_head
eh_code
eh_no
eh_amount
my E_detail (tabular with 5 records displayed)
ed_eh_code
ed_eh_no
ed_amount
m_amount <---summary column (summing ed_amount)
whenever i enter/update ed_amount , m_amount get computed properly.
i have WVI trigger written where i store eh_amount := m_amount
i have also written When-remove-record on e_datail block, where i again re-initialize
eh_amount := m_amount
the detail record gets deleted and m_amount gets updated,
but the header eh_amount does not show the updated value of m_amount.
Kindly suggest to me as to where the change has to happen.Hi Craig..
I am using form6i, db 10g.
I am not doing summation myself. My m_amount field is calculated field set at design time.
Summary detail block is E_detail and summary field is ed_amount.
Only after saving form, the new value for eh_amount is seen.
what i want is eh_amount should be seen updated, if while entering i delete any detail record.
in when-remove-record i am storing m_amount in eh_amount, but the new value of eh_amount
is visible only after saving the form and not when any record is deleted. -
BAPI not updating Z-fields while creating PR
Hi all,
I am creatting PR using BAPI_REQUISITION_CREATE, PR was created and std fields uppdated but some customer data z-fields hasbeen added to the screen and i am passing these fields using BAPI structure but these z-fields remains blank. Below is the code kindly suggest what's going wrong.
zfield structure
PREQ_ITEM NUMC 5 0
Zfield1 CHAR 40 0
Zfield1 CHAR 30 0
Zfield1 CHAR 1 0
Zfield1 CHAR 1 0
Zfield1 CHAR 1 0
Zfield1 CHAR 1 0
Zfield1 CHAR 255 0
Zfield1 CHAR 255 0
*******Code***********
data : BAPI_TE_MEREQITEM type BAPI_TE_MEREQITEM.
data : BAPI_TE_MEREQITEMX type BAPI_TE_MEREQITEMX.
BAPI_TE_MEREQITEM-PREQ_ITEM = '10'.
BAPI_TE_MEREQITEM-Zfield1 = 'TEST'.
BAPI_TE_MEREQITEM-Zfield2 = '999999999'.
BAPI_TE_MEREQITEM-field3 = 'N'.
BAPI_TE_MEREQITEM-field4 = 'N'.
BAPI_TE_MEREQITEM-field5 = 'N'.
BAPI_TE_MEREQITEM-field6 = 'N'.
BAPI_TE_MEREQITEM-field7 = 'DRI PLANT'.
BAPI_TE_MEREQITEM-field8 = 'From IT'.
move 'BAPI_TE_MEREQITEM' to extensionin-structure.
extensionin-VALUEPART1 = BAPI_TE_MEREQITEM+0(240).
extensionin-VALUEPART2 = BAPI_TE_MEREQITEM+240(239).
extensionin-VALUEPART3 = BAPI_TE_MEREQITEM+480(109).
append extensionin.
BAPI_TE_MEREQITEMX-PREQ_ITEM = '10'.
BAPI_TE_MEREQITEMX-field1 = 'X'.
BAPI_TE_MEREQITEMX-field2 = 'X'.
BAPI_TE_MEREQITEMX-field3 = 'X'.
BAPI_TE_MEREQITEMX-field4 = 'X'.
BAPI_TE_MEREQITEMX-field5 = 'X'.
BAPI_TE_MEREQITEMX-field6 = 'X'.
BAPI_TE_MEREQITEMX-field7 = 'X'.
BAPI_TE_MEREQITEMX-field8 = 'X'.
move 'BAPI_TE_MEREQITEMX' to extensionin-structure.
append extensionin.
CALL FUNCTION 'BAPI_REQUISITION_CREATE'
IMPORTING
number = prno
TABLES
requisition_items = requisition_items
requisition_account_assignment = requisition_account_assignment
return = i_return
EXTENSIONIN = EXTENSIONIN.Hello,
before calling Commit FM please try using FM ZZG05_BUPA_EVENT_DSAVB and then commit the changes.
or
Use the Function Module CRMXIF_PARTNER_SAVE. You can update or create standard and newly created fields(EEWB).
The following FM updates all the customer fields.
Please let me know if you face any issues.
Thanks & Regards,
Ravi Aswani -
OC4j10.1.2CMP bean not updating field after creating a record in the table.
I have a simple table in Oracle 9i database:
SQL> desc temp_tbl
Name Null? Type
OPER_ID NOT NULL NUMBER(5)
OPER_STS_TM_DT NOT NULL DATE
OPER_STS_CD NUMBER(2)
First 2 fields are the Primary Key. last field is standalone. No FK references.
I generate a CMP bean using Jdeveloper 10.1.2 for this table.
Then I try to insert a record into this table and update the oper_sts_cd field.
Problem: CMP inserts the record correctly, but does not update the field: oper_sts_cd, even though trace indicates that the field has been updated.
( shown in pgm below).
THE SAME CODE WORKED in OC4J9.0.4 Container.
Since we upgraded to 10g Rel2 ( OC4J10.1.2) , it does not.
Code:
Session Bean:
package model;
import java.rmi.RemoteException;
import java.sql.Timestamp;
import java.util.Calendar;
import javax.ejb.CreateException;
import javax.ejb.FinderException;
import javax.ejb.SessionBean;
import javax.ejb.SessionContext;
import javax.naming.InitialContext;
import javax.naming.NamingException;
public class SessionEJBBean implements SessionBean
public void ejbCreate()
public void ejbActivate()
public void ejbPassivate()
public void ejbRemove()
public void setSessionContext(SessionContext ctx)
private TempTblLocalHome getTempTblLocalHome() throws NamingException
final InitialContext context = new InitialContext();
return (TempTblLocalHome)context.lookup("java:comp/env/ejb/local/TempTbl");
public void createOperation() throws RemoteException
try
TempTblLocalHome tempHome = (TempTblLocalHome) this.getTempTblLocalHome();
System.out.println("Succcess loading Temp Entity EJB");
Timestamp currDate = new Timestamp(Calendar.getInstance()
.getTimeInMillis());
TempTblLocal tempLocal = tempHome.create(new Long("1294"),currDate,new Long("1") );
System.out.println("created Temp Op=" + tempLocal.getOperId() + " date=" + tempLocal.getOperStsTmDt() );
//tempLocal.setOperStsCd(new Long("" + 1) );
Long stsTypeCd = new Long("1");
System.out.println("Putting long value in db=" + stsTypeCd + "-");
tempLocal.setOperStsCd(stsTypeCd);
System.out.println("Stored value in db=" + tempLocal.getOperStsCd() );
catch( NamingException ne)
throw new RemoteException(ne.getMessage());
catch(CreateException ce)
throw new RemoteException(ce.getMessage());
ejb-jar (generated)
<entity>
<description>Entity Bean ( CMP )</description>
<display-name>TempTbl</display-name>
<ejb-name>TempTbl</ejb-name>
<local-home>model.TempTblLocalHome</local-home>
<local>model.TempTblLocal</local>
<ejb-class>model.TempTblBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>model.TempTblPK</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>TempTbl</abstract-schema-name>
<cmp-field>
<field-name>operId</field-name>
</cmp-field>
<cmp-field>
<field-name>operStsTmDt</field-name>
</cmp-field>
<cmp-field>
<field-name>operStsCd</field-name>
</cmp-field>
<query>
<query-method>
<method-name>findAll</method-name>
<method-params/>
</query-method>
<ejb-ql>select object(o) from TempTbl o</ejb-ql>
</query>
</entity>
<container-transaction>
<method>
<ejb-name>TempTbl</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Supports</trans-attribute>
</container-transaction>
orion-ejb-jar.xml (generated):
<entity-deployment name="TempTbl" data-source="jdbc/Marcs_DS" table="MARCS.TEMP_TBL">
<primkey-mapping>
<cmp-field-mapping>
<fields>
<cmp-field-mapping name="operId" persistence-name="OPER_ID" persistence-type="NUMBER(5)"/>
<cmp-field-mapping name="operStsTmDt" persistence-name="OPER_STS_TM_DT" persistence-type="DATE"/>
</fields>
</cmp-field-mapping>
</primkey-mapping>
<cmp-field-mapping name="operId" persistence-name="OPER_ID" persistence-type="NUMBER(5)"/>
<cmp-field-mapping name="operStsTmDt" persistence-name="OPER_STS_TM_DT" persistence-type="DATE"/>
<cmp-field-mapping name="operStsCd" persistence-name="OPER_STS_CD" persistence-type="NUMBER(2)"/>
</entity-deployment>>
Srini.r wrote:
> I have added a new field in IT0006
> Srini R
Have you done this through PM01?
~Suresh -
How can I get the Tables in my report to update their field lists?
I am working with Crystal Reports 2008, and I have a ReportDocument loaded in a .NET project.
I want to update the field lists of the tables (stored procedures) used in the report. I am calling "VerifyDatabase()", but this does not update the field lists. Through the designer, I accomplish this by going to the Database -> Set Datasource Location..., then clicking on the stored procedure (i.e. table) in the report, clicking on the stored procedure under the database in the bottom pane, and then clicking "Update".
How can I accomplish this in code?
Thanks for any help.Hello,
You have to use RAS and the replace connection method. The Report Engine does not have the ability.
Search forums for "ReplaceConnection_Click" and you'll find sample code that should work for you.
Thank you
Don -
Actual end date is not update after closing a change
Hi,
We are using SCSM 2012, now I want to make report on which changes have been closed in the last month. In som way all the changes that have been closed in SCSM do not have an actual end date, all the changes that I have imported from our old tool does. It
looks like SCSM does not update this field by itself, but I can't find a field in the change managment module in which I can provide the actual end date.
How does SCSM 2012 copes with this?
Kind regards, Marco JansenHi Greg,
We are actually testing this now, as MS is not planning to solve this issue on a short term. The use of the last modified date is casuing u a lot of trouble now as we have had an change on our change form casuingthe last modified for all change to be set
to the date of the change. That was the end of my closing data.
We are now getting the WA in place from Netviaconsulting, but that is not a complete solution. Not all change reach a state of complete before they are closed. Sometime you will close a change that is cancelled ,rejected or failed. this means that when
triggering on an update of the record every update will set the actual enddate. Besides when setting the actual enddate on the status closed, the date is update every time the worflow runs.
We just want the actual enddate to be filled when a change comes to the status closed from any other status, but this sets the actual enddate on every status change of the change. in some strange way ewe cannot figure this out.
If anybody has the correct configuration for this workflow it would be very useful. Most prefereably MicroSoft in this case. -
Can we update InfoPath field using Event Receiver ItemAdded method
Hi,
Can we update InfoPath browser enabled form field using Event Receiver ItemAdded method. Following is the code snippet I used to update the field but it's not updating the field.
Please help me on this issue.
public override void ItemAdded(SPItemEventProperties properties)
base.ItemAdded(properties);
try
//Turn off event firing so we don't end up with a conflict
base.EventFiringEnabled = false;
//Run the code elevated so we can rename our item
SPSecurity.RunWithElevatedPrivileges(delegate()
using (SPSite site = new SPSite(properties.Web.Site.ID))
using (SPWeb web = site.OpenWeb(properties.Web.ID))
//Grab a new copy of our list and listitem under the new security context
SPList list = web.Lists[properties.List.ID];
SPListItem item = list.Items.GetItemById(properties.ListItemId);
//Change name and title to match item ID
item.File.CheckOut();
string fieldInternalName = properties.List.Fields["Employee Name"].InternalName;
SPUser oUser = web.EnsureUser(Convert.ToString(item["Employee Entry"]).Substring(0, Convert.ToString(item["Employee Entry"]).Length - 2));
item[fieldInternalName] = oUser.Name;
item.Update();
item.File.CheckIn("Changed Employee Name");
catch (Exception ex)
//Log an errors to the ULS
finally
//Turn event firing back on
base.EventFiringEnabled = true;
Srivignesh JWhen you published your infopath form, did you promote the field you are trying to update to a property, and allow updates (its one of the steps in publishing your form, where you pick which fields you want to show as fields in the list view)...
Otherwise, how about get the Item.SPFile object, open it as XML, find the field you want to update, and update it that way... -
Grouping for Dunning Notices Not updated FKKMAKO-MGRUP
Hi All,
Dunning grouping field is not updated after dunning ran. Field FKKMAKO-MGRUP
I am enhancing couple new steps to collection strategy for current dunning which is running good.
All existing steps running fine and field(Dunning grouping field) is updating properly, but for new steps its not updating the field.
I do see the dunning grouping in my system "Z1" which is populating for all existing steps into FKKMAKO-MGRUP.
Did i miss any config or other steps to get this filed populated.
I want to get the same field to updated to my new steps as well. please advice hoe do i get it.
Thanks
RagHi,
Thnaks for your inputs.
I can be able to generate the spool with the tab "Sample printout" on F150. Output seems to be fine in the spool but when i go for the tab "indiv. dunn.notice" then from there i am not able to take the printout of the same. Usually when user used to run from this tab, spool request automatically gets deleted after use and printout of the same used to come up.
Status tab is showing like -
Parameters were manintained.
Dun.selection scheduled for for 19.07.11 at 15:59:38
Dun.selection is complete
Dunning notice printed,job deleted.
Samp.Printout scheduled for 19.07.11 at 16:24:16
Samp.printout is complete.
Also can you please tell me whether i can use program SAP F150D2 directly for the printing and also will it update against customer?.
Thanks.
Edited by: absap on Jul 20, 2011 3:36 PM -
I created a db connection and selected
1) Poll for New or Changed records in a table (Step 4)
2) Update a field in the [table] Table (Logical Delete) (Step 8)
3) Field: abc Read Value: 1 Unread Value: 0 (Step 9)
The problem is right now it does not update the field ABC in the table.
Do you have any ideas?Maybe the DB is not being polled at all.
is this the case? -
Updating ZUONR field of table rbkp
Moved by moderator to correct forum
I want to update the zunor field of table rbkp, when invoice is generated for specific purchasing doc. KIndly tell the exits if any or any other method.
I found one exit "EXIT_SAPLMRMH_001", but it is not updating this field, as the invoice is generated after the execution of this exit only.
Edited by: Matt on Nov 8, 2008 7:33 AMhi Shan,
this exit doesn't work
I have to update the field ZUONR of table RBKP manually every time transaction MRRL is run.
Earlier this filed ZUONR was hidden, we unhide it and want to display some data.
The screen is of transaction MIGO,where this field is going to appear.
Ajay
Maybe you are looking for
-
Product Drill Down Reporting and Using KKC7/KKC8 & KKRV
Hello Guys, Need some expert advise on my issue. 1. I have created a product group using T-code KKC7 and assigned materials to my product group. 2. I have done some material movement posting using 261 on these materials. 3. Next I run KKRV to collect
-
DBMpoolFile how to 'delete' pages
Dear All, Could any one help me with how to clear pages from the mpool memory subsystem and subsequently deleted from the file such that the space utilised by that page wil be returned to the memory cache pool. I am looking for something like deletin
-
Workgroup names are showing up with ASCII characters in them
Hi, When I view the network I can see all the workgroups and computers however the workgroup names are showing "/032" (without the quotes) where there would normally be spaces. I believe /032 is the ASCII value for a space but I don't know how to fix
-
see sentence
-
I upgraded to lion but versions is not working
I have upgraded, and wanted to try versions but it is not working. I have made multiple changes since the lion upgrade. I got Iwork not in the mac app store because I had it before. Does that mean anything? And there is no software update. Thank