2006 Mar 06 5:03 PM
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.
2006 Mar 06 5:35 PM
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
2006 Mar 06 5:54 PM
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
2006 Mar 06 6:38 PM
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
2006 Mar 06 9:28 PM
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.
2006 Mar 06 9:33 PM
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
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |