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

Condition types

Former Member
0 Likes
850

Hi all,

how to ignore some condition types ?

my requirement is for order type CR or RE I need to ignore zfus,zfu4.

so plz help how can i write code for this

if komk-auart = 'cr' or komk-auart = 'er'

in this i need to write code ?

endif.

it is very urgent........

thanks in advance

Rambabu.A

1 ACCEPTED SOLUTION
Read only

dev_parbutteea
Active Contributor
748

Hi,

if its in a loop then

loop......

if komk-auart = 'cr' or komk-auart = 'er'

if <b>komk-condtype</b> = 'zfus' or

<b>komk-condtype</b> = 'zfu4'

continue.

endif.

endif.

Regards,

Sooness

5 REPLIES 5
Read only

Former Member
0 Likes
748

Hi

Where you wants to ignore these condition types?

What is your exact requirement?

You can ignore them in the config of pricing procedure based on orders, which is of a functional guy's work.

Reward points if useful

Regards

Anji

Read only

0 Likes
748

Hi Anjireddy,

i need to write code in one routine that is in vofm t.code

whenever we create sales order it is picking all condition types in my situvation

if it is cr or re then i need to ignore these condition types

Thanks in advance

Rambabu.A

Read only

0 Likes
748

Hi,

I guess you will have to ask this in the SD Forum as it seems to be more related to VOFM transaction....!!

<b><i>Do reward each useful answer..!</i></b>

Thanks,

Tatvagna.

Read only

dev_parbutteea
Active Contributor
749

Hi,

if its in a loop then

loop......

if komk-auart = 'cr' or komk-auart = 'er'

if <b>komk-condtype</b> = 'zfus' or

<b>komk-condtype</b> = 'zfu4'

continue.

endif.

endif.

Regards,

Sooness

Read only

0 Likes
748

Hi,

my problem was solved,

i wrote code in one user -exit to delete the condition types for ER and CR order types.

like this

IF VBAK-AUART = 'RE' OR VBAK-AUART = 'G2'.

READ TABLE XKOMV WITH KEY KSCHL = 'ZFUS'.

IF SY-SUBRC = 0.

DELETE XKOMV INDEX SY-TABIX.

clear xkomv.

ENDIF.

Thanks to every one.

Rambabu.A