Delete BAPI for QS61 - Maintain material specification
Hi Expert,
I need to delete MIC (Master Inspection Characteristics) from QS61 using a BAPI.
I need to pass matnr, MIC & plant to the BAPI in order to delete the MIC
In other words, I need to call a BAPI which does the same as:
T-Code: Qs61 ==> F5 ==> Highlite the row ==> Shift F2 ==> Enter ==> SAVE
Thanks in advance
Hi Raj,
Check the version of your master inspection characteristics. Perhaps the class characteristic hasn't been assigned the version that you are using in the material.
Regards,
Julian
Similar Messages
-
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.
-
FM/BAPI for creation of Material Document (similar to Transaction MB1C)
Hi Gurus,
Good day.
Are you guys aware of FMs / BAPIs that can produce Material Documents (similar to the Function of Transaction MB1C)?
Thank you very much!
Best regards.
Brandohi
in addition to BAPI_GOODSMVT_CREATE ,you can try user exits as well like
MBCF0005 Material document item for goods receipt/issue slip
MBCF0002 Customer function exit: Segment text in material document item
MB_CF001 Customer Function Exit in the Case of Updating a Mat. Doc
hope this helps
regards
Aakash Banga -
BAPI FOR CREATION OF MATERIAL VARIANT IN SAP
Dear All,
Can anoy one please provide me name of BAPI to create material variant.This is required when we create material variant for a configurable material, characteristics values are added in MRP 3 View .i am not clear what youn are looking for.
Say material X is KMAT,
Material Y you have created as a variant of X by entering the conf material X in MRP3 view and setting the char values
Material Z you have created as a variant of X by entering the conf material X in MRP3 view and setting the char values different than Y
Now Y and Z are material variants of X, now tell me exactly what you are looking for? -
BAPI for ME21N with Material Configuration
Hi friends,
I need to create a Z Program which will create the purchase order and during creation of purchase order it will also make the configuration of material in Material Data. I know the BAPI name BAPI_PO_CREATE1, but it will not do the configuration in Material Data.
I have tryed the BDC but it is working for only one line item only.
Please suggest any suitable way for the solution.
Thanks in advance.
KrishanCan you explain what exactly you mean by Material Configuration?
BAPI_PO_CREATE1 is the right bapi for ME21N.
YOu cannot do a BDC on this tansaction as it is a SAP Enjoy transaction.
Regards,
ravi -
Bapi For Bom and material Bom in cs71
Hi,
In CS71 we have 2 pushbuttons on the top ie create/copy BOM and create/copy Material BOM. for these 2 funtions i need Bapi or FM for the functionality of those 2 pushbuttons.
Duplicate thread Continue with this one - Re: How to search for BAPI or FM for some requirement
Edited by: kishan P on Aug 20, 2010 11:54 AMI tried to find BAPI for transaction CS71, but it seems that its no available.
Try using BDC method for the same.
Regards,
Lalit Mohan Gupta. -
Bapi for customer wise material stock on date
hi all,
is there any bapi to find customer wise material stock as on date.as logic as MB5BHi Kumar,
MB5B is a report RM07MLBD u can copy it to Z, do the logic as you required.. instead of searching for new.. & buliding the logic from the scratch.. so that u will get all the Functionality of MB5B
Regards -
'You do not have permissions for this item' - MATERIAL SPECIFICATION
Dear members,
I am trying to access a Material Spec but I am persistently presented with the following message: "'You do not have permissions for this item'".
Funnily, I was previously able to access the specifications but now I am presented with this.
I have the same issue with LIO Profiles.
Does anybody have a known solution for this?
Kind regards,This usually occurs when you do not have Read permission according to the workflow status of the specification. Different permissions can be set up for different statuses in WFA (WorkFlow) Administration.
Also, if you are using the Business Units as Security feature (rather than just BU visibility), you could get this message. In this case, you should not be able to see this spec in a search result though, so if you can see it in the material spec search page results, it isn't a BU issue, it is a workflow read permission issue.
There is one additional possibility, which is if your team has implemented the SpecVetoHandler extensibility point, which allows for added custom read permission checks. This is a technical extensibility point configured in the CustomPluginExtensions.xml config.
But most likely, it is a workflow permissions issue. You'll have to ask your workflow adminitrator user(s).
Regards
Ron -
BAPI for updating Maintain Duration in Transportation and Delivery scheduling
Hi all,
Iam looking for a BAPI to update the Duration Times in Transportation and Delivery scheduling. I reluctant to use recording on SM30 Table maintenance T code and use it in LSMW. Is there a BAPI or Standard i/p Program to load these details. I have more than 200000 records to input.
A list of all BAPI's in Transportation Management module would be great as well.
Regards,
AviHi,
@praveen: I tried the solution provided by you and it worked for me in this context. But it seems this BADI gets triggered every time the delivery is getting saved. So for my test purposes, I'm triggering this BADI in a program, but in actual scenario, the BADI would be called on every sy-ucomm = 'SICH_T' i.e. SAVE. hence, I can't separate my piece of code using this condition.
I'm trying to call my FM(update module in collective run mode) inside this BADI in backgrnd task as a separate unit but this doesn't seem to work.
Any more suggestions?
Thanks
Ashish -
Material Specific Field in Sales order....
Hi Experts,
Is there any possibilities of maintaining material specific characters at sales order item level?...
For example if we want store the Materials character as A in sales order does standard SAP supports it?......
Thanks in advance......Hi,
Can you let us know the funda behind the character you are using to better understand and help you.
One way is as suggested earlier. or you can use the VD51 if you are not using it right now..
Let us know.
Regards,
SB -
Bapi to mark a material for deletion in a particular plant and a particula
Hi all,
can any send me the code for bapi to mark a material for deletion in a particular plant and a particular storage location
ThnaksI would assume that it is something pretty close to this.
report zrich_0001 .
data: headdata type bapimathead.
data: plantdata type bapi_marc.
data: plantdatax type bapi_marcx.
data: sldata type bapi_mard.
data: sldatax type bapi_mardx.
data: return type bapiret2 .
data: returnm type table of bapi_matreturn2 with header line.
data: xmara type mara.
parameters: p_matnr type mara-matnr,
p_werks type marc-werks,
p_lgort type mard-lgort.
select single * from mara into xmara
where matnr = p_matnr.
headdata-material = xmara-matnr.
headdata-ind_sector = xmara-mbrsh.
headdata-matl_type = xmara-mtart.
headdata-STORAGE_VIEW = 'X'.
plantdata-plant = p_werks.
plantdata-del_flag = 'X'.
plantdatax-plant = p_werks.
plantdatax-del_flag = 'X'.
sldata-plant = p_werks.
sldata-stge_loc = p_lgort.
sldata-del_flag = 'X'.
sldatax-plant = p_werks.
sldatax-stge_loc = p_lgort.
sldatax-del_flag = 'X'.
call function 'BAPI_MATERIAL_SAVEDATA'
exporting
headdata = headdata
plantdata = plantdata
plantdatax = plantdatax
storagelocationdata = sldata
storagelocationdatax = sldatax
importing
return = return
tables
returnmessages = returnm.
check sy-subrc = 0.
Regards,
Rich Heilman -
BAPI FOR Deleting a Schedule Line Item from EKES and EKET tables
Dear All,
I would like to for deleting one of the line item from EKES (Po Confirmation ) and the respective line item from the EKET(PO Schedule Line Item Table).
Assume that am allowing the user to select the lineitem from zprogram screen and collecting the PO and Its LIne Item details in an internal table.
Can i Use
<b>BAPI_PO_Change</b> , if so , can anybody tell me the steps to follow to use this bapi for deleting the PO lineItems, since i m going to try BAPI for First time.
pls help me out
Message was edited by: Raja K.PHi raja ,
loop at iekko1.
w_index = sy-tabix.
item-po_item = itemx-po_item = iekko1-ebelp.
item-quantity = iekko1-mng01.
itemx-quantity = iekko1-mng01.
if iekko1-wamng = iekko1-wemng.
itemx-no_more_gr = item-no_more_gr = 'X'.
else.
itemx-no_more_gr = item-no_more_gr = ''.
endif.
append item.
append itemx.
clear return[].
call function 'BAPI_PO_CHANGE'
exporting
purchaseorder = iekko1-ebeln
tables
return = return
poitem = item
poitemx = itemx.
if return[] is initial.
commit work and wait.
call function 'DEQUEUE_ALL'.
search for deletion fields which u have to mark 'X'.
before calling this BAPi u have to lock the PO by using ENQUEUE.
<b>
FU BAPI_PO_CHANGE
Text
Change purchase order
Functionality
Function module BAPI_PO_CHANGE enables you to change purchase orders. The Change method uses the technology behind the online transaction ME22N.
Alternatively, the IDoc type PORDCH1 is available. The data from this IDoc populates the interface parameters of the function module BAPI_PO_CHANGE.
Functionality in Detail
Authorization
When you create (activity 02) an Enjoy purchase order, the following authorization objects are checked:
M_BEST_BSA (document type in PO)
M_BEST_EKG (purchasing group in PO)
M_BEST_EKO (purchasing organization in PO)
M_BEST_WRK (plant in PO)
Controlling adoption of field values via X bar
For most tables, you can use your own parameters in the associated X bar (e.g. PoItemX) to determine whether fields are to be set initial, values inserted via the interface, or default values adopted from Customizing or master records, etc. (for example, it is not mandatory to adopt the material group from an underlying requisition - you can change it with the BAPI).
Transfer
Purchase order number
The PurchaseOrder field uniquely identifies a purchase order. This field must be populated in order to carry out the Change method.
Header data
The header data of the Enjoy purchase order is transferred in table PoHeader.
Item data
The item data of the Enjoy purchase order is stored in the tables PoItem (general item data). Changes regarding quantity and delivery date are to be made in the table PoSchedule.
Use the table PoAccount to change the account assignment information.
Services and limits
Changes to existing items cannot be carried out with the Change method. It is only possible to create new items.
Conditions
Conditions are transferred in the table PoCond; header conditions in the table PoCondHeader. A new price determination process can be initiated via the parameter CALCTYPE in the table PoItem.
Vendor and delivery address
The vendor address in the table PoAddrVendor and the delivery address in the table PoAddrDelivery can only be replaced by another address number that already exists in the system (table ADRC). Changes to address details can only be made using the method BAPI_ADDRESSORG_CHANGE.
Partner roles
You can change all partners except the partner role "vendor" via the table PoPartner.
Export/import data
Export/import data can be specified per item in the table PoExpImpItem. Foreign trade data can only be transferred as default data for new items. Changes to the export/import data of existing items are not possible.
Texts
Header and item texts can be transferred in the tables PoTextHeader and PoTextItem. Texts for services are imported in the table PoServicesText. Texts can only be replaced completely.
Version Management
You can make use of the Version Management facility via the table AllVersions.
Return
If the PO was changed successfully, the header and item tables are populated with the information from the PO.
Return messages
Messages are returned in the parameter Return. This also contains information as to whether interface data has been wrongly or probably wrongly (heuristical interface check) populated. If a PO has been successfully created, the PO number is also placed in the return table with the appropriate message.
Restrictions
With this function module, it is not possible to:
Create subcontracting components (you can only use existing ones)
Create configurations (you can only use existing ones)
Change message records (table NAST) and additional message data (this data can only be determined via the message determination facility (Customizing))
Attach documents to the purchase order
Change foreign trade data
Change service data
Change or reexplode BOMs
A firewall prevents the manipulation of data that is not changeable in Purchasing according to the business logic of the purchase order (e.g. PO number, vendor, etc.).
PO items with an invoicing plan cannot be created or changed using the BAPIs
In this connection, please refer to current information in Note 197958.
To change addresses with numbers from Business Address Services (cantral address management), please use the function module BAPI_ADDRESSORG_CHANGE.
To change variant configurations, please use the function module BAPI_UI_CHANGE. More information is available in the BAPI Explorer under the Logistics General node.
In the case of changes that are to be made via the BAPI_PO_CHANGE, a firewall first checks whether the relevant fields are changeable. This approach follows that of the online transaction. Here it is not possible to change the vendor or the document type, for example.
Example
Example of changes made to a purchase order with:
1. Change in header data
2. Change in item
3. Change in delivery schedule
4. Change in account assignment
5. Change in conditions
6. Change in partners
Parameter: PURCHASEORDER 4500049596
Parameter: POHEADER
PMNTTRMS = 0002
PUR_GROUP = 002
Parameter: POHEADERX
PMNTTRMS = X
PUR_GROUP = X
Parameter: POITEM
PO_ITEM = 00001
CONF_CTRL = 0001
Parameter: POITEMX
PO_ITEM = 00001
PO_ITEMX = X
CONF_CTRL = X
Parameter: POSCHEDULE
PO_ITEM = 00001
SCHED_LINE = 0001
QUANTITY = 10.000
PO_ITEM = 00001
SCHED_LINE = 0003
DELETE_IND = X
Parameter: POSCHEDULEX
PO_ITEM = 00001
SCHED_LINE = 0001
PO_ITEMX = X
SCHED_LINEX = X
QUANTITY = X
PO_ITEM = 00001
SCHED_LINE = 0003
PO_ITEMX = X
SCHED_LINEX = X
DELETE_IND = X
Parameter: POACCOUNT
PO_ITEM = 00001
SERIAL_NO = 01
GL_ACCOUNT = 0000400020
Parameter: POACCOUNTX
PO_ITEM = 00001
SERIAL_NO = 01
PO_ITEMX = X
SERIAL_NOX = X
GL_ACCOUNT = X
Parameter: POCOND
ITM_NUMBER = 000001
COND_TYPE = RA02
COND_VALUE = 2.110000000
CURRENCY = %
CHANGE_ID = U
Parameter: POCONDX
ITM_NUMBER = 000001
COND_ST_NO = 001
ITM_NUMBERX = X
COND_ST_NOX = X
COND_TYPE = X
COND_VALUE = X
CURRENCY = X
CHANGE_ID = X
Parameter: POPARTNER
PARTNERDESC = GS
LANGU = EN
BUSPARTNO = 0000001000
Help in the Case of Problems
1. Note 197958 lists answers to frequently asked questions (FAQs). (Note 499626 contains answers to FAQs relating to External Services Management.)
2. If you have detected an error in the function of a BAPI, kindly create a reproducible example in the test data directory in the Function Builder (transaction code SE37). Note 375886 tells you how to do this.
3. If the problem persists, please create a Customer Problem Message for the componente MM-PUR-PO-BAPI, and document the reproducible example where necessary.
Customer Enhancements
The following user exits (function modules) are available for the BAPI BAPI_PO_CREATE1:
EXIT_SAPL2012_001 (at start of BAPI)
EXIT_SAPL2012_003 (at end of BAPI)
The following user exits (function modules) are available for the BAPI BAPI BAPI_PO_CHANGE:
EXIT_SAPL2012_002 (at start of BAPI)
EXIT_SAPL2012_004 (at end of BAPI)
These exits belong to the enhancement SAPL2012 (see also transaction codes SMOD and CMOD).
There is also the option of populating customer-specific fields for header, item, or account assignment data via the parameter EXTENSIONIN.
Further Information
1. Note 197958 contains up-to-date information on the purchase order BAPIs.
2. If you test the BAPIs BAPI_PO_CREATE1 or BAPI_PO_CHANGE in the Function Builder (transaction code SE37), no database updates will be carried out. If you need this function, please take a look at Note 420646.
3. The BAPI BAPI_PO_GETDETAIL serves to read the details of a purchase order. The BAPI cannot read all details (e.g. conditions). However, you can use the BAPI BAPI_PO_CHANGE for this purpose if only the document number is populated and the initiator has change authorizations for purchase orders.
4. Frequently used BAPIs for purchase orders are BAPI_PO_CREATE, BAPI_PO_CREATE1, BAPI_PO_CHANGE, BAPI_PO_GETDETAIL, BAPI_PO_GETITEMS, BAPI_PO_GETITEMSREL, and BAPI_PO_GETRELINFO.
5. For more information on purchase orders, refer to the SAP library (under MM Purchasing -> Purchase Orders) or the Help for the Enjoy Purchase Order, or choose the path Tools -> ABAP Workbench -> Overview -> BAPI Explorer from the SAP menu.
Parameters
PURCHASEORDER
POHEADER
POHEADERX
POADDRVENDOR
TESTRUN
MEMORY_UNCOMPLETE
MEMORY_COMPLETE
POEXPIMPHEADER
POEXPIMPHEADERX
VERSIONS
NO_MESSAGING
NO_MESSAGE_REQ
NO_AUTHORITY
NO_PRICE_FROM_PO
EXPHEADER
EXPPOEXPIMPHEADER
RETURN
POITEM
POITEMX
POADDRDELIVERY
POSCHEDULE
POSCHEDULEX
POACCOUNT
POACCOUNTPROFITSEGMENT
POACCOUNTX
POCONDHEADER
POCONDHEADERX
POCOND
POCONDX
POLIMITS
POCONTRACTLIMITS
POSERVICES
POSRVACCESSVALUES
POSERVICESTEXT
EXTENSIONIN
EXTENSIONOUT
POEXPIMPITEM
POEXPIMPITEMX
POTEXTHEADER
POTEXTITEM
ALLVERSIONS
POPARTNER
Exceptions
Function Group
2012
</b>
regards
prabhu
Message was edited by: Prabhu Peram -
Can u tell me any predefined BAPI for change and creation of Material
Hi,
Can anybody tell me predefined BAPI for change and creation of Materialmasterand Pricing?
Thanks & regards,
Gopianne.you can use the BAPI to BAPI_MATERIAL_SAVEDATA create as well as to change material master.
When changing material master data, you need enter only the material
number.
In the header data, you must select at least one view for which data is
to be created. Depending on the view selected, you must maintain other
required parameters. If you do not enter values for all of the required
parameters, the method is ended with an error message.
The corresponding fields in the tables (such as CLIENTDATA) must first
be supplied with data by the calling program. An indicator must also be
set for each of these fields so that the data is written to the database
by the method. This requires the calling program to supply the
corresponding field with the indicator in a checkbox table (for example,
CLIENTDATAX). Checkbox tables exist for tables that do not contain any
language-dependent texts (MAKT, MLTX), International Article Numbers
(MEAN), or tax classifications (MLAN). Several data records for a
material can be created in these tables.
regards
vivek
reward points if it helps -
Pros & Cons of Maintaining Material at Company Specific
Hi Experts,
We are implementing SAP for our Client having 5 companies in single Server.
Client is insisting on creating materials company specific.
In SAP, Material master is Client Specific.
Can anyone tell us what are the Pro's and corn's of Maintaining Material at company specific and at Group (Client) Level.
Regards,
MSKHI,
If you are creating Material Company Specific, then each company will be having same material i.e Glouse and in SAP database, Glouse will be available 5 Times with different material numbers one for each company.
why five time different material number ?
material number decide by material type not company code
and material type is at client level.
as i told you same material code you can extend in different plant with same number.
as a consultant I have question for you
if you have different material code for one material in different company code then how you will do STO
you can not do it
for STO process same material code will should be in both plant of company code.
this drawback of what you wrote
Regards
Kailas Ugale -
Report for update of Material with deletion Flag from R/3 to SRM
Hi All,
Is any report for Updating material in SRM with deletion indicator for those deletion flag set in R/3...Check material status
IF mat_mmsta EQ '--'.
lv_msgv1 = iv_ordered_prod.
CALL FUNCTION 'BBP_PD_MSG_ADD'
EXPORTING
i_msgty = c_msgty_e
i_msgid = 'BBP_PD'
i_msgno = 426
i_msgv1 = lv_msgv1
EXCEPTIONS
log_not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
PERFORM abort.
ENDIF.
IF c_on = c_off.
MESSAGE e426(bbp_pd) WITH lv_msgv1.
ENDIF.
ENDIF.
if not mat_lvorm is initial.
lv_msgv1 = iv_ordered_prod.
call function 'BBP_PD_MSG_ADD'
program name LBBP_PDIGPF2R
Check material in backend
CALL FUNCTION 'META_MATERIAL_READ'
EXPORTING
i_mtcom = ls_mtcom_eci
logical_system = iv_log_system
IMPORTING
e_mmsta = mat_mmsta
e_lvorm = mat_lvorm
EXCEPTIONS
mat_not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
lv_msgv1 = iv_ordered_prod.
lv_msgv2 = iv_plant.
CALL FUNCTION 'BBP_PD_MSG_ADD'
EXPORTING
i_msgty = c_msgty_e
i_msgid = 'BBP_PD'
i_msgno = 275
i_msgv1 = lv_msgv1
i_msgv2 = lv_msgv2
EXCEPTIONS
log_not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
PERFORM abort.
ENDIF.
IF c_on = c_off.
MESSAGE e275(bbp_pd) WITH lv_msgv1 lv_msgv2.
ENDIF.
ENDIF.
EXPORTING
i_msgty = c_msgty_e
i_msgid = 'BBP_PD'
i_msgno = 345
EXCEPTIONS
log_not_found = 1
others = 2.
if sy-subrc <> 0.
perform abort.
endif.
if c_on = c_off.
IN SRM PROGRAM LBBP_PDIGPF2R BBP_PD 345 throws message "product x is designed for deletion"
but it is validationg from fm 'META_MATERIAL_READ'
please close this thread
br
muthu
Maybe you are looking for
-
Im trying to read in a csv file, currently my delimiter is scan.useDelimiter(","); my problem is how do i get it to not include the start of the next line as part of the last token???
-
Merge 2 pdf's dynamicly with iText
I would like to merge two pdf's with iText. There is something special with the merging because the first pdf is dynamicly created and does not exists on the disk. I would like to merge it with an existing pdf (on my hard-disk), but the result of the
-
Adding F4 help in a table control field
Hi, I Have a table control with records, i want to add an F4 functionality in one field. When you press f4 i want to bring a pop up screen for that field...please help
-
Can ODI agent (scheduler) be configured?
Hi, I have an ODI project, and an agent associated to this project. The agent is scheduled to run every 2 hours. My questions are: 1. The agent doesn't provide a time gap of more than 2 hours. What do I need to do in case I have to run my ODI process
-
Writing to the spool the ouput
Hi All, The alv which i have displayed as output should be sent to the spool in the same program of report. Reagrds kumar