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

Doubt in BAPI_COPAPLANNING_POSTDATA

vinod_vemuru2
Active Contributor
0 Likes
1,258

Hi Guys,

What are all the tables updated when i post discount adjustments from the BAPI BAPI_COPAPLANNING_POSTDATA. After posting is done i need to check in the data base whether posting is currect or not. Also will it be creating any documents. If any thing is wrong in my input i will be getting error messages in Return table. But problem is to find out for which row error has occured when we pass multiple records. Please help me out in this.

<REMOVED BY MODERATOR>

Thanks,

Vinod.

Edited by: Alvaro Tejada Galindo on Jun 12, 2008 7:03 PM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
804

Before posting you go for to start the trace st05.

Then post the document.

and go for the display trace list.

Regards,

Madan.

3 REPLIES 3
Read only

Former Member
0 Likes
805

Before posting you go for to start the trace st05.

Then post the document.

and go for the display trace list.

Regards,

Madan.

Read only

0 Likes
804

Hi Madan,

Thanks for the reply. I tried out all possible options including the one mentioned by u. Unfortunately none worked for me.

In ST05 trace it is showing some tables but those are all looks like log tables with date and time stamps. No document numbers or actual discounts that was posted.

Our actual requirement is to get the planned discounts,(Using BAPI_COPAPLANNING_GETDATA) Calculate the discounts based on various conditions and post the same back to SAP. If any one knows any FM/BAPI/Transaction for BDC please let me know.

Thanks,

Vinod.

Read only

0 Likes
804

Hi Every one,

Any more thoughts on this issue.

BAPI_COPA_PLANNING_POSTDATA is not updating the data base even when Return table is empty(i.e No errors in BAPI).

Is there any other BAPI/FM/Transaction for posting(changing) planning discounts.

Initially i will get the planned discounts from BAPI_COPA_PLANNING_GETDATA and then appliy adjustments based on requiremnet. Next i have to save these to data base. So when i run the program for next time there should not be any difference in discount percentages as i already calculated and posted new discounts. But here even after i run the program for second time it is showing old discount values. What would be the probable reason and work around for this?

<REMOVED BY MODERATOR>

Thanks,

Vinod.

Edited by: Alvaro Tejada Galindo on Jun 12, 2008 7:04 PM