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

Reg : SD pricing user exit

Former Member
0 Likes
1,255

Hi Guru's,

I need help on sd pricing user exit..

when preceding order document do not have ZW15 condition type,if we try to create the return order using the preceding order , we will not have ZW15 condition type in the returns order. But if we try to enter ZW15 condition type manually in return order,system should throw a warning message that manual entry of ZW15 is not allowed.

i need write code for this concept..Please provide exact user exit for this concept.

Regards

P.Senthil Kumar

Hi Guru's,

I need help on sd pricing user exit..

when preceding order document do not have ZW15 condition type,if we try to create the return order using the preceding order , we will not have ZW15 condition type in the returns order. But if we try to enter ZW15 condition type manually in return order,system should throw a warning message that manual entry of ZW15 is not allowed.

i need write code for this concept..Please provide exact user exit for this concept.

Regards

P.Senthil Kumar

9 REPLIES 9
Read only

Former Member
0 Likes
1,137

its a config issue , ask ur FC to fix it....

u need to check its pricing procedure in order to accept manual values.

regards

Prabhu

Read only

0 Likes
1,137

Hi Prabhu..

Our function consultant tried this scenrio but he unable to find the soution..so aked me to give the soution..

Please help me on this issue..

Regards

P.Senthil Kumar

Read only

0 Likes
1,137

in user exits u can manipulate with values not with the properties of the condition types....anyhow

check these settings.



spro--->SD--->basic function-->pricing--->condition types --->select ur ZW15-->check field values of 
*Manual entries*
(b3rd block with heading Changes which can be made )...

regards

Prabhu

Read only

0 Likes
1,137

Hi Prabhu,

spro->SD->basic function>pricing->condition types ->select ur ZW15>check field values of

Manual entries

(b3rd block with heading Changes which can be made )...

In this settings, I need to check preceding order document whenther its having ZW15 condition type or not..If ZW15 conditon type not found in preceding order then if ur try to enter the ZW15 condtion type mannually then i want to show error msg..

Can u tell me how to do this in settings.???

Regards

P.Senthil Kumar

Read only

0 Likes
1,137

in that case go with RAJU's solution......in that user exit ( MV*FZZ ) , processing Order will copy all condition types from ref.order....so u can put a logic.

regards

Prabhu

Read only

Former Member
0 Likes
1,137

Hi,

We are using FORM USEREXIT_MOVE_FIELD_TO_VBKD. of include MV45AFZZ for the same.

First part is straight forward viz. check if the original order has got the condition 'ZW15' if yes then no validation is required.

In case it is not present:

Ckear w_count.

loop at xkomv where ( kposn = xvbap-posnr )

And ( kschl = 'ZW15' ).

w_count = w_count + 1.

Endloop.

If w_count > 1.

Give Appropriate message.

  • Message e057(znov) with 'ZW15'.

Endif.

I hope this kelps,

Regards

Raju Chitale

Read only

0 Likes
1,137

Hi Raju Chitale,

Thaks for your response..

Thanks for your input..

Ckear w_count.

loop at xkomv where ( kposn = xvbap-posnr )

And ( kschl = 'ZW15' ).

w_count = w_count + 1.

Endloop.

If w_count > 1.

Give Appropriate message.

  • Message e057(znov) with 'ZW15'.

Endif.

In this case, I need to check preceding order document whenther its having ZW15 condition type or not..

If ZW15 conditon type not found in preceding order then ur try to enter the ZW15 condtion type mannually then i want to show error msg..in this code how to check the preceding order having condition type or not.???

Regards

P.Senthil Kumar

Read only

0 Likes
1,137

Hi Raju,

Please suggest me how to write code for getting preceding document no in this user exit

Regards

P.Senthil Kumar

Read only

0 Likes
1,137

Hi Raju,

Any inputs for Queries..your suggestions gave some usefull information..

Regards

P.Senthil Kumar