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

To Create a Characteristic

Former Member
0 Likes
1,126

Hi,

I tried BAPI and IDOC method to create a Characteristic by LSMW using the businessobject BUS1088.

But the problem is like the BAPI takes two fields Reference Table and Reference Field without which the document is not getting posted and Characteristic is not getting created.

BAPI :Object: BUS1088.

FM: BAPI_CHARACT_CREATE.

IDOC : Basic Type: CHRMAS01

Msg type :CHRMAS

But these values will not be provided for all Characteristics by the Functional.

Please help me how to solve this issue.

Thanks in Advance,

Priyanka.

Hi,

I tried BAPI and IDOC method to create a Characteristic by LSMW using the businessobject BUS1088.

But the problem is like the BAPI takes two fields Reference Table and Reference Field without which the document is not getting posted and Characteristic is not getting created.

BAPI :Object: BUS1088.

FM: BAPI_CHARACT_CREATE.

IDOC : Basic Type: CHRMAS01

Msg type :CHRMAS

But these values will not be provided for all Characteristics by the Functional.

Please help me how to solve this issue.

Thanks in Advance,

Priyanka.

3 REPLIES 3
Read only

Former Member
0 Likes
745

Hi,

In BAPI 'BAPI_CHARACT_CREATE' the table CHARACTREFERENCES which contain the value reference table and reference field is not mandatory.

You can create characteristics without these enteries.

Makesure data is passed correctly in description table CHARACTDESCR which in turn is mandatory to be passed.

The error might be because of some other reasons. Please check the records which are resulting in error.

Regards,

Brajvir

Read only

0 Likes
745

Hi... Thanks for the reply.

What you said is right..but i am calling the BAPI through LSMW and there it is checking those fields with out which the IDOC is not getting posted.

I tried using teh BAPI in ABAP Program also but still it is giving the same values.

Please suggest me on this.

Thanks in Advance,

Priyanka.

Read only

0 Likes
745

Hi,

Try incorporating IF field NOT INITIAL condition. If no data is there in source file then dese fields should be kept as initial.

Hope this one solves your problem, as mine one is working fine.

Regards,

Brajvir