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

Function Module

Former Member
0 Likes
888

Hi,

When I call any FM , how do I know which fields of (import-tables-exceptions) to uncomment?

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
865

Hi,

The import parameters in the FM are the export parameters in abap programs. Goto se37 give any function module name and then click on display, then after goto Import tab there is one column Optional if the parameter as marked as optional then it should be optional other wise it is mandatory.

Rgds,

Bujji

8 REPLIES 8
Read only

Former Member
0 Likes
865

hi Shaheen,

THat is purely based on the requirement for which you are making use of the FM.

Regards,

Santosh

Read only

Former Member
0 Likes
865

go to SE37

open the FM

watch IMPORT and EXPORT tabs.

If OPTIONAL is checked, U gave to use that parameter

Reward if useful

Read only

Former Member
0 Likes
866

Hi,

The import parameters in the FM are the export parameters in abap programs. Goto se37 give any function module name and then click on display, then after goto Import tab there is one column Optional if the parameter as marked as optional then it should be optional other wise it is mandatory.

Rgds,

Bujji

Read only

Former Member
0 Likes
865

Whenever U call a FM .. if any field is mandatory .. then

automatically U'll get that field uncommented ...

Read only

Former Member
0 Likes
865

When you call FM you will automatically get the commented for the fields that are not mandatory.

Otherwise go to that FM and check if pass value check box is selected against the fields or table. If it is checked means those parameters or mandatory.

Reward points if useful.

Regards,

Nageswar

Read only

Former Member
0 Likes
865

Hi shaheen khan,

It is fully based on your requirment, but atleast you should uncomment mandatory fields otherwise it is going to dump..

How to see Mandatory fields in function module?

Goto SE37-> give function module name -> press F7-> In importing (or) Exporting (or) Changing *See the optional (5th one from left) column-> If it is unchecked then it is the mandatonal otherwise it is mandatory...

Plzz reward if it is useful,

Mahi.

Read only

Former Member
0 Likes
865

Hi,

It depends upon your requirment which fields needs to be passed.

Thanks,

Sriram Ponna.

Read only

Former Member
0 Likes
865

Hi,

The required Export and tables parameters are generally uncommented when u call an FM using Pattern. Others are optional.

It is generally a good practise to uncomment all the exception parameters.

Import parameters are not mandatory so use them only if u need some info back from FM.

Regards

Gaurav