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

BDC for CT04/BAPI_CHARACT_CREATE not working

Former Member
0 Likes
1,450

Hi Guys

I need to create some characteristics in the ECC6 system. I have tried BDC but that does not go to second screen at all and I have also tried BAPI_CHARACT_CREATE BAPI but nothing is working here.

Please please tell me how can I create them in the system Please help me immediately.. I need to finsih them by monday.

Sincerely,

Avinash

9 REPLIES 9
Read only

Former Member
0 Likes
1,267

using bapi_charact_create itself u can create it.

wat is the error r u geeting .

Read only

Former Member
0 Likes
1,267

Hi

Whenever I try to get into CT04 either through BSC recording or through LSMW's last step RCCTBI01, I get the first screen and after entering anything any pressing any button disables the screen and session terminates. Looks like ECC6 problems.. Please let me know if you can upload a sample characterist in ECC6.

Thanks a lot

Read only

0 Likes
1,267

Hi,

BAPI_CHARACT_CREATE is working fine creating the characteristics. Let me know what is your exact problem. If you want i can send you the sample code

Regards,

Uma

Read only

0 Likes
1,267

Hi ,

Here is sample code to execute the BAPI.

REPORT ZCHAR_CREATE .

DATA : CHARACTDETAIL LIKE BAPICHARACTDETAIL,

CHANGENUMBER LIKE BAPICHARACTKEY-CHANGENUM,

CHARACTDESCR TYPE TABLE OF BAPICHARACTDESCR WITH HEADER LINE,

CHARACTVALUESCHAR TYPE TABLE OF BAPICHARACTVALUESCHAR WITH HEADER

LINE,

CHARACTVALUESDESCR TYPE TABLE OF BAPICHARACTVALUESDESCR WITH

HEADER LINE,

RETURN TYPE TABLE OF BAPIRET2.

CHARACTDETAIL-CHARACT_NAME = 'TEST_CHAR'.

CHARACTDETAIL-DATA_TYPE = 'CHAR'.

CHARACTDETAIL-LENGTH = 10.

CHARACTDETAIL-STATUS = 1.

CHARACTDETAIL-VALUE_ASSIGNMENT = 'R'.

CHARACTDETAIL-ENTRY_REQUIRED = 'X'.

CHANGENUMBER = '500000000000'.

CHARACTDESCR-LANGUAGE_INT = 'EN'.

CHARACTDESCR-LANGUAGE_ISO = 'EN'.

CHARACTDESCR-DESCRIPTION = 'DECRIPTION'.

APPEND CHARACTDESCR.

CHARACTVALUESCHAR-VALUE_CHAR = 'VAL1'.

APPEND CHARACTDESCR.

CHARACTVALUESCHAR-VALUE_CHAR = 'VAL2'.

APPEND CHARACTVALUESCHAR.

CHARACTVALUESDESCR-LANGUAGE_INT = 'EN'.

CHARACTVALUESDESCR-LANGUAGE_ISO = 'EN'.

CHARACTVALUESDESCR-VALUE_CHAR = 'VAL1'.

CHARACTVALUESDESCR-DESCRIPTION = 'VAL1 DESC'.

APPEND CHARACTVALUESDESCR.

CHARACTVALUESDESCR-LANGUAGE_INT = 'EN'.

CHARACTVALUESDESCR-LANGUAGE_ISO = 'EN'.

CHARACTVALUESDESCR-VALUE_CHAR = 'VAL2'.

CHARACTVALUESDESCR-DESCRIPTION = 'VAL2 DESC'.

APPEND CHARACTVALUESDESCR.

CALL FUNCTION 'BAPI_CHARACT_CREATE'

EXPORTING

CHARACTDETAIL = CHARACTDETAIL

CHANGENUMBER = CHANGENUMBER

  • KEYDATE = SY-DATUM

TABLES

CHARACTDESCR = CHARACTDESCR

  • CHARACTVALUESNUM =

CHARACTVALUESCHAR = CHARACTVALUESCHAR

  • CHARACTVALUESCURR =

CHARACTVALUESDESCR = CHARACTVALUESDESCR

  • CHARACTREFERENCES =

  • CHARACTRESTRICTIONS =

RETURN = RETURN .

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

  • EXPORTING

  • WAIT =

  • IMPORTING

  • RETURN =

.

Reward me if it is useful to you.

All the Best.

Uma.

Read only

0 Likes
1,267

Hi,

How do we differentiate the characteristics being created by this BAPI? In my requirement, I need to create a Master Inspection Characteristics....

Thanks...

Read only

0 Likes
1,267

hi

use BAPI_QPMK_SAVEREPLICA to create MIC (master inspn. charac), which can then be assigned in the plan...characteristics are something different, which are grouped under classes...i think you're trying to co-relate both

if helpful, reward

Sathish. R

Read only

0 Likes
1,267

Hi ,

I met the same your problem. I have added characteristic by BAPI through BAPI_CHARACT_CREATE funtion but the value at Values tab is not coming . Pls help me i need to finish it asap.

Thank you all experts.

Read only

0 Likes
1,267

dear sir i m facing same problem plz send me code at mdkarem g m ail please.

Read only

0 Likes
1,267

It works Sir. TQ