cancel
Showing results for 
Search instead for 
Did you mean: 

SAP IP Char Relationship - Fill User,Date and Time not working

former_member199448
Participant
0 Kudos


Dear All,

I created a copy of FM:CL_RSPLS_CR_EXIT_BASE and implemented it based on the How to "How to line Items in SAP BI IP".

CLEAR e_t_mesg.

FIELD-SYMBOLS: <l_chavl> TYPE ANY.

* fill user

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

IF sy-subrc = 0.

<l_chavl> = sy-uname.

ENDIF.

* fill date

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

IF sy-subrc = 0.

<l_chavl> = sy-datum.

ENDIF.

* fill time

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

IF sy-subrc = 0.

<l_chavl> = sy-uzeit.

ENDIF.

I have created an input Query and i can save data into the cube. But unfortunatelly 0UNAME, 0DATE and 0TIME are not derived.

How can i solve the problem?

Where could be the issue?

Thank you for helping.

Cheers

Pat

Accepted Solutions (0)

Answers (1)

Answers (1)

gerd_schoeffl
Advisor
Advisor
0 Kudos

Hi Pat,

If you are using the characteristics 0UNAME, 0DATE, and 0TIME in your InfoCube then the above coding does not work as there the fieldnames 'USERNAME', 'DATE0', and 'TIME' are used (look for the assign statements). You will have to adapt the coding to your used characteristic names.

Best regards,

Gerd

former_member199448
Participant
0 Kudos

Thank you all. It is working now.