LSMW to update only one field in materials

Hello experts,
My requirement is to update only one field 'HRKFT-Origin Group as Subdivision of Cost Element' in material using LSMW. I tried with Standard Batch/Direct Input -> Object - 0020, Method - 0000. But it was not successful as it gave me warning - 'The material cannot be maintained since no maintainable data transferred' at the end.
Now I want to try this using BAPI method in LSMW. But it is showing me error - No target structures could be determined..
Please guide me.
Regards,
Aparna Gaikwad

Hi
i tried the same and am able to do it using LSMW Batch i/p.  Object - 0020, Method - 0000.
There in source fields define material, plant and origin grp. in structure relations map the below
BGR00 Batch Input Structure for Session Data                       <<<< MBEW1 Material COsting
      Select Target Structure BGR00 .
    BMM00 Material Master: Transaction Data for Batch Input            <<<< MBEW1 Material COsting
          Select Target Structure BMM00 .
        BMMH1 Material Master: Transfer of Main Data                       <<<< MBEW1 Material COsting
Next in field mapping map those 3 fields: material, plant and origin grp.
while testing do one thing. first take the data and try the same using MM02 manually. if tht is working fine ( i mean if the material is having costing view and you are able to chnage the origin group). then test with the same material, plant and a different origin grp. It will work.

