on 08-18-2010 9:11 AM
Hello,
is there a possible way to use a PI7.1 file to file mapping (one static-positioned field must be mapped) without storing the file in xml format ?
We are having a flatfile and have to send this flatfile through our jms receiver adapter(as flatfile structure) but there is one important field which has to be mapped/changed(static value for all files).
Our SAP Applikation (File sender) would avoid to change this during or after creating the flatfiles in the R/3 System.
Thanks,
Gordon
> Our SAP Applikation (File sender) would avoid to change this during or after creating the flatfiles in the R/3 System.
Is there a specific reason for this?
It seems to be just one line of code to be changed, that is nothing compared to the effort you have doing this in PI.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gordon,
yes, you can achieve that with a non parsing mappping, that must be ABAP or Java.
The way for an ABAP mapping is pretty easy:
Call FM ECATT_CONV_XSTRING_TO_STRING, replace the value with standard ABAP string operations (REPLACE, FIND, regular expressions, ...) and finally call ECATT_CONV_STRING_TO_XSTRING. Ready!
Regards,
Udo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gordon,
>- Do you have an example for that abap mapping ?
DATA g_str TYPE string.
CALL FUNCTION 'ECATT_CONV_XSTRING_TO_STRING'
EXPORTING
im_xstring = source
im_encoding = 'UTF-8'
IMPORTING
ex_string = g_str.
REPLACE 'ABC' WITH 'XYZ' INTO g_str.
CALL FUNCTION 'ECATT_CONV_STRING_TO_XSTRING'
EXPORTING
im_string = g_str
im_encoding = 'UTF-8'
IMPORTING
ex_xstring = result.
>I think i have to use some entry parameters for my interface right ?
?? no..
>- Is it possible to use that within the integrated configuration ?
?? yes..
Regards,
Udo
@Stefan: no! They don´t wan´t to change it (there are a lot of process using this file in R/3) ... strange
@Udo: I thought i have to create an ABAP class with "IF_MAPPING" Interface and I have to use the EXECUTE method with his own parameters like (source, param, trace, dynamic_configuration, result) ?
Hi,
if you want to do mapping ,then you have to convert your FLAT File structure to XML , because PI understands only XML(SOAP_messages .
if there is no mapping then you can dumbt one system to other system with IR/ESR objects,
Regards,
Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.