cancel
Showing results for 
Search instead for 
Did you mean: 

Configuring Line item in IP - for Change records

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

Do you know which specific line in the code?

Because I checked the Class code, and it looked ok, unless I missed something.

Former Member
0 Kudos

I would think the mistake to be something like below - username assigned to Object GUID.

ASSIGN COMPONENT 'BBP_OBGUID' OF STRUCTURE c_s_chas
<l_chavl> = sy-uname.

Former Member
0 Kudos

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?

Former Member
0 Kudos

Nope. Me neither. Strange!

Former Member
0 Kudos

Hi,

could you check if

ASSIGN COMPONENT 'UNAME' OF STRUCTURE c_s_chas TO <l_chavl>.

<l_chavl> = sy-uname.

is the correct? I think there is an error in the old version of the how-to-paper.

Regards Matthias Nutt

SAP Consulting Switzerland

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

Former Member
0 Kudos

Yes, that is it. Charles describes what happens if the wrong string is used and the assignment of the field-symbols fails.

Regards Matthias

Former Member
0 Kudos

Thanks guys,

The USERNAME/UNAME chanage solved my problem.

Appreciate it.

Answers (0)