on 03-07-2008 1:08 PM
Hi everyone,
I've a table in R3 that has 2 fields which is consulted via BAPI from XI. The Bapi call run correctly while the data don't contain spaces preffixed but when for example the data is ' A31' the BAPI call doesn't return nothing.
The table structure is:
CODE DESCRIPTION
values:
' A31' 'Desc A'
'A30' 'Desc B'
When I call the bapi with A30 value the Bapi return me Desc B, but when I try it with the value ' A31' the Bapi doesn't return any value.
Could anyone help me?
Thanks in advance
Rodrigo,
Yes, I can see the space in the monitoring ( using view source code), because the moni remove the space.
I don't have any idea of the reasson of this error.
Thanks to all for your help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Rodrigo,
From SE37 the BAPI returns the value, but from XI no.
I think that must be problem between XI and R3
Any idea more?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
if you wat to know if bapi really doesnt retunr any value go to se37 and test it with same parameters you send from PI. if it doesnt retunr any,edit the line and delete de space in table
Thanks
Rodrigo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The problem isn't the trim, because the bapi call must contain the spaces.
Any idea?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>>The problem isn't the trim, because the bapi call must contain the spaces.
Are you able to get expected results while testing the BAPI with data containing spaces?
I have seen some cases where you get correct results when you test the RFC in SE 37, but the same data when passed from XI does not get the desired results. It was coz. when testing the RFC in R/3 some user exits are called and the data fets populated in the correct way. Check this.
Regards,
Jaishankar
Jose,
In the mapping use the standard function "trim" to remove the spaces and map it to the target field.
Regards,
Jaishankar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
8 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.