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)
(beas-Script: sbodiapi=getaccount=<string>)
Parameter
itemcode  | 
itemcode  | 
whscode  | 
ware house code  | 
accounttype (or typ)  | 
type or name of account allowed are follow accounts: wipacct wipvaracct expenseac decreasac increasac Example 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 cardcode (current not checked)  | 
cancelation=true  | 
the document is a cancelation  | 
bookingtype  | 
type of booking (I)nventory (C)lean, (F)Workorder, (M)anually  | 
bookingdirection  | 
the direction from the transaction receipt or issu  | 
Mandatory is only : itemcode and whscode
Rulse
follow rulse are checked
- date
- itemcode
- itemgroup
- warehouse