f$PSI_ProcessWindow
f$PSI_ProcessWindow
The process window for a business object in PSIPENTA is loaded with this function. If the belonging business object has not yet been created, it is created automatically. This window is required to, for example, process unplanned incoming or outgoing goods.
Syntax:
Status = f$PSI_ProcessWindow (BOName, Windowname)
Argument
Type
Meaning
BOName
String
Name of the business object
Windowname
String
Name of the process window if it has to be entered, otherwise "
Result:
Integer
Function status
Possible error statuses: -1,-3,-4,-20, -999
Example:
Status = f$PSI_Login(’demo7’,’system’,’system’,’D’)
Status = f$PSI_ProcessWindow ( ’PARN’ , ’’ )
Status = f$PSI_SetField ( ’ARTICLE_NO’ , ’000.514.002’ )
Status = f$PSI_SetField ( ’INCOMING_QUANTITY’ , ’10’ )
Status = f$PSI_SetField ( ’STORAGE_LOCATION’ , ’100’ )
Status = f$PSI_SetField ( ’TRANSACTION_NO’ , ’0000000010’ )
Status = f$PSI_Execute ( 1 , ’’ ) // verify
Status = f$PSI_Execute ( 1 , ’’ ) // book
...
or
Example: | Status = f$PSI_Login(’demo7’,’system’,’system’,’D’) Status = f$PSI_ProcessWindow ( ’PARN’ , ’WEU’ ) Status = f$PSI_SetField ( ’ARTICLE_NO’ , ’000.514.002’ ) Status = f$PSI_SetField ( ’INCOMING_QUANTITY’ , ’10’ ) Status = f$PSI_SetField ( ’STORAGE_LOCATION’ , ’100’ ) Status = f$PSI_SetField ( ’TRANSACTION_NO’ , ’0000000010’ ) Status = f$PSI_Execute ( 1 , ’’ ) // verify Status = f$PSI_Execute ( 1 , ’’ ) // book ... |