Updating KNA1 field PSTLZ

Hello all, I am trying to update a field in KNA1.  As ou know the user exits for the customer master do not have access to update this table.  I tried several BTE's also with no luck.  They do not have access to KNA1 fields either.
I need to do this in an online mode for transaction VD02.  I tried setting up a call transaction in BTE 00001321, but the call transaction locks becuase I am already have the customer locked. 
I also tried a trick to assign the value using a field symbol as suggested in a previous forum, but this dumped becuase I was trying to update a protected field.
Any ideas would be greatly appreciated.
Troy

Hi,
Did you try in update task mode?
Also please try transaction MASS with object type KNA1.
Regards,
Ferry Lianto

Similar Messages

  • User exit for XD01/XD02 to update KNA1 field

    Hi
    I have added a custom field using append structure in KNA1
    I need to update it during the XD01 or XD02 transaction before it is saved
    I am searching for BADIs and user exits but I am not able to update anything in KNA1
    kindly help if u were having similar requirement
    thanks
    b

    Hi Max,
    I have tried all of the following
    BADI for XD01
    CUSTOMER_ADD_DATA
    BADI_LAYER
    CUSTOMER_ADDRSCR_CHG
    GOS_SRV_SELECT
    ADDRESS_SUBSCREEN
    save button:
    ADDRESS_CHECK
    ADDR_TXJCD_CHECK
    ADDRESS_UPDATE
    exits
    EXIT_SAPMF02D_001.
    BTEs
    00001320
    00001321
    00001330
    00001340
    00001350
    00001360
    but nowhere I have found an interface for updating KNA1 fields.
    I am not able to use CUSTOMER_ADD_DATA_CS and CUSTOMER_ADD_DATA_BI . I checked it using CL_EXITHANDLER
    is there any way i can store the information I need . I just need one field against the customer number
    thanks
    b

  • 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

  • Updating a field in KNA1 table

    Hii ABAP Gurus,
    Please help me out from the following situation....
    Will reward points for the helpfull answers.
    I have a requirement where i need to update only 1 field in KNA1 table.... for that iam using
    update kna1 set loevm = 'X' where kunnr eq wa_output-kunnr.
    But i know u people will suggest me to use BAPI. in that case i tried to use BAPI.
    (BAPI_CUSTOMER_CREATEFROMDATA1)
    I have never worked on BAPI....Can any one please help me out regarding how to use this BAPI and what to pass in and out.
    call function 'BAPI_CUSTOMER_CREATEFROMDATA1'       
         exporting                                      
              pi_personaldata     =                     
            PI_OPT_PERSONALDATA =                     
              pi_copyreference    =                     
       IMPORTING                                      
            CUSTOMERNO          =                     
            RETURN              =                     
    THANKS IN ADVANCE AND WILL REWARD POINTS FOR THE HELPFULL ANSWERS

    Hello Govardhan-
    As your requirement says to modify only one field in kna1.I dont think bapi is necessary for this just try the below code.
    Data:i_kna1 type table of kn1,
            w_kna1 type kna1.
    select ...... from kna1 into table i_kna1
                                   where kunnr EQ 'XYZ'.
    loop at i_kna1 into w_kna1.
    w_kna1-loevm  = 'X'.
    modify kna1 from w_kna1.
    endloop.
    Cheers,
    ~Srini....

  • 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 PM

    Hi 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

  • KNA1-UPDAT/ KNA1-UPTIM ,Confirmation date/time not getting updated  CRM/ECC

    Hi
    I found a case  where, when Gen. data of BP is changed in CRM, Table BUT000 is updated with  corresponding date and time of change.  This chaged data is replicated  to ECC but in KNA1 table UPDAT- update date and UPTIM- update time fields are not updated.
    Can anyone suggest possible solution for this.
    Thanks
    Rahul

    Hi
    I found a case  where, when Gen. data of BP is changed in CRM, Table BUT000 is updated with  corresponding date and time of change.  This chaged data is replicated  to ECC but in KNA1 table UPDAT- update date and UPTIM- update time fields are not updated.
    Can anyone suggest possible solution for this.
    Thanks
    Rahul

  • Updating VTEXT field in VBSK table

    hi All,
           Is there any SAP provided BAPI or FM present which will help in updating the field VTEXT in VBSK table. In my program i have Group(Key field in VBSK table). This is required urgently, please help if you had done similar things.
    Thanks in advance,
    Shyam.

    Hello Govardhan-
    As your requirement says to modify only one field in kna1.I dont think bapi is necessary for this just try the below code.
    Data:i_kna1 type table of kn1,
            w_kna1 type kna1.
    select ...... from kna1 into table i_kna1
                                   where kunnr EQ 'XYZ'.
    loop at i_kna1 into w_kna1.
    w_kna1-loevm  = 'X'.
    modify kna1 from w_kna1.
    endloop.
    Cheers,
    ~Srini....

  • Getting a permission error while updating a field.

    hi,
    I want to update a field in OIM and push the same to OID. When i try to update it for like 20 times it woks for 18 times and doesnt work for couple of times. I check the log and i get the below error.....
    *Caused by: javax.ejb.AccessLocalException: [EJB:010160]Security Violation: User: 'xelsysadm' has insufficient permission to a*
    ccess EJB: type=<ejb>, application=Xellerate, module=xlDataObjectBeans.jar, ejb=tcLookupOperations, method=create, methodInte
    rface=LocalHome, signature={}.
    at weblogic.ejb.container.internal.MethodDescriptor.checkMethodPermissionsLocal(MethodDescriptor.java:573)
    at weblogic.ejb.container.internal.StatelessEJBLocalHome.create(StatelessEJBLocalHome.java:60)
    at com.thortech.xl.ejb.beans.tcLookupOperations_u50o5o_LocalHomeImpl.create(tcLookupOperations_u50o5o_LocalHomeImpl.j
    ava:70)
    Kindly help me to fix this.
    Thanks
    thilak

    http://bbs.archlinux.org/viewtopic.php?id=83076

  • Error in updating ALV field catalog in selection tool for Planning Book

    Hi ,
    I am Implementing BADI  '/SAPAPO/SDP_SELECTOR' to upload Custom Fields Data in Planning Book Selection Window under APO Location Product. These Custom Fields are maintained in Custom Table.So from Table whatever Custom Fields are availabe all the fields needs to be available in for selection. Once selection is done the same data to be uploaded into Planning Book.
    This BADI is working Fine upto 4 fields but if any extra fields are added in the table 'Error in updating ALV field catalog in selection tool' error Pop Up is coming. Here i am using Folloowing Methods
    1). INIT_OBJECT_LIST
    2). F4
    3). LOC_PROD_VALUE_LIST
    Please help on the same if u have any idea or clue.
    Thanks.

    Hi Srinivas!
    Where did you get your implementation from?
    It would be nice if you could debug your code!
    For the F4 method, have you seen this note?
    Note 544904 - Sample source code f.BAdI /SAPAPO/SDP_SELECTOR ('F4'method)
    Also check this note. It contains selection modifications in the BAdI:
    Note 376902 - SDP selector: Basis corrections for BADI
    I do not know your release and support package in your SCM, but you can find a lot of notes related to this BAdI.
    Thank you!
    Will
    SCM Support Consultant

  • Error in updating ALV field catalog in selection

    Dear all,
    I'm trying to use the standard transaction /SAPAPO/TSKEYFMAIN in order to check the TS values.
    After filling the selection variant, the system shows the following error:
    'Error in updating ALV field catalog in selection'
    Could you please provide me with further details about the error? What could be the possible solution to avoid it?
    Many thanks,
    SM

    Hi Marius,
    thanks for your answer.
    I would like to use the /SAPAPO/TSKEYFMAIN transaction to check massively the values in the time series KFs and not just the consistency of them.
    So do you know any other transaction to do it or do you have an idea about the error of /SAPAPO/TSKEYFMAIN?
    Thanks for your help!
    SM

  • Unable to update a field using the Data tab on a VIEW

    When viewing data using a VIEW instead of going to the table directly, am unable to change the values in any of the fields
    When I click on the list of VIEWs for a schema, then select a view that is based on a SELECT statement for a single table with a Primary key, and then click on the DATA tab to modify the value in one of the fields, SQL Developer does not allow me to change the value.
    Went into SQL Plus, and was able to execute an UPDATE statement against the same row of that VIEW, and update that field ("UPDATE vw_mytable SET thisfield = 'YES' WHEN row_id_number = 1'").
    Does SQL Developer not allow updating tables through a VIEW?
    Will it allow updating in the future? Please say yes.
    Oracle 10g DB and latest version of SQL Developer.

    Remember to add feature requests and vote on them on the SQL Developer Exchange!
    <br>
    <p>We have added updateable views to 1.1, but do remember, not all views are updateable - even in SQL*Plus.</p>
    <br>
    Sue

  • Update PRODH field from table T179T

    hi,
    i want to update PRODH field from table T179T into table VBRP. for this we
    need to take selection option also.
    selection option will be :
    ·             Sales Organization (field VBRK-VKORG)
    ·       Billing Date Range (VBRK-FKDAT)
    ·       Distribution Channel (Vbrk-vtweg
    while i have done this for one field by using hard code but like:
    TABLES: VBRP.
    CLEAR VBRP.
    UPDATE VBRP SET PRODH = 'PLC01' WHERE VBELN = '0008300051'.
    SELECT SINGLE * FROM VBRP WHERE VBELN = '0008300051'.
    WRITE: VBRP-VBELN,VBRP-PRODH.
    but this is not the right way. please guide me how to solve this.

    TABLES: VBRP.
    CLEAR VBRP.
    UPDATE VBRP SET PRODH = 'PLC01' WHERE VBELN = '0008300051'.
    <b>commit work.</b>
    SELECT SINGLE * FROM VBRP WHERE VBELN = '0008300051'.
    WRITE: VBRP-VBELN,VBRP-PRODH.
    use commit work after update statement.
    But this code would make vbrp-vbeln as plc01 only.
    If you want to get the prodh value from t179t, then write a sleect on t179t and then update.
    TABLES: VBRP.
    CLEAR VBRP.
    select single prodh
      from t179t
    where......
    UPDATE VBRP SET PRODH = t179-prodh WHERE VBELN = '0008300051'.
    commit work.
    SELECT SINGLE * FROM VBRP WHERE VBELN = '0008300051'.
    WRITE: VBRP-VBELN,VBRP-PRODH.

  • Update Z field from BSIK into BSAK when closing

    Hi,
    I have created Z field in BSIK table using "Append structure" option. I also created identical field via same option in table BSAK. When I clear open item system "delete" that item in table BSIK and create identical item in table BSAK (BSIK - open items; BSAK-closed items), BSIK and BSAK have same structure because of this trensfer of open items from BSIK to BSAK during open item clearing. My problem - when open item is cleared and item is transferd from BSIK to BSAK my Z field is not updated by system. Is it possible to set this in customizing or is there another way to update this Z field in BSAK when someone clear open items - user exit, modification or ???.
    Thanks in advance.
    Sasa

    Hi Andreas,
    than you for your responce.
    I tried to find out suitable event for this in fibf but withouth success. Could you suggest event that will be suitable for this purpuse.
    One more thing - if I reverse clearing (via transaction FBRA) system will transfer closed item from BSAK to BSIK and during that process Z field will not be updated so I also need event to update this field durind reverse clearing.
    Thank you in advance.
    Kind regards,
    Sasa

  • Sale value update (SAUFT) field

    Hi,
    I have a problem with sale vaule update in transaction FD33, this is field is getting improperly (SAUFT) updated and not matching with values in SO and open deliveries.  I am scheduling the job RVKRED77 (S066 and S067) to update this field and still getting problem.  Is there any alternative to this or we need to schedule this job RVKRED77 frequently? 
    Thanks a lot in advance
    Lakshmana Rao

    Hello, Ajay,
    As for your suggestion about KA02. I think it's impossible since APC recon account  is being used by numerous WBSs. 1:1 mapping is impossible.
    Reverse is also impossible since capitalization has been made.
    If you have another ideas, it would be great.
    Thank you in advance.

  • Master Detail Form - How 2 update a field in the Detail form using a query?

    Hello,
    I have a master detail form with, each master record having a fixed(6) number of detail records. One of the fields in the detail record is the PART_DESCRIPTION field. I am trying to update this field by querying Table_X. TABLE_X is in the format of (desciption id, description). Description id runs from 1 to 6.
    When the form displays, the PART_DESCRIPTION field for the 6 detail records needs to be automatically populated with the six values of description stored in Table_X. How can this be done?
    Tried using session storage objects, but made no headway.
    Would greatly appreciate pointers on how to go about doing this.
    Thanks.
    Dev

    If you are on a Portal Version lesser than 3.0.9.8.3, then please try the following to populate
    the PART_DESCRIPTION field.
    Steps:-
    1> Edit the form and go to the Additional PL/SQl section and put the following code in the
    "...after displaying the page area" :-
    declare
    type t_vc_arr is table of varchar2(4000) index by binary_integer;
    l_arr_desc t_vc_arr;
    l_form_name varchar2(200);
    l_form_state varchar2(500);
    begin
    l_form_name := p_session.get_module().get_name();
    l_form_state := p_session.get_value_as_varchar2(
    p_block_name => 'MASTER_BLOCK',
    p_attribute_name => '_FORM_STATE'
    if l_form_state = 'QUERY_AND_SAVE' then
    select description
    bulk collect into l_arr_desc
    from <schema>.table_x;
    htp.p('
    <script>
    var descArr = new Array();
    var Fidx = 1;
    var formObj = document.WWVM'||p_session.get_id()||';
    var fieldName = "'||l_form_name||'.DETAIL_BLOCK.PART_DESCRIPTION.0";
    for i in 1..l_arr_desc.count loop
    htp.p('descArr['||to_char(i-1)||']="'||l_arr_desc(i)||'";');
    end loop;
    htp.p('
    for (var i=0; i < formObj.length; i++){
    if (formObj.elements.name == fieldName+Fidx){
    formObj.elements[i].value = descArr[Fidx-1];
    ++Fidx;
    htp.p('</script>');
    end if;
    end;

Maybe you are looking for