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

enhancement on T-CODE VA01

Former Member
0 Likes
801

Dear sir's

Our sales docuement number is using the external assigned by user key in then user request to help them that sales docuement faster entry for a sale document number field vaue copy from purchase order number fields by user exit program .

I have tried to write short code on the exit program MV45AFZB on th FORM userexit_check_vbak USING us_dialog.

the ABAP/4 code is that MOVE:ZQMNUM+3(9) to vbak-vbeln.

and I also try to create the sales docuement and save that , the system deosnt respond any error message .

but use t-code va02 didnt found that sales docuement and i check the table vbak also not yet data exit.

Have any one could suggest me that how to sovle this request?

Sue 20081113

Dear sir's

Our sales docuement number is using the external assigned by user key in then user request to help them that sales docuement faster entry for a sale document number field vaue copy from purchase order number fields by user exit program .

I have tried to write short code on the exit program MV45AFZB on th FORM userexit_check_vbak USING us_dialog.

the ABAP/4 code is that MOVE:ZQMNUM+3(9) to vbak-vbeln.

and I also try to create the sales docuement and save that , the system deosnt respond any error message .

but use t-code va02 didnt found that sales docuement and i check the table vbak also not yet data exit.

Have any one could suggest me that how to sovle this request?

Sue 20081113

3 REPLIES 3
Read only

Former Member
0 Likes
635

Hi Sue,

As i understood so far,Sales order is an auto generated number pre-configured by the SD consultant to fall within that number range...

The following are only my suggestions .....

(1)to check if it is possible through configurations for having a number range similar to the external number provided these 2 are directly linked and that there is always a Sales order linked to every external number..........

(2) we have a field called PO refernce number in the header.We can fill this field in the user exit of the include MV45AFZZ in userexit for move field to vbak and then in all the custom reports and programs link this field and standard VBELN number so that SAP flow is not affected.

(3) check for enhancement spots wherein the vbeln field is overwritten immediatly after number generation...Please note that overwriting the standard field is a tiring task.,especially a key field..because we need to clearly understand which all tables are being updated with this number..so if the field vbeln has a parameter name(press F1 on Vbeln field and you will get the detail list ,with one field called "parameter name" ) assigned to it overwrite it with the required number so that all standard tables are relected with this number....(use F1 helo set/Get parameters to learn more)..try filling this parameter using set parameter statement OR check for badis and user exits

If I come across a possible exit ,will update you

Hope it helps

Regards

Byju

Read only

Former Member
0 Likes
635

Byju,

this requst has been sovled .

Thanks for sharing your experience .

Sue20081118

Read only

0 Likes
635

Hi, Joseph Fan , I have a same requirement now, can you tell me how you solved the requirement please, thanks.