BAPI for creation of Equipment BOM
Which BAPI is used for creation of Equipment BOM?
Hi,
Check this Code, it works:
DATA ecsin TYPE csin.
DATA estkob TYPE stkob .
DATA estzub TYPE stzub .
DATA astlnr TYPE stzub-stlnr .
DATA t_stpob TYPE STANDARD TABLE OF stpob WITH HEADER LINE .
PARAMETERS: pa_equnr TYPE equnr DEFAULT '1500037'. "Your Equipment.
START-OF-SELECTION.
ecsin-equnr = pa_equnr.
ecsin-stlty = 'E' .
ecsin-stlan = '4' .
ecsin-werks = 'C002'. "Your Plant.
ecsin-datuv = '20130101'.
estkob-bmein = 'ST'.
estkob-bmeng = 1.
estkob-stktx = 'TEST'.
t_stpob-stlty = 'M' .
t_stpob-postp = 'L' .
t_stpob-idnrk = '000000000040002882'. "Your Component.
t_stpob-meins = 'ST' .
t_stpob-menge = 1 .
t_stpob-rvrel = 'X' .
APPEND t_stpob .
t_stpob-menge = 2.
t_stpob-idnrk = '000000000040002877'. "Your Component.
APPEND t_stpob.
CALL FUNCTION 'CSAI_BOM_CREATE'
EXPORTING
ecsin = ecsin
estkob = estkob
estzub = estzub
* FL_NO_CHANGE_DOC = ' '
* FL_COMMIT_AND_WAIT = ' '
* FL_NO_COMMIT_WORK = ' '
* FL_ALE = ' '
IMPORTING
* FL_WARNING =
astlnr = astlnr
TABLES
t_stpob = t_stpob
EXCEPTIONS
error = 1
OTHERS = 2.
IF astlnr IS INITIAL.
****ERROR.
ENDIF.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Regards,
Sergio.
Similar Messages
-
Bapi for creation of equipment master
hi friends ,
I have to made a BDC program for creation of equipment master .
for that I am using bapi i.e. ' BAPI_EQUI_CREATE '.
I had matched the fields of transaction IE01 but in the additinal data part i could not able to map 'Partner' fields .
pls some body can guide what should i do for it.Hi Das,
If u r going to create equipment no against this Bapi BAPI_EQUI_CREATE"
then u need to pass material no, Equipment type, Serial No. there is no need to give partner no .
If its good, then plz give point. -
BAPI for Creation of Maintenance Plan (TCode - IP01)
Hello
Kindly help me with the BAPI for Creation of Maintenance Plan (TCode - IP01)
Thanks and Regards
AvishekHi
Check Tcode: IBIP. and LSMW method and below link it may be helpful.
[link|Re: LSMW for uploading equipment.]
Thanks,
Asit Purbey. -
BAPI for Creation of inspection lot
I have two scenario:-
1.Can any body help to find BAPI for creation of Inspection lot for the material under PO envisaged for PDI.
2. Can any body find me a BAPI or FM which can creates inspection lot in QALS table without inspection lot origin under 01 i.e. 0101 or Z01SI01.
My objective is to creation inspection lot without assigning Inspection type of Z01SI01 or Z01SI02 and so on in the material code under a respective Plant 1004 or 1005 0r 1006 so on.
In my Z Development for creation of inspection lot BDC is run for QA01 as this code created inspection lot on when material code has inspection type Z01SI01 i.e. location of source inspection and vendr code particular classification under 010 vendor class inspection type Z01SI01. System search both the inspection type for both material and vendor then create inspection lot in QALS table by assiging inspection matching inspection on the lot.
I want to get rid of assignment of inspection on the materilal. If any BAPI or FM is avalable for creation of inspection without assigning inspection type on material code. I want to create inspection lot in which Inpsection type assignment can be done based on vendor class only.
YPB2. Can any body find me a BAPI or FM which can creates inspection lot in QALS table without inspection lot origin under 01 i.e. 0101 or Z01SI01.
I am very sure that this is not possible.You can not create inspection lot without inspection lot origin or inspection type.
Regards
Sujit -
BAPI for creation of subcontract PO
Hi all,
Currently iam doing a BAPI for creation of subcontract Purchase Order using the BAPI_PO_CREATE1. But in this BAPI iam unable to find the table for entering Components.
Regards,
Sun.Hi,
I wil give you how to fill the components of PO items, it is a sample code;
*zPoHeader
if kna1-kunnr eq 'BOR020'.
zpoheader-comp_code = '0040'.
endif.
if kna1-kunnr eq 'BOR040'.
zpoheader-comp_code = '0048'.
endif.
zpoheader-doc_type = 'ZSA'.
zpoheader-doc_date = mkpf-budat.
zpoheader-vendor = 'BOR050'. "şimdilik
zpoheader-pmnttrms = 'Z030'.
zpoheader-purch_org = '1100'.
zpoheader-pur_group = '101'. "malzeme ÜZERINDEKI marc-ekgrp
zpoheader-currency = zsaleshead-waers.
zpoheader-item_intvl = 10.
zpoheaderx-comp_code = 'X'.
zpoheaderx-doc_type = 'X'.
zpoheaderx-vendor = 'X'.
zpoheaderx-purch_org = 'X'.
zpoheaderx-pur_group = 'X'.
zpoheaderx-currency = 'X'.
zpoheaderx-doc_date = 'X'.
zpoheaderx-pmnttrms = 'X'.
zpoheaderx-item_intvl = 'X'.
*zPoitem
loop at i_posnr.
lv_ebelp = lv_ebelp + 10.
zpoitem-po_item = lv_ebelp.
zpoitem-material = i_posnr-matnr.
if kna1-kunnr eq 'BOR020'.
zpoitem-plant = '0040'.
zpoitem-stge_loc = '4001'.
endif.
if kna1-kunnr eq 'BOR040'.
zpoitem-plant = '0048'.
zpoitem-stge_loc = '4801'.
endif.
zpoitem-quantity = i_posnr-menge.
zpoitem-po_unit = i_posnr-meins.
zpoitem-net_price = i_posnr-bfiyat.
zpoitem-price_unit = 1.
zpoitem-tax_code = 'V0'.
zpoitemx-po_item = lv_ebelp.
zpoitemx-po_itemx = 'X'.
zpoitemx-material = 'X'.
zpoitemx-plant = 'X'.
zpoitemx-stge_loc = 'X'.
zpoitemx-quantity = 'X'.
zpoitemx-po_unit = 'X'.
zpoitemx-net_price = 'X'.
zpoitemx-price_unit = 'X'.
zpoitemx-tax_code = 'X'.
append: zpoitem, zpoitemx.
clear : zpoitem, zpoitemx.
endloop.
call function 'BAPI_PO_CREATE1'
exporting
poheader = zpoheader
poheaderx = zpoheaderx
tables
return = zreturn3
poitem = zpoitem
poitemx = zpoitemx.
Send me your results,
Kenan. -
Bapi for creation of a contract against services.
Hi.
i just want to know the correct bapi for creation of contracts against services..here i was tried with BAPI_CONTRACT_CREATE but the documentation says that it is not supported for exxternal or internal services.
so iam not sure if this bapi is the one for contract creation for services.
any way i was tried to test this function module but i havent got Contract created.
wil be waiting for an excellent answer.
bye.
reegards.
seetaram.Hi Ram,
Try the function module
BAPI_CONTRACT_CREATEFROMDATA.
Once you create the contract, update the technical objects for the contracts
using two function modules called one after another.
IWOL_WV_ADD_OBJECTS
IWOL_WV_POST_OBJECT_LIST
Regards,
Chandra Sekhar -
BAPI for Creation of the Project in ECC using Standard Templates
Hi,
I want BAPI for Creation of the Project in ECC using project id and project standard template ID
and BAPI for Updating of project and WBS element using project id and WBS element IDOne idea is to write a wrapper FM that is remote enabled and internally call BBP_PD_CTR_CREATE for your own use.
-
BAPI for creation of material documents/movements
Hi Everebody:
I need some help regarding to bapis for the creation of mateial documents and/or movements. I have been trying to implement bapi BAPI_GOODSMVT_CREATE, but this bapi does not have (import) the posting time in document, which is very important for my porpuse.
So, I would appretiate a lot any information anybody could give about any bapi I could use to create material documents or material movements but incluidng the posting time in document (field MKPF-OIB_BLTIME).
RegardsYou can check MB_CREATE_GOODS_MOVEMENT which has mkpf as inporting parameter.
-
BAPI for creation of Authorization Objects in BI 7.0
Hi BW Gurus,
Greetings!!!
Is there any BAPI Available for creation of Authorization Objects in BI 7.0.
The data will be transferred through flatfiles.
Kindly provide me the info as earliest as possible.
Best Regards,
PriyaGot the Workaround...
Priya -
Hi Freinds,
I need to trigger the creation of a stock from a BAPI.
So in MIGO i am using movement type 501 and type as Others.
I could see a bapi BAPI_GOODSMVT_CREATE for that .But in the checktable for the tcodes t158g , i could not find MIGO.So i doubt if i can use this BAPI for the creation of a stock.
Please let me know if there is a BAPI for the creation of stocks.
Thanks and Regards,
AnoopHello,
Use the belwo bapi.
BAPI_WHSE_TO_CREATE_STOCK
Reward if helps.
Thanks,
Krishna -
BAPI for CS08 - Plant assignment - BOM
Is there a BAPI for transaction CS08 (BOM - plant assignment)?
Try CSAP_MAT_BOM_MAINTAIN
or
CSAP_MAT_BOM_OPEN
CSAP_BOM_ITEM_MAINTAIN
CSAP_MAT_BOM_CLOSE
Edited by: ksd on Nov 27, 2009 9:48 AM -
Standard remote enabled bapi for creation of purchaser contract in srm
Hello Friends
Plz tell me is there any standard,remote enabled FM/BAPI in SRM system for creation of purchaser contract.
I found BBP_PD_CTR_CREATE. But this is normal FM.
I need BAPI like BAPI_CONTRACT_CREATE which there in ECC system.
Plz help.
Thanks & regards,One idea is to write a wrapper FM that is remote enabled and internally call BBP_PD_CTR_CREATE for your own use.
-
Bapi for creation media product family
hi friends ,
Is there any bapi exist for creation of media product family.Hi sandipan,
for creation of media product family there is no bapi.acually how bapi's are nothing but api methods or transactions.
the business object for productcatalog is BUS1071.
go to SWO1(its not zero) and check this .
they assigned a transaction WWM1 to create productcatalog.
reward points if helpful. -
BAPI for creation of Purchasing info record
Hi SAPians,
Greetings......
Can you help me out in giving the BAPI for the creation of Purchasing Info record (ME11) .
Thanks in advance,
Lekha.Hi ,
You people have suggested me to use RM06IBI0 this program.
I want to know in what way it can help me.
Thankyou in advance,
Lekha. -
BAPI for creation of batch MCHB
HIi
There is a FM BAPI_BATCH_CREATE for creation of batch i though it was updating the batch in table MCHB but it was updatin MCHA table.
Please advise if anyone know of a BAPI which update the MCHB tableHi,
Try doing BAPIBATCH* in SE37 instead of posting here. Please search on SCN before posting.
Regards
Abhii
Edited by: Abhii on Dec 11, 2009 2:49 PM
Maybe you are looking for
-
How to tell if replacement iPod is refurb or new ?
Hi, I guess it doesn't really matter that much but I am just curious....how do you tell if the replacement iPod Apple sends you, after you send in yours on a repair, is a refurb or brand new ? I just got my replacement iPod today and I swear it is br
-
Due to my phone not syncing, I decided to look up how to restore an iPhone without iTunes, and found that if you reset it on the phone, that'll restore it. I did that, and now it won't go past DFU or the apple logo. I'm deathly confused. What do?
-
We are using Sony MBPS and it has to be rebooted every month. We have automated much of it using batch files but we would like to further automate it. Is there a batch command to trigger an automatic login of the servers?
-
I am unable to access PDF's (open them) from a website since downloading Lion last year...help!
-
Hi all, I succeeded to display a BI report by BIApplicationFrame in Web Dynpro. I understood that it possible to pass predefined values to one or more parameters of the report using code in wdDoModifyView method of view. Could you please give me a sa