Skip to Content
author's profile photo Former Member
Former Member

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

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 10, 2007 at 09: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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.