2007 Jun 28 7:59 AM
Hello,
I am working on a project to connect from an external system to a SAP system using JCO. In some cases it is mandantory to convert external data to sap internal e.g. costcenter. At the BAPI Explorer i´ve found the BAPI "BAPI_CONVERSION_EXT2INT1", has anybody a sample how to use it?
Thanks
Joachim
2007 Jun 28 8:10 AM
Hi Joachim,
I couldn't find code for that one.
But this is the functionality of that bapi.
This method converts the data in method parameters from the external format into the internal format (domain conversion). This type of conversion is required to prepare data for further processing in the R/3 System.
With this method, you can, for example, convert data from its format displayed on the screen into the R/3 internal data format.
The data to be formatted is specified and transferred in the "data" parameter. Once the method has been called, the converted data is also stored in this parameter.
If no conversion routine for a parameter has been specified in the ABAP Dictionary, the external data format will be returned unconverted.
Regards...
Arun.
Reward points if useful.
2007 Jun 28 8:20 AM
Hi,
BACV BAPI Conversion Routines
BAPI_CONVERSION_EXT2INT Convert Data from External Format into Internal Format
BAPI_CONVERSION_EXT2INT1 Convert Data from External Format into Internal Format
BAPI_CONVERSION_INT2EXT Convert data from internal format into external format
check the documentation BAPI_CONVERSION_EXT2INT1
Text
Convert data from external format into internal format
Functionality
This method converts the data in method parameters from the external format into the internal format (domain conversion). This type of conversion is required to prepare data for further processing in the R/3 System.
With this method, you can, for example, convert data from its format displayed on the screen into the R/3 internal data format.
The data to be formatted is specified and transferred in the "data" parameter. Once the method has been called, the converted data is also stored in this parameter.
If no conversion routine for a parameter has been specified in the ABAP Dictionary, the external data format will be returned unconverted.
Notes
Messages for errors when calling the method call or converting the data are reported in the return parameter. This parameter documentation contains the return values and their meanings.
The method BapiService.DataConversionInt2Ext1 converts data from the internal format to the external format.
The old method BapiService.DataConversionInt2Ext is obsolete and has been replaced by the above method.
Parameters
DATA
RETURN
Exceptions
Function Group
BACV
<b>Reward points</b>
Regards
2007 Jun 28 8:32 AM
Hi,
my problem is not to know for which this function module is used. My problem is that I don´t know how to fill the "DATA" parameter.
OBJTYPE SWO_OBJTYP
OBJNAME SWC_OBJEDE
METHOD SWO_VERB
PARAMETER SWC_ELEM
FIELD NAME_FELD
ROWNUMBER BAPI_TABL
INT_FORMAT CONVERT_I
EXT_FORMAT CONVERT_O
CONV_LEN CONVERT_L
If anybody has an exampel code, how to use this function modul it will be greatefull.
Thanks
Joachim
2007 Sep 13 2:25 PM
Does anyone have a code sample for this FM?
Could some one demonstrate what values should be populated in the DATA structure to convert a external functional location number to the internal format?
Any information on where the proper values for Object Type, Object Name, Method, Parameter, and Field could be found would be very helpful.
2010 Sep 17 1:12 AM
DId you ever get an example of how to fill out the Data table?