on 04-27-2012 10:33 AM
Hi experts,
In Grantor Management within CRM 7.0, we have an Adobe form linked to Grantor Application (CRM ORDER of BUS2000270, process type GAP).
We want to create an attachment for this CRM ORDER with the use of a word template.
We used the SAP note 1566793 to do so and everything worked fine. But now the requirement is to add data from the Adobe Form and put it in the word template.
We are able to read the Adobe Form (which is an XML file).
The word template is handle by a Web Service (created via the Web Service Tool). And the problem is that the Web Service Tool gives only "standard" fields from the CRM ORDER (including customer specific in CRMD_CUSTOMER_* structures).
I'd like to be able to enhance the input structure of the generated function module behind the Web Service, but I don't know how (this structure is set as non extensible and is a local generated structure, thus it wouldn't be transported even if I could modify it).
I tried to implement the SAP OSS note 1420943 but it did not help as I don't understand how it works.
I also found another OSS note that describes a BAdI used to modify the values of the inputs but it doesn't allow to add new fields.
I have no other clue, so I hope one of you had faced the same issue and have a working solution for me.
Please note that creating customer specific fields via the Application Enhancement Tools is not an option since there are several tens of fields in the Adobe form...
__
Thank you in advance.
The problem has been solved. It was between chair and keyboard. The OSS note 1420943 explains exactly what has to be done.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello, Thomas.
The mentioned note 1420943 - Customer-specific fields in CRM Office Integration describes quite well how to deal with own fields. We use it at a lot.
You should Implement BAdI CRM_OFFICE_TEMPLATE_BADI and in GET_ATTRIBUTES method describe all of your fields (you'll get Call BAdI button available in Template Designer in WebUI) and with method GET_VALUES fill them with data.
Could you please tell us where you've stucked with this note? May be me or other SCN members will help you more accurately.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Andrei and thank you for your answer.
As I was saying, I resolved my problem in reading anew the note 1420943.
More precisely, I had copied-pasted a code example for methods GET_ATTRIBUTES and GET_VALUES found in SDN, but it did not worked (it inserted lines in both methods, instead of only in GET_ATTRIBUTES and updating the internal table in GET_VALUES). Thus my Word template didn't work and I thought it was the syntax [[[FIELD_NAME]]] that was in charge.
But after debugging I realized my mistake and correct it. [[[FIELD_NAME]]] work well; everything is working fine now. Just like the notes was saying...
Thank you again.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.