SAP for Utilities Discussions
Connect with fellow SAP users to share best practices, troubleshoot challenges, and collaborate on building a sustainable energy future. Join the discussion.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to post two line items using BAPI_CTRACDOCUMENT_CREATE

Former Member
0 Kudos

Dear Experts,

I am unable to post two line items using BAPI_CTRACDOCUMENT_CREATE.

When I append one record to partnerpositions, one line item is created and there are no errors.

When I append two records to partnerpositions I get the error Formal error in table FKKOP: Item numbering is inconsistent

Please help me.

Regards,

Nasreen

1 ACCEPTED SOLUTION

former_member213733
Active Contributor
0 Kudos

Hi ,

Kindly check the following :

1. in Partnerpostion are you getting the value for ' ITEM ' and componenet type ' OPUPK_KK '. As the entry is required for line item number in contract account document and as you are appending 2 records , it would be required .

Hope this helps.

Regards ,

Dewang T

View solution in original post

3 REPLIES 3

former_member213733
Active Contributor
0 Kudos

Hi ,

Kindly check the following :

1. in Partnerpostion are you getting the value for ' ITEM ' and componenet type ' OPUPK_KK '. As the entry is required for line item number in contract account document and as you are appending 2 records , it would be required .

Hope this helps.

Regards ,

Dewang T

Former Member
0 Kudos

Hello Nasreen .

This FM can only work with 1 Value !

Store your yalues in an internal Table.

Loop At it_TT

Call funktion BAPI_CTRACDOCUMENT_CREATE

Endloop.

regards

Chris

0 Kudos

no Chris i don't this that is the case.

My problem was solved by changed the item value !

Regards,

Nasreen