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

A problem when I use BAPI_COSTACTPLN_POSTPRIMCOST

Former Member
0 Likes
1,619

Hi Experts,

I am using BAPI 'BAPI_COSTACTPLN_POSTPRIMCOST' to insert planned cost (t-code:KP06).

But, I want to return CO document number that created after execute BAPI'BAPI_COSTACTPLN_POSTPRIMCOST'.

How do I know CO document number?

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
972

Hi,

Please check the return table if the bapi runs sucesfully it should return the number in return table.

Hope it helps.

Regards

Hiren K.Chitalia

4 REPLIES 4
Read only

Former Member
0 Likes
973

Hi,

Please check the return table if the bapi runs sucesfully it should return the number in return table.

Hope it helps.

Regards

Hiren K.Chitalia

Read only

Former Member
0 Likes
972

Hi, K.Chitalia.

Thanks to reply.

Well, I already checked the return table.

It seems that a related parameter have not in this BAPI

Is there any other way you?

Read only

0 Likes
972

Hi,

Try using this function module K_COSTS_PLAN_INTERFACE_TOTAL.

Or else use BDC for Kp06.

Hope it helps.

Regards

Hiren K.Chitalia

Read only

Former Member
0 Likes
972

I executed after develop BDC. But CO Document Number did not return.

Anyway, Thanks to reply.