Issue while updating EAN in Material Master

Hi Friends,
   We are using the following code to update the EAN of an existing material, but no changes are being done in the article.
I am getting a message "Messages for article 100002268: log number 0000000000012552" from the BAPI. When I checked the log its says that "No Changes made". Please let us know what we are missing.
PARAMETERS p_matnr TYPE mara-matnr.
DATA : lt_headdata TYPE bapie1mathead,
        ls_return TYPE bapireturn1,
        lt_clientdata TYPE STANDARD TABLE OF bapie1marart,
        lt_clientdatax TYPE STANDARD TABLE OF bapie1marartx,
        ls_clientdata TYPE bapie1marart,
        ls_clientdatax TYPE bapie1marartx,
        lt_addclientdata TYPE STANDARD TABLE OF bapie1maw1rt,
        lt_addclientdatax TYPE STANDARD TABLE OF bapie1maw1rtx,
        lt_uom TYPE STANDARD TABLE OF bapie1marmrt,
        ls_uom TYPE bapie1marmrt,
        lt_uomx TYPE STANDARD TABLE OF bapie1marmrtx,
        ls_uomx TYPE bapie1marmrtx,
        ls_art_ean TYPE zmm_art_ean,
        lt_art_ean TYPE STANDARD TABLE OF zmm_art_ean.
lt_headdata-material = p_matnr.
lt_headdata-basic_view = 'X'.
ls_clientdata-material = p_matnr.
ls_clientdata-base_uom = 'EA'.
APPEND ls_clientdata TO lt_clientdata.
CLEAR ls_clientdata.
ls_clientdatax-material = p_matnr
ls_clientdatax-base_uom = 'X'.
APPEND ls_clientdatax TO lt_clientdatax.
CLEAR ls_clientdatax.
ls_uom-material = p_matnr.
ls_uom-alt_unit = 'EA'.
ls_uom-ean_upc = '82901237792'.
ls_uom-denominatr = 1.
ls_uom-numerator  = 1.
APPEND ls_uom TO lt_uom.
CLEAR ls_uom.
ls_uomx-material = p_matnr
ls_uomx-alt_unit = 'X'.
ls_uomx-ean_upc =  'X'.
ls_uomx-denominatr = 'X'.
ls_uomx-numerator  = 'X'.
APPEND ls_uomx TO lt_uomx.
CLEAR ls_uomx.
CALL FUNCTION 'BAPI_MATERIAL_MAINTAINDATA_RT'
  EXPORTING
    headdata        = lt_headdata
  IMPORTING
    return          = ls_return
  TABLES
    clientdata      = lt_clientdata
    clientdatax     = lt_clientdatax
    unitsofmeasure  = lt_uom
    unitsofmeasurex = lt_uomx
  EXCEPTIONS
    OTHERS          = 1.
IF sy-subrc = 0.
  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
ENDIF.

Hi,
Check this include LWPLGF04.
Regards,
Nagaraj

