‎2015 Aug 06 4:39 PM
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
‎2015 Aug 06 4:54 PM
Peter,
did you add the includes inside the top include of the function group or somewhere else?
V.
‎2015 Aug 06 5:12 PM
They are outside the TOP include for FG.
The TOP include contains 4 includes from the copy:
‎2015 Aug 06 5:20 PM
Try to activate it by selecting all the list of entries together from the activation dialogue.( Press F9 )
R
‎2015 Aug 06 5:24 PM
‎2015 Aug 06 5:33 PM
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
‎2015 Aug 06 5:36 PM
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
‎2015 Aug 06 6:51 PM
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.
‎2015 Aug 06 7:01 PM
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
‎2015 Aug 06 10:46 PM
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.
‎2015 Aug 07 10:18 AM
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
‎2015 Aug 07 12:47 PM
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.