F110 Execute Payment Print

Halladay, Liz (Calgary) Liz_Halladay at nexeninc.com
Fri Oct 5 12:24:43 EDT 2007


I have created a custom workflow to execute the payment run and payment
print from F110.  The run executes correctly however the print does not.
I am getting the following error:

Function code cannot be selected

The ok_code = "=ZAEX"


My code is as follows:

REPORT zF110 NO STANDARD PAGE HEADING LINE-SIZE 255.

PARAMETERS: pa_laufd LIKE reguh-laufd OBLIGATORY,
            pa_laufi LIKE reguh-laufi OBLIGATORY.

INCLUDE bdcrecx1.

START-OF-SELECTION.

  PERFORM open_group.
    PERFORM bdc_dynpro USING 'SAPF110V' '0200'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'F110V-LAUFI'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '/00'.


    PERFORM bdc_field USING 'F110V-LAUFD'
    pa_laufd.
    PERFORM bdc_field USING 'F110V-LAUFI'
    pa_laufi.

    PERFORM bdc_dynpro USING 'SAPF110V' '0200'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'F110V-LAUFD'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=ZAEX'.

    PERFORM bdc_dynpro USING 'SAPF110V' '1106'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'F110V-XSTRF'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=EP'.
    PERFORM bdc_field USING 'F110V-STRDT'
    ''.
    PERFORM bdc_field USING 'F110V-XSTRF'
    'X'.
    PERFORM bdc_field USING 'F110V-STRZT'
    ''.

    PERFORM bdc_transaction USING 'F110'.       "PRINT PROGRAM

  PERFORM close_group.

************************************************************ 

IMPORTANT NOTICE: This message is intended for the individual or entity to which it is addressed
and may contain information that is privileged, confidential, and/or exempt from disclosure under 
applicable law. If you are not the intended recipient, you are hereby notified that copying, 
forwarding or other dissemination or distribution of this message is prohibited and that taking 
any action in reliance on the content of this message is to be avoided. Should you receive this 
e-mail in error, please notify the sender immediately via e-mail or call (403) 699-4000 
and delete this message from your system. Thank you. 

************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20071005/3489a96f/attachment.htm


More information about the SAP-WUG mailing list