Application Development 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: 

Suppress condition record while creating Billing document

sri6666
Active Participant
0 Kudos
373

Hi ABAP Experts,

I am tiring to suppress one Z* condition record while creating Billing document (VF01). i tried many exists changes the KONV structures and other data. but its still appered in conditions tab.

Can some one help me how to supress the condition record via coding

2 REPLIES 2

thilakan_t
Participant
0 Kudos
299

I believe VOFM routines to be used for this.

Create a new custom routine in VOFM->Requirements->Pricing. This routine number must be assigned to the condition type in SPRO config. Check with functional consultant for the config.

The condition type will be considered if SY-SUBRC = 0 at end of the routine. It will not be considered if it is 4.

You can refer other standard routines for the sample logic.

sri6666
Active Participant
0 Kudos
299

we tried Via routine but even set sy-subrc = 4 also condition record appered in Conditions tab. any way i have used pricing user exit and validate some conditions and deleted that condition record from KONV structure and works fine.