Similar Messages

  • Access for update only one column in table?

    Hi all,
    My need is to grant access for update only one column c1 in table t1.
    I guess I should use view, could you please give me some example? Maybe other ideas?

    Hi,
    You can grant privileges on individual columns.
    GRANT   UPDATE (c1)
    ON      t1
    TO      grantee_name;Look up GRANT in the SQL language manual. Annoyingly, in recent editions of the manual, GRANT is not indexed, but it's in alphabetic order with all the other statements:
    http://docs.oracle.com/cd/E11882_01/server.112/e26088/statements_9013.htm#i2155015

  • How to get Safari to suggest passwords when only one field is present?

    Safari works great when there are two fields to enter a password - a password field followed by a "confirm password" field - but doesn't seem to work when there is only one field to enter a new password.  Any suggestions?

    Hi,
    we have done something like this using seltab.
    One inputfield, user can enter anything same like in google like
    name:ab*,dob:1972
    write a conversion method to parse this input to seltab like
        clear ls_seltab.
        ls_seltab-sign  = 'I'.
        if lv_value cs '*'.
          li_lng = sy-fdpos.
          ls_seltab-option = 'BT'.
        else.
          ls_seltab-option = 'EQ'.
          ls_seltab-low    = lv_value.
        endif.
    use your seltab to retrieve data from the table.
    In anyway.. you can search resources in this direction to build your solution.

  • Set only one field color in a POWL-List

    Hi,
    in the method "IF_POWL_FEEDER~GET_FIELD_CATALOG" the whole colume (see attachment) can be colored.
    CASE <ls_dfies>-fieldname.
           WHEN 'LANGU'.
             ls_fieldcat-colpos         = 1.
             ls_fieldcat-display_type  = 'BT'.
             ls_fieldcat-color  = 19.
             ls_fieldcat-WIDTH  = '800'.
             ls_fieldcat-text_ref      = 'LANGU'.
           WHEN 'CHANGED_ICON'.
             ls_fieldcat-icon_src_ref  = <ls_dfies>-fieldname.
             ls_fieldcat-display_type  = 'IM'.   "Icon
             ls_fieldcat-tooltip       =  text-006.
             ls_fieldcat-color         = '4'.
    But how can I colorize  only one field in the POWL.
    Regards
    Jim

    Hi Jim.
    Would you be so kind and post your solution to this question?
    BR
    Per

  • Grant to update only one row

    Hi all,
    I'm working with an 10.2.0.3 Oracle Enterprise version.
    I need to create a new user on my database with permission to update only one row on table.
    Have you notice if this is possible? In case, how is the grant to do this?
    Regards,
    dbajug

    Try this:
    SQL> create user usr1 identified by usr1;
    User created.
    SQL> create user usr2 identified by usr2;
    User created.
    SQL> grant connect, resource to usr1,usr2;
    Grant succeeded.
    SQL> conn usr1/usr1
    Connected.
    SQL> create table t (id number);
    Table created.
    SQL> insert into t values(1);
    1 row created.
    SQL> insert into t values(2);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> grant update on t to usr2;
    Grant succeeded.
    SQL> create or replace trigger trg_t
      2  before update on t
      3  for each row
      4  begin
      5  if :old.id>1 then
      6  raise_application_error(-22299,'You cant change the specific value ');
      7  end if;
      8  end;
      9  /
    Trigger created.
    SQL> update usr1.t set id=2 where id=1;
    1 row updated.
    SQL> update usr1.t set id=2 where id=2;
    update usr1.t set id=2 where id=2
    ERROR at line 1:
    ORA-21000: error number argument to raise_application_error of -22299 is out of
    range
    ORA-06512: at "USR1.TRG_T", line 3
    ORA-04088: error during execution of trigger 'USR1.TRG_T'
    SQL>

  • Problem with creating an dynamic internal table with only one field.

    Hi,
    i create an internal table like this:
    FIELD-SYMBOLS: <GT_ITAB>      TYPE TABLE,
                   <GS_ITAB>,
                   <FS>.
    DATA: GT_DATA TYPE REF TO DATA.
    DATA: GS_DATA TYPE REF TO DATA.
    DATA: TABNAME   LIKE DD03L-TABNAME.
    DATA: FIELDNAME LIKE DD03L-FIELDNAME.
    DATA: TBFDNAM   TYPE TBFDNAM VALUE 'LFA1-NAME1'.
    SPLIT TBFDNAM AT '-' INTO TABNAME FIELDNAME.
    CREATE DATA GT_DATA TYPE TABLE OF (TABNAME).
    ASSIGN GT_DATA->* TO <GT_ITAB>.
    CREATE DATA GS_DATA  LIKE LINE OF <GT_ITAB>.
    ASSIGN GS_DATA->* TO <GS_ITAB>.
    SELECT * FROM (TABNAME) INTO CORRESPONDING FIELDS OF TABLE <GT_ITAB>.
      BREAK-POINT.
    it works OK.
    Now i want to create an internal table not like LFA1 but with LFA1-NAME1 Field TBFDNAM.
    It's not only LFA1-NAME1 it shell be the value of TBFDNAM.
    When i change
    CREATE DATA GT_DATA TYPE TABLE OF (TABNAME).
    to
    CREATE DATA GT_DATA TYPE TABLE OF ( TBFDNAM).
    i get an shortdump.
    Any idea?
    Regards, Dieter

    Hi Dieter,
    Your approach is ok, but it will create dynamic table without a structure of NAME1. Only the line type will be suitable (but field name will not exists -> hence the error in the select statement).
    In this case you need to create a dynamic table which structure consists of one field named NAME1.
    This code is the appropriate one:
    " your definitions
    DATA: tabname LIKE dd03l-tabname.
    DATA: fieldname LIKE dd03l-fieldname.
    DATA: tbfdnam TYPE tbfdnam VALUE 'LFA1-NAME1'.
    FIELD-SYMBOLS <gt_itab> TYPE table.
    "new ones
    DATA: it_fcat TYPE lvc_t_fcat WITH HEADER LINE.
    DATA: gt_itab TYPE REF TO data.
    " get table and fieldname
    SPLIT tbfdnam AT '-' INTO tabname fieldname.
    " create dynamic table with structure NAME1 (only one field)
    it_fcat-fieldname = fieldname.
    it_fcat-tabname = tabname.
    APPEND it_fcat.
    CALL METHOD cl_alv_table_create=>create_dynamic_table
      EXPORTING
        it_fieldcatalog           = it_fcat[]
      IMPORTING
        ep_table                  = gt_itab
      EXCEPTIONS
        generate_subpool_dir_full = 1
        OTHERS                    = 2.
    CHECK sy-subrc = 0.
    " dereference table
    ASSIGN gt_itab->* TO <gt_itab>.
    " insert data only to NAME1 field
    SELECT * FROM (tabname) INTO CORRESPONDING FIELDS OF TABLE <gt_itab>.
    I checked, this works fine:)
    Regards
    Marcin

  • MVC: update only one time

    Hi,
    suppose I've this model class:
    public class MyClass extends java.util.Observable {
         public MyClass(){}
         //get methods
         //set methods
         private int x;
         private int y;
         private int z;
         private int t;
         private int s;
    }Now I want that, when I use more than one set method, observers are notified only one time.
    That is,
    if I have this calls:
    MyClass obj = new MyClass();
    obj.setX(1);
    obj.setY(2);
    obj.setZ(3);
    obj.setT(4);
    obj.setS(5);I want that the update method isn't called five times, but only one time.
    I can't add setChanged() and NotifyObservers() in only one of the set method,
    because I 'm interesting in knowing when the model has been modified.
    I thought of adding a new set method like this:
    setModified(){
       setChanged();
       notifyObservers();
    }so, every time I want to notify observers, I run this method.
    But, I want to know:
    Is this the correct way to do?
    Thank you in advance.
    MargNat

    No,
    the five values doesn't always change all at once.
    I can have this code in one class:
    obj.setX(45);
    obj.setY(46);and in another class this:
    obj.setX(45);
    obj.setZ(345);
    obj.setT(345);I simply don't want the observers are called many times.
    the values are indipendent among them, I don't want to have only one set method for them;
    this isn't an object oriented approach.
    Practically, I want to know where exactly must be placed setChanged() and notifyObservers() methods.
    In all model methods?
    In a specific method I can call every time I want to update?
    I must call setChanged() and notifyObserver() directly, as example, like:
    obj.setChanged()
    obj.notifyObservers?
    Thank you again.
    MargNat

  • Flickering Image update (only one Image drawn on Component), 10+ Duke Dolla

    I've made an RBGFilter for Images and Combined it with a Thread
    to make an Image fade from Color to Grayscale.
    I use it together with an home made JComponent. It works, but the Image flickers.
    I've tried longer sleep periods (I thougt that maybe the filter was to slow) but it still flickered when changing the Image. I tried dubbel buffering, but couldn't get it to change the Image. Anyway, I suppose double buffering wouldn't help much, while it's only one Image to be drawn and it covers the entire Component.
    Does anyone have a clue about how to do?? You'll get plenty of Duke Dollars!
    (in the fade class)
    public void run()
    try{
    while( !Thread.interrupted() ){
    Thread.sleep( 70 );
    //Change colors:
    Image tmpImage = Toolkit.getDefaultToolkit().createImage(
    new FilteredImageSource( colorImage.getSource(), fadeFilter ) );
    ImageComponent.setImage( tmpImage ); //Home made component
    //test if fading is finished...
    catch( InterruptedException ie ){}
    (in the home made component)
    public void setImage( Image theImage )
    this.theImage = theImage;
    repaint();
    public void paintComponent( Graphics g )
    g.drawImage( theImage, 0, 0, this );
    }

    I dont know much about java but i do know a bit about MFC and this reminds me of a similiar issue in mfc. So heres my bet:
    Calls to repaint do call directly to paintComponent they first execute some code that paints the background of the component then calls the paintComponent routine. Typically the background is white and this results in flickering.
    Thats just a hunch. Because its similiar to an issue that you get in MFC around animation with framework paint calls.
    You can play the hunch by calling paintComponent directly and see if your flickering goes away. If it does find a way to use repaint without it repainting the background before it calls paintComponent (im sure theres a way or a similiar framework routine)
    One last thing? is the custom componet that your working with swing based? Cause swing based components are supposed to double buffer by default.

  • How can I modify / update T002C's only one field

    Hi everyone ;
    I would like to write dialog programing code. After I am writing call screen screennumber, I would like to generate a design in screen painter.But screen painter doesn't open. There is an error.
    Error says ' EU_SCRP_WN32 : timeout during allocate / CPIC-CALL: 'ThSAPCMRCV'#' and I search about this error. I solve the problem. Solution is T002C table's secondary language field must be writing , not empty.
    When I would like to update the field's of T002C tables sap is giving an error. Error is 'Table maintenance not allowed for table T002C'.
    How can I modify the field's of table T002C?

    dont know about the stock taking object but may be the grpo object would help
    HTH
    Message was edited by:
            Manu Ashok

  • Update only one select query field

    hello
    how i can update select query result field in original table.
    update table1 set field_1 from(select field_1 from table 1,table2,table3,table4 where table1.field_1=table1.field_1 and table2.field_2=table3.field_2 and table4.field_3=table1.field_4)
    like that.is it possible!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!can u please help me to rewrite query/
    select query returns result like that from different tables
    lets example field_1 field_2 field_3 field_4
    TIGER 1 V A
    TIGER 2 F B
    TIGER 3 R C
    I need to update 'TIGER' instead of 'LION' in original table.
    THANKS

    Maybe something like
    update table1
       set beast = (select animal
                      from <table_list>
                     where <predicates>
    where beast = 'LION'when your query returns a single row
    or when multiple rows are returned
    update (select t1.beast,t2.animal
              from (select beast,
                           <join_columns_list>
                      from table1
                     where beast = 'LION'
                   ) t1,
                   (select animal,
                           <join_columns_list>
                      from <table_list>
                     where <predicates>
                   ) t2
             where t1.<join_columns_list> = t2.<join_columns_list>
       set beast = animalRegards
    Etbin

  • How to diable only one field enabled and other fields disabled for one user group?

    Hi,
    I have a form contains many fields. A group of users can add items using that form.
    As per the user requirement I have created a filtered view and that filtered view can be seen by some other sharepoint user group but as per their further requirement the new sharepoint user group is only allowed to update Remarks field. All other fields
    should be disabled for them.
    In my idea, I have to create multiple forms and in one of it except Remarks field all should be disabled but I am unable to assign multiple forms to a single list.
    Or how to make Remarks field enable to this user group and for other admin user group all fields could be enabled.
    Hope I have expressed my question correctly.
    Any solution would be appreciated.

    There is no Out of the Box way to set permissions on each column, primarily due to the performance impact. The following thread provides some options,
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/c0794232-9bab-4cea-91d8-f311a793a863/how-to-set-column-wise-permission-in-sharepint-list-in-sharepoint-2010?forum=sharepointadminprevious
    Dimitri Ayrapetov (MCSE: SharePoint)

  • How to update only a field or 2 in a data target? Is it even possible?

    Hi,
    If 10 characteristics in an ODS has been populated in through flat files and it turns out that one of the fields was blank. What is the best way to update the data target with the missing fields only.
    Is this what is referred to as Look up? Any pointers to what is known as doing a “Look Up”?
    Thanks

    hi Amanda,
    for look up ods from another ods, take a look samples
    https://wiki.sdn.sap.com/wiki/display/BI/ABAPinBW
    Is it possible to read a third ODS in update rules between two ODS?
    update rule coding while loading data from ODS to CUBE
    Start Routine in Update Rules to populate additional fields from ODS
    hope this helps.

  • Search with multiple values in only one field

    Hello there,
    I have this query to get the results when the user make a search query:
    select * from (
    select
    "ID",
    "ID" ID_DISPLAY,
    "SHIFT_DATE",
    "SHIFT",
    "OFFENSE_ID",
    "DESCRIPTION",
    "ANALYST",
    "STATUS",
    "SUBSTATUS"
    from "#OWNER#"."IDSIEM_OFFENSES")
    where
    OFFENSE_ID IN(:P223_OFFENSES) AND
    instr(upper("DESCRIPTION"),upper(nvl(:P223_DESCRIPTION,"DESCRIPTION"))) > 0
    AND
    instr(upper("SHIFT"),upper(nvl(:P223_SHIFT,"SHIFT"))) > 0
    AND
    instr(upper("SUBSTATUS"),upper(nvl(:P223_SUBSTATUS,"SUBSTATUS"))) > 0
    AND
    instr(upper("ANALYST"),upper(nvl(:P223_ANALYST,"ANALYST"))) > 0
    AND
    instr(upper("SHIFT_DATE"),upper(nvl(:P223_SHIFTDATE,"SHIFT_DATE"))) > 0
    AND
    instr(upper("STATUS"),upper(nvl(:P223_STATUS,"STATUS"))) > 0
    ORDER BY OFFENSE_ID DESC
    The thing that I want to do is to put multiple values on the field P223_OFFENSES when I search. For example an offense is a number, so I would like to put in the search field 1111, 3333, 4444, 5555 and the report shows me those 4 offenses in the report. The search operation works only when I put only 1 offenses, but when I put more than 1 separated by comma, it shows me this error: report error:ORA-01722: invalid number. That's why because is a number and the comma character is not allowed, how can I achieve this? Thank you in advance.
    Regards, Bernardo

    Try this one please
    select *
      from (select "ID",
                   "ID" ID_DISPLAY,
                   "SHIFT_DATE",
                   "SHIFT",
                   "OFFENSE_ID",
                   "DESCRIPTION",
                   "ANALYST",
                   "STATUS",
                   "SUBSTATUS"
              from "#OWNER#"."IDSIEM_OFFENSES")
    where (instr(upper("DESCRIPTION"),
                  upper(nvl(:P223_DESCRIPTION, "DESCRIPTION"))) > 0)
       AND (instr(upper("SHIFT"), upper(nvl(:P223_SHIFT, "SHIFT"))) > 0)
       AND (instr(upper("SUBSTATUS"), upper(nvl(:P223_SUBSTATUS, "SUBSTATUS"))) > 0)
       AND (instr(upper("ANALYST"), upper(nvl(:P223_ANALYST, "ANALYST"))) > 0)
       AND (instr(upper("SHIFT_DATE"),
                  upper(nvl(:P223_SHIFTDATE, "SHIFT_DATE"))) > 0)
       AND (instr(upper("STATUS"), upper(nvl(:P223_STATUS, "STATUS"))) > 0)
       AND regexp_like(offense_id,'^('||
                       regexp_replace(regexp_replace(:P233_OFFENSES,'[[:space:]]'),
                                      '|')||')$','i')
    What I am trying to achieve is this
    *** I expect your user to put in the values separated by commas like 27823, 27815, 27834 ****
    1. from the input the user gives back via :P233_OFFENSES, remove SPACES.
    2. Replace all "," with "|"
    3. do a regexp_like search by boxing in the input values with a "^" and "$" so that it does not select values like 278157  which contains the value you searched for viz. 27815
    You can better understand this if you try this query out
    with q1 as
    ( select 1 as id, 27823 as offense_id from dual
      union
      select 2 as id,  27815 as offense_id from dual
      union
      select 3 as id  ,27834 as offense_id from dual
      union
      select 11 as id, 227823 as offense_id from dual
      union
      select 12 as id,  278157 as offense_id from dual
      union
      select 13 as id , 278347 as offense_id from dual
      union
      select 21 as id, 278233 as offense_id from dual
      union
      select 22 as id,  278156 as offense_id from dual
      union
      select 23 as id  ,627834 as offense_id from dual ),
      q2 as (
    select regexp_replace(regexp_replace('27823, 27815, 27834','[[:space:]]'), ',','|') as P233_OFFENSES from dual )
    select * from q1 q, q2 g
       where regexp_like(q.offense_id , '^('||P233_OFFENSES||')$','i') ;
    This should return only the first 3 rows

  • LSMW RFBIBL00 using only one file

    Hello everyone,
    I am creating an LSMW for post documents. My input file is so far given by an legacy system.
    I have one file, which contains the accounting transactions.
    One accounting transaction is distributed over more than one line in my input file. So you have one debtor account and many contra-entries.
    My problem is, that every line has header data (debtor and contra-entry), so I have no idea how to tell my LSMW that there has to be a new line item instead of a new document.
    I hope anybody can help
    Best regards
    Patrick

    Hi Patrick,
    In LSMW RFBIBL00, where you want to upload transaction data, you generally have two files.. One for header data and the other for Line item data.
    In the Header Data, there is a field called link, say for example it is (1) and it will have other data like Date, Posting key, Currency etc.. (BKPF data)
    In the Line item file, also the field Link will have (1) and in fact this link will dictate when a new document is to be posted.. say for example this particular document has 5 line items to be posted. Then all the line items will have the same link (1)
    and the debit and credits should match to Zero. When this matched a document is posted..Then again the second line in header file will have link (2) and again the line item  file will have multiple line items all having link (2) so the second document will get posted.
    In short, system will pick up the link No. from the header file and look for all line items in line item file and match the debits and credit to Zero to post a document, the moment it finds a new Link No., it will post a new Document No.
    Regards,
    SAPFICO

  • ONLY ONE FIELD DOES NOT GET PREPOPULATED FROM THE DATABASE

    I would really, really appreciate if someone can comment or suggest something that would help with the resolution to the issue I am currently experiencing.
    Simple sample form that explains the issue can be accessed from the link below.
    How to test the form:
    Open the form.
    Click on the yellow button to add new Task.
    The problem is with Additional Product fields ( in blue). You can add as many of them as you want by clicking on the Red button with the +. Add some data and uploade in database. When you download it from the database, data will come back fine for all of them, except for the first one.
    Any ideas or help would be greatly appreciated.
    https://acrobat.com/#d=2vFWOlm56FmrC4owzpfHew 
    The code is behind the Red button with the +. Very  simple. Perhaps is the indexing issue with the database. I do not know enough about it, to be able to send any suggestion to the DB guy.
    According to the DB guy, data uploades without issue. It is the blank field when the form with data is downoloaded.

    It might be related to http://forum.java.sun.com/thread.jspa?threadID=583466&messageID=2988344

Maybe you are looking for