cancel
Showing results for 
Search instead for 
Did you mean: 

System check for PO number with reference to document type

Former Member
0 Kudos

Hi Gurus,

How can i make the system check for PO number while order creation with reference to sold to and document type.

it should avoid duplication of orders with reference to PO numbers.

Please advice

thanks in advance

Sunil

View Entire Topic
Former Member
0 Kudos

hi,

in VOV8 tick check purchase no.

regards

sriram.

Former Member
0 Kudos

Hi Sriram,

Problem here is i am able to get warning message when i input A in the order.

But i want a error message of type E.

This should not save the document.

Sunil

Former Member
0 Kudos

Hi Sunil,

What is the type of order you are creating...

Is it created manually in VA01...?

or is it created by EDI IDOC...?

Please specify...

Regards,

Syed Nasir

Former Member
0 Kudos

Syed,

requirement here is both EDI related and manual type of orders.

both are presnet and the logic should work for both...it should throw an error in either of the case....

Sunil

Former Member
0 Kudos

Hi,

If you have EDI related orders then with the warning set up at order level will not solve.

IDOC with error can be once again re-processed and the IDOC will reach 53 status. This will not work..

If it is manual / EDI related you may have to use a USER EXIT in order to fix this and throw an Error...

Regards,

Syed Nasir

Former Member
0 Kudos

Hi,

any idea what user exit i have to use...or where can i find the user exit related to PO number checking...

please help

Sunil

Former Member
0 Kudos

Hi,

Let me check and i will confirm later...about the USER EXITS in VA01 T-code...

Regards,

Syed Nasir

Former Member
0 Kudos

Hi Sunil,

Here are the details of USER EXIT at order level in VA01 t-code related to PO number checks:

Program running in the background of VA01 t-code is: <b>SAPMV45A</b>

Under this standard SAP program we have another main program: <b>SAPLXVVA</b>

Under this we have 3 user exits, out of which one will be responsible for processing the PO numbers in orders

User Exit available is: <b>ZXVVAU09</b>

This will check the PO number in the sales booking screen for the first time. VA01 Create with reference to another order and PO number.

Once again it will check the PO number in the main screen of sales order (VA01 Create without reference) once we key in the PO number, it validates and returns to the item level.

<b>So we can have user exit ZXVVAU09 modified in such a way that it stops processing the order by giving an ERROR.</b>

Hope this will help you out

Regards,

Syed Nasir

Former Member
0 Kudos

Thanks a lot...

Sunil