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,
Monica
Hi 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.
Similar Messages
-
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 -
Sending custom field added in Standard table through idoc
Hello Folks,
We have a requirement where custom field of a standard table PA0002 needs to be sent through idoc only to a desired destination system.
My Approach:
I have created a custom segment having custom field from PA0002 & mapped this segment in T777D table.
But the problem with above, is all the system who are receiving PA0002 will be receiving this custom segment also including desired system.
How can it be filtered?Hi,
In BD64 you can do the segment level filtering. Go to BD64, search for your distribution model there drill down to "filter settings" the make the required segment filtering.
Thanks,
Asit Purbey. -
How to change the lenth of existing field in sap standard table
Hi all,
can anybody help,my requirement is, how to change the length of existing field in sap standard table....
thanks in advance..Which field are you thinking of in particular? Are you wanting to increase or decrease the length?
Some fields are used so extensively that a change to their length will mean adjusting many tables, some of them potentially very large, and hence taking a long time to adjust.
Some standard SAP programs expect certain fields to be of specific lengths and won't work if the length is changed.
Some screens could cease to work.
If you decrease length, then you could lose data.
matt -
Modify the Field Type of standard Table fields in a Query
Hello. I have a question.
Is there a way to "modify" the field type for standard table fields that are included in a Query?
I made a simple query out of a join of tables, but several fields have a lot of decimals, and I would like to present them in the query without any decimals, just as a regular "N" field.
I tried the possibility of creating extra local fields where all I do is transfer the value to the new "N" field, but I have many fields like this, so if there's a better way; I'd prefer that.
Maybe somewhere in the InfoSet there's a way to modify the type of the standard table fields?
Thank you.Hi,
This document may help you out.
[http://help.sap.com/saphelp_erp60_sp/helpdata/en/d2/cb4468455611d189710000e8322d00/frameset.htm|http://help.sap.com/saphelp_erp60_sp/helpdata/en/d2/cb4468455611d189710000e8322d00/frameset.htm]
Cheers, -
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 in updating VEKP-LTEXT field
Hi,
I need to update VEKP-LTEXT field for a vehicle(HU), i got a FM LXYRD_HU_UPDATE to update this, but the only problem is i am not able to clear that field(VEKP-LTEXT). Insert and modify is working fine except clearing the text field(VEKP-LTEXT).
Please help me....in the function module you provided 'LXYRD_HU_UPDATE' in order to clear the field VEKP-LTEXT, <br />
you do the declartion and pass this value LTEXT to the internal table and use the command 'REFRESH' to clear the text in the 'LTEXT' each time it passes in the loop
REFRESH ITAB. " ITAB is the internal table which you have to declare with the field LTEXT' -
Problem in updating PA0028-SBJ fields
Hello Experts,
I have a requirement where i need to check for the values of SBJ01 to SBJ30 and based on the values we have to update correspondign WTF fields.
I tried with Do varying but got lost some where and my code is not working. pl. help me with a piece of code ASAP.
Thanks
RKHi,
g_sbj01 is the varible which the value and p0028 is the internal table type p0028.
check the below code for better understanding..
Example...
rp_provide_from_last p0028 '0001' g_begda g_endda.
IF pnp-sw-found = '1'.
DO 30 TIMES VARYING g_SBJ01 from p0028-SBJ01 NEXT p0028-SBJ02
VARYING g_wtf01 from p0028-wtf01 NEXT p0028-wtf02.
CASE g_SBJ01.
when '08'.
i_final_line-WTFLD = g_wtf01.
when '09'.
CONCATENATE i_final_line-WTFLD g_wtf01
INTO i_final_line-WTFLD.
ENDDO.
ENDIF.
OR
loop at p0028.
DO 30 TIMES VARYING g_SBJ01 from p0028-SBJ01 NEXT p0028-SBJ02
VARYING g_wtf01 from p0028-wtf01 NEXT p0028-wtf02.
CASE g_SBJ01.
when '08'.
i_final_line-WTFLD = g_wtf01.
when '09'.
CONCATENATE i_final_line-WTFLD g_wtf01
INTO i_final_line-WTFLD.
ENDDO.
ENDLOOp. -
Problem in delta management for custom fields added in standard Table
Hi developers,
we have a problem, when a sales order is modified in a field custom, added in tables (VBAP-VBAK), the delta BW doesn't recognize the modifications. The data type of these fields haven't the flag (Change document) setted in
view Definition.
If this flag is setted, Can the delta BW recognize the modifications of the custom fields?
Best regards
DomenicoYou cannot get delta by just appending fields to extract structure & writing the user exit coding as this user exit code is run by the extractor after the X- and Y- tables are compared to create the before & after images.
You have to do this procedure by enhancing LIS comm structures like MCVBAP (for example).
Please refer to OSS note 576886 for complete details.
Kumar Gudiseva. -
Updating custom field in a standard table - AFVC
Hi All,
We have created a custom field in table AFVC. While updating other things related to that Order/Operation, we need to update this custom field.
Can you kindly let me know how we can approach this? Do we use a direct Modify/update statement in such cases to update the standard sap table?
Regards
AnHi Ankur,
There are few ways to do.
1) Implement the screen field in the transaction at the operation level for visibilty to all the reason code. After updation of USER STATUS you need write the small utlity to update that field through LSMW or any other way to update this field in the transaction directly to save in the database table.
2) AFVC means orders operation data. In this table many types of order data will store so you have to choose which type of order you are going to update whether it will be Internal order or production order or maintaineance order etc..
3) Direct updation is last preference if there is no way for updation.
Please let me know which order cateogry you are updating from thrid party sytem to your current system.
As J@Y said if you are updating through some function module then in that case for BAPI's there is separate structure EXTENSION_IN and OUT to update the custom fields.
Thanks,
Satheesh -
Change field value in standard table
Hello Experts,
Could you please guide me to change i.e update field CESS value in standard table j_1irg23d.
Thanks and regards,
SirishaHi sirisha,
if you want to change the value in the CESS field of j_1irg23d table. ( sales tax )
since it is a standard table dont try to do it using update ot modify statsments.. standard tables are updated using standard transaction and it is not advicable to change using abap statments..
just try to find a bapi or field module to update that field in the j_1irg23d table.
1) To find a bapi or function module just do a whereused list on the table name you may get some fms or bapi
2) check the forum you may get some links on it..
Regards
Satish Boguda -
Appending fields to the standard table vbak
I have tried to add fields by the button APPEND Structure .
Well it opens up a screen for creating a structure but after fillin fields when i try to activate it it gives the foll warnings :
Enhancement category for table missing
Enhancement category for include or subtype missing
Field ZWELCOME does not lie within customer namespace
Tell me hw do we add the fields successfully to the table at least and then if poss
also tell hw shall i add them to the standard transaction VA11 so that data can be entered thru this transaction itself .Hi,
Since these are not error and workings only. Will they effect your functionality??? You can still activate the table after appending in the same way you did.
While creating a custom table i also got the below wornings :
Enhancement category for table missing
Enhancement category for include or subtype missing
but i activated the table without solving the wornings and they are working fine. So i am not sure whether it is necessary to solve those . -
Problem in updating MSEG-MENGE field using MB_CF001
Hi,
Does anyone have any idea if the user exit MB_CF001 , EXIT_SAPLMBMB_001 can be used to update MSEG table.
I tried updating it many many times... but all in vein..
I am using ML81N(SES Entry Sheets) transaction to update MSEG table.
All alternate ideas are welcome.
Thanks,
Harmeet.no one answered, but I figured out.. this exit cannot be used to update any field..
-
Auto-update a Custum Field in a standard Infotype.
Hi,
Here is my problem.
In IT0759 (Compensation Process), I added a new field 'ZZSTAT'.
The process should be like this :
When the standard field CSTAT (Status of Process) = 5 Active then the custom field ZZSTAT should also be updated to 5.
I manage to deal with this using the PBO of ZP075900 :
MODULE MODULE_PBO_0759 OUTPUT.
IF p0759-cstat = '5'.
p0759-zzstat = '5'.
ENDIF.
ENDMODULE. " MOD_PBO OUTPUT
But there is a program 'RHECM_CHANGE_PROC_STATUS' which update the standard field CSTAT. As the PBO is not processed, my custom field is not updated.
Does someone have a solution ?
Thanks
FrançoisHi Francois,
Do it through dynamic actions: SM31 -T588Z
Add the following entries.
0759 P P0759-CSTAT = '5'
0759 W P0759-ZZSTAT = '5'
Regards,
Dilek -
Problem while adding a new field to a Z-table
My attributes are mater table with maintenance allowed and taken APPl0 as data class.
Now i am trying to add another field to this table and it says you have no authorizations in the log.
I checked in SU53, actiity is 42 there...
how can i no wether i have authorizations 2 chg a table or not?if this is the case, it should pop-up a msg when we go for a chg mode itself.. right???
any clues guyz what shud i do?
regds
kiranHi,
Do u want to know about the authorization means go to table maintenance generator first.
Now get the authorization object of your table.
Goto transaction SU21.
List of object class will be displayed.
Double click the object class BC_A.
Now a list of object will be displayed.
Double click the object S_TABU_DIS (Table Maintenance)
U will find wat all fields used in tht, ACTVT is the field which specifies the activities of ur table.
Reward mark if this is useful.
Ram.
Maybe you are looking for
-
Agent disappeared automatically and it appeared in pending management after 6 months.
We had a server (Windows server 2003 64 bit) which was installed and was working fine. Suddenly it disappeared automatically and it appeared in pending management after 6 months. We noticed it only when it came to pending management that the server d
-
I cannot figure out why my templates do not show up in Outlook, when I manually update the AD RMS task scheduler to run the templates get pulled and placed into the C:\Users\%%\AppData\Local\Microsoft\DRM\Templates but when I launch outlook they are
-
Weblogic-cmp-rdbms-jar.xml for One-To-Many unidirectional relationship
hi, I am trying to create a simple cmp One-To-Many unidirectional relationship and deploy the same in weblogic. Can someone help me with the weblogic-cmp-rdbms-jar.xml. Am attaching the weblogic-cmp-rdbms-jar. xml tht i am using as also the correspon
-
Title says all. Not sure what to do.
-
i lost all my data, dont know how this happen, screenis not working, i am using iphone5 is there any way apple can recover my data i have 400+ photos that i have cliked in last 2-3 days