on 2024 Jan 11 4:13 PM
Hi Experts,
I'm on ECC6 using a remote function call towards APO with the BAPI in subject, to get details about the planning book.
The returned key_figure_value table is however containing weird data, like these:
The PERIOD_BEGIN is really weird (Chinese characters?), PERIOD_END is empty (while it should not), and VALUE is initial, while I should have values here;
Do you have any clue why this is happening?
Any help and suggestion is really appreciated;
Thanks and bye,
Jepi
P.S.: testing the FM in APO with the same parameters is returning correct results and figures
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
Most probably an alignment problem. This can be caused by
From your screenshot it looks like the first possibility is the problem here. But I would say that with today's SAP systems, this is impossible!! The RFC protocol has a handshake built-in, where the two systems exchange their capabilities and traits (Codepage, Endianess, floating-point format, etc.), so both systems should know exactly what the other system is and can. So even if one system is Unicode and the other Non-Unicode, I would say that it is impossible, that such a mismatch can happen today! (I hope, you are not using a 25 year old 3.1I system and a 20 year old 4.6C system...? :-))
This means, if you have reasonably up-to-date systems on both sides, something must be going really really wrong here... BAPI_PBSRVAPS_GETDETAIL2 looks like a standard SAP BAPI, so I can only suggest what Sandra already recommended: open a SAP support ticket.
Ah, wait a moment, I think there is one possibility how such a mismatch can still be achieved: by forcing the RFC layer to use the wrong settings. Go to SM59 and check the definition of the RFC destination that you use in your CALL FUNCTION statement. Could it be, that you have set this destination to "Unicode", but the APO systems is in fact a Non-Unicode system? That would explain it!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah yes, a Packed Number of size 8 is indeed quite different from a CHAR15 field... So what happened here is roughly: The INT4 field was transferred & recognized correctly, but the remaining 4 fields in APO (P(8), P(8), FLOAT, CHAR1) had 8+8+8+2 = 26 bytes, and these bytes were all filled into the 30 bytes of the CHAR15 field -- resulting in garbage in that CHAR15 and leaving the remaining three fields (CHAR15, FLOAT, CHAR1) empty/initial...
User | Count |
---|---|
60 | |
8 | |
7 | |
6 | |
6 | |
4 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.