Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

VK11/VK12: Automatically create anothercondition record upon saving

Former Member
0 Likes
2,661

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 AM

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 AM

5 REPLIES 5
Read only

Former Member
0 Likes
1,903

Hi,

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

Read only

0 Likes
1,903

Hi SAP@AMS,

Thank you for your response. I ask my colleague about your response and he said that I should use BAPI for this requirement. Can you justify why should I use BTE instead?

Thanks and Best Regards,

binaryghost

Read only

Former Member
0 Likes
1,903

Both BTE and Bapi are function modules:

"We came with a requirement to automatically create another condition record after the user clicks the save buttons.

But validation can be done by only with exits.So I reffered BTE for this validation.

I hope you can use bussiness object but we can not capture the values at runtime.

Based on the requriment you can choose the things.

If possiable try to use your BAPI in these BTE.I hope you can understand.

Thank you,

Thanks,

AMS

Read only

0 Likes
1,903

Hi SAP@AMS,

Thank you for your response. I implemented the BADI and when I debug, it seems to be passing thru that method when I click the save button. Is there any reason I should use BTE instead? now my next step is trying to create a condition record. I'll keep you posted on my progres..

Thanks and Best Regards.

Read only

0 Likes
1,903

Hi,

If your problem is resolved please close this post and try to place some of the hints about this exit that are helpfull to resolve.

So this may helpfull to some other .

Thank you,

Thanks,

AMS