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 or Function module for ..lifnr,name1 from IMERK field...

Former Member
0 Likes
1,403

Hallo All,

I need to know is there any BAPI or Fucntion module for getting vendor ID and Vendor Name(lfa1-lifnr,fa1-name1) based on Internal characteristic(KSML-IMERK) field.

its little urgent, If any one knows please help me..

Thanks for ur time.

Murali.

Hallo All,

I need to know is there any BAPI or Fucntion module for getting vendor ID and Vendor Name(lfa1-lifnr,fa1-name1) based on Internal characteristic(KSML-IMERK) field.

its little urgent, If any one knows please help me..

Thanks for ur time.

Murali.

5 REPLIES 5
Read only

Former Member
0 Likes
1,073

Hi Murali,

You can try Function module : CTMS_GET_CHARACTERISTICS

Or

Please use KSML-IMERK field and read table CAWN as ATINN = KSML-IMERK.

Then you will get Value maintained for that CHAR.

IF the Value is your Vendor No then use LFA1 to get the restof the information from LFA1.

Regards,

Lanka

Read only

0 Likes
1,073

Hi Lanka Thanks for ur anser.

but the first one

CTMS_GET_CHARACTERISTICS in the import fields i dint find IMERK FIELD..

2.Second one what is the field in CAWN table to link with LFA1 table after reading table CAWN as ATINN = KSML-IMERK.

pleae let me know.

Thanks

Murali

Read only

0 Likes
1,073

Hi Murali,

Please check the Char. Value ay CAWN-AWART.

Function module doesn't have input field as IMERK. But it has ATINN which os same as KSML0IMERK.

Regards,

Lanka

Read only

0 Likes
1,073

Hi Lanka,

i used AUSP table with OBJEK and ATINN fields where KLART = 010 so that OBJEK value is vendor ID.

in CAWN table CHAR value is not able t match with vendor Id.

thanks for ur time and ur answer is very helpfull.

Murali.

Read only

0 Likes
1,073

Hi,

I thought you are using KSML for configuration data and based on that earlier I suggested to check in table CAWN.

You can use the followng function :

DATA : ZV_CLA_OBJ LIKE AUSP-OBJEK.

ZV_CLA_OBJ = AUSP-OBJECK.

CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS'

EXPORTING

  • CLASS = ' '

  • CLASSTEXT = 'X'

CLASSTYPE = '010'

  • CLINT = 0

  • FEATURES = 'X'

  • LANGUAGE = SY-LANGU

OBJECT = ZV_CLA_OBJ

  • OBJECTTABLE = ' '

  • KEY_DATE = SY-DATUM

  • INITIAL_CHARACT = 'X'

  • NO_VALUE_DESCRIPT =

  • CHANGE_SERVICE_CLF = 'X'

  • INHERITED_CHAR = ' '

  • CHANGE_NUMBER = ' '

TABLES

T_CLASS = ZT_CLASS

T_OBJECTDATA = ZT_OBJECTDATA

  • I_SEL_CHARACTERISTIC =

  • T_NO_AUTH_CHARACT =

  • EXCEPTIONS

  • NO_CLASSIFICATION = 1

  • NO_CLASSTYPES = 2

  • INVALID_CLASS_TYPE = 3.

Then LOOP table ZT_OBJECTDATA

to chack IMERK value.

Regards,

Lanka