03-02-2009 4:53 AM
Hello,
I have a requirement where I need to Upload the Characteristics Data (CT04) into SAP. I am using LSMW method and since I cannot go for the Recording Method (CT04 doesn't support Recording), I've used a BAPI BAPI_CHARACT_CREATE to create characteristics. However, when I run the Project it says that the characteristic has been created but when I goto CT04 and try to display the Created Characteristic, it doesn't show up the one I created at all.
Eventually what I found was that the Standard BAPI doesn't do a COMMIT and due to which the Characteristic was not getting Created. So, I've developed a Custom BAPI with reference to the existing BAPI in which I've included the COMMMIT BAPI do perform the Database Commit.
Now, the Problem is that there is a TABLE of type BAPICHARACTREFERENCES in which if I do not append an Entry with TABLENAME as CABN and FIELDNAME as ATINN , it doesn't create the Characteristic. As per the Business Requirement the Functional Team cannot provide these two fields as they are optional. But if I dont give those values, it doesn't get created. Is there anyway to resolve this issue? This problem occurs even when I go for the LSMW-IDOC Method in which I am using the CHRMAS01 Basic Type & CHRMAS as the Message Type. Please let me know.
Thanks and Regards,
Venkata Phani Prasad Konduri
03-02-2009 8:46 AM
CABN-ATINN is a internal characteristic no, this shiould automatically be generated once you create a chnaracteristic, you do not need to pass it.
ATINN ATINN NUMC 10 0 Internal characteristic
and the sturcture you mentioned has a comp-oenet CLASS_TYPE, which you should give for referencing.
why do u need to pass table name and atinn to class type.
03-09-2009 12:07 PM
Issue has been resolved. Closing the Thread.
Thanks and Regards,
Venkata Phani Prasad K