on 2016 Jun 01 5:04 PM
Hello Experts ,
How can we do mass copy functionality in sap specification workbench . Looks like easy experts can only do mass change . Do we have any standard way of doing this or some codes which we can write in rule editor which copies VAT from one place and add to other .
Regards,
K G
Request clarification before answering.
Hello Krishna,
You can - using the standard functionality called "copy template" - copy all data or only specific data from specification A to specification B. Please read the online help to find out more on that.
It makes no sense to copy data from specification A to tens or hundreds specifications. If this is needed you should use inheritance instead (see online help for details).
Hope this helps
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear KIrshna
in parallel thread you have asked for a "rule example". One example is shnown in online help. Here composition is read and the calculation is started.(here density is calculated). I would expect that you can use something similar and just read component from VAT A and the just write the same components etc. in target VAT. Not knowing the details of the SERC approach and the delivered rulesets as content here: You need such "writing" to Composition very often.
C.B.
Hi Krishna,
a 1:1 copy of data can be done with a rule set whose .rul-file needs to be developed. However, just for copying data that's not rocket science.
Ralph
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Krishna,
That is described as Christoph mentioned. So the code should look like:
FACTS
RECORD
INPUTCOMP(IN)
INCOMPONENTS
OUTPUTCOMP(OUT)
OUTCOMPONENTS
END
RULES
RULE COPYCOMP
IF TRUE()
THEN
OUTPUTCOMP.NEW.OUTCOMPONENTS:=INPUTCOMP.INCOMPONENTS
COMMIT OUTPUTCOMP
END
END
I haven't tested this! And you need to take care of the correct mapping in the database.
Ralph
Dear Krishna
the "trick" is now the set up of the database; and the "issue" is: if you would like to be "very" flixible you need ot do a lot of set up.. e.g. any combination of VAT 1 and VAT (acording tomy understanding) would be one "configuration" in database; the rule as such is the same
(e.g. Standard composition => Legal Composition)
C.B.
Dear Krishna
EHS Expert (either easy or normal) does have a "different" purpose. These are dedicated for "calculating" not "copying"
For copying: you have only the functionality in CG02/Cg02BD nothing else. You can (if needed) extrakt via export and than upload via import but this is no user unteraction and doen normally by support etc.
Conclusion: Nothing in place. You need to look for your own enhancement.
C.B.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.