BAPI for VK11,VK12,MEK1,MEK2
Hi,
1) Is there a BAPI or standard function module for MEK1 and MEK2?
2) I searched and found for VK11 and VK12 we have the following function modules
BAPI_PRICE_CONDITIONS
RV_KONDITION_SICHERN
RV_KONDITION_SICHERN_V13A
Please share if you has used the above
Got it to work. With the sequence :
<b>1.</b> RV_CONDITION_COPY
<b>2.</b> RV_CONDITION_SAVE
<b>3.</b> RV_CONDITION_RESET
<b>4.</b> commit
* At least the key fields of the conditiontable
* (here 800) must be filled in structure ls_komg.
ls_komg-vbeln = '1234567890'. " document number
ls_komg-posnr = '000010'. " item number
clear wt_komv.
ls_komv-kappl = 'V '. " Application V = Sales
ls_komv-kschl = lc_kschl. " Condition type
ls_komv-waers = 'EUR'. " Currency
ls_komv-kmein = 'ST'. " Unit of measurement
ls_komv-kpein = '1'.
ls_komv-krech = 'M'. " calculation type;
"M = Quantity - monthy price
ls_komv-kbetr = '1234.56'. " new condition value
append ls_komv to lt_komv.
call function 'RV_CONDITION_COPY'
exporting
application = 'V'
condition_table = '800' " cond. table
condition_type = lc_kschl " cond. type
date_from = '20061101' " valid on
date_to = '20061130' " valid to
enqueue = 'X' " lock entry
i_komk = ls_komk
i_komp = ls_komp
key_fields = ls_komg " key fields
maintain_mode = 'A' " A= create
" B= change,
" C= display
" D= create
with reference
no_authority_check = 'X'
keep_old_records = 'X'
overlap_confirmed = 'X'
no_db_update = space
importing
e_komk = ls_komk
e_komp = ls_komp
new_record = lv_new_record
tables
copy_records = lt_komv
exceptions
call function 'RV_CONDITION_SAVE'.
call function 'RV_CONDITION_RESET'.
* necessary to write data
commit work.
Check data with transaction VK12
Thank you for your support
Thomas
Similar Messages
-
i have created a BDC program for uploading data into VK11 & VK12 .what it does that it compares the valid from and valid to dates from the flat files
and if they already exist then for that condiotn type it goes to vk 12 and changes the prices and scalling quantity according to the falt file
and if the date range is not present then it oes to VK11 and creates the same from the flat file
now i want a bapi that works the same manner..
if any body can hel;p me
thanks in advanceI am using the RV_condition_copy function the way it is described in this post, I am able to update the date but not the price in Vk12 / vk13 . I am using option D for maintain_mode (create with reference) - > this is essentially what I want to do, as we already ahve the pricing in vk13, we want to change it for year 2008.
Please advise what I must be doing wrong. I do not get any errors while running the following code. Also I am doing commit. Thanks.
Pranav
Do I have to pass any values to I_komk I_komp, i do not have anything to pass.??!$#?
ls_komg-kunnr = '0001000008'. " Cust number
ls_komg-matnr = 'PP500P3'. " Mat number
ls_komg-VKORG = 'PPC1'.
ls_komg-vtweg = 'BB'.
clear: Lt_komv,LS_KOMV.
ls_komv-kappl = 'V '. " Application V = Sales
ls_komv-kschl = 'PR00'. " Condition type
ls_komv-waers = 'USD'. " Currency
ls_komv-kmein = 'EA'. " Unit of measurement
ls_komv-kpein = '100'.
ls_komv-krech = 'C'. " calculation type;
"M = Quantity - monthy price
LS_KOMV-KAWRT = '251.00'.
ls_komv-kbetr = '121.50'. " new condition value
*LS_KOMV-KWERT_K = '251.10'.
*LS_KOMV-KNUMV ='0000008911'
append ls_komv to lt_komv.
CLEAR LT_KOMV.
call function 'RV_CONDITION_COPY'
exporting
application = 'V'
condition_table = '005' " cond. table
condition_type = 'PR00' " cond. type
date_from = '20070108' " valid on
date_to = '99991231' " valid to
enqueue = 'X' " lock entry
i_komk = ls_komk
i_komp = ls_komp
key_fields = ls_komg " key fields
maintain_mode = 'D' " A= create
" B= change,
" C= display
" D= create with reference
with reference
no_authority_check = 'X'
keep_old_records = 'X'
overlap_confirmed = 'X'
no_db_update = space
importing
e_komk = ls_komk
e_komp = ls_komp
new_record = lv_new_record
tables
copy_records = lS_komv
EXCEPTIONS
ENQUEUE_ON_RECORD = 1
INVALID_APPLICATION = 2
INVALID_CONDITION_NUMBER = 3
INVALID_CONDITION_TYPE = 4
NO_SELECTION = 5
TABLE_NOT_VALID = 6
NO_AUTHORITY_EKORG = 7
NO_AUTHORITY_KSCHL = 8.
call function 'RV_CONDITION_SAVE'.
call function 'RV_CONDITION_RESET'.
necessary to write data
commit work.
Message was edited by:
pranav kulkarni -
hi!
can anybody plz tell me how to do bdc for vk11 and vk12.
the scene is that i have zpogram which displays the data and from there i have to add one button and whenever that button is triggred bdc had to be performed for vk11 and vk12 only for those fields which are diaplayed by my z program.
kindly help me out.
regards
anjaliHi Anjali
It is not advicable to create BDC for transactions like VK11, MEK1 ... which we use to create condition records. The reason is for each condition type, the options we see might vary when ever there is change in access sequences and their precedence. So if we create BDC, our program needs to modified everytime there is change in the access sequences and condition tables.
I would recommed you to either use the program that i have provided or use some BAPI's to upload/change condition records.
As you are saying, you have the data in your internal table. Download the data to a file in the format RV14BTCI needs and SUBMIT the program.
For understanding on the structure for this program, use transaction SXDB.
Kind Regards
Eswar -
Hi,
Can anybody tell me the BAPI name with simple coding to update Condition types for different material, plant, region etc for tcode VK11.
thanks
n kumarHI
VK11,
vk11 bapi
Regards
Pavan -
To restrict authorization for tcode MEK1,MEK2,MEK3,MEK4 at plant level.
Hi,
We have a requirement where we need to restrict authorization for tcode MEK1,MEK2,MEK3,MEK4 at plant level.
Presently we can restrict authorization at Purchasing organization level but not at Plant level.
Any pointer please!
Regards,
ChetanFirst of all, this is not the right forum to post such a question. Coming to the requirement, this can be achieved by creating a role in PFCG where you can restrict plant and assign this role to each user id. Your basis team can do this.
thanks
G. Lakshmipathi -
BAPI for T.Code: VK11
How to find the BAPI for transfering data to VK11 T.code.
Sunil.Refer this one -
BAPI_PRICES_CONDITIONS
Sample code -
Re: Sample code for BAPI_PRICES_CONDITIONS
Regards,
Amit
Reward all helpful replies. -
BAPI for Price Change using Transaction VK12
Hi All..
Can any one help in locating a BAPI for making price changes using transaction VK12.
Rgdstry RV_CONDITION_MAINTENANCE
-
VK11/VK12: Automatically create anothercondition record upon saving
Hi,
First of all this is my first time to post a question here. I find every thread very helpful and other members helpful.
We came with a requirement to automatically create another condition record after the user clicks the save buttons. I'm not inclined in this module so to give you an idea in my requirement here are the following steps:
1. User go to VK11
2. Choose Selling Price List/Material access sequence
3. In the the screen the user enter a sales org, distribution channel, and price list.
Ex: Sales Organization: 0024
Distribution Channel: 00
Price List: 03
4. User enter in grid, material, amount, conditoin pricing unit.
Ex:
Material: 4668
Amount: 5,00
Condition Pricing Unit: 1
5. User click saves. Entries in tables KONH and KONP are populated. Condition record is saved
Now the requirement is create a duplicate conditoin record but with DIFFERENT price list-> 02 and amount. The new amount will be computed manually in the enhancement.
I did my part researching what can be done to solve this requirment. In the old threads, some suggest to use BADI BADI SD_COND_SAVE_A BADI. The problem is I am also not familiar in using BADI so I hope someone can tell me how I can learn BADI so I can implement the requirements. For the creation of condition records, I still have no idea how to do it.
So here are my current challenges:
1. How can I trap the save button in VK11/VK12. I am also thinking if all required validations were done prior to the creation to the conditoin record. I'm also thinking what are the things I should consider before creating a duplicate condition record with the different pricelist 03 and amount.
2. How can I create a condition records. Should I use a BAPI? I am also not familiar with BAPI
In addition to the requirement, I am thinking of some problems that might arise. I think there should be checking before creating the duplicate condition records. But I have no idea what are the things to consider.
I hope I explained my requirment clearly. Please feel free to ask for clarifications or question in my requirement. Thank you for your help. I really appreciate any help.
Thanks and God Bless.
-binaryghost
Edited by: binary ghost on Sep 9, 2010 10:46 AMHi,
Try these BTE'S:
BusTrEvent SAPMV13A OPEN_FI_PERFORM_00503301_BOST 00503301 Updating conditions (Pricing)).
BusTrEvent SAPLV13A-LV13AU02 OPEN_FI_PERFORM_00503301_E 00503301/P&S Update conditions (usage A)
BusTrEvent SAPLV130-LV130U01 OPEN_FI_PERFORM_00503302_E 00503302/P&S (Updating conditions (general)).
BusTrEvent SAPMV13A OPEN_FI_PERFORM_00503308_E 00503308/P&S Maintain conditions: Default condition (Condition Maintenance Control).
I hope this may helpfull.
Thank you,
Thanks,
AMS -
Getlist bapi for customer based on sales org, distbtn chnl
Hi,
Is there any standard BAPI for customer Getlist , i want to filter based on distribution chanel and sales org and divison.
Now am using BAPI_CUSTOMER_GETLIST its showing all customer list i want to filter this based on distribution chanel and sales org and divison.
Thanks ,
ArunHi Siva : )
In VK11 we have a key combination radio button called Country/ Destination Ctr./Plant/TaxClCust/TaxClMat.
I think it might be a custom key combination (so you might have to create a siliar one for yourself), but basically all I had to enter there was Country = GB, Destination Coutry = GB, plant SORG1 (it's called the same as the sales org and is linked 1-1), tax classification on Customer = 2 (because I want the central setting on the customer to be 2 = ICO, no tax), tax classification on material 1 = full tax goods and enter relevat tax code.
Hope this helps.
It worked for me.
Kind regards,
Tanja -
To restrict authorization of tcode MEK1,MEK2,MEK3,MEK4 at plant level
Hi,
We have a requirement where we need to restrict authorization for tcode MEK1,MEK2,MEK3,MEK4 at plant level.
Presently we can restrict authorization at Purchasing organization level but not at Plant level.
Any pointer please!
Regards,
ChetanHi,
You can restrict the users for the authorization of these T-Codes on their User ID. Take help of Basis who controls Roles & Profiles. (T-Code PFCG)
Hope this helps,
Best regards
Amit Bakshi -
Required BAPI for changing vendor prices
Hi experts,
Can any one change vendor prices using bapi inthe Transaction of MEK1, If yes please give the bapi name.
My requirement is to change the vendor price from an a legacy file, am going to use BAPI for that.
Anyone help this out.
Thnx and Regards,
Mohana
Edited by: Mohana Vijayan on Mar 6, 2009 7:03 AMHai Experts,
I searched lot, i found BAPI_PRICES_CONDITIONS, Is this Bapi is correct one. Any of our experts used this before?
Please anyone suggest this.
Mohana -
Hi All,
Can anybody suggest some BAPI for uploading pricing conditions in a purchasing contract.
Thanks,
ArunHi Arun,
refer to the link for BAPI's:
http://www.sapbapi.com/bapi-list/
Also refer to the link:
Re: VK11,
With luck,
Pritam. -
Hi All,
can anyone suggest me about data load for VK11, I mean which method will be easier?
appreciate if you can send me the developed custom code
thanks.Hi Kiran,
You can also use BAPI BAPI_PRICES_CONDITIONS.
Please check this link for sample codes.
Re: Sample code for BAPI_PRICES_CONDITIONS
Hope this will help.
Regards,
Ferry Lianto -
Set default value in VK11/VK12
Hi, All
I use the release status in material price maintain. I want to set default value for the field release status in tc VK11/VK12. I test the
BADI SD_COND_SAVE_A and BTE 00503305,but I cannot resolve the question. I do not want to use screen varient SHD0. Can anybody give me a suggestion ?
thanks a lot!hi
Suppose you have 2 radio buttons and values are 1 and 0 respectively
So You should try this...
<af:selectOneRadio id="sor1" layout="horizontal" value="1">//type default value 1 here den it is selected default on page
<af:selectItem label="ID" value="1" id="si6"/>
<af:selectItem label="Passport" value="0" id="si16"/>
</af:selectOneRadio>
// I hope this will help you.... -
HOW KIND OF Standard table related with vk11, vk12 and vk13?
HI, EVERYONE,
HOW KIND OF Standard table related with vk11, vk12 and vk13?
I want to know about how many and how kind Standard table related with vk11, vk12, vk13.
I'v found some table like konp and a601 ~ a609, also I want to know about those table of uses?
I am starting to study about vk11.
please help me.Hi Reena,
Then main pricing related tables are KONH header details, and KONP item details.
The other tables your have mentioned like A601,A609.............. all these are condition tables, which stored the values which you save for access sequence combination.
Eg : For condition type PR00, lets us assume one key combination customer/material, so these details will be saved in condition table which is initially generated with fields as a part of condition techinque.
So here the table would be A005 i guess or its A006.
So like wise there will be condition tables for each key combination.
Regards
v K
Maybe you are looking for
-
I got a new laptop and downloaded PSE7 from the Adobe website. However, it won't recognize my serial number. I tried chat, they asked for the serial number and said it should work. But it doesn't. I type in the serial number and a red X shows behind
-
My account have problem. After sign in it automati...
i found problem on my skype account. when i already sign in. it automatic sign out with in 30 seconds. i try both of Notebook and mobile. please help!!!!
-
Preserving Illustrator Elements in Multipage Document
Hi all, My employer just recently upgraded our Design Team to CS5. Previously, we had been making individual Illustrator documents and combining them in Acrobat. When we do that now, and reopen in Illustrator to edit the document, the elements break
-
Can't import landscape photos into iWeb
I've started up iWeb for the first time in ages, and suddenly find I can't drag and drop landscape-oriented photos onto any page. Portrait photos are fine, but the landscape ones appear as a box with the file name inside and no image. This happens wh
-
Since I updated can not delete photos from camera rolls the option to delete photos one by one has also vanished how do I delete now to make more room