BAPI for Reset deletion ind. for PO Item using ME22
Hi Experts,
I want to go to Tcode ME22 to Undelete PO Item, ME22 -> Edit -> Reset deletion ind.
I have used BDC, and tested successfully. But you know, BDC is not a very good method, and I want to find a BAPI for it.
Anyone could help me ? Give me the BAPI name or how to use it ?
Thanks a lot.
Sincerely ,
Julie
Hello
Use BAPI BAPI_PO_CHANGE for this.
How to use ? Check this: Re: Bapi_po_change Remove lock indicator of line items in
Similar Messages
-
Retention periods same for the deletion and for archiving then deletion
Hi,
Is Retention periods same for the deletion and for archiving then deletion.
Can we delete canceled messages directly in XI wihtout archiving them ?
I want only deltion of messages from XI.
Regards
SreeI want to delete them. No archiving is required.
Check Udo's reply in this thread on how to perform just deletion: Re: How to delete the error message in the Web page Message Monitoring
Process is also mentioned in this help section: http://help.sap.com/saphelp_nw04/helpdata/en/0e/80553b4d53273de10000000a114084/content.htm
Regards,
Abhishek. -
I want to make new password for apple ID, but it sends link for reset to my old mail that I don't have access ages already. I have entered new alternative mail, but they still send reset link to old one. What to do?
Apple ID security issues -
Call Apple Care for your country and ask for the Account Security Team. They can assist you with your issue.
http://support.apple.com/kb/HT5699 -
BAPI to Set Deletion Flag for CO Production Orders
Hi All,
Iu2019ve a requirement to Set the deletion flag of a Production Order [Order Category u2013 4 (CO Production Order)].
For this I tried BAPI u2018BAPI_PRODORD_SET_DELETION_FLAGu2019 but unfortunately it works only for Order Category u2013 10 (PP Production Order). Also all other standard transactions and programs work only for Order Category u2013 10 (PP Production Order).
Is there any other BAPI which could work for Order Category -4 ? I want to keep BDC as the last option.
Any help in this regard would be great.
Thanks!
Sushil.It also works only for Order Category u2013 10 (PP Production Order).
-
What is the BAPI for setting "deletion flag" in IW32?
What is the BAPI for setting "deletion flag" in IW32? Thanks!
Hello
There seems to be no BAPI to set deletion flag for MO.
Quick Approach:
You can copy an existing BAPI module BAPI_ISUSMORDER_SETSTATUSTECHN, for example, to Y_BAPI_MORDER_SETSTATUSDEL, and then edit this copy
change the code in the existing lines for screen 3000
PERFORM BDC_DYNPRO USING 'SAPLCOIH' '3000'.
PERFORM BDC_FIELD USING 'BDC_OKCODE' 'LVMS'. (Instead of current 'ARCH')
It should hopefully work.
fyi: The orders can be set with Del flag only when they are in CLSD status
Rgds
Kartik -
I'm forgot security questions and i don't have e-mail for reset
I press "sent reset security info email to [email protected]" already but no email for reset inbox.
Alternatives for Help Resetting Security Questions and/or Rescue Mail
1. If you have a valid rescue email address, then use this procedure:
Rescue email address and how to reset Apple ID security questions.
2. Fill out and submit this form. Select the topic, Account Security. You must
have a Rescue Email to use this option.
3. This is the only option if you do not already have a valid Rescue Email.
These are telephone numbers for contacting Apple Support in your country.
Apple ID- Contacting Apple for help with Apple ID account security. Select
the appropriate country and call. Ask to speak to the Account Security Team.
Note: If you have already forgotten your security questions, then you cannot
set up a rescue email address in order to reset them. You must set up
the rescue email address beforehand.
Your Apple ID: Manage My Apple ID.
Apple ID- All about Apple ID security questions. -
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 -
FM or BAPI for resetting Documents
Hi all,
Is there any FM or BAPI available for resettign and reversing documents in FBRA. I have a FM for reversing document but i don't have a FM or BAPI for resetting documents. If any one knows answer for this, please suggest me.
Thanks and Regards,
Subbu.HOPE THIS WILL HELP
Reset cleared items (FBRA)
After executing the data in FBRA, the accounting document will be moved from BSAK table to BSIK, after executing the below function module one can check in these table. Never try to select accounting document from BSEG table, it's a cluster table. Try to use key fields when firing query on BASK table. *---Declaration for fun mod
DATA: d_bukrs LIKE rf05r-bukrs,
d_belnr LIKE rf05r-augbl,
d_gjahr LIKE rf05r-gjahr,
it_rf05r_acct LIKE rf05r_acct OCCURS 0 WITH HEADER LINE.
LOOP AT it_bsak.
CLEAR: d_bukrs, d_belnr, d_gjahr.
d_bukrs = it_bsak-bukrs.
d_belnr = it_bsak-augbl.
d_gjahr = it_bsak-gjahr.
*---Fuction module to run FBRA
CALL FUNCTION 'CALL_FBRA'
EXPORTING
i_bukrs = d_bukrs
i_augbl = d_belnr
i_gjahr = d_gjahr
TABLES
t_accnt = it_rf05r_acct
EXCEPTIONS
not_possible = 1
OTHERS = 2.
Endloop. -
BAPI or FM or Class for Customer open items CLEAR (F-32)
Hi Everyone,
Is there any BAPI or FM to CLEAR customer open items (F-32).
Thanks,
NKHi,
For clearing open items you can use BAPI_ACC_DOCUMENT_POST.
but need to write extra code in BTE
check this function module SAMPLE_INTERFACE_RWBAPI01.
need to update below four fields of table accit.
REBZG (document no against u want to clear)
REBZJ (fiscal year)
REBZZ (line item)
REBZT
to update these field use BTE.
Thanks,
Avadhut. -
Creating a PO Using BAPI For Multiple PLants Or Multiple Line Items
Hi All
Can you please suggest me how to create a Purchase Order Using BAPI_PO_Create1 for Multiple Plants Or for Multiple Line items. The Requirement is like the PO is for single material for single vendor but for mulple stores i.e plants
NOte: Suggest me the Creation of PO for MUltiple Line items or for multiple plants Using BAPI . Hope you people will give me the needful.
Regards
Shivakumar BandariHi,
Here is the sample code to do that...
*---> po header data
wa_poheader-vendor = your vendor..
wa_poheader-doc_type = Your doc type..check with Functional contact....
wa_poheader-purch_org = Purchasing Org..
wa_poheader-pur_group = Purchasing Group
*---> po header data (change toolbar)
wa_poheaderx-vendor = 'X'.
wa_poheaderx-doc_type = 'X'.
wa_poheaderx-purch_org = 'X'.
wa_poheaderx-pur_group = 'X'.
*---> poitem data
data: item like ekpo-ebelp.
item = '0010'.
loop at t_parts.
it_poitem-po_item = '00010'.
IT_POITEM-PLANT = Plant..
IT_POITEM-STGE_LOC = Sloc...
*---> poitemx (item data change toolbar)
it_poitemx-po_item = '0010'.
it_poitemx-po_itemx = 'X'.
IT_POITEMX-PLANT = 'X'.
IT_POITEMX-STGE_LOC = 'X'.
*---> add record's to internal table
APPEND: it_poitem,
it_poitemx.
endloop.
*call bapi_po_create1
CLEAR v_ebeln.
CALL FUNCTION 'BAPI_PO_CREATE1'
EXPORTING
poheader = wa_poheader
poheaderx = wa_poheaderx
IMPORTING
exppurchaseorder = v_ebeln
TABLES
return = it_return
poitem = it_poitem
poitemx = it_poitemx.
*---> check the return table for error message
READ TABLE it_return WITH KEY type = 'E'.
IF sy-subrc NE 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
endif.
Thanks,
Murali -
My recent items list appears again after restart. How do I delete it for good?
When I turn on the computer, the recent items list still displays the documents and applications I worked with a few days ago. I delete it, and after restarting the computer, it displays the same list again (not a new list, but the exact same items over and over again). Any tips?
Select the iPod shuffle in the iTunes sidebar (under DEVICES). If this is a current 4th (or 3rd) gen iPod shuffle, you should be able to see the contents of the shuffle by type, intented under the shuffle's name (still in the sidebar). Select Music or Audiobooks (not sure where those items from the library will be listed). The items will be listed to the right, for each category. Find the items, select, and delete.
It's on page 20 of the manual
http://manuals.info.apple.com/en_US/iPod_shuffle_4thgen_User_Guide.pdf
NOTE: If this is an 1st or 2nd gen iPod shuffle, select the iPod shuffle in the iTunes sidebar (under DEVICES). Over to the right, go to the Contents tab, where the items are listed. Select and delete them from this list.
I find it more convenient to make a playlist in iTunes with things I want to put on the shuffle. I then set up automatic syncing (or use autofill) to have iTunes load the shuffle from that playlist, automatically. -
How to add new line item using BAPI BAPI_CONTRACT_CHANGE for contract-ME32K
HI Experts,
how to add new line item using BAPI: BAPI_CONTRACT_CHANGE for existing contract.
Requirement:
Already the contract having two line items using ME31K.
Custom program has to add new line items in existing contract.
Thanks,
SendilI got the solution:
We can do like this:
1. Get all details using details, BAPI_CONTRACT_GETDETAIL.
2. After getting results, append new line item. Then use your BAPI.
Check this posting program.. where this bapi is used, use the same coding technique.
IDOC_INPUT_PURCONTRACT_CHANGE -
' delete an app. All apps wiggle incl. the one in questions. However the app I want to delete does not show the x button. I reseted, also restrictions are on with on for apps delete. Suggestions?
mardemar wrote:
... - the only one without an x delete button.
What is the name of this App and where did you get it...? -
Bapi for asset deletion (Tcode AS06)
Hi Guys,
Do we have any BAPIs for asset deletion (Tcode: AS06) ? Pls. let me know .
Thanks and Regards,
SumitThere is no BAPI for it: just for creation, change, get list and detail.
I had the same doubt and then I tried FM AM_ASSET_DELETE_FROM_AI but it asks for a "AI_ID" which I don't have during execution time.
If possible, do a Batch Input to AS06 as it is very simple. -
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
Maybe you are looking for
-
Error in account determination: table T030K key WFPL MW3
Hi All While doing the vf02, i am getting this error "Error in account determination: table T030K key WFPL MW3" Message no. FF709 Diagnosis In the chart of accounts to be posted to, no accounts are defined for the tax code you used. Procedure Contact
-
Where can I find the Elements 10 install files for mac?
Hi all, I recently bought a mac that doesn't have an optical drive, and I would like to install Photoshop and Premiere Elements 10 on it. Of course, i have the box version, with the dvds and all, but I'd like to get the online installable files. Any
-
HT4325 not getting airplay button on itunes, please help
I just updated my itunes to 11.1.5.5 on my lapatop and enabled my airplay enabled speakers, but don't get the airplay button on itunes. FYI, using my desktop computer with the same version of itunes, the airplay does works. Any advice would be grea
-
I am currently on 10.8.5 and I want to upgrade to Maverick before going to Yosemite. I can find the 10.9.5 update download, but it requires 10.9 So, can anyone tell me where to download 10.9??
-
Hi i m using oracle 10gR2 after installation i enable the archive log mode. 1) How can i determine the size of archive log? 2)When i enable the archive log mode after switch it genrate the second archive (01_MF_1_2_43.ARC) instead of first (01_MF_1_1