on 2019 Mar 30 5:59 AM
Hi ,
i have total four condition type in order level and these condition type will be determined through condition records,
But as per business requirement ,while billing system does not redetermine one condition type and it should copy as it is as sales order ,,we have maintained pricing type 'C' in copying control.
I have done little R& D to solve this issue and finally found one enhancement RV61AFZA,but i am not understand how to write the code in this one can you please help to solve this issue.
Request clarification before answering.
Hi,
I have resolved the issue by using the below code.
FORM userexit_pricing_copy.
ENHANCEMENT 1 ZEN_ZCCC_BYPASS.
CHECK VBTYP_NEW CA VBTYP_FAKT.
IF KONV-KSCHL = 'ZCCC'.
* KONV-KSTEU = 'D'. COMMETED
KONV-KSTEU = 'C'.
CLEAR KONV-KVARC.
ENDIF.
ENDENHANCEMENT
Regards
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Pricing Type C copies manual condition types in billing document and re-determines the other condition types.
As I understood your requirement that you want one that system should copy sales order pricing into billing document and for rest, it should behave like pricing type C. Is it so?
You may any way use KONV logic but it would be lengthy. Logic which I have provided you in my earlier reply is a simple one.
Rest is on you.
Regards
Kamlesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kamlesh,
What are the changes need to be done,you have not mentioned complete corrections.
These are the details in my system.
Copying control pricing type type is "C".
System will fetch ZCCC value from condition record with scales(VK11),when we will create billing this condition type should copy from order but not form VK11.
condition type ZCCC- cutting charges
Condition class -A
Calculation type - A
Condition category -blank
Scales also active
Could you please help details information.
Regards
Ravi
Hi,
I had a similar requirement in on of my previous project. We achieved this by following the oss note 24832.
Logic 1
In program RV61AFZA, following code could be written by the ABAPer.
For Condition type : Z001, Z002, Z003 Pricing Type C should triggered and for Z004 pricing type D should be triggerd.
Logic 2
Assuming that condition type for which pricing should be copied from the sales order is not a tax condition and no condition category is there.
If you do not want to hard code the condition types then you can maintain condition category T685A-KNTYP = X for Z004
Logic would be to trigger pricing type D if T685A-KNTYP = X
Please take test the same and share the outcome
Regards
Kamlesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kamlesh,
Thank you for your reply,
i have found same note in google,but i could not find the solution.
we do not want to redetermine below condition type in billing.
Copying control condition type is "C".
condition type ZCCC- cutting charges
Condition class -A
Calculation type - A
Condition category -blank
Condition type is variant condition type
System picking default value KONV-KSTEU = D.
Can we make any corrections konv table will it work.
Regards
Ravi
You have not mentioned what is your current copy control and item category settings without which, it may not be possible to guide you in the right direction.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 29 | |
| 14 | |
| 14 | |
| 6 | |
| 5 | |
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.