cancel
Showing results for 
Search instead for 
Did you mean: 

Company code and plant should get defaulted from PO Document Type

Former Member
0 Kudos

Dear All,

We have three company codes 1000 ,1010 ,1020 .We have three purchase document types.NB,NB1,NB2.My requirement is if the user selects document type NB system should automatically take company 1000 and plant 1000 .Same is the requirement for other 2 documents . Is there any settings from which we can achieve company code ,plant getting defaulted according to document type ?

Thanks & Regards

Abhijit Das

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Dear Abhijit,

As per my knowledge , there is no configuration for doing this.

Your requirement can be fullfilled by writing few lines of codes..

Ask your ABAP team to write a program accordingly.

Hope this clears.

Regards

Utsav

Former Member
0 Kudos

@Utsav

Can you please let me know what should be the logic which I will pass to the ABAPER. Have you yourself have ever done it ?

regards

Abhijit Das

Former Member
0 Kudos

Dear,

Ask your Abaper to write code in GUIXT scripts....

There if you select particular document type then by default in PO it will popup your plant and company code.

The above mentioned functionality we do not have in our current projetc, but related tho this we have done it by using the same scripts.

Try def it will work.

Regards

Utsav

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

U can do in personal setting the default vaues for ME21N screen for header data and item data.

but u cant have multiple default values based on doc type

Former Member
0 Kudos

Dear Friend,

With respect user id you can set default setting for the Purchase order, in case of for the user id 1 you can set NB as default in that company code 1000,and for the user id 2 for that NB1 as default and 1010

in case of same user id you can not set more then one document type default settings

Regards

Pramod