04-10-2019 9:46 AM
I am looking to get a list of entities or services of service layer to be able to post timesheet entries, issue for production and receipts from productions (SAP B1 cloud hana). Do someone know if those are available via service layer as I am unable to identify it in Service Layer API Reference? thank you!
04-10-2019 10:10 AM
Dear Mrs. maria.koval.11,
For the Project Timesheet, this is the schema;
<ServiceLayer>
<bfa:io xmlns:bfa="urn:com.sap.b1i.bizprocessor:bizatoms">
<!--ObjectName: ProjectManagementTimeSheet, EntityType: PM_TimeSheetData-->
<bfa:object>
<!-- AbsEntry is Primary Key - Not Null -->
<bfa:number name="AbsEntry">-32 (Int32)</bfa:number>
<bfa:number name="DocNumber">-32 (Int32)</bfa:number>
<bfa:string name="TimeSheetType">E | U | O</bfa:string>
<bfa:number name="UserID">-32 (Int32)</bfa:number>
<bfa:string name="LastName">sample (String)</bfa:string>
<bfa:string name="FirstName">sample (String)</bfa:string>
<bfa:number name="Department">-32 (Int32)</bfa:number>
<bfa:string name="DateFrom">2015-08-11T12:05 (DateTime)</bfa:string>
<bfa:string name="DateTo">2015-08-11T12:05 (DateTime)</bfa:string>
<bfa:array name="PM_TimeSheetLineDataCollection">
<!-- PM_TimeSheetLineDataCollection is a Collection -->
<bfa:object>
<!-- LineID is Not Null -->
<bfa:number name="LineID">-32 (Int32)</bfa:number>
<bfa:string name="Date">2015-08-11T12:05 (DateTime)</bfa:string>
<bfa:number name="ActivityType">-32 (Int32)</bfa:number>
<bfa:string name="LaborItem">sample (String)</bfa:string>
<bfa:string name="StartTime">13:20:00 (Time)</bfa:string>
<bfa:string name="EndTime">13:20:00 (Time)</bfa:string>
<bfa:number name="Workorder">-32 (Int32)</bfa:number>
<bfa:number name="ServiceCall">-32 (Int32)</bfa:number>
<bfa:string name="CostCenter">sample (String)</bfa:string>
<bfa:string name="FinancialProject">sample (String)</bfa:string>
<bfa:number name="Location">-32 (Int32)</bfa:number>
<bfa:string name="GPSData">sample (String)</bfa:string>
<bfa:number name="Branch">-32 (Int32)</bfa:number>
<bfa:string name="Break">13:20:00 (Time)</bfa:string>
<bfa:string name="NonBillableTime">13:20:00 (Time)</bfa:string>
<bfa:string name="EffectiveTime">13:20:00 (Time)</bfa:string>
<bfa:string name="BillableTime">13:20:00 (Time)</bfa:string>
<bfa:string name="FullDay">N | Y</bfa:string>
</bfa:object>
</bfa:array>
</bfa:object>
</bfa:io>
</ServiceLayer>
For the Issue and Receipt, It is InventoryGenExit and InventoryGenEntries respectively. You can find the schema in B1i if you go under HELP menu. For the InventoryGen types, you need to define the BaseType as 202 and it will be Issue for production from the GenExit and Receipt from production for GenEntries
Sincerely,
Varnavas Eleftheriou
04-10-2019 10:10 AM
Dear Mrs. maria.koval.11,
For the Project Timesheet, this is the schema;
<ServiceLayer>
<bfa:io xmlns:bfa="urn:com.sap.b1i.bizprocessor:bizatoms">
<!--ObjectName: ProjectManagementTimeSheet, EntityType: PM_TimeSheetData-->
<bfa:object>
<!-- AbsEntry is Primary Key - Not Null -->
<bfa:number name="AbsEntry">-32 (Int32)</bfa:number>
<bfa:number name="DocNumber">-32 (Int32)</bfa:number>
<bfa:string name="TimeSheetType">E | U | O</bfa:string>
<bfa:number name="UserID">-32 (Int32)</bfa:number>
<bfa:string name="LastName">sample (String)</bfa:string>
<bfa:string name="FirstName">sample (String)</bfa:string>
<bfa:number name="Department">-32 (Int32)</bfa:number>
<bfa:string name="DateFrom">2015-08-11T12:05 (DateTime)</bfa:string>
<bfa:string name="DateTo">2015-08-11T12:05 (DateTime)</bfa:string>
<bfa:array name="PM_TimeSheetLineDataCollection">
<!-- PM_TimeSheetLineDataCollection is a Collection -->
<bfa:object>
<!-- LineID is Not Null -->
<bfa:number name="LineID">-32 (Int32)</bfa:number>
<bfa:string name="Date">2015-08-11T12:05 (DateTime)</bfa:string>
<bfa:number name="ActivityType">-32 (Int32)</bfa:number>
<bfa:string name="LaborItem">sample (String)</bfa:string>
<bfa:string name="StartTime">13:20:00 (Time)</bfa:string>
<bfa:string name="EndTime">13:20:00 (Time)</bfa:string>
<bfa:number name="Workorder">-32 (Int32)</bfa:number>
<bfa:number name="ServiceCall">-32 (Int32)</bfa:number>
<bfa:string name="CostCenter">sample (String)</bfa:string>
<bfa:string name="FinancialProject">sample (String)</bfa:string>
<bfa:number name="Location">-32 (Int32)</bfa:number>
<bfa:string name="GPSData">sample (String)</bfa:string>
<bfa:number name="Branch">-32 (Int32)</bfa:number>
<bfa:string name="Break">13:20:00 (Time)</bfa:string>
<bfa:string name="NonBillableTime">13:20:00 (Time)</bfa:string>
<bfa:string name="EffectiveTime">13:20:00 (Time)</bfa:string>
<bfa:string name="BillableTime">13:20:00 (Time)</bfa:string>
<bfa:string name="FullDay">N | Y</bfa:string>
</bfa:object>
</bfa:array>
</bfa:object>
</bfa:io>
</ServiceLayer>
For the Issue and Receipt, It is InventoryGenExit and InventoryGenEntries respectively. You can find the schema in B1i if you go under HELP menu. For the InventoryGen types, you need to define the BaseType as 202 and it will be Issue for production from the GenExit and Receipt from production for GenEntries
Sincerely,
Varnavas Eleftheriou
04-10-2019 10:34 AM
04-10-2019 3:05 PM