Skip to Content
author's profile photo Former Member
Former Member

How to reverse closure (completion) of disconnection document?

I have a requirement to reverse the completion of disconnection documents through a BDC Program (of transaction EC86). The document contains 5 line items in Disconnection Activity as follows:

1. Disconnection Order

2. Disconnection Entry

3. Reconnection Order

4. Reconnection Entry

5. Completion

Since reversing requires scrolling down to the 5th line item, this poses as a significant challenge. Other posts suggest using the OK_CODE = '=P+' to simulate a page down or scroll, but it doesn't seem to be working primarily because the system ends up giving the error:

Function Code can not be selected.


More precisely, the system can't seem to find the table to scroll on to it seems. I've tried all combinations of BDC_CURSOR on EENO_DYNP-ZEILE(01/02) or EDISCD-ACTTYPTEXT(01/02) but it doesn't seem to be working.

This is my routine that performs the BDC:

perform bdc_dynpro using 'SAPLEC85' '0100'.
perform bdc_field using 'BDC_CURSOR'
'EDISCD-DISCNO'.
perform bdc_field using 'EDISCD-DISCNO'
PA_DISCNO.
perform bdc_field using 'BDC_OKCODE'
'/00'.

perform bdc_dynpro using 'SAPLES34' '0200'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'BDC_CURSOR'
'EENO_DYNP-ZEILE(01)'.
perform bdc_field using 'BDC_OKCODE'
'=P++'.

perform bdc_dynpro using 'SAPLES34' '0200'.
perform bdc_field using 'BDC_CURSOR'
'EENO_DYNP-ZEILE(02)'.
* 'EDISCD-ACTTYPTEXT(02)'.
perform bdc_field using 'BDC_OKCODE'
'=PICK'.

perform bdc_dynpro using 'SAPLSPO1' '0100'.
perform bdc_field using 'BDC_OKCODE'
'=YES'.
perform bdc_dynpro using 'SAPLES34' '0200'.
perform bdc_field using 'BDC_OKCODE'
'=SAVE'.
perform bdc_field using 'EDISCDOCS-BILLREL'
'X'.

perform bdc_transaction using 'EC86'.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 02, 2014 at 11:18 AM

    I managed to do so wih the help of the following function module: ISU_DB_EDCN_UPDATE.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.