Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

user exit: sales order VA01: Customer number

Hi friends,

While creating Sales order, before saving the document, I need to check the Customer (Sold to pary?) details in KNEX table. KNEX-KUNNR KNEX-TDOCO KNEX-DHRCO. if condition fails, I need to display an error message V1525,

which should contain

1)customer(sold-to -party?KNEX-KUNNR)

2)partner function PARVW (VBPA-PARVW?)

3)country LNDEX KNEX-LNDEX

Functional spec says, 1)V45A0002

2)V45A0003

3)V45S0001

4)V50EPROP User exits can be levaraged.

1)triggers before we enter customer (sold-to-party) in VA01. so may not be used.

2)V45A0003: i am able to fetch KUNNR, LNDEX(land1), and able to validate KNEX Fields.

But I need to fetch partner function (PARVW), which exist in VBPA , KONP etc tables. But I am not able to write the query, which sould have all the primary keys of the table.

Please help me the way.

i) the above user exits can be used?if not, help me with user exit name.

ii)if yes, how to fetch PARVW ..as all the primary keys must be used in the select query.

Please help me ASAP.

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question