on 05-08-2009 11:48 AM
Hi,
I am working on HCM interactive forms.
Normally we get values from info types, which we directly configure and we get the values. No coding is requried. but if the values are in some tables which are not info types, then where to write the coding for that.
Thanks,
Nikhil
Hi,
Define a Generic Service and Implement the BADI for Generic Service.
For More details:
1.Goto the SPRO Settings -> Personal Management ->HR Administrative Services->Configuration of Forms/Processes->Configuration of Forms->Cross-Form Settings->Define Generic Services.
and also, Refer this link, [http://help.sap.com/saphelp_erp2005/helpdata/en/42/f273461e5132c3e10000000a1553f6/frameset.htm]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For a generic service, you will not really have a "table" so to speak. You will pass the service your form fields that are needed. You will notice in services that the fields that come in (service_dataset) have the structure:
-fieldgroup
-fieldname
-fieldindex
-fieldvalue
So when you pass your fields over to make up your "table", you are actually passing EACH field with it's index set such that all fields with the same index represent a "row" in your table. So in effect, it would be kind of like....
field1(0) field2(0) field3(0)
field1(1) field2(1) field3(1)
field1(2) field2(2) field3(2)
It sounds limited I know, but the idea of the "generic" services is they don't "know" the types of fields you are passing in. This is "described" in your field info method by binding them to a data type (data element).
When working with one of the standard services, like SAP_PA, you will use a "line" type structure...then it knows you have multiple "rows" of data and handles it as such (much like you have to do yourself as described above for a generic service).
Hope this helps. Maybe if I have time, I will write a longer "how to" blog about this....but I have several others in "draft" versions now to finish. haha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes. What this will do is give you "visibility" to any fields you have mapped to that generic service's operations. What this means though, is that you can't just add a generic services to soley have it do the initialization for you. However, there are ways around this. I can't give all my secrets away but let's just say I will own create a "dummyInit" operation and have any fields I might want accessible in "initialize" to that operation. Hopefully, you can guess how this works.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.