‎2011 Apr 28 9:24 PM
Hello !
I am running the function SD_INVOICE_RELEASE_TO_ACCOUNT through a Z program but it is not executed.
Follow the source code:
CLEAR wx_vbrk.
SELECT SINGLE * FROM vbrk
INTO wx_vbrk
WHERE vbeln EQ vl_vbeln.
APPEND wx_vbrk TO ti_vbrk.
CALL FUNCTION 'SD_INVOICE_RELEASE_TO_ACCOUNT'
EXPORTING
with_posting = 'B'
TABLES
it_vbrk = ti_vbrk
xkomfk = ti_xkomfk
xkomv = ti_xkomv
xthead = ti_xthead
xvbfs = ti_xvbfs
xvbpa = ti_xvbpa
xvbrk = ti_xvbrk
xvbrp = ti_xvbrp
xvbrl = ti_xvbrl
xvbss = ti_xvbss.
What is strange is that this works on customers that are in version 6.0. We have a customer that is version 5.0 and in this case, the function is not performed.
If I go in VF02 and release the document, it works perfectly, but not by function.
Could anyone help me?
Thank you !
Cleber Sanchez
‎2011 Apr 28 9:47 PM
It is strange but not uncommon in sap. However, if this is happening to one customer, you better check if the documents are hang up in VFX3. May be customer credit blocked or something else might have happening.
Moreover this is not an RFC, and no return parameters from the interface. If the customer is ok then go for debugging in the FM.