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

Includes in Function Group after copying from std. master program

Former Member
0 Likes
2,627


Hi,

I have created a function group from std. program SAPLMGMW. I have copied a few relevant screens from standard

and I now have to make the MODULE's in the copied screens work.

The problem is that there is a lot of variables that come from standard includes.

At syntax check I have a number of variables that fails.

I then copied the missing includes into my FG but even if I can doubleclick on the variable and it opens the include for definition, it still fails the syntax check.

Do I have to handle the includes in a special way ?

Peter

11 REPLIES 11
Read only

Former Member
0 Likes
1,910

Peter,

did you add the includes inside the top include of the function group or somewhere else?

V.

Read only

0 Likes
1,910

They are outside the TOP include for FG.

The TOP include contains 4 includes from the copy:

Read only

0 Likes
1,910

Try to activate it by selecting all the list of entries together from the activation dialogue.( Press F9 )

R

Read only

0 Likes
1,910

The FG is activated at top level and also the includes.

Read only

0 Likes
1,910

Hi Peter

It's not clear which is your problem?

If you copy the function group you can decide which objects (functions, includes) to be copied,

After copying them you shouldn't have syntax error

Max

Read only

0 Likes
1,910

If these are activated, what is the issue?

Did you use "Activate anyway" option while activating it. If not then you can ignore the syntax check, as It would not have been activated if you "really" have syntax errors.

Also try to generate the main program by using Program-->Generate option. If it goes through, you can safely proceed.

R

Read only

0 Likes
1,910

Hi,

Activated means "Activate anyway" even though there are errors.

I have picked out one main screen and 4 sub screens that I want to use for my own fields.

I the main screen there is a number of MODULE command with standard code. According to SAP I have to correct the errors after this copy of screens.

That means a line like:

DATA: LV_VAR Type C will be caught in the syntax check even though if I doubleclick the variable it finds the declaration in a standard include.

Hope this can shed some lgiht.

Read only

0 Likes
1,910

Hi

It seems you have deleted some standard includes in yours function group

I don't understand what you mean with "to copy main screens":

the screens belong to the function group, so after copying a std function group, all screen will be copied automatically

Max

Read only

0 Likes
1,910

A main screen is a screen type, for instance Basic Data in Material Master.

I copy from the standard program i.e SAPLMXXX to a custom function group.

Read only

0 Likes
1,910

Hi

Yes I know it, so:

you only need to create a copy of some screens of the funciton group MGMW and so you've copied them in your own Z function group

of course the screens still use modules and variables defined in the standard function group, so you need to use all includes of the std fg also in your fg

it's not important to copy them (if you don't need to do some modifications).

Anyway if you need to create a user subscreen in the material master data transaction, there is a particular procedure to do it

Max

Read only

Tomas_Buryanek
Product and Topic Expert
Product and Topic Expert
1,910

Rebuild object list function might help. How to:

SE80 -> open Function Group -> right click its name in repository browser list -> Other functions -> Rebuild object list

Or another "hidden" function is in SE37. Enter your function module (do not Display/Change) -> Utilities -> Repair Func. Group.

-- Tomas --