Insert installation points (subitems) in existing bom

Hi,
I am trying to insert installation points in an existing bom. Searching the forum i learned that this should be possible with function CSAP_MAT_BOM_MAINTAIN using table t_stpu. I did this and get an sy-subrc = 0 but when i take a look at the bom i see that no installation points are inserted.
this is a peace of the codecode :
loop at itab.
move wa_stpo-item_node to i_stpu_upd-pointer.
i_stpu_upd-MANDT = sy-mandt.
i_stpu_upd-STLTY = 'M'.
i_stpu_upd-stlnr = wa_stpo-bom_no.
i_stpu_upd-STLKN = wa_stpo-item_node.
i_stpu_upd-STPOZ = wa_stpo-item_count.
i_stpu_upd-UPMNG = '1'.
i_stpu_upd-EBORT = itab.
i_stpu_upd-SELKZ = 'X'.
move sy-tabix to v_uposz.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          input  = v_uposz
        IMPORTING
          output = v_uposz.
i_stpu_upd-UPOSZ = v_uposz.
append i_stpu_upd.
endloop.
endif.
endif.
clear i_stpo_upd.
move-corresponding wa_stpo to i_stpo_upd.
append i_stpo_upd.
clear ch_stko.
PERFORM begin_of_api USING 'CSAP_MAT_BOM_MAINTAIN'.
CALL FUNCTION 'CSAP_MAT_BOM_MAINTAIN'
            EXPORTING
              material           = '21822'
              plant              = ''
              bom_usage          = '1'
              "VALID_FROM         = v_date
              i_stko             = ch_stko
              CHANGE_NO          = wa_stpo-CHANGE_NO
              fl_bom_create = ' '
             fl_new_item = ' '
IMPORTING
   fl_warning = flg_warning
             o_stko     = tstk2
            TABLES
              T_STPO             = i_stpo_upd
              t_stpu             = i_stpu_upd
            EXCEPTIONS
              error              = 1
              OTHERS             = 2.
      if flg_warning = 'X'.
            PERFORM api_log_to_return USING ermsg_update.
            if not ermsg_update is initial.
              move ermsg_update to errorlog.
              append errorlog.
            endif.
          else.
            move 'Update successful' to errorlog.
            append errorlog.
            CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
IMPORTING
RETURN = C_RETURN .
          endif.
Can't find my fault, hope you guys can.
with regards
Erik

