cancel
Showing results for 
Search instead for 
Did you mean: 

How to get sales order number before saving in VA01 by using parameter

Former Member
0 Kudos

Hi,

Please let me know how to get sales order number in transaction VA01 before saving it by using parameter in SU3.

I tried to set parameter in SU3 "AUN", but it is not working as required, means sales order number is not appearing before saving.

can you please suggest how to do it?

Thanks & Regards.

Rahul Verulkar

Accepted Solutions (1)

Accepted Solutions (1)

Lakshmipathi
Active Contributor
0 Kudos

Can you please let me know as to why such a requirement is needed ?? Of course, this may be achieved with the help of User exits in the program MV45AFZZ - USEREXIT_NUMBER_RANGE where you have to check the following fields from VN01

NRLEVEL last number used

NRRANGENR Object (should match with field NUMKI of TVAK table)

thanks

G. Lakshmipathi

Former Member
0 Kudos

Hi,

In case of Support project, we get the high severity issues from users and needs to be closed withn 2 hours... so what we do we get the requirement from user and checking the same in production from our id, but we can not save the sales order as we are not authorized to do the same, so in such cases it is required to get the sales order number before saving... where we can guide the users.... but actuallly it is not getting saved in the table until and unless u save it manually. It works like a material master... when u create material master, the material number appears in advance in material number field "MATNR"

If it is possible can you please suggest step by step to work on parameter in SU3 for sales order number before saving.

Thanks & regards,

Rahul Verulkar

gomatheeswaran_palaniappa
Active Contributor
0 Kudos

Hi,

As Lakshmipathi has pointed out, you can check the current number by:

1> Going to the table TVAK. You can get the number range assigned for the doc type

2> Now Go to VN01 and check your number range. There you can see the current number. System will propose the next number to it while creating the document.

This will work if you have access to view tables and T-code VN01 in PRD.

Regards,

P Gomatheeswaran

Former Member
0 Kudos

Hello,

Instead of VN01, you can use the FM "NUMBER_GET_NEXT"

With

NR_RANGE_NR - "Selected from TVAK"

OBJECT - "RV_BELEG"

Regards,

Dalmo

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

you can fill you parameter with routinge SAVE_PREPARE or SAVE in MV45AFZZ