get the account
works with standard- and extented accounting from sap b1 8.8 and 9.0
parameter: tab separated string
return: the account in Variable "value". In error case return empty string
(PB-Script: gapi.getaccount(string) -> account as string)
(BeasScript: sbodiapi=getaccount=<string>)
Parameter
itemcode |
Item code |
whscode |
Warehouse code |
accounttype (or typ) |
Type or name of account The following accounts are allowed: wipacct wipvaracct expenseac decreasac increasac sbodiapi=getaccount=typ=wipacct
|
check |
check the account return the name of account in variable <e_acctname> in error case the function create an error message with protocol if you set the base-information for work order, the document is marked as wrong |
date |
the booking-date |
source |
the source-place (for the error message) |
belnr_id,belpos_id,pos_id docentry,linenum, linenum2 basedocentry, baselinenum, baselinenum2 |
the base-document |
base_type |
the type of base-document, example "WO" for workorder |
cardcode |
the card code (current not checked) |
cancelation=true |
the document is a cancellation |
bookingtype |
type of booking (I)nventory (C)lean, (F)Workorder, (M)anually |
bookingdirection |
the direction from the transaction receipt or issue |
Mandatory is only : itemcode and whscode
Rules
The following rules are checked:
- date
- itemcode
- itemgroup
- warehouse