01-10-2007 5:50 AM
Hi,
Using the FB01 tcode with condition as document type (ZF) and company code
i want to substitute values should come in the next screen.
i am passin the document type and the company code in the FB01 initial screen (100) and added field exit for Cost centre.
if the Doc type ZF and company code is 0245 then the field exit shoul trigger and give the defaul cost centre value if it contain any cost centre valu it over write the existing if it is empty i will write the defauls cost centre value.
Thanks & Regards,
Nelsons......
01-10-2007 9:24 AM
Hi,
As i have understood, if ur doc type is ZF and company code is 0245, then you want to pass the value to cost centre field in next screen.
You can use program RSMODPRF. here enter the data element of cost centre field and assign the screen no and program name (for FI docs prg name would be SAPMF05A).
After assigning program and screen no , Create the function module where u have to write an 'if' statement for assigning value to cost centre (i.e export field in FM)
the values for company code and document type can be fetched from their respective parameter ids i.e. BUK and BAR.
Regards,
Seema Jaisinghani
01-11-2007 5:16 AM
Hi,
i had wrte the code in the FM how to get the field values comapmy code and the document type using the BUK and BAR as the parameter id.and where we need to write.
Thanks & Regards,
Nelson..