VBAP-ABDAT field updation in MV45AFZZ.
Dear Gurus,
we have a requirement , when we are changing the field VBAP-ABGRU through BAPI_SALESORDER_CHANGE we should update sy-date in the VBAP-ABDAT.
i have tried for the ABDAT field in the bapi item structure it is not there.
i found the exit MV45AFZZ with exit: USEREXIT_MOVE_FIELD_TO_VBAP.
can guide how insert the sydate in 'ABDAT' field if VBAP-ABGRU is changed is changed or filled with value thorough BAPI_SALESORDER_CHANGE.
Regards,
Abdul Rahim
Hi Abdul,
could you please check if the value of ABGRU has been changed by comparing VBAP and XVBAP?
Also, check that you do this only when the sales document changes (t180-trtyp eq 'V').
You can do this in userexit_move_field_to_vbap
reg, bob
Similar Messages
-
Hai all regarding VBAP-ARKTX field updation
Hai experts,
my problem is vbap-arktx is not updating in the sales order creation, i am using exit save_document.my requirement is i want to concatenate description and model no in the characteristic assignment screen into one local variable and it move to VBAP-ARKTX. i had concatenated the description and model no in to one variable and it is moving fine in the xvbap-arktx but when i am saving the document its not updating in vbap-arktx. is it ok for using commit work or update statement or anything plz suggest me .
regards,
venkat.hai heliman,
thanks for ur reply.
i had traied fro move field _vbap its not triggering in VA01 creation time, its triggaring only when VA02 change mode.i am using this FM to get the duiscription and model no
CALL FUNCTION 'VC_I_GET_CONFIGURATION'
i am using this code to read and concatenate these fields in to lv_arktx and moving to xvbap-arktx fine but my problem is once i am saving that order its not reflecting to the vbap-arktx field give me some suggesions to me.
CLEAR gw_conf_out.
READ TABLE gi_conf_out INTO gw_conf_out WITH KEY atwrt = ' DESCRIPTION'.
lv_zdescription = gw_conf_out-atbez.
CLEAR gw_conf_out.
READ TABLE gi_conf_out INTO gw_conf_out WITH KEY atwrt = ' MODEL/STYLE NUMBER'.
lv_model_style_number = gw_conf_out-atbez.
CONCATENATE lv_zvendor lv_zdescription lv_model_style_number INTO lv_arktx
SEPARATED BY space.
MOVE lv_arktx TO xvbap-arktx.
xvbap-arktx = lv_arktx.
CLEAR lv_arktx.
CLEAR gi_conf_out.
ENDLOOP.
regards,
venkat. -
Va01 , vbap-taxm1 field not should not be blank when save sale order
Hello all,
I am working on sale order.I want if VA01,VA02,VBAP-TAXM1 fields kept blank while saving the sale order it should display a MESSAGE.can anyone please help me with this.
Thank in advance.Write your code in MV45AFZZ USEREXIT_SAVE_DOCUMENT_PREPARE.
check for xvbap-taxm1 and throw error message.
write the below code after the error message.
PERFORM FOLGE_GLEICHSETZEN(SAPLV00F).
CH_FCODE = L_C_FCODE.
SET SCREEN SYST-DYNNR.
LEAVE SCREEN.
other way is to ask your functional to add the field to in-completion procedure and then trigger this incompletion via exit, use the same save document prepare -
Issue in Workflow- Field Update is not happening
Hi Friends,
I am facing an issue to update a check box field Released.
I have created a task having Advance with Dialog opiton,Background processing to update the Checkbox field.
The BOR Object type used is BUS1006 and method is CHANGE. Everything looks fine when tested the task as well as the workflow in test mode and it is working fine in both the cases. But some how, this field update is not happening over the CRM 2007 Web UI. We are assuming it is due to user authorizations or some other settings ( like assignment of backend user to the workflow)
for doing this task. Can some one give us some pointers on this. This will be of great help.
Thanks,
UdayaHi Imtiaz,
I am new to this. Can you please give me some pointers on how to check whether WF-BATCH has the needed authorisations and the process can be executed in background.
Reply me at your convenient time.
Thanks a lot for your response.
Regards,
Udaya -
Custom field updation in bapi_salesorder_createfromdat2 structures
hi friends,
custom field updation in bapi_salesorder_createfromdat2 structures
i having a problem while creating a salesorder in vao1 tcode
i unable to find the WWDLC FIELD AND DATA ELEMENT IS
RKEG_WWDLC (delivery to country) in item data-> account assingment-> profit centre-> delivery to country
how to enchance the field in bapi structures.
thanks
geetha.good
-
When does Date Modified field update in cmc XI3.1
In CMC > users and groups
there is a Date Modified field, When does it update? Is there any document describe that?
For example
I have test that when I edit a user's properties the Date Modified fields update.
When a user log onto CMC, some time the logon times is update as Date Modified
some times is not? Why does this happen?Hello,
If you update the the properties of the group or the user then the last modified date will change to the current date/time. What kind of user do you have, Enterprise, Windows NT, Windows Active Directory or LDAP. Sometimes a user doesn't exist until they actually log on to the CMS then their Last Modified date would change. Have you consistantly seen this happen with a specific user, if so can you reproduce this on demand.
Jorge -
In field updates of the sbRio9606
I am looking at using an sbRio board in a deployable system however I'm not sure how I could provide updates to systems in the field.
Is it possible to perform in field updates of the sbRio9606 without having the complete NI environment installed at that site?
A simple procedure via a tool or via ftp/web page for example would be great.
many thanks for any suggestions / feedbackHi BeeTee,
I'll try to tack on some details.
In short, you do not need the full NI development software suite on a PC to update Single-Board RIO units in the field.
Any PC with network access to the device can update the application image on the device. One tool I would recommend to this procedure is the NI Replication and Deployment Utility.
The RAD utility can take compiled system images and distrubute them on networked devices. Using this tool to upgrade images assumes that you have an identical device available in your development system to build, test, and capture the image from.
With proper software architecture, the Single-Board RIO can also be programmed to recognize when a new application update should be downloaded from a USB key. This article demonstrates a reference design for creating a Single-Board RIO system that can be updated in the field via USB memory device.
Finally, compiled applications can also be readily copied onto deployed sytems via the onboard FTP server or securely with WebDAV.
Regards,
Spex
National Instruments
To the pessimist, the glass is half empty; to the optimist, the glass is half full; to the engineer, the glass is twice as big as it needs to be... -
Use REST API to query contacts with a field updated since certain time?
Hello,
Using the REST API and trying to figure out how I can query for contacts that have had a field updated since a specified time. I've tried using the "lastUpdatedAt" arg, but to me it seems like I'm getting back contacts that maybe haven't had any data change, but were probably sent an email or something of that sort (so the updated at value was changed)
Is there a way to query for contacts that have had fields change (Like subscriptions, address, title, etc) but exclude those contacts that only have their updated values changes because they were sent an email?
Thanks!Hi Chris,
lastUpdatedAt or "Date Modified" fields don't change when the contact is sent an email, but rather, when ANY field is modified on the contact record. You can certainly query for and export contacts that had their data touched in some way since a specified time, but it won't be on a per-field basis. There is effectively no field level change history or tracking. You can work around this with extra logic. First, you can get a snapshot of what the values were in the specific fields you want to track across your entire database.
The next time you run an export using Date Modified, it will contain more records than you might care about, but you can filter offline for the ones you do care about by comparing their before and after values for the specific 'tracked' fields.
Regards,
Bojan -
Problem to update VBAP-ERLRE field in a standard table----Its urgent
Hi friends,
ERLRE: Completion Rule
I need to create custom utility program to update ERLRE field(already it was set with B for thos specific orders,i need to upadte with null value for those) in production for specific orders.I checked FM: sd_salesdocument_change, but ITEM_IN STRUCTURE BAPISDITM ,ITEM_INX STRUCTURE BAPISDITMX OPTIONAL
those two structures not contain ERLRE field. Only ITEMS_EX STRUCTURE BAPISDIT OPTIONAL contain ERLRE field.
It does not have any x structure corresponding it.
Please help me how to update that field? Is there any other solution for that?
Thanks,
MonicaHi Rob,
I am doing the same way what you told, but its not updation data in table. Can you please check my code what i had done.
DATA: header_in LIKE bapisdhd1,
header_in_x LIKE bapisdhd1x,
item_in LIKE bapisditm OCCURS 0 WITH HEADER LINE,
item_in_x LIKE bapisditmx OCCURS 0 WITH HEADER LINE,
return LIKE bapiret2 OCCURS 0 WITH HEADER LINE,
ITEMS_EX LIKE BAPISDIT OCCURS 0 with header line.
DATA: rec_ok TYPE char1.
DATA: t_vbak LIKE vbak OCCURS 0 WITH HEADER LINE.
DATA: t_vbap LIKE vbap OCCURS 0 WITH HEADER LINE.
DATA: icnt TYPE i,
gcnt(1) TYPE c,
g_ordertype LIKE vbak-auart,
c_zso(3) TYPE c VALUE 'ZSO'. " sales order type
SELECT vbeln FROM vbak INTO corresponding fields of TABLE t_vbak
WHERE vbeln = '0090000141'.
CHECK sy-subrc = 0.
LOOP AT t_vbak.
Ini structures
CLEAR header_in.
CLEAR header_in_x.
Ini tables
CLEAR item_in.
REFRESH item_in.
CLEAR item_in_x.
REFRESH item_in_x.
CLEAR items_ex.
REFRESH items_ex.
CLEAR return.
REFRESH return.
SELECT vbeln posnr INTO CORRESPONDING FIELDS OF TABLE t_vbap
FROM vbap
WHERE vbeln = t_vbak-vbeln AND posnr = '000100'.
CHECK sy-subrc = 0.
Set header data
header_in_x-updateflag = 'U'.
Set line item data
LOOP AT t_vbap WHERE vbeln = t_vbak-vbeln.
items_ex-operation = '005'.
items_ex-doc_number = t_vbap-vbeln.
items_ex-itm_number = t_vbap-posnr.
items_ex-updat_flag = 'X'.
items_ex-end_rule = 'C'.
APPEND items_ex.
CLEAR items_ex.
ENDLOOP.
Disable dialog
CALL FUNCTION 'DIALOG_SET_NO_DIALOG'.
Run BAPI
CALL FUNCTION 'SD_SALESDOCUMENT_CHANGE'
EXPORTING
salesdocument = t_vbak-vbeln
order_header_in = header_in
order_header_inx = header_in_x
behave_when_error = 'P'
call_from_bapi = 'X'
TABLES
return = return
item_in = item_in
item_inx = item_in_x
items_ex = items_ex.
Check for errors
IF sy-subrc = 0.
LOOP AT return.
IF return-type = 'E'.
rec_ok = 'N'.
EXIT.
ENDIF.
IF return-type = 'S'.
write:/ 'success'.
ENDIF.
ENDLOOP.
IF rec_ok = 'N'.
ROLLBACK WORK.
ELSE.
COMMIT WORK AND WAIT.
WRITE:/ 'Success_flag?'.
ENDIF.
ENDIF.
ENDLOOP. -
Custom fields update using BAPI: BAPI_SALESORDER_CHANGE
Hi,
I have append one field into VBAP Table, and i want to update that filed value by using BAPI_SALESORDER_CHANGE FM. I have done all the coding but still its not updating the table. I have checked with SAP fields like order quantity, its upadating the database but the custom fileds are not upadting.
steps i have done: Append field to : VBAP,BAPE_VBAP,VBAPKOZ
Append Check field to : BAPE_VBAPX,VBAPKOZX
Here is the code : plz check and add ur comments
DATA : l_wa_bapiparex TYPE bapiparex,
l_wa_ord_header TYPE bapisdh1x,
l_itab_bapiparex TYPE STANDARD TABLE OF bapiparex INITIAL SIZE 0,
l_itab_return TYPE STANDARD TABLE OF bapiret2 INITIAL SIZE 0,
l_wa_item TYPE bapisditm,
l_itab_item TYPE STANDARD TABLE OF bapisditm INITIAL SIZE 0,
l_wa_itemx TYPE bapisditmx,
l_itab_itemx TYPE STANDARD TABLE OF bapisditmx INITIAL SIZE 0,
ORDER_HEADER_IN LIKE BAPISDH1.
l_wa_ord_header-updateflag = 'U'.
ORDER_HEADER_IN-REF_DOC = '0000000244'.
*Populate Item detail
l_wa_item-itm_number = '000010'.
l_wa_item-NET_WEIGHT = '5000'.
APPEND l_wa_item TO l_itab_item.
*Populate Item detail checkbox
l_wa_itemx-itm_number = '000010'.
l_wa_itemX-NET_WEIGHT = 'X'.
l_wa_itemx-updateflag = 'U'.
APPEND l_wa_itemx TO l_itab_itemx.
l_wa_bapiparex-structure = 'BAPE_VBAP'.
l_wa_bapiparex-valuepart1+0(10) = '0000000244'.
l_wa_bapiparex-valuepart1+10(6) = '000010'.
l_wa_bapiparex-valuepart1+16(15) = 'ABCDEF'.
APPEND l_wa_bapiparex TO l_itab_bapiparex.
CLEAR l_wa_bapiparex.
l_wa_bapiparex-structure = 'BAPE_VBAPX'.
l_wa_bapiparex-valuepart1+0(10) = '0000000244'.
l_wa_bapiparex-valuepart1+10(6) = '000010'.
l_wa_bapiparex-valuepart1+17(1) = 'X'.
APPEND l_wa_bapiparex TO l_itab_bapiparex.
clear l_wa_bapiparex.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = '0000000244'
order_header_in = ORDER_HEADER_IN
order_header_inx = l_wa_ord_header
TABLES
return = return
order_item_in = l_itab_item
order_item_inx = l_itab_itemx
schedule_lines = l_itab_schedule
schedule_linesx = l_itab_schedulex
extensionin = l_itab_bapiparex.
IF SY-SUBRC = 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
IMPORTING
RETURN =
ELSE.
RAISE ERROR.
ENDIF.
I HAVE GONE THROUGH DEBUGGING AND FOUND ALL ARE GOING FINE...ITS UPDATING VBKOM AND VBKOMX STRUCTURE BUT AT LAST ITS NOT UPDATING THE CUSTOM FIELDS
Thanks,
BaidyaSorry guys........this code is correct one.......there is a problem in IDES....i tried in client server its working fine
If anyone is having this type of requirement then copy this program.
thanks,
Baidya -
Crm service order related fields updation
hi ,
i am creating a sales order using va01 transaction. service order is automatically created with the config settings . during this, some of the fields in service order in R/3 are not updated. i wnt to populate 6 fields in service order when creating sales order .
i hv got user exit to update 4 fields, but for operations tab in service order, i need to populated activity type and work ( quantity fields ), these fields are not availbale in the above user exit.
Can any one pls suggest me how to update the operations tab fields in service order .
Reg
Shivahi ,
i am creating a sales order using va01 transaction. service order is automatically created with the config settings . during this, some of the fields in service order in R/3 are not updated. i wnt to populate 6 fields in service order when creating sales order .
i hv got user exit to update 4 fields, but for operations tab in service order, i need to populated activity type and work ( quantity fields ), these fields are not availbale in the above user exit.
Can any one pls suggest me how to update the operations tab fields in service order .
Reg
Shiva -
SQL Query for Date field updation
I want a query from u.. Hope u help me with a
solution soon..
My Q: I want to update a date field in Oracle
database. But the condition is that i shouldnt change
the hours, minutes & seconds of the date field.
generally , if we update the date field then it takes
the default values for hours, min's & sec's to
00:00:00.
EX : if we have a value 21-SEP-2002 04:54:44 in a date
field. I want to update it to 22-SEP-2002 04:54:44.
But it updates to 22-sep-2002 00:00:00 if we use
UPDATE command.Use a PreparedStatement:
PreparedStatement ps = conn.prepareStatement("SELECT * FROM TEMP WHERE TDATE > ? AND TDATE < ?");
// note: month numbers start at 0, so 1 is february
GregorianCalendar c1 = new GregorianCalendar(2002, 1, 11, 11, 0);
GregorianCalendar c2 = new GregorianCalendar(2002, 1, 18, 22, 0);
Date d1 = c1.getTime();
Date d2 = c2.getTime();
java.sql.Timestamp sqlDate1 = new java.sql.Timestamp(d1.getTime());
java.sql.Timestamp sqlDate2 = new java.sql.Timestamp(d2.getTime());
ps.setTimestamp(1, sqlDate1);
ps.setTimestamp(2, sqlDate2);
ResultSet rs = ps.executeQuery();
// get results from the result setJesper -
Fields update in "Schedule Lines for FRC sched." in a scheduling agreement
May I know how the following fields in the "Schedule Lines for FRC sched." section in a scheduling agreement are being updated?
We have already a new inbound delivery with goods receipt (last June 1, 2010) but the following fields still show the previous inbound delivery details:
For example:
Date of last del. 08.10.2009
Last d. note no. 91011
Last GR 21.10.2009
Last GR qty. 54.500
I wish I can show some screenshots here.
Thanks a lot in advance for your answers.Hi Sravan,
As per my view point, this is standard SAP behaviour. System will generate PR only in case of external operation.
If you go to OPL8 (Order type dependent parameters) for your respective order type & plant combination you have option of maintaining setting related to PR only and there is no option of using scheduling agreement or generating schedule lines.
I don't see any possibility to use scheduling agreement using to have schedule lines for external operation.
Regards,
Tejas -
How to make dynamic form fields update?
This is going to be an ugly post, fair warning! :)
I have a form that gets it's labels and text input field
names dynamically from a database. Rather than having the form
hardcoded, we are able to add new columns to a table and the form
automatically adds new labels and fields via CFQUERY.
When the form is completed and they submit (method post), the
database is supposed to update. However, because our input field
names are being populated via query, we can't write a static update
query when we add new form items.
So, I do have a solution to this (in my head), but I'm stuck
at a bit of logic and am having trouble getting it out in code. I'm
looking for a way to write #FORM.#fieldname## (here is where it
gets ugly). Since the form submits by post method, I am left with a
bunch of FORM.fieldname's on my action page (and fieldname is
generic for what the actual variables are).
So here's how I am updating:
I have a table (call it table1) that contains a column of all
the column names of my data table (table2). This table is used for
query purposes only, no data is updated here from the form.
I query table1 to call all the names of the columns in
table2.
<cquery datasource="exdb" name="exname">
SELECT columnName
FROM table1
</cfquery>
Then I write the update query which will update items as they
are looped using CFOUTPUT:
<CFOUTPUT QUERY="exname">
<cfquery datasource="exdb" name="exupdate">
UPDATE table2
SET #columnName# = #FORM.<columnName>#
WHERE itemID = #FORM.itemID#
This is my dilemma. As you can see, the cfoutput is a loop..
so let's take the first item in the loop, call it "name1". So our
update query says SET name1 = #FORM.name1#, and this will update
the table with whatever was submitted in name1's input field. The
cfoutput loops again, this time it's name2. SET name2 =
#FORM.name2#. Now the form does include a hidden input of itemID to
specify where the table should be updating, as you can see above.
So, now that you see how this works, my problem is getting
#FORM.<columnName># to be FORM.name1, FORM.name2, etc.
In Coldfusion you would write #FORM.variable# to call a FORM
item. However, since the variable is pretty much undefined and we
use a query to populate it, we need to do #FORM.#variable## where
#variable# needs to be resolved before #FORM._______#
Are you with me on this? It's very complex in explanation,
but if you need more info, I can provide it more clearly. Let me
know what you guys think. Really, I have the solution, but getting
#FORM.#columnName## to resolve is another problem. I think what i
need is to figure out the order of operation for that statement, so
#columnName# resolves first.You'll want to use the scope structure notation when dealing
with your form variables. The variable Form.SomeVar can also be
written as Form["SomeVar"]. Using this syntax, you can do something
like this:
UPDATE table2
SET #columnName# = #FORM[columnName]#
WHERE itemID = #FORM.itemID#
You may also want to look into the following to help optimize
your code:
1) check out how to use <cfqueryparam> - it might speed
your code up a bit.
2) depending on the DB you are using, you may be able to
combine all of your UPDATE SQL commands inside 1 <cfquery>
</cfquery> block. This will allow you to do all your database
actions with 1 DB connection, instead of a bunch (works in MSSQL,
not sure about Oracle or MySQL) -
OIM 11g r2 User UDF fields Updation based on AD ID
Hi,
We have to update the UDF fields created for the users in OIM using the data from a table.
This table contains the AD ID, and other fields.
OIM User (already available) will be updated based on AD ID ….i;e AD ID column will be used to find the user in OIM and then his UDF will be updated based on the respective data from other columns in the table .
Please can you help me on this task?
Thanks,Your requirement doesn't tell much like when you want to update your user. If it would be on daily basis then go for Schedule Task, if you want to at the time of provisioning then you can have one task and attach your code to bring AD ID in OIM..
You may leverage Event Handlers as well if your use case requires that.
Maybe you are looking for
-
MacBook Pro (Mid-2009, 13", 2.26) Memory Upgrade Question
I currently own a MacBook Pro (2.26; 13") (Mid-2009) with 2GB of memory. I purchased a single 4GB memory card that I plan to add in one of the slots. If I understand correctly that would leave me with a total of 5GB of memory (4GB 1GB). Is this wor
-
Front Row is taking a LOOOONG time to open movie lists.
Hello I have a Mac Mini Core Duo 1.66 with 512MB RAM. I have an external hard drive for my video files, and the Mini is connected to my 1920x1080 Sharp LCD TV as a monitor. My movie files are located on the external drive, and I have an alias in my "
-
Changes in the user exit for VL01N dont reflect..
Hello all, I need a user-exit for restricting display ( and ultimately the delivery )of line-items while creating outbound delivery doc , depending on whether a particular line item is approved or not. I am currently using the user-exit
-
My Safari extensions have stopped working. I am running Safari 7.0.3 on OXS 10.9.2. One day I went on to the internet and my extensions still appear, but are not functioning (my antivirus toolbar is unusable as only half of it is appearing, and my ad
-
Access of oracle database through sys user
Hi All, Can any one suggest me what are the possibility to access database through SYS user...I install oracle database 10.2.0.4 on Win-2003 SE. Now I want to make restrict that no one can be able to logged in database as a sys user so I do one thing