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

Partner function

Former Member
0 Likes
974

Hi ,

I need help on user exit. Ihave to write logic such that when evr in transaction va02/va01 partner function 'ZT'(override carrier) or 'CR'(forwarding agent ) is selected only certain vendor's name should be allowed else a error message is to be displayed.

What is the user exit for doin so..and how to do that...sample code is appreciated.

thanks,

Das

8 REPLIES 8
Read only

Former Member
0 Likes
889

Hi

Try to see the exits EXIT_SAPLV09A*

U can try to add an an your fm in table TPACHECK

Max

Read only

0 Likes
889

Hi Max,

But i think that the exit only works while order create it doesn't work while change order.

Thanks,

Das

Read only

0 Likes
889

Hi,

Thanks for the replies.

Could anyone help me with sample code on this?

I need to perform a validation for entries in partner when partner functions are 'CR' and 'ZT'. Like if it is CR then only 2 entries are possible either 'XYZ1' or 'XYZ2'. And if 'ZT' only

'ABC1' or 'ABC2' are allowed. If any other entries are made i need to give an error message.

This is for when making entries in sales order.(VA01/VA02).

Please provide some sample code.

Thanks,

Das.

Read only

0 Likes
889

Please advice.

Thanks,

Das.

Read only

0 Likes
889

Hi,

I have worked on this and used "userexit_save_document_prepare" for it. I am able to display a error message but after the error message is disabled all the fields on the screen are greyed out and am not able to enter a correct entry as followed by the check performed.

How can i do that?

Please advise.

Thanks,

Das

Read only

Former Member
0 Likes
889

hi das

try this BADI .. BADI_SD_V46H0001

Method <b>EXIT_SAPLV46H_002</b> Customer Function for Partner Changes

inplement this BADI--> write some code here >put break point> swhtch on the update debugging mode. then try whether will it sutes for u.

i hope it will works.

Please Close this thread.. when u r problem is solved

Reward if Helpful

Regards

Naresh Reddy K

Read only

rmazzali
Active Contributor
0 Likes
889

use enhancement V09A0003 and specify that partner types ZT or CR are determined by userexit in the partner procedure (tcode VOPAN)

pls. reward if helpful

regards

Roberto

Read only

Former Member
0 Likes
889

thank u all.