Fm AC_DOCUMENT_GENERATTE

Has anybody ever used the fm AC_DOCUMENT_GENERATTE, is it used to park an FI document?
if yes, can you advise me the data to be populated?

Hi prabu,
Try giving the Vendor Invoice Number in AWREF as the variable AWTYP is a Reference Transaction((VBRK etc)
CALL FUNCTION 'AC_DOCUMENT_RECORD'
           EXPORTING
                i_awtyp      = t_ckmi-awtyp    "  Reference Transaction
                i_awref      = t_ckmi-awref    "  Reference Document Number   -
>
                i_aworg      = t_ckmi-aworg   "Reference Organizational Units
                i_awtyp_excl = t_ckmi-awtyp
         TABLES
               T_DOCUMENTS  =
           EXCEPTIONS
                no_reference = 1
                no_document  = 2.
      IF sy-subrc > 0.
        MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
Revert for further clarification
Thanks
Sri

Similar Messages

Maybe you are looking for