cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

sap billing bypass condition type

former_member242092
Active Participant
0 Kudos
1,089

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.

Accepted Solutions (1)

Accepted Solutions (1)

former_member242092
Active Participant
0 Kudos

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

Answers (3)

Answers (3)

former_member183501
Active Contributor
0 Kudos

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

former_member242092
Active Participant
0 Kudos

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

former_member183501
Active Contributor
0 Kudos

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

former_member242092
Active Participant
0 Kudos

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

Lakshmipathi
SAP Champion
SAP Champion
0 Kudos

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.