How to add existing warehouse to the existing item in OITW

Hi,
Could somebody help me to resolve this problem:
I try to add via SDK (using ItemWarehouseInfo object) existing item to existing warehouse - OITW table (our SBO v.2004 configured to not open automatically all warehouses for all items). - like via Item card user adds manually warehouse code in the stock tab. There is code i use:
if oItems.GetByKey("ItemCode")
    oItems.WhsInfo.WarehouseCode = "WarehouseCode"
    oItems.WhsInfo.Add()
    oItems.Update()
endif
but SDK instead of add new record to the OITW replaces existing record with other warehouse code (like update).
What have i do to resolve this issue ?

Oleg,
new records are not added in OITW when you add existing items to existing warehouses. OITW will have new records only when you create new warehouse through UI or SDK. in all transaction that follow, the respective warehouse quantity in OITW will be updated. how about using StockTransfer  object? it does what you want.
regards,
Binita Joshi

Similar Messages

  • How to add picture attach to the existing Material as batch programming

    Dear sir,
    I'd already run LSMW for upload all of our Material with Transaction MM01 for 6 mths ago.
    Now my boss has new a requirement to upload the picture as an attachment of each Material number with MM03. (Now we do it manually, it's work fine)
    But we have more than 500,000 Materials number.
    How to use CV02N to load picture attach as batch, please give me the steps or example to do.
    Best regards,
    Manus

    Hi Manus,
    You can add/import many UI elements for ex graph,pie chart,iamge etc)
    For that tt design time, the view is displayed as a logical component unit in the Web Dynpro Explorer view. To design the user interface of your WD application, you enter the View Designer tool to display the range of single user interface elements and containers that are available for implementing the user interface layout. There are many standard UI elements available, all of which can be adapted to suit your requirements by adjusting the properties accordingly.
    Click once on the category button than you can Drag & Drop the needed UI element into the graphical View Designer editor.Then Check the properties for the defined user interface element in the standard IDE Properties view and make changes, where needed.Finally, Choose Shows a preview of the current view in Internet Explorer from the upper function bar. You can make changes on the rendering configuration, for example on the theme. To do so, choose Configure the current view’s preview from the bar.
    However,for more info you canvisit
    <a href="http://help.sap.com/saphelp_nwce10/helpdata/en/45/20df5bcf772b36e10000000a1553f7/content.htm">this URL</a>
    Regards,
    Krutarth

  • How to add customer account in the existing variant

    Hi
    In the customer outstanding balance report, we are using a variant with relavent customer accounts. if we need to add some more customers in the variant how can we do. please help

    You find out the program name
    System ==> Status
    Go to SE38
    Select Variants
    Change
    Select Variant
    Change the Values
    Change the Attributes
    Alternatively, in the TCODE (report itself), select the variant (Shift+F5) - Get Variant
    Make changes or add additional customers
    Then click on save button
    Give the variant name and save.
    Regards,
    Ravi

  • How to add additional field to the existing report

    hi,
    report name is RHXPE_EXPIRED_QUALI
    if u execute report alv list is genereted with like this.
    object type, id of related object, object name, object type, id of related object,last name, first name like this
    where can i get these field descriptios in the prigram becoz many perform ststements r there. i want to add additional field text.
    program is:
    CORRECTIONS
    DATE       CORRECTION NOTE    AUTHOR DESCRIPTION
    09.03.2001            0388404 XSC    Wrong list output for multiple Os
    05.06.2001 AL0K023393 0410219 Lud    Wrong keydate for search with
                                         Pchbegda and pchendda.
    30.01.2002 S6BK000033 0491055 TS     Report: RHXPE_EXPIRED_QUALI
                                         doesn't provide a spool list.
    REPORT rhpk_find_pers_with_expired_qu MESSAGE-ID pq.
    TABLES : pchdy.
    INCLUDES
    INCLUDE rhxmacro.
    INCLUDE rhpeini0.
    TABLES
    DATA: objects  LIKE hrsobid    OCCURS 1 WITH HEADER LINE.
    VARIABLES
    DATA: subrc LIKE sy-subrc.
    DATA: orgeh_text LIKE t777o-otext.
    SELECTION SCREEN
    objid
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
    PARAMETERS:
       pchplvar LIKE p1000-plvar NO-DISPLAY,    "plan version
       pchotype LIKE pchdy-otype NO-DISPLAY. "objecttype
    Objid
    rhx-f4-objid-data.
    SELECT-OPTIONS:  pchobjid FOR pchdy-objid_str NO INTERVALS.
    Search
    PARAMETERS:
      pchseark LIKE pchdy-seark.           "matchcode object plom.
    SELECTION-SCREEN END OF BLOCK b1.
    Objecttime
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-001.
    PARAMETERS: se_begd LIKE  p1000-begda DEFAULT sy-datum,  "'19000101',
                se_endd LIKE  p1000-endda DEFAULT high_date.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-005.
    PARAMETERS:
       h_events LIKE dynp_rhpp-gen_train,  "with training sugg
       h_qual LIKE dynp_rhpp-expired_qual. "with Qual
    SELECTION-SCREEN END OF BLOCK b3.
    AT SELECTION-SCREEN ON pchobjid.
      PERFORM check_objid_sign(rhxchk00) USING pchobjid-sign.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR pchobjid-low.
      rhx-f4-objid-low pchplvar pchotype pchobjid '' ''.
    AT SELECTION-SCREEN.
      PERFORM check_plvar(rhxchk00) USING pchplvar.
      PERFORM check_seark(rhxchk00) TABLES pchobjid
                                    USING  pchseark pchplvar pchotype.
    INITIALIZATION
    INITIALIZATION.
      PERFORM read_t77s0_parameters_for_pe.
    get user parameters/Planvariante und Beginndatum setzen:
      pchotype = $orgeh.
      CALL FUNCTION 'RHP0_USER_PARAMETERS_GET'
           EXPORTING
                fill_if_initial = 'X'
           IMPORTING
                plvar           = pchplvar
                begda           = se_begd
                endda           = se_endd
              with_key        =
              SUBSTITUTE      =
              ESSENTIAL       = only_essential
                org_unit        = pchobjid-low
          EXCEPTIONS
                OTHERS     = 0.
    SE_BEGD = LOW_DATE.   "Correction AL0K023393 0410219
      IF NOT pchobjid-low IS INITIAL.
        pchobjid-sign   = 'I'.
        pchobjid-option = 'EQ'.
        APPEND pchobjid.
      ENDIF.
    START-OF-SELECTION
    START-OF-SELECTION.
    correction 0491055
    correction was done for getting a spool list in background-processing.
      CASE sy-batch.
        WHEN space.
          SUBMIT rhpe_expired_quali
               WITH pchplvar = pchplvar
               WITH pchotype = pchotype
               WITH pchobjid IN pchobjid
               WITH pchbegda = se_begd
               WITH pchendda = se_endd
               WITH h_qual = h_qual
               WITH h_events = h_events
                      AND RETURN.
        WHEN 'X'.
          SUBMIT rhpe_expired_quali
               WITH pchplvar = pchplvar
               WITH pchotype = pchotype
               WITH pchobjid IN pchobjid
               WITH pchbegda = se_begd
               WITH pchendda = se_endd
               WITH h_qual = h_qual
               WITH h_events = h_events
                      TO SAP-SPOOL.
      ENDCASE.
    END-OF-SELECTION
    END-OF-SELECTION.

    Hi,
    I think you need to show more programs.
    you said, the report program is 'RHXPE_EXPIRED_QUALI', but you upload  'rhpk_find_pers_with_expired_qu' program.
    usually, ALV field is modifyed in 'PERFORM fieldcatalog_modify', if you use Functional ALV.
    Try to search 'fieldcatalog function', you will find easy.
    Regard,
    SY Kim

  • 1) How do you identify text name used in an image? 2) How to move text in an image? 3) How to add text to match the existing text in an image?

    Thank you!

    1) You mean a font?
    Knowledge, trial and error, and/or browse the various font sites to see if you can find a match.
    2) The Move Tool (once text is added; see below).
    3) You simply click on the document using the Type Tool, type out what you want and commit by clicking the checkmark in the options bar or by pressing Enter on your keyboard. You also use the options bar to change color, size, etc.
    With the type layer active, browse using your installed fonts in the options bar. The type layer will change dynamically as you browse your fonts. (Note this is in Photoshop CC 2014; I don't believe it's in previous versions like CS6.) As I mentioned above, you probably want to find the ideal font beforehand and have it installed.

  • How to add new fields to the DME file in F110

    Hi,
    We have a requirement add new fields to the file that is used in  F110.
    .I did go in to DMEE transaction but I hae no idea how to add new fileds to the existing file.
    Can anybody please help me in resolving the issue.
    Thanks
    Venkat
    Edited by: Venkat R on Jun 8, 2009 8:45 AM

    Hi,
    There is no function module for that, We have created our own function module and attached to that field.
    Refer the below code. This will fetch the document number.
    DATA: lwa_item   TYPE dmee_paym_if_type,
            l_fpayp   TYPE fpayp,
            l_fpayhx TYPE fpayhx,
            first_flag TYPE c,
            lv_lifnr   TYPE lifnr,
            voucher_id TYPE string,
            voucher TYPE string,
            invoice_id TYPE belnr_d,
            voucher_len1 TYPE i,
            voucher_len TYPE i.
      TYPES:
      BEGIN OF lt_regup,
            xblnr TYPE xblnr1,
            belnr TYPE belnr_d,
      END OF lt_regup.
      DATA: lt_regup TYPE STANDARD TABLE OF regup,
            lv_regup TYPE regup.
    Hope this helps.
    Raja.A
    Edited by: Raja.A on Feb 16, 2011 7:17 PM

  • How can i import tables from a different schema into the existing relational model... to add these tables in the existing model? plss help

    how can i import tables from a different schema into the existing relational model... to add these tables in the existing relational/logical model? plss help
    note; I already have the relational/logical model ready from one schema... and I need to add few more tables to this relational/logical model
    can I import the same way as I did previously??
    but even if I do the same how can I add it in the model?? as the logical model has already been engineered..
    please help ...
    thanks

    Hi,
    Before you start, you should probably take a backup copy of your design (the .dmd file and associated folder), in case the update does not work out as you had hoped.
    You need to use Import > Data Dictionary again, to start the Data Dictionary Import Wizard.
    In step 1 use a suitable database connection that can access the relevant table definitions.
    In step 2 select the schema (or schemas) to import.  The "Import to" field in the lower left part of the main panel allows you to select which existing Relational Model to import into (or to specify that a new Relational Model is to be created).
    In step 3 select the tables to import.  (Note that if there are an Foreign Key constraints between the new tables and any tables you had previously imported, you should also include the previous tables, otherwise the Foreign Key constraints will not be imported.)
    After the import itself has completed, the "Compare Models" dialog is displayed.  This shows the differences between the model being imported and the previous state of the model, and allows you to select which changes are to be applied.
    Just selecting the Merge button should apply all the additions and changes in the new import.
    Having updated your Relational Model, you can then update your Logical Model.  To do this you repeat the "Engineer to Logical Model".  This displays the "Engineer to Logical Model" dialog, which shows the changes which will be applied to the Logical Model, and allows you to select which changes are to be applied.
    Just selecting the Engineer button should apply all the additions and changes.
    I hope this helps you achieve what you want.
    David

  • How to add new row and update existing rows at a time form the upload file

    hi
    How to add new row and update existing rows at a time form the upload file
    example:ztable(existing table)
    bcent                      smh            nsmh         valid date
    0001112465      7.4                       26.06.2007
    0001112466      7.5                       26.06.2007
    000111801                      7.6                       26.06.2007
    1982                      7.8                       26.06.2007
    Flat file structure
    bcent                       nsmh         valid date
    0001112465     7.8     26.06.2007  ( update into above table in nsmh)
    0001112466     7.9     26.06.2007  ( update into above table in nsmh) 
    000111801                     7.6      26.06.2007 ( update into above table in nsmh
    1985                      11              26.06.2007   new row it should insert in table
    thanks,
    Sivagopal R

    Hi,
    First upload the file into an internal table. If you are using a file that is on application server. Use open dataset and close dataset.
    Then :
    Loop at it.
    *insert or modify as per your requirement.
    Endloop.
    Regards,
    Srilatha.

  • [Ai-CS4] How to add an  art board to existing document ?

    hi all,
    can anybody suggest me how to add a new artboard to existing document? I didn't find any ArtBoard Palette in CS4. But in CS5 it is given.
    thanks,
    D.A

    The Artboard panel is new to AiCS5. In CS4, a new artboard can be added by doing either of the two:
    1. Pick the Artboard Tool and click-drag it in the canvas area of the Illustrator document.
    2. Pick the Artboard Tool, click on the 'New Artboard' button in the Control Panel. Then select the desired size from the list of Artboard Presets in the Control Panel and then click in the desired area of the canvas to add a new Artboard.
    Hope this helps.
    Neeraj

  • How to add a user to an existing group????

    Can't seem to find how to add a user to an existing group (staff). I am trying to share data (rw) between my admin account (root) and a development user. On any other UNIX system I would just add the user name in the /etc/group file & logout/login in. It don't work here!
    Suggestions??
    thanx
    mt

    OS X doesn't use /etc/groups. This file is present but does nothing AFAIK.
    Leopard uses directory services to handle groups and users.
    membership in groups with GID>500 can be handled from GUI in system preferences->accounts. other groups can be handled from terminal with dscl (directory services command line). do man dscl for details.
    to add a user to a group you'd do
    sudo dscl . append /groups/groupname GroupMembership username
    However, there should be no need to do it with "staff". every user with an account on your computer is a member of staff by default.

  • Can I add new job in the existing Job

    Hi Gurus,
    There is a job which loads data from 4 ODS to respective Infocubes. Now we are adding new infocube and new ODS to the existing layout so can we add 1 more job which loads data from that ODS to corresponding Infocube. If so how??? Can u give me detailed steps to add new job in the existing job...
    Thanks in advance

    is the previous loads done through a job or a process chains???
    Go to RSPC > check what process chains are there and in case if you find one > log you will see when it was last run and stuff.
    But if it is a job in SM37, it is a different story, u might have to create a variant of that job and create events to trigger the job in sequence depending on ur scenario..
    give more details. like when is that job triggered, if any events used.

  • How to add a file to an existing package programmatically in Acrobat 8?

    Hello
    Is it possible to add a file to an existing package programmatically in Acrobat 8? (embed a pdf file in a pdf package programmatically); If so, how should I do it?
    Thanks in advance,

    Finally, I found out how to add a file to an existing package programmatically by using JavaScript (function: app.execMenuItem("AddFileAttachment")). Thanks for your help Ironsenth. However, I need to specify the file to attach programmatically and I can't figure out how to do it.
    Could you let me know where I can find this information (what document to read)? Is there any parameters for the 'AddFileAttachment' method?
    Thanks in advance,

  • How to create new or delete the existing row in the grid....

    hi my friends...
    i am developing report using Reuse_alv_grid_display...
    my requirement is... At runtime
              1.  i may create new row on the grid (empty row inwhich  i may enter the data).
              2.  i may delete a existing row in the grid
              3.  i may edit the existing data...
    then i have to trace the modification in the grid in one internal table...
    how can i get into this.....
    note:
    i have some idea to edit the existing record in the grid and trace those modification,
    but i don't know abt how to create new or delete the existing row....
    can you give me some idea...

    Hi deva,
    write a class which implemets these methods
    CLASS lcl_event_receiver DEFINITION.
      PUBLIC SECTION.
        METHODS:
    To handle the toolbar on alv
         handle_toolbar
           FOR EVENT toolbar OF cl_gui_alv_grid
              IMPORTING e_object e_interactive,
    To handle the buttons on the alv grid
         handle_user_command
           FOR EVENT user_command OF cl_gui_alv_grid
           IMPORTING e_ucomm.
    endclass.
    Now Implement these methods.
    CLASS lcl_event_receiver IMPLEMENTATION.
    To handle the toolbar on alv
      METHOD handle_toolbar.
       DATA ls_toolbar  TYPE stb_button.
        CLEAR gs_toolbar.
        MOVE 3 TO gs_toolbar-butn_type.
        APPEND gs_toolbar TO e_object->mt_toolbar.
        CLEAR gs_toolbar.
        PERFORM icon_create USING 'ICON_INSERT_ROW' gs_toolbar-icon.
        MOVE text-010 TO gs_toolbar-function.
        MOVE text-012 TO gs_toolbar-quickinfo.
        MOVE ' ' TO gs_toolbar-disabled.
        APPEND gs_toolbar TO e_object->mt_toolbar.
        CLEAR gs_toolbar.
        PERFORM icon_create USING 'ICON_DELETE_ROW' gs_toolbar-icon.
        MOVE text-011 TO gs_toolbar-function.
        MOVE text-013 TO gs_toolbar-quickinfo.
        MOVE ' ' TO gs_toolbar-disabled.
        APPEND gs_toolbar TO e_object->mt_toolbar.
      ENDMETHOD.
       METHOD handle_user_command.
    In this form, check the function code(e_ucomm has the function code), based on that do the required action.
    as i said yesterday(i.e for appending a row, deleting a row, modifying a row)
        PERFORM user_command USING e_ucomm.
      ENDMETHOD
    endclass.
    Before calling the alv method, create a object of this class.
    DATA :
          gref_event_receiver  TYPE REF TO lcl_event_receiver,
          gv_tables_alv          TYPE REF TO cl_gui_alv_grid.
          CREATE OBJECT gref_event_receiver.
          SET HANDLER   gref_event_receiver->handle_user_command
                        FOR gv_tables_alv.
          SET HANDLER   gref_event_receiver->handle_toolbar
                        FOR gv_tables_alv.
    check this program for event handling, it is the similar way
    demo_abap_objects_events
    Hope u understood this.
    Regards,
    Prasant
    reward if helpful

  • What is the proper way to add 16GB ram to the existing 8GB in my 27" Retina iMac?

    I've searched the web for the best answer to this question: What's the best way to add 16GB ram to the existing 8GB in my late 2014 Retina iMac (ending up with a total of 24GB ram)?
    I'm seeing conflicting and ultimately confusing advice. Most people are saying to just pop in the new 16GB (2X8GB) into the 2 open slots and you're done. Others are saying no, remove the 2 4GB sticks, replace those now empty slots with the 2 new 8GB sticks, and put the 4GB sticks in the remaining 2 slots, which viewed from the bottom would be 8,4,8,4.
    A third option (to make things even more confusing) seems to be keeping the 2X4GB and 2X8GB sticks together, side by side, so that viewed from the bottom you'll see 8,8,4,4 or 4,4,8,8.
    I have no idea which configuration is best: They all seem to "work" according to those advocating their method. I want to know what Apple recommends, if they indeed have a preferred method.

    Crucial. 16GB 2X8 204P SODIMM PC3-12800 MAC to be specific.
    The OEM RAM is in slots 2 + 4 from the top, at least in mine. BANK 0/DIMM0 and BANK 1/DIMM0.
    A little background: I installed new RAM in the slots last week when my new iMac arrived, in the open slots, 1 + 3 from the top. I then started up for the first time and installed my account from Time Machine. So far, so good. About 2 hours into my first day usage I started getting random crashes. By day 2 I'd had maybe 15 crashes and a dozen kernel panics. I removed the RAM and re-seated it. Same problem. I created a new user account, thinking maybe I had some corrupt data. Ran fine for a couple of hours then BOOM same problem, again. Removed the new RAM and presto, no more crashes, going on 4 days now. I returned the RAM to the vender, requesting a replacement in the hopes that I just had a bad stick (even though I ran TechTool 7 and found no problems... which struck me as weird).
    So now I'm a little bit concerned about using the best, most Apple-approved method for installing the replacement RAM when it arrives. I'm not exactly a newbie. I've read things in the past about it being important to install RAM in a specific order, but it's been a while since I've had a new Mac, and things change. I want to be careful, but it sounds like it doesn't matter a whole lot. My fingers are crossed, not that I'm superstitious.

  • How to add a node to already existing hierarchy in BW?

    Hi Gurus,
    Can someone please tell me step by step how to add a node to the hierarchy.
    Thank you,
    Olga

    If I need to add an element to the node, I right click on the node and is it 'insert Characteristic'?
    Sorry I must add one more thing.If it is the first time you add an element to the node then right click the folder(node).But if you already have elements in the node then right click any element and choose add element(country,material whatever).If you choose add a characteristic, then you add another type of element(e.g you have materials in the node and add some countries by choosing add a characteristic)
    When I try to add a node, it gives me a list of nodes I can choose from
    In fact when you right click a folder, there must be an option like "Create nodes".Do you right click on a folder, don't you?You create nodes like that.
    Nevertheless, there is one more way to edit or create a hierarchy.You can load a hierarchy from a flat file.But I am not sure it is worth it.If you have lots of elements and nodes then I propose you to go that way.Step by step document:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/601b0771-92c4-2d10-a081-f947a516bd20?QuickLink=index&overridelayout=true

Maybe you are looking for