Ideas
Under Review

Costing # WIP Finalization #Adjust source FUNWIPMFC.src with a couple of lines

Hello,
Good Morning
 
I would appreciate your comments on the possibility of adjusting the source FUNWIPMFC.src, due to the following situation in which I have found
 
SITUATION
Carry out the 2 following actions, after the "manufacturing cost calculation" of an OF:
  - To settle the sale order of the one that comes
  - Discharge of stock produced, because it corresponds to the dishes consumed in the school cafeteria and the leftovers are not saved
  
SOLUTION 1st
Use APCALMFC entry point located in said source to perform both actions
 
PROBLEM
Due to the fact that I use IMPORTSIL to import several outputs corresponding to the stock that I have, in trace errors regarding "A transaction already in progress" are displayed, although the output varies, but obviously we can not leave it 
 
2nd SOLUTION
At the point of entry, I keep the OFs with which I have to perform said 2 actions, to carry them out in the action END of the FUNWIPMFC action, which is outside of any transaction but within the process trace
I see that the entry point is inside Subprog CALMFC (PFCY, PVCRTYP, PVCRNUM)
 
PROBLEM
It only works when the process is started from the FUNWIPMFC function, but not when it is called from another, such as FUNMCLOSE, which makes the next call from the FUNMFGS.src source
Call CALMFC ([F: MFG] MFGFCY, 10, VCRNUM) From FUNWIPMFC
 
3rd SOLUTION
This is the one that I request to be incorporated into the standard source, to avoid what I have had to do and that is summarized in adding code to contemplate calls to specific actions
- Copy source to customer dossier
- Adjust font as shown in ADJUSTED
- INITIAL
       3459 Gosub TERMINE FROM FUNWIPMFC
- ADJUSTED
       3459 GPE = 0
            Gosub TERMINE From XYZFUNWIPMFC
            If! GPE
               Gosub TERMINE FROM FUNWIPMFC
            Endif
Awaiting your comments
 
Thank you
Jose Luis Palau
Información del Traductor de GoogleComunidadMóvil