Hi Kumar,
Thanks for the quick response. The item I am talking about is a simple cable which is used in meters(only one unit). But for variable size item, we need more than 1 dimension right? The scenario is like this,
Material : Cable12345
Application:
Used in a single elctrical panel for different application as follows
a) for coolant motor
b) for servo motor
Here they are identifying these two applications with different tagging like CB6 & CB17
In the BOM they are giving Cable12345 as an item for the electrical panel and they are adding the length of cable required for both the application (4M + 6M) and giving as 10 M against the code. I want to split the same thing using installation point as follows
Header
Electrical panel
Item
Cable12345           10M(Total of SI's)
Sub-item details
Installation points   SI-QTY      SI-Text
Coolant motor         4M            CB6(tagging reference)
Servo motor           6M            CB17(tagging reference)
If I define the BOM like this structure, I assume the consumption will be for 10M (item qty) and we can print the SI content in the production order.
Kindly confirm.
Sridharan M

Similar Messages

  • BOM comparison based on Installation point of Subitems

    Hi All,
    Can I do a BOM comparison based on the installation position of the sub items?
    There is an option to select the installation point in "sort by install point" in the "further selection" screen. But it is not getting populated in when I execute CS14. Please advice. Thanks.

    Hi Mr.Pradeep Rao,
    Could you please give me your mail id.
    I will send you the screen shots, to compare the BOM's based on the sort by installation point.
    The system is not showing directly in CS14.
    <b><u>Procedure:</u></b> is once after doing the necessary settings under Further settings page,give the BOM details and VALID from date & click on Diff.Comparison.
    In the next page,I hope you must be knowing the BOM item for which sub item exists. and the item quantity must be same in both the BOM's.
    You will be able to see the symbol for that BOM item showing Similar component (Red Color Button).
    Just Double click on that symbol(Comparison result symbol) and the system pops upa new screen,there you brach out the node -Sub Items-Comparison By installation Point.Now you can see the items based on installation point.
    I hope in this way you will be able to see the items compared on installation point.
    <b>If this solves your problem ,Please reward maximum points and Close the thread as answered.</b>
    Thanks & Regards
    Mangal

  • Installation error-Argument tnsnamesOraTemplate must point to an existing f

    Hi experts,
    I am getting below error during  installation
    ERROR      2011-08-30 19:19:44.309 [sixxcstepexecute.cpp:937]
    FCO-00011  The step doNetworkConfigurationClient with step key |NW_Doublestack_DB|ind|ind|ind|ind|0|0|NW_CreateDBandLoad|ind|ind|ind|ind|createdbandload|0|NW_CreateDB|ind|ind|ind|ind|createdb|0|NW_OraDBCheck|ind|ind|ind|ind|0|0|NW_OraDBMain|ind|ind|ind|ind|0|0|NW_OraDBStd|ind|ind|ind|ind|std|0|NW_OraClient|ind|ind|ind|ind|3|0|NW_OraNetworkSrv|ind|ind|ind|ind|1|0|doNetworkConfigurationClient was executed with status ERROR ( Last error reported by the
    step: Assertion failed: OraNetworkConfigurator.doClientNetworkConfiguration: Argument tnsnamesOraTemplate must point to an existing file.).
    I have checked existing file, everything this fine
    cat tnsnames.ora
    Filename......: tnsnames.ora
    Created.......: created by SAP AG, R/3 Rel. >= 6.10
    Name..........:
    Date..........:
    @(#) $Id: //bc/701-1_REL/src/ins/SAPINST/impl/tpls/ora/ind/TNSNAMES.ORA#1 $
    SMS.WORLD=
      (DESCRIPTION =
        (ADDRESS_LIST =
            (ADDRESS =
              (COMMUNITY = SAP.WORLD)
              (PROTOCOL = TCP)
              (HOST = uschgsbx002)
              (PORT = 1542)
        (CONNECT_DATA =
           (SID = SMS)
           (GLOBAL_NAME = SMS.WORLD)
    (*root*on uschgsbx002)
    /oracle/SMS/112_64/network/admin#
    here we use the port numbers matching with instance no of sap
    Please have a look  and let me know your inputs
    regards
    vasu

    hi
    I have solved this issued. the issue came because installation master corrupted files
    Regards
    Srinivas

  • Installation Point in BOM

    Hi,
    We have REM scenario for TV industry & BOM  changes according to the ECR by CS02.Now we have Multilevel BOM of 800 components with sort string wise. ECR has been created by CC31 & after approval of it , BOMs have been changed.
    But we have to change the BOM by identifying each assy code & changed it by CS02. So for 800 TV models  we have  to change each BOM (almost 2000 BOMs include  Sales & production BOM) which is quite tedoius job.
    Since we have  assy PCB for TV.This assy PCB have components with  installation point ref. to PCB location.If i have to change the BOM as per ECO ,I have search for each location & change the item with qty wise which is also tedious job considering 2000 BOMs.
    I have already  use CS20 for mass change but couldn't find installation point field.
    Now how to mapp this situation?Is there any user exit?suggest the any solution for the same.The solution will be appreciated.
    rg
    Tushar

    PP Gurus,
    Pl.reply
    rg
    Tushar

  • Adding a new item to an already existing BOM

    Hi,
        I am having a problem adding a new item to an already existing parent BOM.I excute the following code (as per the SDK).
        Dim vProdTree As SAPbobsCOM.ProductTrees
        Set vProdTree = vCmp.GetBusinessObject(oProductTrees)
        'Set Values to the fields
        vProdTree.TreeCode = "Item1"
        vProdTree.TreeType = iProductionTree
        'Set Values to the Assembly parts of the
        'First Assembly
        vProdTree.Items.ItemCode = Excel.Row(Cell1)
        vProdTree.Items.Price = 20
        vProdTree.Items.Quantity = 1
        vProdTree.Items.Currency = "Eur"
        'Adding the Product Tree
        RetVal = vProdTree.Add
        If (RetVal <> 0) Then
            vCmp.GetLastError ErrCode, ErrMsg
            MsgBox ErrCode & " " & ErrMsg
        End If
    If there is no parent BOM production tree with keycode Item1, then when the above code is run for the first time, it works.The issue occurs when I run change my excel, Cell1 to a different value and run the program again. The error states that the code already exists, which is correct, but does not  append the item to the existing BOM.
    I have tried vProdTree.Update, but this line overwrites the original child item in the BOM, rather than appending a new item, which is what I want it to do.
    Any  help is appreciated.
    - Adrian.V

    Your issue here is how the "Items" (which is actually pointing to ProductTree_Lines object) works. It is a List of items, and when you get the object is always pointing at the first item in the list.
    So for example, to add a BOM with two items you would need to set the details of the first Item and then add a line using vProdTree.Items.Add() before setting the values for that item.
    e.g.:
    Dim vProdTree As SAPbobsCOM.ProductTrees
    Set vProdTree = vCmp.GetBusinessObject(oProductTrees)
    'Set Values to the fields
    vProdTree.TreeCode = "Item1"
    vProdTree.TreeType = iProductionTree
    'Set Values to the Assembly parts of the
    'First Assembly
    vProdTree.Items.ItemCode = Excel.Row(Cell1)
    vProdTree.Items.Price = 20
    vProdTree.Items.Quantity = 1
    vProdTree.Items.Currency = "Eur"
    'Add a second item to the BOM
    vProdTree.Items.Add
    vProdTree.Items.ItemCode = Excel.Row(Cell2)
    vProdTree.Items.Price = 50
    vProdTree.Items.Quantity = 1
    vProdTree.Items.Currency = "Eur"
    'Adding the Product Tree
    RetVal = vProdTree.Add
    If (RetVal 0) Then
    vCmp.GetLastError ErrCode, ErrMsg
    MsgBox ErrCode & " " & ErrMsg
    End If
    To do what you want to do, which is get the BOM and add a new item to it, you will need to do this:
    Dim vProdTree As SAPbobsCOM.ProductTrees
    Set vProdTree = vCmp.GetBusinessObject(oProductTrees)
    'Get your BOM by key
    vProdTree.GetByKey("Item1")
    'Add a second item to the BOM
    'First Item exists so you need to add a new row
    vProdTree.Items.Add
    vProdTree.Items.ItemCode = Excel.Row(Cell1)
    vProdTree.Items.Price = 50
    vProdTree.Items.Quantity = 1
    vProdTree.Items.Currency = "Eur"
    'Update the Product Tree
    RetVal = vProdTree.Update
    If (RetVal 0) Then
    vCmp.GetLastError ErrCode, ErrMsg
    MsgBox ErrCode & " " & ErrMsg
    End If
    Method one allows you to add multiple lines as you add the object (which makes more sense), method 2 allows you to get the object after it has been added and add multiple lines to it. This is similar to how the Document_Lines object works.

  • Best Practice for Updating Administrative Installation Point for Reader 9.4.1 Security Update?

    I deployed adobe reader 9.4 using an administrative installation point with group policy when it was released. This deployment included a transform file.  It's now time to update reader with the 9.4.1 security msp.
    My question is, can I simply patch the existing AIP in place with the 9.4.1 security update and redeploy it, or do I need to create a brand new AIP and GPO?
    Any help in answering this would be appreciated.
    Thanks in advance.

    I wouldn't update your AIP in place. I end up keeping multiple AIPs on hand. Each time a security update comes out I make a copy and apply the updates to that. One reason is this: when creating the AIPs, you need to apply the MSPs in the correct  order; you cannot simply apply a new MSP to the previous AIP.
    Adobe's support patch order is documented here:  http://kb2.adobe.com/cps/498/cpsid_49880.html.
    That link covers Adode  Acrobat and Reader, versions 7.x through 9.x. A quarterly update MSP can  only be applied to the previous quarterly. Should Adobe Reader 9.4.2  come out tomorrow as a quarterly update, you will not be able to apply it to  the 9.4.1 AIP; you must apply it to the previous quarterly AIP - 9.4.0. At a minimum I keep the previous 2 or 3 quarterly AIPs around, as well as the MSPs to update them. The only time I delete my old AIPs is when I am 1000% certain they are not longer needed.
    Also, when Adobe's developers author the MSPs they don't include the correct metadata entries for in place upgrades of AIPs - any AIP based on the original 9.4.0 MSI will not in-place upgrade any installtion that is based on the 9.4.0 MSI and AIP - you must uninstall Adobe Reader, then re-install. This deficiency affects all versions of Adobe Reader 7.x through 9.x. Oddly, Adobe Acrobat AIPs will correctly in-place upgrade.
    Ultimately, the in-place upgrade issue and the patch order requirements are why I say to make a copy, then update and deploy the copy.
    As for creating the AIPs:
    This is what my directory structure looks like for my Reader AIPs:
    F:\Applications\Adobe\Reader\9.3.0
    F:\Applications\Adobe\Reader\9.3.1
    F:\Applications\Adobe\Reader\9.3.2
    F:\Applications\Adobe\Reader\9.3.3
    F:\Applications\Adobe\Reader\9.3.4
    F:\Applications\Adobe\Reader\9.4.0
    F:\Applications\Adobe\Reader\9.4.1
    The 9.4.0 -> 9.4.1 MSP is F:\Applications\Adobe\Reader\AdbeRdrUpd941_all_incr.msp
    When I created my 9.4.1 AIP, I entered these at a cmd.exe prompt - if you don't have robocopy on your machine you can get it from the Server 2003 Resouce Kit:
    F:
    cd \Applications\Adobe\Reader\
    robocopy /s /e 9.4.0 9.4.1
    cd 9.4.1
    rename AdbeRdr940_en_US.msi AdbeRdr941_en_US.msi
    msiexec /a AdbeRdr941_en_US.msi /update F:\Applications\Adobe\Reader\AdbeRdrUpd941_all_incr.msp /qb

  • CS3 Installer asks for non-existent DVD drive

    I'm running CS3 on Windows XP. I need to reinstall because I somehow lost codecs for Premiere Pro. Whenever I try to reinstall, the CS3 installer puts up an Installer Alert that asks me to insert CS3 Master Collection Disc 1 into drive G:\ to continue installation.
    That sounds pretty simple, but there is no G: drive on my computer. My two DVD drives are D: and E:, and inserting the disc there has no effect. Checking the Windows device manager shows no G: device recognized anywhere on the computer.
    I can only click OK, which returns the same alert, or Cancel to cancel the installation. I cannot, for the life of me, figure out how to get the CS3 installer to ask for installation disks on an existing drive. What's particularly annoying is that the installer is running from a DVD in drive E:, so you'd think it would know to ask for further discs in drive E:. I've tried it as well from drive D:.
    Any ideas for getting the installer to stop asking for discs in a non-existent drive?
    I've toyed with the idea of completely uninstalling CS3, but am afraid that the installer still won't work, in which case I won't be able to get any work done using CS3 at all.
    Thanks for any and all help,
    Mike Boom

    The 404 means you have not followed the Very Important Instructions on the prodesigntools page before clicking the download links.
    The 7 steps are crucial for setting the correct cookies on your hard drive so that the Adobe servers will grant you access to the download files when you click the links.
    So:
    Go back to http://prodesigntools.com/download-adobe-cs4-and-cs3-free-trials-here.html
    Follow the Very Important Instructions (Step 0 to Step 6 = 7 Steps)
    Then click the download links and they will work.

  • Change Pointer ID already exists

    Hi All,
    I am creating material using BAPI_MATERIAL_SAVEDATA I am getting error message  "Change Pointer ID already exists"
    I need your inputs please to resolve this.
    Regards
    Martin

    Hi Martin,
    I think you are inserting dulicate keys,
    Keep the break point in function Module - CHANGE_POINTERS_CREATE
    Keep break point below.
    write change pointers and status
      INSERT BDCP  FROM TABLE T_BDCP  ACCEPTING DUPLICATE KEYS.
      INSERT BDCPS FROM TABLE T_BDCPS ACCEPTING DUPLICATE KEYS.
      IF SY-SUBRC <> 0.
        MESSAGE E050 RAISING DUPLICATE_POINTER_ID.
      ENDIF.

  • Are Virtual Copies saved in Backups? How do I insert a backup into an existing catalog?

    Are Virtual Copies saved in Backups? How do I insert a backup into an existing catalog
    I deleted a tif image file that I didn't intend to, which had several LR virtual copies created from it. The virtual copies had a lot of important history that document my print preparation edits. Are these virtual copies saved in the LR backups?
    If so, how can I insert them into the catalog I am using? I have made a lot of edits in the two days since my last backup and don't want to lose that history either. Do you suggest I make a current backup before retrieving files from my last backup? I know I'm supposed to go to the backup location and open the last backup, but how do I blend that with the current work from the last 2 days?
    Any help would be most appreciated. Thanks, Tom

    Rob,
    That was exactly what I was after. However, I'm still having trouble getting the virtual copies imported. The master file was in my trash, I restored it to the original hard drive folder. Before I got your message I re- imported it to LR but of course LR came up with a new name since I was importing from and saving it to the same folder in LR. And of course no copies. This may have been a mistake, but before starting the procedure you described, I re-named the master file (it seemed that the import from backup would re-create it so I didn't want  a conflict).
    Then I did what you said and used the 'Import From Another Catalog' feature. I found the virtual copies in the backup and checked them. But when the import completed, the it gave me file names  xxx/Copy1, xxx/Copy2 but there was no image or history or metadata. When I tried to find the folder containing the files, it said it couldn't be found. So I missed something in the settings. When I tried again, there was a warning saying the file(s) exists in the catalog and its settings differ. I went ahead anyway and the message I got was "No Photos in previous import"
    Here's what the import from backup shows:
    A box with catalog contents and all the folders and files within them, that you can check.
    A New Photos section, which gives 2 file handling choices: a)add new photos to the catalog without moving them or b) don't import new photos
    A Changed existing photos section with 2 replace options: a) nothing or b) Metadata and develop setting only. If you choose this you can check a box to preserve old settings as a virtual copy.
    Not sure what to do. I changed the master file back to its original name, but that didn't make a difference. Suggestions? Thanks, Tom

  • Windows 7 installation disk doesn't exist?

    Hey guys! I am using bootcamp for the first time on my 2011 macbook pro. I go to the bootcamp assistant, then from there I click continue and check off [Install Windows 7] and [Download the latest Windows support software from apple]. After this, I put a CD in to burn the latest windows software. From there, I then created a partition for windows which I put 100GB for out of my 500GB. I then clicked install but it said that my windows 7 installation disk didn't exist. I looked around for a while but then realized that my laptop never came with a windows 7 installation disk. Am I doing something wrong or do I have to go and buy one? Thanks for any help!

    Ah that's what I thought. So, I would buy a windows 7 installation disk, put it in, then click install like I did?

  • Inserting new line item into existing delivery using BAPI

    Hi
    can you send me the code for inserting new line item into existing delivery either using BAPI or
    Function module.
    We are using SAP 4.7 version

    Hi Sreekanth,
    Refer to this links
    New item for outbound delivery via FM/BAPI?
    /message/3976349#3976349 [original link is broken]
    BAPI_OUTB_DELIVERY_CHANGE Help - Add new line item
    hope it is useful to you.
    Regards!

  • Update Terminated change pointer ID already exists

    Hi  All,
    While we are creating the article or purchase info record creation.
    When I checked the SM13 i got this error.
    Update was terminated
    System ID.... RDP
    Client....... 510
    User..... PRASH
    Transaction.. XK01
    Update key... 4993DEF56A574020E1000000AC19005E
    Generated.... 12.02.2009, 19:22:54
    Completed.... 12.02.2009, 19:22:55
    Error Info... B2 050: Change pointer ID already exists
    Please suggest.
    Regards,
    Prashant

    Hi Prashant,
    Can you share with me, how you solve this problem? I'm encounter the same thing when using Tcode: FK02 to change master data, with same error message. Thanks.

  • Measuring point  does not exist

    Hi,
    I am facing problem in pi sheet where in co54 while sending the process msg i am getting the error
    "Measuring point  does not exist"
    "Destination YI16 COCI_MEASUREMENT_DOC_CREATE cannot process the message"
    "Message is not sent to any destination"
    Can any body help....
    Rajsekhar

    Hello
    Check the link below for the info you can gather using the Container Variables.
    Creating Alert Categories 
    http://help.sap.com/saphelp_nw70/helpdata/en/d0/d4b54020c6792ae10000000a155106/content.htm
    Regards
    Mark

  • Patch installer not overwriting the existing one

    Patch installer not overwriting the existing one
    Hi, for one my LabVIEW application, I have created two installers
    Including all the required additional installers (Installer)
    With no additional installer (patch installer)
    So that, for further versions they can use only patch installer.
    When I try to installer both the installer of same version which created two icons in “Control Panel\Programs\Programs and Features” as shown below.
    When I am installing the second installer (patch), I expected that it will either overwrite the existing or it will not allow me to install. But both didn’t happen.
    Please share your thoughts on the above.
    Thanks in advance
    Phani
    Solved!
    Go to Solution.

    Thank you..
    I got another doubt on the same.
    "Upgrade Code" should be same
    1.)For both installers (normal and patch)?
    2.)For all the versions?
    which one is correct in the above two?

  • Cannot insert field or paste in existing Local Variable (container of booleans)

    Cannot insert field or paste in existing Local Variable (container of booleans)...  TestStand 4.1.
    This is very strange, especially since I have done it before. 
    The "paste" and "insert field" selections are greyed out and disabled from the right-click menu.  I have tried everything I could imagine, and searched various combinations of posts.  I am sure it is something redicoulously simple, bu I cannot find the redicule to solve this annoying issue.
    The local variable is a container of booleans.  It has 90 elements and I need to add one more.  I cannot edit / rename or do anything with this Local.  Must be karma (for thos who know me in the LabVIEW forum).  Usually, you right click, insert field and it's there..  Not this one..
    Has anyone seen this before?  Closing and re-opening TestStand did not change anything.  There is a matching cluster in LabVIEW which feeds the local in TestStand.
    It is a container of custm data type.  The Edit Flags are ok (edit is allowed).  Can't think of any other valuable info..
    Solved!
    Go to Solution.

    I should correct an erratum in my original post.. 
    Since I am not the original author of the code, I am not sure it is a custom container.  As a matter of fact, I don't think it is.
    It does not appear in the custom data types.  So it must be a Local.
    I will attempt to clarify what I am dealing with...  (TestStand 4.1)
    Maybe pictures are worth thousands of words.
    As with typical TestStand projects, there are various variables:  Locals, Parameters, FileGlobals, etc..  Nothing odd here.
    The one I am concerned about is the Options_Present which is a container of booleans.
    I am sure I have edited this one before.  Although I seem to recall that it was automatic after changing the cluster in LabVIEW.
    Within the Locals, the  2 that are underligned in red do not allow to edit anything (change name, add, delete, paste).
    Trying to Insert Field or paste are not possible.
    Attachments:
    Variables.PNG ‏8 KB
    Locals.PNG ‏28 KB
    cannotInsert.PNG ‏9 KB

