Update vendor master

Hi Experts,
I have requirement where I want to automatically update bank details.
Update Bank account number with “-” at second last position only for preferred bank account.
I have used BADI ‘VENDOR_ADD_DATA’ and method ‘CHECK_ALL_DATA’ but it is
giving syntax error as : ‘The field "T_LFBK" cannot be changed’
Following is my sample code:
  loop at t_lfbk into ls_lfbk.
    clear: len.
    len = strlen( ls_lfbk-bankn ).
      if ls_lfbk-bvtyp = '0001'.
            len = strlen( ls_lfbk-bankn ).
            len = len - 1.
            concatenate ls_lfbk-bankn(len) '-' ls_lfbk-bankn+len(1) into ls_lfbk-bankn.
            clear len.
      endif.
    modify t_lfbk from ls_lfbk.
  endloop.

Hi Sreekanth,
I have tried this code, but it gives run time error as follows :
Short Text
    Error at assignment: Overwritten protected field.
What happened?
    Error in the ABAP Application Program
    The current ABAP program "ZCL_IM_VENDOR_ADD_DATA========CP" had to be
     terminated because it has
    come across a statement that unfortunately cannot be executed.
Error analysis
    A new value is to be assigned to the field "<FS>", although this field is
    entirely or partly protected against changes.
    The following are protected against changes:
    - Character literals or numeric literals
    - Constants (CONSTANTS)
    - Parameters of the category IMPORTING REFERENCE for functions and
    methods
    - Untyped field symbols not yet assigned a field using ASSIGN
    - TABLES parameters if the actual parameter is protected against changes
    - USING reference parameters and CHANGING parameters for FORMs, if the
    actual parameter is protected against changes and
    - Accesses using field symbols if the field assigned using ASSIGN is
    protected (or partially protected, e.g. key components of an internal
    table with the type SORTED or HASHED TABLE) against changes
    - Accesses using references, if the field bound to the reference is
    protected (or partially protected) against changes
    - External write accesses to READ-ONLY attributes,
    - Content of a shared object area instance accessed using a shared lock
    (ATTACH_FOR_READ).

