on 2010 Sep 28 8:34 AM
Hi,
I need to know how to populate the RefSpec field under Reference Tab in CG02 from an ABAP program.
I was able to populate the Identifiers tab and the physical/chemical properties using the FM C1E5_SUB_EXPERT_DATA_CHANGE.
Can i populate the Reference tab using the same FM? if yes, which parameter/table should i pass the value.
thanks.
Request clarification before answering.
Hi engrtyrant,
If you want to change specification data you would usually use function group C1F5, but please be aware that the function modules are not released.
FM C1F5_SPECIFICATIONS_MODIFY should do the work. You need to set the scenarion to spec head and reference with an exclusive lock ('X').
The tables X_SPEC_HEAD_TAB and X_REFERENCE_TAB need to be populated. AFAIK, for the specification header the specification ID, specification type and authorization group need to be present.
There's a specialty for the reference table: you need to retrieve a internal record number (RECN) first in order to create a new reference(e.g. FM C149_RECN_GET_NEXT). Within this table the fields recnroot and recnref also need to be populated.
Please remember that from a functional point of view reference within specification supports to my knowledge only the transfer of all specification values (identifiers, properties, etc.), so no selection / restriction is possible.
I hope this helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Joachim,
I think the BADI's in FG 1077 such as bapi_bus1077_change are officially recommended to update specification data for custom development. Sure, these call the C1F5 function modules, so they are essentially the same, but I believe the BADI's are better documented and I think you can even find example programs for how to use them (by searching OSS).
BR,
Mike
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello all
as explained it is always better to use the BADIs. The Function modules are internally used (form the SAP perspective). If you perform later SAP updates/upgrades etc. you are on the save side if you use the BADIs and if you try to prepare an OSS you will be supported. If you try to prepare an OSS regarding the function module in most cases you will not be sucessful.
But may be take a look here:
and here
The use of the BAPIs is still not easy.
With best regards
C.B.
PS: take a look here may be:
http://richard-harper.me.uk/sfmdr_sitemap/fglists/groups/z1GY.html
or here
http://www.se80.co.uk/sapreports/r/rc1_/rc1_1077_bapi_example_change.htm
Edited by: Christoph Bergemann on Oct 2, 2010 5:16 PM
Edited by: Christoph Bergemann on Oct 2, 2010 5:19 PM
Edited by: Christoph Bergemann on Oct 2, 2010 5:20 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.