Maybe you are looking for

  • How to update the pricing, sales area details in Campaign

    Hi All, I need to create a campaign in CRM through program. For the same I have created it using the below: 1. create a Profle set using "'BAPI_PROFILESET_CREATE' with the appropriate "segmenttype". 2. create a target group using " BAPI_TARGETGROUP_C

  • Help in Variable exit in Bi 7.0

    Hi Experts,     For my requirement  I need write a variable exit in BI 7   based on start date and end date.1)If  user enquiry date is  lies between current month +last 2 month then get data of 3 months ie current month( complete data   before curren

  • How to istall windows 7 on macbook pro 15"?

    how to istall windows 7 64 bit on macbook pro 15"? i did it but win 7 did not see superdrive , airport , graphic card !!

  • PreparedStatement help

    //First insert PreparedStatement pstmtU = cnn.prepareStatement(sql);      pstmtU.setInt(1, 78);      pstmtU.setString(2, aa);      pstmtU.setString(3, bb); pstmtU.executeUpdate(); pstmtU.close(); //Second insert PreparedStatement pstmtQ = cnn.prepare

  • Clob vs distinct

    Hi all, For different reasons, I need to include a clob column in a distinct clause on my query but, it seems impossible. I always have a format error. If I don't use the distinct clause, the query runs ok. How can I include this clob in? Regards, db