Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_CONVERSION_EXT2INT1 sampel

Former Member
0 Likes
1,445

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

5 REPLIES 5
Read only

Former Member
0 Likes
1,055

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.

Read only

Former Member
0 Likes
1,055

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

Read only

Former Member
0 Likes
1,055

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

Read only

Former Member
0 Likes
1,055

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.

Read only

0 Likes
1,055

DId you ever get an example of how to fill out the Data table?