Can we update the field VBAP-BEDAE in USEREXIT_SAVE_DOCUMENT_PREPARE
Hi Experts,
I have a requirement to change the requirment type(VBAP-BEDAE) of the Sales order item to be changed to custom requirment type, when ever the item quantity is changed.
I have used the function module 'RV_SCHEDULING_TYPE_DETERMINE' to determine the scheduling type and then passed the same to xvbap-bedae to update the same for the sales order item in the user exit USEREXIT_SAVE_DOCUMENT_PREPARE.
But as soon as the control is out of the user exit, the value is defaulted to the previous value.
Can any body suggest me as to how to update the VBAP-BEDAE field for a sales order.
Thanks in Advance.
Jaya
Hi,
Did you modify the internal table XVBAP after populating the BEDAE? If you modify this internal table in USEREXIT_SAVE_DOCUMENT_PREPARE then the value should change.
lw_xvbap-bedae = <your value>.
MODIFY xvbap FROM lw_xvbap TRANSPORTING BEDAE.
Regards,
Immanuel.
Similar Messages
-
Hi All,
I m new to CRM customization. I have requirement like this..
I have 3 entities.. Entity1 , Entity 2 and Entity3.
Entity1 is the parent of Entity2 and Entity3. Entity2 is the parent of Entity3 and child of Entity1 ..
In Entity1 I have a field eg:product1 which acts as lookup for Entity2 field availableproducts. Now in Entity2 I have a field the quantity of products which acts as lookup for Entity3 as given below.
In Entity3: fields:;; products==Lookup of Products(Entity1)
quantity == Lookup of Quantity (Entity2)
Now from Entity3 I need to update the fields of Entity1 like I have field named Price which is not visible on the Entity3 Form but when I access this field from javascript I m getting null exceptions since the field is not in the context of the Entity
on which it is defined. How can I update the fields of the Parent Entity1 from child Entity3 and also update the quantity field on Entity2 which are not avialable on the Entity3 Form.
Any help is appreciated
Waiting for the reply..
FayazSyedHi,
To do it in JS you need to use oData, as wrote above:
to make this requests easer, i use a XrmSvcToolkit library (https://xrmsvctoolkit.codeplex.com/)
Your code will be about this:
/// <reference path="rtb_XrmSvcToolkit.js" />
XrmSvcToolkit.retrieve({
entityName: "Entity1",
id: Xrm.Page.getAttribute("quantity").getValue()[0].id,
select: ["my_FieldNeedToUpdate"], //Here are the name of your fields, which you want to select.
expand: [""],
async: false,
successCallback: function (result) {
FieldNeedToUpdate= result.my_FieldNeedToUpdate;
errorCallback: function (error) {
Error = error;
FieldNeedToUpdate = FieldNeedToUpdate + 1; //Doing some work here
var InputEntity =
my_FieldNeedToUpdate: FieldNeedToUpdate //here are fields, witch you want to update
XrmSvcToolkit.updateRecord({
entityName: "Entity1",
id: Xrm.Page.getAttribute("quantity").getValue()[0].id,
entity: InputEntity ,
async: false
Here are more samples:
https://xrmsvctoolkit.codeplex.com/SourceControl/latest#Samples/XrvSvcToolkit.Samples.updateRecord.js -
How can i update the REMARK field in ADRT database table
Hi all,
How can i update the REMARK field in ADRT database table
By using Function modules or BAPIs
Please reply me fastHi,
you can try this code:
SELECT SINGLE * FROM KNA1 WHERE KUNNR = wa_kunnr.
IF sy-subrc = 0.
CLEAR adrct.
SELECT SINGLE * FROM adrct WHERE addrnumber = kna1-adrnr.
IF sy-subrc = 0.
adrct-remark = wa_remark.
MODIFY adrct.
ENDIF.
ENDIF
best regards,
Thangesh -
How can i update the ADRT table REMARK field
How can i update the ADRT table REMARK field
by using only function modules or BAPI's not by direct update's
please help me
i need it urgentlyHi,
you can try this code:
SELECT SINGLE * FROM KNA1 WHERE KUNNR = wa_kunnr.
IF sy-subrc = 0.
CLEAR adrct.
SELECT SINGLE * FROM adrct WHERE addrnumber = kna1-adrnr.
IF sy-subrc = 0.
adrct-remark = wa_remark.
MODIFY adrct.
ENDIF.
ENDIF
best regards,
Thangesh -
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 -
USER EXIT or BADI to update the field in trx. ME41
Hi guys,
My requeriments is update the field EKKO SUBMI of record when the trx. ME41 but can not find how to do it, the BADI ME_PROCESS_CUST the method POST not allowed me to meet user and not allow the update the field.
Please help ...
Thanks.Hi Ramana,
Go to SPRO Transaction and follow the below path
Customer relationship management>Transactions>Settings for Service Processes>Business Add-Ins and you will find 8 BADI's.
Check these BADI's useful for you.
Regards,
Lijo Joseph -
How to update Tr code FB02 and update the field reference key1 (bseg-xref
Can any body
help me how to update Tr code fb02
and update the field reference key1 (bseg-xref1) with the interest amount
calculated.
Below i have written My program flow logic
The program should read the open items i.e debit items in the customer account,
Based on the invoice date and customer payment terms calculate the due date and then the interest should be calculated on that item based on the due date.
Use the transaction fb02 and update the field reference key 1 (BSEG-xref1)
with the interest amount calculated
Only consider customers whose interest indicator knb1-vzskz = 'vk'.
Interest is to be calculated for every 30 days
at the rate of 1% .please see example below.
Document date is 01.01.2007
for amount 1000SGD payment term 7 days
It becomes due on 08.01.2007
until 06.02.2007 you should not consider for calculation of interest
SGD on 7.02.2007 run you can consider this item for interest calculationHi Robert,
Thanks for answering.
I am looking at Ref 2 should flow automatically to clearing document from the accounitng document for billing.
Ex: Billing document is created and accounted. Ref 2 is AB
Now when receipt is accounted for this biling document this AB should flow automatically to Ref 2 field.
Thanks
NNS. -
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... -
How to update the field ZLSPR of table BSEG
HI Friends,
Can anyone tell me how to update the field ZLSPR of table BSEG? I've a 700 line abap program and I should include some logic in this program to make an entry into BSEG-ZLSPR. Is there any FM/BAPI available? Is BDC a healthy approach?. My team lead do not want me to use UPDATE statement....please help.
Thanks in advans,
Varsha.Hi,
Hi ,
You will need to group that radiobuttons so that SAP knows they are linked together. To do this using the grahical layout editor simply select all the radiobuttons and then right click on them, Now choose define group. Once you have done this you should not need any of the "clear" or "='X'" statements SAP should control it all for you.
hope this helps
Reward if found helpfull...
Venkoji Babu. -
I Experts, I would like to update the field BANPR with 08 with a BAPI
Hi experts,
I would like to Update the field EBAN-BANPR with 08 (Release Refused). Is there any BAPI through which i can update this field and also it should raise the satandard events : REJECTED / REJECTION_STOP. I did check the BAPI : BAPI_PR_CHANGE, but this will not update that field.Please let me know if you have anything. Please help me.
Appreciate your help in this regards.
Many Thanks,
Prasad NN:I think you'll get a much better deal at the Apple online certified refurbished store. An ipad 2 64gb with cellular is there right now and costs $499.00 vs a new ipad 2 16gb with cellular which is $529.00. They also sell a 32 gb with cellular for $399.00 but only the 64gb is available now. With a refurb from anywhere else, you will not get what you will from the Apple refurb store.
Each Apple refurbished ipad (any version) comes with a new front and back cover, a brand new battery and a full one year warranty with 90 days of phone support. Each comes in a white box like a new ipad with the wall charger and usb cable. The only difference is that it says in small print on the bottom of the box that it is Apple certified refurbished. Also, if you buy refurb, be sure to check the store many times a day. They can come and go quickly, so when you see what you want, buy it right away. Shipping is free and pretty fast. (We bought two a year and a half ago and they have been great!)
This way you'll have cellular, all the room you need and then some and you'll save $30.00.
Let us know what you do and enjoy your new ipad!
Hope this helps. -
How can I update the trigger table?
I need a insert trigger on a table and also wants to insert the result value in one of its field.
it gives mutating error........
so wots the way of updating it? how can i update the same table.For example like this (inside the BEGIN/END section of the trigger):
:NEW.Col2 := :NEW.Col1;
C. -
I have three iPhone 4 models purchased in late 2010 (for my family) that all share the same iTunes account for access to apps and music, but each phone/user still has his/her custom contact list, email accts, and select lists of apps and music from the one iTunes acct library. The problem is I can only update the software on one of the three iPhones – the primary phone I used to setup the iTunes acct. What is the best solution to manage these devices for software updates, apps? This is probably a common problem with families wanting to share apps and music without realizing the issues created by this approach. As it stands today... the first (primary) iPhone associated with the iTune acct has been updated with the latest software version 5.1.1 and sync'd up with all the apps, music, etc from the one iTune acct, while the other two iPhones are still running on the original software version 4.0.2 and are experiencing problems now. I was advised by AT&T back in January that it would be necessary to setup separate iTunes accts for the second and third iPhones in order to receive system updates. The problem would be how to keep all the apps, etc from being deleted off the second and third phones that were originally loaded from the one iTunes acct. Since this AT&T advice was prior to iCloud coming out, would iCloud be a better solution or at least part of the solution? I really don't yet understand how iCloud works. Hopefully, someone out there can help me?? Please?
I have three iPhone 4 models purchased in late 2010 (for my family) that all share the same iTunes account for access to apps and music, but each phone/user still has his/her custom contact list, email accts, and select lists of apps and music from the one iTunes acct library. The problem is I can only update the software on one of the three iPhones – the primary phone I used to setup the iTunes acct. What is the best solution to manage these devices for software updates, apps? This is probably a common problem with families wanting to share apps and music without realizing the issues created by this approach. As it stands today... the first (primary) iPhone associated with the iTune acct has been updated with the latest software version 5.1.1 and sync'd up with all the apps, music, etc from the one iTune acct, while the other two iPhones are still running on the original software version 4.0.2 and are experiencing problems now. I was advised by AT&T back in January that it would be necessary to setup separate iTunes accts for the second and third iPhones in order to receive system updates. The problem would be how to keep all the apps, etc from being deleted off the second and third phones that were originally loaded from the one iTunes acct. Since this AT&T advice was prior to iCloud coming out, would iCloud be a better solution or at least part of the solution? I really don't yet understand how iCloud works. Hopefully, someone out there can help me?? Please?
-
How can I update the thumbnails in the slide panel when a slide has been changed?
When the text in a slide has been changed, how can you update the thumbnail in the slide panel to reflect this change?
We translated slides, but the slides in the slide panel are still in English.
Thanks for your help.the slides should update automatically as you type
are you using a theme you created yourself, or one you have added for this show?
when you play the show, does the slides show correctly? If they are OK you could still show the presentation.
also what Mac are you using and what graphic crd is installed? -
How can we update the last synchronization date and time..on SUP in sccm 2012 R2
Hi,
Can you any one please guide me how can i update the last synchronization date & time in SUP on SCCM2012 r2 , some how its updated as future date and when ever i try to synch the SUP with disconnected WSUS its shows in the wsyncmgr.log
"Wakeup for a polling cycle " and " Wakeupby inbox drop" and "Wakeup by SCF change"
Thanks
Balaji KYou'll probably have to call CSS on this one as this not normal by any means. The messages you noted above are completely normal but if that's all you are seeing then there's an issue.
Have you reviewed wcm.log and wsusctrl.log?
Jason | http://blog.configmgrftw.com | @jasonsandys -
I can't update the apps in my ipad once I try it update it says this update not for this Apple ID . I need help plz
Help please any one ?
Maybe you are looking for
-
In Ical is there a way to save time in 24hr format?
Is there a way to save events in 24hr format? in the Iphone you can enter and save in 24hr format...
-
AboutToUpdate and UpdateAllQuery
We have extended DescriptorEventAdaptor to use the aboutToUpdate method for auditing fields. That works fine. When an UpdateAllQuery is executed on an object I would expect the aboutToUpdate to add the auditing fields in the update statement too, spe
-
XMII 12.0 continued...
SAP xMII 12.0 is powered by SAP NetWeaver Application Server (SAP NetWeaver AS). In a typical xMII Enterprise Architecture this would mean Netweaver AS on each of the plant servers & the enterprise xMII server. How would this change vis a vis xMII 11
-
BPEL JDeveloper 10.1.2
Hi, When a wsdl is openend in BPEL JDeveloper, the structure window will show all the definitions such as types, message, portType, partnerLinkType etc. When you right click on these nodes you get a popup menu with some options. For example, right cl
-
I downloaded the new Flash Builder 4.5 PHP Standard, but when I installed it it said it was the premium version. After running the install I opened the program and it said that I needed to install Zend. There was a tab for Zend so I installed it.