cancel
Showing results for 
Search instead for 
Did you mean: 

How to get/update Historical APC - Service Layer

Thiago_Moura
Explorer
0 Kudos

Hello experts!

I'm trying to get the historical APC by Service Layer.

I discovered the endpoint "FixedAssetItemsService_GetAssetEndBalance", but when I POST there, the historical APC value is zero, when actually it has a value in SAP B1.

How to get this value up to date?

That case is when i'm getting the data. But I also have the problem to create a new fixed asset in SAP B1 using Service Layer. How to assign a historical APC?

Thank you all!

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi thiago_moura,

I will check it and come back to you.

Really appreciate your patience till the time.

Kind regards,

ANKIT CHAUHAN

SAP Business One Support

View Entire Topic
ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi thiago_moura,

The following requests work fine for me:

To get the value:

POST /b1s/v1/FixedAssetItemsService_GetAssetEndBalance
{
    "FixedAssetValuesParams": {
        "ItemCode": "TEST1",
        "FiscalYear": "2023",
        "DepreciationArea": "GAAP"
    }
}

To update the value:

POST /b1s/v1/FixedAssetItemsService_UpdateAssetEndBalance

{
    "FixedAssetEndBalance": {
        "HistoricalAPC": 125.0
    },
    "FixedAssetValuesParams": {
        "ItemCode": "TEST1",
        "FiscalYear": "2023",
        "DepreciationArea": "GAAP"
    }
}

Kind regards,

ANKIT CHAUHAN

SAP Business One Support