cancel
Showing results for 
Search instead for 
Did you mean: 

Sample Char Relationship Derivation Abap code for Derivation

charles_soper
Participant
0 Kudos

Hello All,

Do you happen to have some sample IP abap code for a char relationship to do derivation?

Thanks!

Tim

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

You can use characteristic relationship of type Exit (Exit Class) in IP for your requirement. You should copy the class 'CL_RSPLS_CR_EXIT_BASE' and implement the method 'DERIVE'.

This sample code is for the 'line items' functionality.

Field-symbols: <l_chavl> type any.

  • Populate User ID

assign component '/BIC/IUSERID' of structure c_s_chas to <l_chavl>.

<l_chavl> = sy-uname.

  • Populate Date

Assign component 'DATE0' of structure c_s_chas to <l_chavl>.

<l_chavl> = sy-datlo.

assign component 'TIME' of structure c_s_chas to <l_chavl>.

get time field <l_chavl>.

Hope this helps.