Problem in Updating KNA1 table fields.
Hi,
I have small issue , i need to block the customer while creating im using BADI(ADDRESS_UPDATE) to block the customer created.In the BADI im trying to update few fields of KNA1 table using UPDATE statement.
Like this...
WA_KNA1-SPERR = 'X'.
WA_KNA1-CASSD = 'X'.
WA_KNA1-AUFSD = '01'.
WA_KNA1-FAKSD = '01'.
WA_KNA1-LIFSD = '01'.
UPDATE KNA1 SET SPERR = WA_KNA1-SPERR
AUFSD = WA_KNA1-AUFSD
LIFSD = WA_KNA1-LIFSD
FAKSD = WA_KNA1-FAKSD
CASSD = WA_KNA1-CASSD
WHERE KUNNR = W_KUNNR.
when this statement excutes it is updating
1) SPERR
2) AUFSD this two field remaining 3 fields it is not updating
Can anyone pls let me know the reason .
thanks in Adv.
see note 1469543
it is not possible to update kna1 directly, you must create a bim
oops sorry see that you're question is it inside a badi and not bapi
kind regards
arthur
Edited by: A. de Smidt on Jul 20, 2010 10:45 AM
Similar Messages
-
XD02 transaction to change the customer data for updating KNA1 table?
Hi all,
How can we use XD02 transaction to change the customer data for updating KNA1 table?
Give the steps.
Thanks in advance
rkHi KR,
Why don't u use BDC to run XD02.
With Regards,
Zafar Ali -
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 -
I want to update standard table field (EKES-EINDT)? Not using BDC using FM.
Hi all,
I would like to seek for you help, to resolve a problem.
I need to know how can i update the EINDT(date) field in the EKES table.
Is there any Function Module or BAPI available for update EKES-EINDT ?
And my requirement is don't use BDC.
Currently I am doing in following way
LOOP AT I_DATA.
UPDATE EKES SET EINDT = P_NEWDAT
WHERE EBELN = I_DATA-EBELN
AND EBELP = I_DATA-EBELP
AND ETENS = I_DATA-ETENS.
ENDLOOP.
I know we should not update standard table directly. This will only update EKES it will not update other tables related with EKES-EINDT.
Got my point?
Please help me it's on high priority.EKES can be updated with function module
ME_CONFIRMATION_UPDATE -
Hi all,
There is a 'Z' field in the KNA1 table. Is there any BAPI/FM to update the Z field.
Regards,
VedHi,
If you want to update the 'Z' field by using bapi function module then you have to use EXTENTIONS table in the bapi function module.In every bapi function module there is doucmentation how to use EXTENTIONS tables.If you go through these doucmentation the you will do this.
Thanks,
shyla -
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 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..
-
Hi,
--I need to update a table with only year 2010 data, it looks like this:
update abc_tab set dept_cd = replace(dept_cd, 'HRE','HW')
where dept_cd in (select dept_cd from edu_tab e, edu_lkp l
where l.dept_rnd_cd =e.dept_rnd_cd
and l.fy_cd ='2010');
--when I run above query, it updated all the data in the column , not just 2010 data, but if I do following
(select dept_cd from edu_tab e, edu_lkp l
where l.dept_rnd_cd =e.dept_rnd_cd
and l.fy_cd ='2010');
-- I got only 2010 data, so what did I do wrong on the update statement?
Thanks a lot.
Wendydata is not correlated based on DEPT_CD,
try this:
update abc_tab abc set abc.dept_cd = replace(abc.dept_cd, 'HRE','HW')
where abc.dept_cd in (select e.dept_cd
from edu_tab e
,edu_lkp l
where l.dept_rnd_cd = e.dept_rnd_cd
and e.dept_cd = abc.dept_cd
and l.fy_cd = '2010'
commit
/ -
Problem in updating LIPS table in outbound delivery user exit
Hi,
I wrote a code in outbound delivery user exit (save document userexit) to update LIPS table.
for example
XLIPS-LGORT = '0657'.
XLIPS-PIMNG = I_LIPS-LFMING
(PICKing QUANTITY = DELIVERY QUANTITY)
MODIFY XLIPS TRANSPORTING LGORT PIMNG.
After outbound delivery created i couldn't found my entries in lips table. it shows me as blank.
Can anybody tell me what went wrong?
Thanks and Regards,
Suresh.Hi Suresh,
If you want to change any delivery data, like LIKP or LIPS you should use the USEREXIT_SAVE_DOCUMENT_PREPARE exit. The exit you are using is called after all delivery data is passed to the update task.
Regards,
John. -
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. -
Problem in updating FPLT Table with custom fields of the billing plan
Hi Guys
I have a requirement to add 2 custom fieldd in the billing plan tab of sales order and I could not find any screen exit for that. However I got access key and added those 2 fields on the screen but I am not able to uodate table FPLT from there.
I can see exits to pass the value but because there is no screen exit, the program cant retain the values keyed given by use on the screen.
I really dont know where do I need to write the code and how to make screen fields read by the program.
Please please help.
Thanks a lotHi,
Probably too late, but here's the solution:
- Transaction SE51 program: SAPLV60F and dynpro number: 0030
- Goto 'Logical execution' or something like that (i'm connected in french)
- Modify standard code line 75: here I have added the field 'LIBEL'
FIELD:
FPLT-FAKSP,
FPLT-FAREG MODULE FPLT-FAREG_PRUEFEN ON REQUEST,
*{ REPLACE DTAK910958 1
*\ FPLT-FPTTP.
FPLT-FPTTP,
FPLT-LIBEL.
*} REPLACE
CHAIN.
Il means that field LIBEL will be checked with field FPTTP.
regards. -
Problem in updating IMRG table when using MEASUREM_DOCUM_RFC_SINGLE_001
Hi experts,
I am using MEASUREM_DOCUM_RFC_SINGLE_001 to create measuring documents for the equipment assigned to a functional location. But when i used this in ECC 5.0 the table IMRG is updated rightly. Now i am using the same in ECC 6.0 , I observe that the following fields of IMRG table are not get updated when compared with 5.0:
CNTRG
CNTRR
CNTRRI
CDIFF
CDIFFI
IDIFF
Can any one tell what could be the problem.Check for Sap notes for Function module MEASUREM_DOCUM_RFC_SINGLE_001.
And apply SAP notes correctly according to patch levels. -
Approach for holding the same message and updating the table field Status
Hi,
I have a scenario a (first) proxy asynchronous to JDBC synchronous and then(second) proxy asynchronous.
my first proxy calls sends records (which has a status entry " in process" ) to JDBC it updates or inserts.
JDBC sends a response (may be a count of records updated or inserted)
now i need to handle some how to get the records which have been inserted or updated, so that i can map and change the table entry status field" in process" to " active".
Can i handle this without stored procedures.If so how
Can it be done through BPM where i retain inital mapping or any other solution. please help.Hi Robin,
Ok (but that would be the apt method)
Some other approaches :
1. Make a async scenario (Proxy to DB), which will update or insert records. Write a trigger in DB which will fetch updated/inserted records and send it to XI. Then you update them in R/3 (via proxy). So you will have two async interfaces (one is Proxy to DB and other one DB to Proxy)
2. go for BPM. Receive (from proxy), transform sync send, transform send (to proxy) . I will not prefer this as it will be a performance hinderance.
Regards
Suraj -
Update a Table Field of QMEL Table Using Function Module
hello Guru
I want to update a field of QMEL table suing FM which was created by user. how to write code for that. i have some idea but it is not helpful for us.....
Moderator Message: Searching the forums/Google is a good start.
Edited by: kishan P on May 19, 2011 12:13 PMhi Ram,
You can use update query on table setting particular field value...There is no Function module for it.
Regards,
Pawan.
Maybe you are looking for
-
How can I re activate the Song Pop app I bought
I bought an app for song pop on 10/16/12 $1.99. Later I change My IPad for a newer and now I can't use the app fro Song Pop other then the free.
-
My home computer which has my iTunes library on it how can I transfer all of my music from my iPhone to my new computer
-
I can not open the phone it stays in black sceen.what can i do
i can not open the phone it stays in black sceen.what can i do
-
Obtaining BAPI Parameters in Adapter Module
Hi All I am using JRA way for obtaining BAPI parameters in Adapter Modules. Could someone provide me some guidance on the same. Which method in java will be used in retreving the value from BAPI inside module.(Example: Filename) and method for passin
-
Streaming music from iPod to stereo
Does Linksys/Cisco make a device that will connect my iPhone to my stereo via wifi? I am looking to stream audio from my iPhone via wifi connection to a music bridge that will connect directly into the RCA jacks or headphone input of my stereo. It lo