'F0911 End Document' always set Batch Status to 'U- In Use'

Rauf

Rauf

VIP Member
I have the below data sequence

Company
BU
Group



I generate Journal Entry batch as follows:-

F0011 Open Batch : Report Init Section
F0911 Begin Document :Company1-Header
F0911 Edit Line(Debit) : Group1-Footer
F0911 Edit Line(Debit) : Group2-Footer
F0911 Edit Line(Debit) : Group3-Footer
F0911 Edit Line(Credit) : BU1-Footer
F0911 End Document :Company1-Footer

Now, the batch status is always goes to 'U- In Use', but I set A-Approved in the 'F0911 End Document'

What should I try ?
 
I have the below data sequence

Company
BU
Group



I generate Journal Entry batch as follows:-

F0011 Open Batch : Report Init Section
F0911 Begin Document :Company1-Header
F0911 Edit Line(Debit) : Group1-Footer
F0911 Edit Line(Debit) : Group2-Footer
F0911 Edit Line(Debit) : Group3-Footer
F0911 Edit Line(Credit) : BU1-Footer
F0911 End Document :Company1-Footer

Now, the batch status is always goes to 'U- In Use', but I set A-Approved in the 'F0911 End Document'

What should I try ?

In order to update and close F0011 this is an example of code I'm using:

BatchReviseOnExit(B0000008.BatchReviseOnExit)
RV BatchNo_ICU [ICU] -> mnBatchNumber [ICU]
RV BatchType_ICUT [ICUT] -> szBatchType [ICUT]
"A" -> cPreviousBatchStatus [EV01]
"1" -> cFLAGBatchStatus [EV02]
//
If SV Error_Status is equal to CO ERROR
| //
| RV ERRORS_MATH10 = [RV ERRORS_MATH10]+1
| RV ErrorMessage_D200 [D200] = TV ERROR - Cannot Update Batch Header
| Do Custom Section(RS Error Message)
| //
Else
| //
| FSCloseBatch(B0000042.FSCloseBatch)
| RV BatchNo_ICU [ICU] -> mnBatchnumber [ICU]
| RV BatchType_ICUT [ICUT] -> szBatchtype [ICUT]
| "1" -> cDocumentInBalance [EV01]
| "1" -> cSuppressBatchControl [EV01]
| "A" -> cOverrideMode [EV01]
| //


Kind regards,

Carlo
 
Back
Top