F110 Execute Payment Print

Paul.Bakker@osr.treasury.qld.gov.au Paul.Bakker at osr.treasury.qld.gov.au
Sat Oct 6 17:23:56 EDT 2007


Liz,

Um, that's not really a workflow question, more an ABAP / BDC issue.

But anyhoo, with mass activities you usually have to press 'Enter' after
entering the run id, so that the parameters can be loaded.

And maybe also check if function code ZAEX works when you type it in
manually..

good luck
Paul




                                                                           
             "Halladay, Liz                                                
             (Calgary)"                                                    
             <Liz_Halladay at nex                                          To 
             eninc.com>                sap-wug at mit.edu                     
             Sent by:                                                   cc 
             sap-wug-bounces at m                                             
             it.edu                                                Subject 
                                       F110 Execute Payment Print          
                                                                           
             06/10/2007 02:24                                              
                                                                           
                                                                           
             Please respond to                                             
               "SAP Workflow                                               
               Users' Group"                                               
             <sap-wug at mit.edu>                                             
                                                                           
                                                                           




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.
************************************************************
_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug





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

Only an individual or entity who is intended to be a recipient of this e-mail may access or use the information contained in this e-mail or any of its attachments.  Opinions contained in this e-mail or any of its attachments do not necessarily reflect the opinions of Queensland Treasury.

The contents of this e-mail and any attachments are confidential and may be legally privileged and the subject of copyright.  If you have received this e-mail in error, please notify Queensland Treasury immediately and erase all copies of the e-mail and the attachments.  Queensland Treasury uses virus scanning software.  However, it is not liable for viruses present in this e-mail or in any attachment.  

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




More information about the SAP-WUG mailing list