Hi,
I am a junior Developer in JDE and I am having trouble with updating F41021. I followed the documentation I read on Oracle support on how to go about updating a record in JDE. I ran the report with the below ER Code, the report runs successfully but doesn't update the table as required and doesn't show an error. What am I doing wrong or missing in my approach? Any suggestions will be highly appreciated.
VA rpt_QuantitySoftCommitted_PCOM = 1
VA rpt_QtyHardCommitted_HCOM = 1
VA rpt_QtyOnFutureCommit_FCOM = 1
//
F41021.Select
/*VA rpt_IdentifierShortItem = BC Item Number - Short (F41021)(ITM)
VA rpt_CostCenter = BC Business Unit (F41021)(MCU)
VA rpt_Location = BC Location (F41021)(LOCN)
VA rpt_Lot = BC Lot/Serial Number (F41021)(LOTN)*/
// Showing the mapping of the Select
F41021.Fetch Next
While SV File_IO_Status is equal to CO SUCCESS
VA rpt_No_Of_ReturnedRecords = [VA rpt_No_Of_ReturnedRecords]+1
F41021.Update
/*VA rpt_IdentifierShortItem = BC Item Number - Short (F41021)(ITM)
VA rpt_CostCenter = BC Business Unit (F41021)(MCU)
VA rpt_Location = BC Location (F41021)(LOCN)
VA rpt_Lot = BC Lot/Serial Number (F41021)(LOTN)*/
// Showing how the key was followed
//
F41021.Fetch Next
// This is to check if the records have been updated.
End While
Thanks,
Samukelo