Announcement:
wanna exchange links? contact me at sapchatroom@gmail.com.
Posted by
Admin at
Hi All, We too are attempt to use CSAP MAT BOM MAINTAIN to maintain sub items. The example above works for a BOM with a single item but not for a scenario where a BOM has more than one item each with it's own list of sub items. The update indicator 'VBKZ' also does not appear to have any impact whatsoever. Would anyone by chance have any sample code? Thanks! CJ
| | | ---------------Original Message--------------- From: Raghavendra Padmanabha Sent: Tuesday, September 04, 2007 2:15 AM Subject: BAPI - CSAP_MAT_BOM_MAINTAIN thro' RFC All, I have an issue with the usage of BAPI through the web services. Our client is using the subject BAPI to change the BOM at item and sub item levels. we made now several tests with the CSAP_MAT_BOM_MAINTAIN to create Sub Positions beside BoM Postions but there seems to be a difference between SAPGUI and external RFC calls. Sub Positions are still not working when we use the below metioned testdata. Since this works fine witin the GUI, I think there are additional parameters which need to be provided for calling the BAPI via RFC: Insert BOM head... MATERIAL = 2004164 BOM_USAGE = 2 PLANT = 3100 ALTERNATIVE = 01 VALID_FROM = 03.09.2007 FL_COMMIT_AND_WAIT = X FL_BOM_CREATE = X FL_NEW_ITEM = X FL_COMPLETE = X FL_DEFAULT_VALUES = X BOM_STATUS = 01 BASE_QUAN = 1 BASE_UNIT = EA Insert BOM position... adding new line to table - STPO_API03 ITEM_TEXT1 = BOM Position 2.1 ITEM_CATEG = L ID_ITM_CTG = L ITEM_NO = 0030 ID_ITEM_NO = 0030 COMP_QTY = 13 COMP_UNIT = EA ITEM_NODE = 00000001 ITEM_COUNT = 00000002 DEP_LINK = 000000000000000000 COMPONENT = 6000703 ID_COMP = 6000703 Insert BOM sub-position... adding new line to table - STPU_API01 POINTER (0) = 0 STLKN (0) = 00000000 STPOZ (0) = 0030 UPOSZ (0) = 0001 UPMNG (0) = 46 EBORT (0) = T1 Insert BOM sub-position... adding new line to table - STPU_API01 POINTER (1) = 0 STLKN (1) = 00000000 STPOZ (1) = 0030 UPOSZ (1) = 0002 UPMNG (1) = 47 EBORT (1) = T2 Are there additional parameters which we have to use? The return message is 'S, 031, 29, BOM for material 2004164 changed' but the BOM has not changed. Regards, Raghu | | __.____._ Copyright © 2011 Toolbox.com and message author. Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251 | | Most Popular White Papers In the Spotlight _.____.__ |