Application Development 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: 

How to write the code for IMPORT and export in Field exit

Former Member
0 Kudos

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......

2 REPLIES 2

Former Member
0 Kudos

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

0 Kudos

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..