on 09-05-2018 8:16 PM
Hello SAP,
I tried to simulate my mapping in the CPI
Therefore I need the XML IDOC from the SAP CRM.
Unfortunately I did not find anyway how to download the generated IDOC from the CRM with the xml format.
I was trying the ways in this documentation.
https://sapintegrationhub.com/abap/ale-idoc/how-to-download-idoc-to-xml-file/
but i did not get the IDOC structure I need for the simulation.
Can you please tell me how you do the simulation with a PARTNER IDOC or a PARTNER_REL Idoc from the CRM.
BR Christof
Hi Christof,
you can use function module IDOC_XML_TRANSFORM to create a xml based on your idoc.
Nevertheless, even with this file, you have to remove some field mappings which are not available during the simulation.
For the CRM Business Partner iflow for intance:
After the simulation you should close the iflow without saving your changes!
Best Regards
Michael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Michael,
Thank you very much for the information: Here some input also now from my side now:
There is an information button on it . Check the details in UserDefinedFunctions.gsh and you got the following code which is related to headervalue.
//This method returns value of a header, expects one input header_name i.e. name of the header to be retrieved
def String get_header(String header_name,MappingContext context) {
def header = context.getHeader(header_name);
return header;
}
And the header_name is related to the Content Modifier part
To make the mapping test work directly,do the changes on UserDefinedFunctions.gsh as below:
//This method returns value of a header, expects one input header_name i.e. name of the header to be retrieved
def String get_header(String header_name,MappingContext context) {
def header = context.getHeader(header_name);
if(header !=null ){
return header;
}
return header_name;
BR Christof
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
61 | |
9 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.