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

BAPI_ACC_ACTIVITY_ALLOC_POST

Former Member
0 Likes
1,612

Hi,

I am using this bapi to reverse a CO document.

When I check the table COBK in order to view my documents, the field SOTKZ is always initial.

I am looking for the way to tell the bapi I want this field activated; Do you Know how can I achieve this?

Thank you!!!

4 REPLIES 4
Read only

Former Member
0 Likes
1,042

Hello,

You might want to try BAPI_ACC_ACT_POSTINGS_REVERSE.

Regards,

Brenda

Read only

0 Likes
1,042

Thank you very much,

these answesr are very helpfull for me, but I've a new problem and maybe you can help me one more time!

I'm, using the bapi you told me but always get the same error:

Document with external ref. cannot be reversed through internal number

I'm lost, I though that it could be because the number of the document was in wrong format but I don't Know...

I have this data in DOC_HEADER:

CO_AREA --> ABG

DOCDATE --> 20120331

POSTGDATE --> 20120331

DOC_NO-->

DOC_HDR_TX--> Anulación de documento:0000127919

USERNAME--> XSMARTINE

OBJ_KEY--> 0000127919

OBJ_TYPE-->

OBJ_SYS-->

OBJ_KEY_R--> 0000127919

RVRS_NO-->

Do you have any idea please???

Thank you very much!

Edited by: SaraMR on Feb 21, 2012 4:11 PM

Read only

0 Likes
1,042

Hi,

I found several hints in the FM documentation.

1. For an external number range you should store the number of the CO reversal document in the DOC_NO field.

2. In line with the external number, you should enter the object type (awtyp) of the sending system in the OBJ_TYPE field.

I hope this helps.

Brenda

Read only

vijaymanikandan
Contributor
0 Likes
1,042

Hi

Refer the below link which explains the reversal of CO document- [http://forums.sdn.sap.com/thread.jspa?threadID=2094104]