Delete condition record??
how to delete condition record from VK11. can i have t code plz.
Hi,
Just to add,
There are two possible procedures for deleting conditions. There is either immediate deletion or a deletion flag for archiving at a later date. You enter the type of deletion that should be proposed during condition maintenance into Customizing for a condition type, . When deleting immediately, a dialog box can be created which indicates immediate deletion but offers a deletion flag as an alternative.
<b>Deletion Flag</b>
You can mark condition records for deletion. These are then no longer taken into consideration during automatic pricing. However they remain as condition records in the system until the next archiving update. This means you can reset a deletion and reactivate a condition record.
<b>Physical Deletion</b>
If you use physical deletion, the condition record disappears immediately. It is no longer available during condition record maintenance or pricing. This deletion cannot be reset once it has been carried out. You have to recreate the condition record if you need it again. To be more exact, the reference to the condition record for pricing and condition record maintenance is deleted completely with physical deletion. The actual condition record must be kept for old documents.
<b>Recommendation:</b>
SAP recommends the physical deletion procedure. The deletion flag improves upwards compatibility in the system.
A pricing error can occur when using hierarchical accesses in combination with the deletion indicator (See the hierarchical access documentation in the SAP library).
The deletion flag used to be used as a replacement for a missing release procedure. This is no longer necessary, as there is now a separate release procedure available (see the release procedure in the SAP library).
Physical deletion can be included using the change documents for example deletions in a specific period (Report RV16ACHD).
Hope this helps. Please reward if useful.
Thanks & Regards
Sadhu Kishore
Similar Messages
-
Is their any function module for deleting condition record i am trying
Hi Experts,
Is their any function module for deleting condition record i am trying this way.......
DATA: TABLE (4) TYPE C.
DATA: KNUM LIKE KONH-KNUMH
DATA: K_VEWE LIKE T681-KVEWE VALUE 'A'.
DATA: T681_STR LIKE T681.
DATA: LV_NUM TYPE I.
GET PARAMETERS
PARAMETERS: TABNO LIKE T681-KOTABNR.
PARAMETERS: TESTMODE DEFAULT 'X' AS CHECKBOX.
REFRESH INT_KNUMH.
Select single * from T681 into T681_STR
where kvewe = K_VEWE AND
KOTABNR = TABNO.
IF SY-SUBRC NE 0.
WRITE: / 'No entry in T681 for number ', TABNO.
WRITE: / 'Check whether corresponding condition table exists.'.
EXIT.
ENDIF.
TABLE = T681_STR-KOTAB.
SELECT KNUMH FROM (TABLE) INTO KNUM.
SELECT SINGLE * FROM KONH WHERE KNUMH = KNUM.
IF SY-SUBRC NE 0.
INT_KNUMH-KNUMH = KNUM.
COLLECT INT_KNUMH.
ENDIF.
ENDSELECT.
DESCRIBE TABLE INT_KNUMH LINES LV_NUM.
IF LV_NUM EQ 0.
WRITE: / 'No inconsistent entries found.'.
WRITE: / 'Each record in the condition table has a corresponding.'.
WRITE: / 'entry in the KONH table.'.
EXIT.
ENDIF.
LOOP AT INT_KNUMH.
IF TESTMODE IS INITIAL.
DELETE FROM (TABLE) WHERE
KNUMH = INT_KNUMH-KNUMH.
IF SY-SUBRC = 0.
WRITE: / 'KNUMH =', INT_KNUMH-KNUMH(10), ' deleted from table ' ,TABLE.
ELSE.
WRITE: / 'DELETE: SY-SUBRC is', SY-SUBRC , ' FOR KNUMH = ' .
WRITE: INT_KNUMH-KNUMH(10).
ENDIF.
ELSE.
WRITE: / 'TESTRUN: KNUMH =', INT_KNUMH-KNUMH(10).
ENDIF.
ENDLOOP.
is their any Standerd Function module for comparing tables if the condition record not exist in it has to exit if it is their then compare those two tables if not exist in one table also that has to be delete the condition record
Please let me know .....Hi,
You can use Function module PRICING_CHECK to check condition record. Do a where-used list on it to see how to call it.
Regards
Kiran Sure -
Hi,
I have a requirement to delete condition records. Please let me know if there is any BAPI or Function Module which deletes the condition records from VK12. Its very urgent.
Thanks,
MeenuMeenu,
Use VK12 and set the deletion flag.
The deletion flag means that the record is logically deleted and not phisically.
some of the conditions records cannot be delete, example 'MWST'.
In such cases, the best way is to change the end date to the current date.
more adding for you;
In v/06 for your condition type check the field delete fr. DB
If you set this field as A or B,then only you will be able to delete the condition record permanently via VK12.Otherwise you can only set deletion indicator.
Amit. -
Delete condition records in VA01
Hi,
I am trying to write a BDC for VA01. There are SOME(not all) unwanted condtion records comming. how can i remove those condition records (Goto - > Header - > Conditions) thru BDC.
Regards,
Naveen VishalHI NAVEEN,
goto vk12,choose the condition types which you dont want to be in the sales order,select the line and delete the condition record and save.
you have to delete all the access sequence condition record for that condition types.
then it will not appear in the sales order,
but the best way is to do it in the configaration settings in v/08
regards
senya -
FM or BAPI for creating/deleting condition records for an output type
Hi all,
what is the FM or BAPI for creating and deleting the condition records for a Z(custom) output type.You can use trasaction SXDA_TOOLS.....
object type BUS3003
program type BINP
program/method RM06IBI0
but the fields must be sequentially written in the txt, with every space inclusive.... -
Hi Experts
i created a condition types JMOP instead of JMIP in FV11,how can i delete the condition type,
please advice me.
Thanks in advanceHi,
Go to FV12, refer the same condition record and select the row and hit the delete row icon in the bottom
Result : Deletion indicator for condition record has been set
Regards
Merwyn -
How to Delete the condition record in CRM
HI,
Can you please help me how to delete the condition record from condition table in CRM.
Please explain the usage of FM CRMXIF_CONDITION_SEL_DELETE with examples.
I have also read the documention of the function module. How to use this FM for custom defined condition table.
(this is the code given in Documentation)
DATA-OBJECT_REPRESENTATION = 'E'
DATA-SEL_OPT-CT_APPLICATION = 'CRM'
DATA-SEL_OPT-OBJECT_TASK = 'D'
DATA-SEL_OPT-RANGE-FIELDNAME = 'PRODUCT_ID'
DATA-SEL_OPT-RANGE-R_SIGN = 'I' (Including)
DATA-SEL_OPT-RANGE-R_OPTION = 'EQ'
DATA-SEL_OPT-RANGE-R_VALUE_LOW = 'PROD_1'
Thanks
ShankarHi Shankar,
I am using the same CRMXIF_CONDITION_SEL_DELETE function module to delete condition record present in CRM.
But it is giving me below error in the return table of the FM after i run the program. Can you please correct me if I am doing any thing wrong?
Error in lt_return: SMW3 CND_MAST_SEL_DEL_EXT_VALIDATE CND_M_SD
code:
ls_range-fieldname = 'PRODUCT_ID''.
ls_range-R_SIGN = 'I'.
ls_range-R_OPTION = 'EQ'.
ls_range-R_VALUE_LOW = '123456'.
APPEND ls_range TO lt_range.
MOVE lt_range TO ls_entry-SEL_OPT-range.
ls_data-SEL_OPT-object_task = 'D'.
ls_data-SEL_OPT-ct_application = 'CRM'.
ls_data-object_representation = 'E'.
CALL FUNCTION 'CRMXIF_CONDITION_SEL_DELETE'
EXPORTING
DATA = ls_date
IMPORTING
RETURN = lt_return
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
IMPORTING
return = lt_ret.
Edited by: Saravanaprasad Nadar on Jul 7, 2010 1:27 AM -
Delete condition type records from PO
Hi all,
I have put custom fields ( for condition type ) under customer data tab in PO (ME21N) line item.
While creating/changing PO, I have to delete condition records under conditions tab based on the custom fields which I have defined in the customer data tab.
Is there any badi or function module to delete required condition records in PO?
Thanks in Advance.
Udaya MadhavHi uday,
Please Use the FM
RSDRD_SEL_DELETION
Hope this will be Helpful
Thanks
kalyan -
Deletion of condition record (vk11) from Database
Dear,
can anybody tell me how to delete condition record completely from database nt delettion flag.
regards,
DebeshHi,
I think archive the condition record is better option for you insted of deleting it !!!!
For archiving please go through the below link.
http://help.sap.com/saphelp_45b/helpdata/en/8d/3e5ae4462a11d189000000e8323d3a/content.htm
Hope this will help you to resolve your query!
Regards,
KRishna O -
Billing Output condition record deleted by user
Hi,
User had removed the existing condition record and created new condition record for billing output condition. I had checked in B011 and B904 table and couldn't identified the user who had deleted the exisitng record. I could see the new condition record details in this table.
Do we have any table which will hold the deleted condition record details or is there any way i can find the details of this conditon record.
ThanksHi,
You can test the CHANGE LOGS in the Transaction code SCU3
Goto the Transaction code and enter the Table B011 and choose the option as TABLE and execute, it will give the entries of change logs done during a certain period of time
You can aslo find the Details using the Program RSVTPROT
Here if you didnt find the CHANGE LOGS then need to activate the Table in order to display the change logs.
Hope it will work.
regards,
santosh -
Tracking deleted pricing condition records
Hello,
I Have a condition record for a condition type with a particular price of USD 100 with validity date from 1.10.09 to 30.10.09.
Now we create another condition record for the same condition type with a new price of USD 50 with same valid date from 1.10.09 to 30.10.09..
So now the systems delete the old condition reocord of USD 100.This is standard sap.
Now I want to know is there any way of tracking the deleted condition records like the ones the system has deleted. If there is no standard report and if we have to develop a Z report, then how to develop that since the tables do not contain the old conditon records.
regards
sachinHi,
Yes, from the condition table that you are going to maintain the condition records (check the condition table assigned to the access sequence, from the condition type), we will get all the condition records maitained for specific combination/material
Now go to se16 and enter the condition table name and give the proper selection criteria then you will get all the condition record numbers maintained to your selection with validity dates. then you can go to KONP and pass the condition record and you can get the condition values for that particular combination with proper validity dates.
(Actually from VK13/VK12 based on validity date that we have mentioned in the selection screen will display the condition record valid on that paricular date, from the system those condition records will not be deleted at all)
OR
There are two possible methods of displaying change documents:
Choose Environment -> Changes -> For condition record.
Change data for the selected condition record(s) will be displayed.
Choose Environment -> Changes -> Report.
A selection screen will appear where you can choose multiple criteria for displaying change documents. The result of the selection report is displayed.
Regards,
Satya -
Delete Condition Type Depending on Item category Va01
HI all,
I wan to delete condition record depending on item category. I have a good link from sap.This link explains how to hide the condition but i want the delete the condition. was badly struck here.
http://wiki.sdn.sap.com/wiki/display/ABAP/ManipulatingPricingconditionsdisplayinSalesdocumentwithUserExit-LV69AFZZ
Regards,
madhu
Edited by: madhurao123 on Mar 24, 2011 2:19 PMHi,
We had a similar requirement once, and towards the end we realised that deleteing rather than hiding it was a bad idea.
Think beyond the scope, that if a future sales order created with reference needs this condition record; manual entry will again be dependent on your pricing procedure and is a mess.
But if you do want to delete it; go into debugging and decide which user exit you would want to use and delete that line of the condition record from XKOMV table for that Sales Order -
Problem in deleting child record
Hi,
I have a requirement to remove the child records.
I have two database tables (without any foreign key or database constraints). I have created EOs (ParentEO and ChildEO) and Association. I have created view objects (ParentVO with a transient attribute called "SelectFlag" and ChildVO) based on EOs.
I have created a MollyViewLink and created Application module (MollyAM) .VOs are associated with AM.
For detail records, I have created delete icon and I have written below code to handle the deleteChild event in detail region's controller:
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
if ("deleteChild".equals(pageContext.getParameter(EVENT_PARAM)))
MollyAMImpl am = (MollyAMImpl)pageContext.getApplicationModule(webBean);
String rowReference = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
System.out.println("Child ROW Reference =="+rowReference);
MollyUserDetailsVORowImpl voRow = (MollyUserDetailsVORowImpl)am.findRowByRef(rowReference);
String parentID = voRow.getId().toString();
System.out.println("ID is : "+ parentID);
voRow.remove();
System.out.println("Child row deleted successfully...");
am.getTransaction().commit();
When I click on delete icon at child record, I get below SOP messages:
Child ROW Reference ==MollyAM.MollyUserDetailsVO_MollyViewLink_MollyUserDetailsVO:MollyUserDetailsVO_MollyViewLink_MollyUserDetailsVO_0{null}
ID is : 52
Child row deleted successfully...
Child record is also being removed from UI. But when I query the database, I can still see the records there. For me, it seems like commit is not affecting the child table.
Similar code to delete the parent record is working fine.
Thanks!!!Hi Vinod ,
I am deleting condition record number if know any function module please let me know
problem happing in PRD for particular condition numer it showing INTERNAL ERROR (This is the condition table A923)
that condition number is their in KONH but not their in KONP because of that INTERNAL ERROR occuring
for that i have writen code for that deleting the condition number ....
if know any thing please let me know -
How to delete a condition record
hi,
i maintained one condition record and deleted it in chane mode i.e using t.code vk12. Again if i make new condition records the system showing "validity dates are over lapping".
wt is it?hi srinivas,
go to VK12 , there you can see the record maintained and the validity period. Just do one thing, select your condition record and change the valid to date in the past. Thn you will get a warning below that the date is in past, just press enter and save the record. Then if you go and check the record it will not be there. Then created your new condition record.
I hope i have answered your query. reward points if solution helps.
Regards,
Allabaqsh G. Patil -
GL account deletion from Sales Order Condition record
Hi,
Please experts guide me on this! what do i have to do and where to look for it.
The GL account 200000 , 1200001 , 00002 are all directly mapped to sales order in the condition record. When a sales order is raised the entry are directly posted in this accounts which further hits the Profit & Loss Account.
1) The said 3 GL accounts are to be discontinued from condition record in sales order
2) The entry which are till date recorded in the said accounts needs to be reversed. There are some manual entry also made by the user which are correct, only the entry which have happened due to automatic posting needs to be deleted
Thanks and regards.Hi,
Please make the necessary changes in the pricing procedure for those condition types. I am not sure what you mean by condition record.
Check under Basic Function for Accoutn assignment & make the necessary changes to the GL accounts determination/ assignment.
Maybe you are looking for
-
Logical Database o/p in ALV
Dear Expert. I have to call AFI logical database in ZPROGRAM. If I write GET DIAUFK (root node) How do I fetch data form parent and child node? O/p should come as ALV on that alv pop-up will come on that pop up list of transaction displayed which wil
-
Ok. This was supposed to be a question about a header and footer in Flash. I intended to attach my fla to make it possible to understand what I was saying. As it turns out I can't figure out how to attach files. Is it even possible? That's my first q
-
How do you import songs into a new iTunes library from a Touch?
I downloaded iTunes on a new PC laptop but, I'm unable to import the songs that are on the Touch, to the new iTunes library. The songs that are on the Touch are all iTunes purchased songs and these songs are based in a iTunes library that is on the o
-
Exporting, I only get 1.minute of video, but full lenght audio!!
I have about a 3:20 video of a Family event, that, when I export it to either iPod or QT full I get only 1:00 video and full [3:20] audio. I've tried this several ways, and if I export web, QT [ streaming] the video is great.. but I want it on my iPo
-
Free 1-year warranty, when purchased from reseller?
Sorry that I wasn't sure of a better place to put this question: Does my new MacBook Pro include a free 1-year warranty, even if I bought it from a reseller (Best Buy)?