Similar Messages

  • How is the Consumption tab will update in the material master?

    Hi Friends,
    How is the Consumption tab will update in the material master?
    what are the customization required if consumption tab wants update with respective the qty?
    Regards,
    Hari Shankar

    Hi Friends ,
    I am very thankful to u all for your quick response,
    I have tested the two materials with two movement types of 601 and 954.
    when i did the 601 movement type the consumption tab in the material master has updated automatically even though  i haven't maintained forecasting tab, but where as for the movement type 954 the consumption tab is not updated even though i have maintained forecasting tab view in the material master.
    Is the consumption view will update based on the Material movement types?
    where is the control parameter for updating consumption tab?
    could you pls help me regarding this?
    Regards,
    Hari Shankar.

  • BDC to update CAT2 transaction.one issue while updating CAT2 transaction

    Good Day Friends,
    i have one issue while updating CAT2 transaction,
    i have enhnced 3 custom fields in CAT2 tx-code. while updating through manually the data is getting stored in CATSDB tx-code for this i have done validation in enhamcement spots ECC 6.0.
    but when i am running bdc this custom field data is not updating in CATSDB table.
    my dout is will  BDC work for enhancement spots or not , also please suggest if you have any idea ?

    Hi,
    Usually I am trying to avoid BDC. So I would try to use BAPIs BAPI_CATIMESHEETMGR_INSERT and BAPI_CATIMESHEETMGR_CHANGE. Similar to other BAPIs, you can pass values for your extended fields using table EXTENSIONIN. It's described in BAPI's documentation or look for EXTENSIONIN on SDN. The principle is same for all BAPIs.
    Regards

  • Updating values in material master table

    Hi,
    I have a requirement where in which if the user wants to change the value of some fields of a particular record in the o/p,then he checks the checkbox of that record and click on the change button.Then the control goes to the update screen.There are many fields present in the update screen and also checkboxes were present beside each field.The user can change the values of the fields here and click on th execute button.Then only the checked field values should get updated in the material master table.
    Can anyone tell me how only the checked field values can be updated in the material master table

    are you attempting to program the standard transaction MM17 all over again?

  • Issue while updating field SCHZU (shift Premium) in table view  V_T508A

    Hi All,
    I am facing an issue while updating the field SCHZU(Shift premium) in Table view V_T508A.For some WSR entries when i am trying to update the shift premium say with a value 19400,the value is accepted.However for some other WSR entries,the value for shift premium gets modified to 19.400.Can someone please let me know why this error is occuring and how to rectify the same.
    Regards,
    Punam Jha

    usually its a percentage value. please check what value you enter

  • BAPI_MATERIAL_SAVEDATA - Deletion of EAN in Material Master

    Dear Everyone,
    While using the BAPI_MATERIAL_SAVEDATA to update material master, I am trying to set the deletion flag to EAN code in the Basic data>>Additonal Data view.
    I am setting the deletion flag in the internal table for table bapi_mean. After running the bapi, the EAN code is not deleted.
    Please can you tell me how this could be done... and where am I wrong?

    Hello,
    you could check OSS-Note 406160 .
    Even when it's implemented, you could set a break-point into the form "MEAN_UEBERGEBEN" of function-pool "1001UEB" and look, what happens there.
    Regards Wolfgang

  • Reg : BDC issue while updating infotype 40 inside BADI class method

    Hi Friends,
         Actually in my badi class, there is a method where i need to save the infotype fields including comment fields.. So with BDC recording i recorded screen fields and passing the pernr internal table values to recorded pernr values.. by doing this im getting error and so BDC is not upadting the data.. moreover if i pass directly pernr number within single quotes, BDC is working fine and data is getting updated..
    bdc_field        'RP50G-PERNR'   pernr.  --> Error Message while calling transaction through BDC
    bdc_field        'RP50G-PERNR'   '00001234'  ---> updating successfully..
    1. Tell me whether the issue is with BADI or wat ? means we cant able to use BDC inside badi ?
    2. I also tried changing my internal table value of pernr to type 'C' of length 8.. eventhough its showing error..
    Please tell me what i need to do .... ?

    Hi  Dilek Ersoz Adak ,
      I also tried with that, but getting same error..  Below is my error im getting while updating BDC through call transaction,
    1     PA30     SAPMP50A     1000     E     K     PBAS_SERVICE     001     HRADMIN     EPPRELE 00000121     HRAdministrator          CTU     RP50G-PERNR
              Person is treated already by the HR Administrator

  • Where can I update quantity in material master ?

    I was working on STO (Stock Tranport Orders) scenarios
    Bascially stock tranport orders can be done in three ways
    1. Stock Transport via stock transport procedure using 1 step procedure
    2. Stock Tranport via stock tranport posting using 2 step procedure
    3. Stock Tranport using a STO ( in Tcode me21n, where we select STO)
    Now, when I entered MIGO and selected Transfer posting and movement type 301
    (Transfer posting from plant to plant) and maintained the material details
    It is throwing up a message "Shortfall of stock level"
    I went to material master of the respective material for both the plants and updated the base quantity in the sales view ( base quantity field , under the shipping data ( times of day) block)
    Yet, it did not fix my problem and I am not sure where else I can maintain <b>quantity in the material master for the material</b>Any inputs into the above will be helful
    Thanks for your time

    Hi,
    If The material has no BOM then it mustbe a ROH material.
    What u can do is :\
    Goto Transaction MIGO do movement type 101 - goods receipt with purchase order.
    If u dont have a purchase order than go with goods receipt with option as "others" and enter the material,Quantity,plant and storage location and post the goods movement.
    After that if u check MMBE then the stock will be available.Then go for STO it should be fine.
    So material master does not come into picture.
    Check the same and come back if u have any doubt.
    Prakash

  • Issue while updating(Changing) quantity on line at quick sales order form

    Hi,
    I am facing a issue while changing quantity ordered on the order line in quick sales order form. (R12.1.3)
    Although the same logic works exactly as required in 11.5.9.
    There is a custom logic, post booking line status is Awaiting Shipping.
    Now when quantity is changed +(Saved), the status changes to a custom state but at the same time a new row is created with the same line id but different reservation id in the MTL_RESERVATIONS.
    The quantity here is the difference between the original quantity and the new entered quantity.
    And post completion of the custom logic the original row is updated, but being there a additional row the quantity reserved at the shipping tab comes wrong.
    Our requirement is of update which is happening but not the additional insert which is going into MTL_RESERVATIONS.
    The logic is perfect in 11.5.9 and no additional insert is being made.
    Kindly help and give some ideas for the possible reason the issue.
    Please ask for more information if required.
    Thanks,
    Vishal

    Hi Mahendra,
    I have gone through the note id that you have given. sorry to say that, that is refering to diffrent issue.
    Actually what i did is, At form header level, I have hide the fileds using the folder options. once after changes I have closed the form and re-opened it. by that time I can see that Button names got changed in bottom of the "Quick sales order form". Not sure how it become changed. there five buttons over the form, only two button names got changed.
    Kindly suggest any other options.

  • MM17 Mass Update Tool for Material Master.

    Hi Gurus,
    We have an appended material master field which was earlier added to the material master.
    Now we want to add it as an update field into MM17 Mass Update Tool. But don't know how to do it. Please help.
    Thanks in advance.

    Hi ,
    We are not still able to add that field as 'material updation field' in the field pool. Yes it is a Z field, and the concerned table name is MARC.
    The SAP version is 4.6 C. We tried to find SAP Note and found one 576160. But it may not work. Could you please advice further ?
    We want to add that field into the field pool which appears on clicking the "Select fields" tab.

  • Error while trying to change Material master

    Hi ,
    I am getting following error when I am trying to Change material master thru Tcode MM02
    "Required parameter missing when calling up module MARA_SINGLE_READ"
    In fact , I also couldn't select this Material in Purchase order .Error which i am getting is "Faulty Material"
    Could anyone pls help me.
    Regards
    Sandeep marwha

    I created a new material also , but for that also I am getting same error.
    Regards
    Sandeep

  • Issue while Updating a table having Unique Secondary Index

    Hi,
    I am trying to update a 'Z' table in which there are 5 fields comprising of primary key. Out of them 2 key fields are defined as a part of seconadry index with 'Unique' option selected.
    As per the requirement, I am trying to update the table using modify statement so whenever this statement occurs it will check the primary keys and accordingly try to m

    958572 wrote:
    Hi,
    We have observed the exception *'JDBC activity timed out while updating the table -Table1"* in our logs in prod environment.
    1)we verified the AWR report for that particular time and observed that one update statement was trying to update the table table1.
    its a simple update statement as below
    UPADTE TABLE1 SET COL1=VAL1,COL2=VAL2 WHERE ID1=VAL1 AND ID2=VAL2;
    there is a PK index on ID2 column.
    2)we also came to know that there were no locks on TABLE1 during this time.
    can some one please let me know what could be the possible reason for this kind of exception?
    ThanksOS/Networking mis-configuration.
    Oracle does not know or care about the type or flavor of remote client (JDBC, OCI, ODBC, etc).
    Oracle's default configuration contains no timeout.
    I suspect a FireWall setting.

  • Issue while updating

    I have a table which has a column containing text with multiple lines.while i am trying to update that column i am facing the issue
    "Dear User,
    Enclosed is the attachment.
    Please direct problems at 209876534 or
    [email protected]
    Regards,
    Developement team"
    update t1 set c1="Dear User,
    Enclosed is the attachment.
    Please direct problems at 209876534 or
    [email protected]
    Regards,
    New developer group"
    Above update statement is not working.
    Looking for your help
    Thanks

    user518809 wrote:
    I have a table which has a column containing text with multiple lines.while i am trying to update that column i am facing the issueWhat is the column type? If varchar2, then only 4000 bytes worth of characters can be stored in it.
    Also, it is crititcal! to performance that you use bind variables. Do not use literal values in SQL! That is the #1 reason for poor Oracle performance.
    This is what your client software should be doing (using SQL*Plus) to demonstrate.
    Step 1 . Create a bind variable:
    SQL> var colValue varchar2(4000)Step 2. Assign a value to the bind variable:
    SQL> exec :colValue := '...<your string of text comes here>..';Step 3. Execute the SQL using that bind variable:
    SQL> update t1 set c1 := :colValue;Of course, the update statement will update all rows in the table. So you likely need to add a predicate (using a bind variable) to specify which specific row you want to update.
    And note that this is the correct way to do it. Not using bind variables is the wrong way to do it.

  • Filesystem issues while updating

    I can't upgrade community repository because some file on my harddisk does not like to be removed.
    [root@senna frank]# pacman -Sy
    :: Synchronizing package databases...
    core is up to date
    extra is up to date
    community 366.9K 1084.6K/s 00:00:00 [###########################################################################] 100%
    error: could not remove database entry communitygnomebaker
    error: failed to update community (could not remove database entry)
    testing is up to date
    When I manually try to remove this file:
    [root@senna gnomebaker-0.6.2-1]# pwd
    /var/lib/pacman/sync/community/gnomebaker-0.6.2-1
    [root@senna gnomebaker-0.6.2-1]# ls
    depends
    [root@senna gnomebaker-0.6.2-1]# rm -vRf depends
    rm: cannot remove `depends': Operation not permitted
    Strace:
    [root@senna gnomebaker-0.6.2-1]# strace rm -vRf depends
    execve("/bin/rm", ["rm", "-vRf", "depends"], [/* 35 vars */]) = 0
    brk(0) = 0x8c11000
    access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
    open("/etc/ld.so.cache", O_RDONLY) = 3
    fstat64(3, {st_mode=S_IFREG|0644, st_size=53084, ...}) = 0
    mmap2(NULL, 53084, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7eea000
    close(3) = 0
    open("/lib/libc.so.6", O_RDONLY) = 3
    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 h\1\0004\0\0\0\200"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0755, st_size=1554407, ...}) = 0
    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7ee9000
    mmap2(NULL, 1336912, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7da2000
    mprotect(0xb7ee2000, 4096, PROT_NONE) = 0
    mmap2(0xb7ee3000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x140) = 0xb7ee3000
    mmap2(0xb7ee6000, 9808, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7ee6000
    close(3) = 0
    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7da1000
    set_thread_area({entry_number:-1 -> 6, base_addr:0xb7da16c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
    mprotect(0xb7ee3000, 8192, PROT_READ) = 0
    mprotect(0xb7f14000, 4096, PROT_READ) = 0
    munmap(0xb7eea000, 53084) = 0
    brk(0) = 0x8c11000
    brk(0x8c32000) = 0x8c32000
    ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
    lstat64("/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
    lstat64("depends", {st_mode=S_IFREG|0644, st_size=115, ...}) = 0
    unlink("depends") = -1 EPERM (Operation not permitted)
    write(2, "rm: "..., 4rm: ) = 4
    write(2, "cannot remove `depends'"..., 23cannot remove `depends') = 23
    write(2, ": Operation not permitted"..., 25: Operation not permitted) = 25
    write(2, "\n"..., 1
    ) = 1
    close(0) = 0
    close(1) = 0
    close(2) = 0
    exit_group(1) = ?
    Does anyone have a clue what I can do about this?
    It's been a while since I updated community now

    lucasdemarchi wrote:
    I believe it's related to this file's attributes. Issue "lsattr" in  this file and see if there's an "i" attribute. If so, change it:
    chattr -i filename
    From chattr's man page:
    A file with the `i' attribute cannot be modified: it cannot be deleted or renamed, no link can be created to this file
    and no data can be written to the file. Only the superuser or a process possessing the CAP_LINUX_IMMUTABLE capability
    can set or clear this attribute.
    regards
    You are my hero
    Worked like a charm.
    Now I can update community again

  • 7210 supernova detection issue while updating soft...

    i want to update my  nokia 7210 supernova, bcz it doesn't start properly. therefore i can't update it while setting it powered on.
    the issue is that it turns off after nokia start up tone when ever i power it on.
    any help plz....
    i need my phone working properly as quick as possible

    the issue is that it turns off after nokia start up tone when ever i power it on.
    /t5/Pool-of-Knowledge/Recovering-from-a-failed-firmware-update/td-p/398147
     jje

Maybe you are looking for

  • Restoring Game Cener

    Hi, My son has an 8GB 4thGen Touch and manged to reset it last night.  Luckily I back everything up and was able to restore it to how he had it set up, with one exception.  I can't get Game Center to allow him to log back in with his AppleID.  If we

  • Cannot find original adobe Encore CS3 file to download

    My computer was hacked and I had to reformat everything only to find that the keylogger was in my router. I lost everything in 4 computers. I bought and paid for Encore CS3 but can only find "updates" and not the original program to update on my Adob

  • How can i get it back my toshiba canvio to original storage 2tb from 39gb?

    Pls help

  • Updating router

    I have a linksys 802.11b router that doesnt seem to reach all parts of my house equally.  I have an macbook pro, ipad and hp wireless router.  When i test my broadband speed it says i am only getting 4 mbps download and 480 kbps upload.  The max our

  • Manually change data in a table

    I am running a test and having the data collected from sensors displayed in a table. After the test is complete I want to allow the user the capability to over ride data in the cells they select in the table. Has anyone been able to, or is it possibl