on 09-22-2008 10:59 PM
Hi guys,
I just finsihed implementing the "How to" paper for Line-items in BI Intergrated Planning.
It works just fine, except for one minor thing.
For some reason when I look at my records in the planning cube, it's filling my '0BBP_0GUID' field with my
0UNAME, and at the same time my '0UNAME' in the cube is blank. So my cube looks like:
0BBP_0GUID = S23237 (user ID)
0DATE = 9/22/2008
0TIME = 15:23:10
0UNAME = 'Blank'
It looks like a mapping problem at first. Anyone ran into this issue, any advice??
Thanks
Edited by: Ehab Mansour on Sep 22, 2008 2:59 PM
I actually saw this kind of issue once, and it turned out be an error in the code. Value assigned to the wrong field. I suggest check your code once more
Edited by: Mayank Gupta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Here's how the code looks.
FIELD-SYMBOLS: <l_chavl> TYPE ANY.
fill ID
ASSIGN COMPONENT 'BBP_OBGUID' OF STRUCTURE c_s_chas
TO <l_chavl>.
CALL FUNCTION 'GUID_CREATE'
IMPORTING
ev_guid_32 = <l_chavl>.
fill user
ASSIGN COMPONENT 'USERNAME' OF STRUCTURE c_s_chas
TO <l_chavl>.
<l_chavl> = sy-uname.
fill date
ASSIGN COMPONENT 'DATE0' OF STRUCTURE c_s_chas
TO <l_chavl>.
<l_chavl> = sy-datlo.
fill time
ASSIGN COMPONENT 'TIME' OF STRUCTURE c_s_chas
TO <l_chavl>.
get time field <l_chavl>.
I don't see anything wrong, do you?
Hi Matthias,
That particular line looks like this:
fill user
ASSIGN COMPONENT 'USERNAME' OF STRUCTURE c_s_chas
TO <l_chavl>.
<l_chavl> = sy-uname.
Is that correct? The only difference I see is you use 'UNAME' instead of 'USERNAME' ?
Could you perhaps give me the link, or copy/paste on here the latest (correct) verison of the How To code, to make sure evertything else is correct.
Thanks a lot.
It should definetly be UNAME as that is the infoobject you are trying to update. It looks like this assignment of 'USERNAME' to the field symbol fails and the field symbol is still pointing to BBP_OGUID when you give it the value sy-unam. This overwrites the previously assigned value. You may want to check the return code in your assignments before assigning a value to the field symbol. Hope this helps.
User | Count |
---|---|
79 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.