Similar Messages

  • FM to update Vendor Master record

    Hi,
    Is there a Function Module which we can call to update Vendor Master record. Most specifically, I would like to update the Name1 field. The program I am creating will run as a daily job and we do not wish to use BDC. Any help is appreciated. Thanks!

    Hi, I found FM vendor_update and have tried passing in I_LFA1 and I_LFB1 to update a particular vendor. It seems to work but I am still exploring what the other parameters are used for. Any tips?

  • Creating / updating vendor master from CREMAS03

    Hi All,
    I am getting vendor master data from external system and SAP XI will convert this into Idoc of message type CREMAS03. I would like to create/update vendor master in R/3 system from Idoc CREMAS03. Which function module / BAPI will cater to this need.
    Thanks and best regards
    Kalingeri

    Hi
    Check in WE57 using the Message type & Idoc type & direction.
    IDOC_INPUT_CREDITOR & IDOC_INPUT_CREDITOR_MDM are the the two Func modules being used. You can use any one of them based on your reuirement
    Thanks & Regards
    Kishore

  • BAPI/function module to create/update vendor master data

    Hi
       We are on ECC 50 and have a need to update vendor master data through a programatic interface ( non-dialog ) with ABAP. What is a good function module that can be used to create/update vendor master data - I looked at BAPI_VENDOR_CREATE and did not find any input interfaces that can be passed to this BAPI.
    Previous experiences with the right BAPI for this purpose that can be shared is appreciated. <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Feb 26, 2008 5:58 PM

    Hi Kiran,
    If you want to load the vendor data into sap its better to go with LSMW batch input program.
    object 0040
    method 0001
    program name RFBIKR00
    Program type B
    this would be a good choice. Recently i did the same.

  • Cannot update Vendor Master (LFA1,LFB1,LFBK) in the background

    Hi All,
         I am workingon a requirement to update vendor master (LFA1, LFB1, LFBK etc) and after doing extensive research on SDN I came to know there are no BAPIs to update vendor and got information on function modules I can use and finally ended up using FM "Vendor_Update". I thought it is working fine because data gets updated in tables but when I checked the same vendor through transaction XK02, it still shows the old data! I even tried BDC recording with "Call Transaction"  and it works in fine in foreground (I can see changes in tables and XK02) but nothing works in the background but user requires the program to run in the background. I spent last 6 hours on SDN researching and trying several suggestions but no luck yet. Can someone please share any information on any solution to resolve this?
    Thanks in advance.
    Ravi

    Hi All,
         I figured out  that I have to check "Use central address management" check box which will be visible when you only record with option "Simulation in background".
    Thanks.
    Ravi

  • Updating Vendor Master Address from HR Master using PRAA

    Hi All,
    When PRAA updates the Address into the Vendor Master from Infotype 6 subtype 1, does it consider the Second Street address as well?
    Some employees have 2nd address line populated in their IT0006 record and this isn’t showing in their vendor account.
    Regards,
    Anjali.

    Hi Anjali,
    No, the sttandard program does not update any subtypes of infotype 0006 other than subtype 0001. However, you can adapt this to suit your needs: an empty routine is supplied in the includes RPRAPAEX and RPRAPAEX_001 which you can adapt to your requirements You must implement the user exit routine 'set_address_by_user'. An experienced ABAP programmer can do this.
    Regards,
    Rodrigo

  • To update Vendor master data

    I have 4300 records in vendor master data LFA1. I have to update  industry code corresponding to each vendor .
    Can anyone suggest me how can i  do it ?
    Is there any t-code availaible to do it. So i can make BDC program to do this.
    Help me on this ...
    << Moderator message - Everyone's problem is important. But the answers in the forum are provided by volunteers. Please do not ask for help quickly. >>
    Edited by: Rob Burbank on Jun 24, 2011 4:20 PM

    Hey XK02 is for Vendor Master change.
    Make sure if you write BDC check the flag No BatchInput in SHDB recording.
    Or else Use the MASS transaction for doing so.
    Since you want to change only one field data LSMW is also simple way to do it.
    Hope this Helps,
    Regards,
    Bhargav

  • Help with replicating/updating vendor master data

    Hi,
    Currently, we run the bbp_vendor_sync program to do the replication. It does the job of both bbpgetvd (new vendor creation) and bbpupdvd (update existing vendor).
    But the problem is, we have two number ranges for vendors. One is Numeric and other one is Alpha.
    Group -->AB     From 0010000000     to 0699999999
    Group -->AZ     From A     to ZZZZZZZZZZ
    The vendor synchronization program can consider only one number range at a time i.e.
    either Numeric or Alpha. So, we have to switch the active number range
    and run the program twice., first for numeric and then for alpha.
    In order to avoid this, I'm looking at implementing bbp_transdata_prep which I was told would take care of this issue.
    I looked around for documentation/sample code for bbp_transdata badi and couldnt find any on SAP help site or SDN.
    Wondering if someone can help with the documentation/sample code and difficuly level of implementing this BADI.
    Any help would be highly appreciated and suitable points would be awarded for your help.
    Also, if there is another way to solve this issue without implementing transdata badi, pls. let me know.
    TIA,
    Seyed

    Hi
    <u>Please go through this -></u>
    http://help.sap.com/saphelp_srm50/helpdata/en/56/54f137a5e6740ae10000009b38f8cf/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/62/fb7d3cb7f58910e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/42/d3b671ba67136fe10000000a1553f7/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/bb/6c0e3b02616a42e10000000a11402f/frameset.htm
    <b><u>Sample BADI Implementation
    BADI Definition - BBP_TRANSDATA_PREP
    Purpose -> Impl. for BBP_TRANSDATA_PREP, Delete Invalid Mail Addresses</u></b>
    <u>PREPARE_REPLICATION_DATA method -></u>
    method IF_EX_BBP_TRANSDATA_PREP~PREPARE_REPLICATION_DATA.
      FIELD-SYMBOLS: <LFS_ADR6> TYPE ADR6.
      LOOP AT CT_ADR6 ASSIGNING <LFS_ADR6>.
        IF <LFS_ADR6>-SMTP_ADDR NS '@'.
          DELETE CT_ADR6.
        ENDIF.
      ENDLOOP.
    endmethod.
    <u>PREPARE_UPDATE_DATA method -></u>
    method IF_EX_BBP_TRANSDATA_PREP~PREPARE_UPDATE_DATA.
      FIELD-SYMBOLS: <LFS_ADR6> TYPE ADR6.
      LOOP AT CT_ADR6 ASSIGNING <LFS_ADR6>.
        IF <LFS_ADR6>-SMTP_ADDR NS '@'.
          DELETE CT_ADR6.
        ENDIF.
      ENDLOOP.
    endmethod.
    Hope this will help.
    Regards
    - Atul

  • LSMW Mass Update Vendor Master

    I have a request to use LSMW to read all vendor records and reformat and update the tax code (LFA1-STDC1) field. Does anyone know if this can be done with LSMW? I am not sure how to do it. Or, is it easier to develop an ABAP routine to do the updates?  Any help will be rewarded.

    For mass updation one can use LSMW Object: 0040 / 0001 / RFBIKR00 / B or else try using FM vendor_update .
    null

  • Update vendor master contact address

    hello Folks,
    is there any function mdoule to update the Vendor Contact address.. I have searched in SCN and i found that in some threads there is no function module available to do so.
    Can any one tell me if this is correct .. we cannot  with BAPI or FM .
    Regards,
    raj

    Hi Raj,
    I had similar issue in my current project. This answer might be helpful for others.
    Go to table KNVK ..enter your vendor numbers LIFNR & note down the unique number in field PARNR  .
    Change  partner contact details in tcode: MAP2 with help of unique numer.
    You can also develop LSMW with reference to transaction MAP2 for upadting partner address.
    Thanking you
    Prakash

  • Update vendor master Classification Data

    Hello Folks,
    I am using Cremas message type to distribute the idocs from one system other system(SAP systems).. However i also need to update the Classfciation data.... In the basic type CREMAS05  there is no option for this..
    I know couple of message type as (CLSMAS AND CLFMAS) ... i came to know this is only used for material master.. Can anyone let me know if i am correct or wrong.....
    any help is highly appreciated.
    Regards,
    Raj

    hI,
    Can anyone help me?
    Regards,
    Raj

  • Update email address in vendor master using report RPRAPA00

    Hi All ,
    My requirement is to update email address in communication tab of vendor master .
    There is one report RPRAPA00 running in background to update vendor master except email .
    I could not able to see anything to update email address in user-exits available in report RPRAPA00.
    Is there any way to update email address using this report or any alternative way .
    Please help .
    Thanks and regards ,
    Sijin KP.

    You can use a couple of function modules from function group SZA0 to update the email address.
    Attached is a simple test program that inserts a new email address for a vendor whose address number is known (from LFA1-ADRNR):
    DATA: comtab TYPE STANDARD TABLE OF adsmtp WITH HEADER LINE.
    comtab-consnumber = '001'.
    comtab-flgdefault = 'X'.
    comtab-smtp_addr = 'email_address_comes_here'.
    comtab-dft_receiv = 'X'.
    comtab-valid_from = '00010101'.
    comtab-valid_to = '99991231'.
    comtab-updateflag = 'I'.
    APPEND comtab.
    CALL FUNCTION 'ADDR_COMM_MAINTAIN'
      EXPORTING
        address_number                       = '0000141306'
        table_type                           = 'ADSMTP'
      TABLES
        comm_table                           = comtab
    EXCEPTIONS
       parameter_error                      = 1
       address_not_exist                    = 2
       internal_error                       = 3
       OTHERS                               = 4
    IF sy-subrc NE 0.
      WRITE sy-subrc.
    ELSE.
      CALL FUNCTION 'ADDR_MEMORY_SAVE'
       EXCEPTIONS
         address_number_missing       = 1
         person_number_missing        = 2
         internal_error               = 3
         database_error               = 4
         reference_missing            = 5
         OTHERS                       = 6
      IF sy-subrc NE 0.
        WRITE sy-subrc.
      ENDIF.
    ENDIF.

  • PO created by means of Workflow  with out Vendor master updates

    Hi  Friends,
       I  have my scenario like this. I am working with Production server. When ever a request is created, it has to be sent for Vendor master data updates. then only a PO has to be created. The problem is the PO is created and the workflow is completed with out vendor master updates. When i check through SWI6  the step is just skipped. In the graphical view the steps vendor master update i.e tru  descion and other wait step types are disappeared. but in the original workflow the steps are present. can any one pls help me in solving this?
    Thanks,
    Archana.

    Hi  Arghadip,
      Thanks for the reply. The process is like this :
       when once request is created , it will fetch the email id of the approver from LDAP
       Then 2 approval steps are there. first approval is not mandatory. second is mandatory and its having terminatting event.
      After this Amendment descion will be there. on rejection of this descion it has to go and update vendor master. Until the amendments the process is going on. after  this  vendor master update will be there . it includes wait steps to  finish the update. then PO has to be created. but  from vendor descion to wait event the steps are disappeared when i checked  in SWI6 for that user. pls help me.

  • Updating SWIFT Code in Vendor Master with IDoc

    Hello,
    I am facing the following problem.
    We are using IDoc CREMAS04 to update vendor master data. Now we also would like to use the SWIFT code. I have seen that there is a SWIFT field in the IDoc in segment E1LFBKM in the CREMAS04 IDoc. However the SWIFT field in vendor master data is still empty after transferring the IDoc.
    Any idea why the value in the SWIFT field of CREMAS04 IDoc is not transferred to the vendor master data? Are there any other approaches I could follow?
    Thank you so much for your help!

    Hi Florian,
    Not sure if this will answer your question but the swift code is part of the bank master and not the vendor master.
    You can check via de Bank data button in de vendor master or via FI03 for the specific bank country and bank key fi the Swift code is in there.
    If not or you already checked the above this answer will  be no help and i think you really have to debug/analyze to see what goes wrong.
    Regards,
    Mike

  • Vendor Master Change info

    Hi
    I have updated Vendor Master in R3 and just wanted to know the Table Name which captures the information regarding 'when' and 'who' made the changes.
    Thanks...

    Hi,
    I am not sure, but can you check the main vendor master data table LFA1? or you can check other Vendor related tables, simply go to transaction SE11 and put LFA*, you will get the required list of tables.
    Regards,
    Durgesh.

Maybe you are looking for

  • Error while creating IMG project in solar_project_admin for the CHARM maint

    Dear Experts,    I  am integrating the r3 system to the charm process. I have created the maintainenace project in SOLAR_PROJECT_ADMIN                                            gave tha logiccal component(TMS is configured ( DEV--> QA --> PRD) . Now

  • Intel Based IMac OS X 10.5.8 freeze on shut down and hang ups

    Have an Intel IMac8,1 OS X 10.5.8 Computer has been freezing up on shut down, will log out and hold right at the shut down screen with a loading icon running.  Will have to force shut down with power button.  Applications have been loading slower tha

  • Uninstall Leopard

    How do I go back to Tiger until Leopard fixed?

  • Pro-Rated Tethering Charges

    I don't need tethering often enough to justify the extra cost of DataPro with Tethering vs the standard DataPro plan on AT&T. However, it is sometimes nice to have when traveling. Is it possible for me to switch to the tethering plan only for the day

  • Aperture Facebook button not allowing "friends"

    When I post from Aperture to Facebook I click the "friends only" button.  Until about two weeks ago this work as you would expect - the photos were posted to FB with friends being able to view them.  Now, however, even though I choose the "friends" o