on 04-14-2022 4:46 PM
Dear SAP and B1if Experts,
I'm trying to make some POST calls to some service layers but I'm having some difficulties especially with error handling (see also my other post).
Below is part of my scenario with the problematic atoms. The goal is to have:
1. HTTP POST CALL using HTTA adapter
A) adjustToSmartMsg set false
Passing the values in the transformation atom (beas-preparetimereceipt.xml) the result is:
B) adjustToSmartMsg set true
It doesn't seem to read the cookie because it returns 401 unauthorized. It still goes into exception.
2. HTTP POST CALL using HTTA.1 adapter
Passing the values and the configurations in the transformation atom (beas-preparetimereceipt-v1.xml) the result is:
{"DocEntry":220034,
"LineNumber":10,"LineNumber2":10,
"LineNumber3":0,
"TimeType":"A",
"QuantityGood": 1,
"PersonnelId": "1",
"QuantityScrap":0,
"StartDate": "2022/04/04",
"EndDate": "2022/04/04",
"StartTime":"00:00",
"EndTime":"00:00",
"Trial": 15,
"CloseEntry":false,
"ManualBooking":false,
"Duration": 60,
"CalculateDuration":false,
"Remarks": "Test 3"
}
Basically I need to have the correct error returned within my payload so I can use it to send an email or do something else.
Thanks a lot
Fabio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Great, it works!
Point 1A has been solved with Wilson's answer. Thanks Wilson.
Point 2 has been solved with this community post.
It is still open the point 1B. its payload is the following but it always returns unauthorized.
Fabio
User | Count |
---|---|
107 | |
12 | |
10 | |
5 | |
5 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.