cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP Routine in Update Role - Populating a Char with a KF

Former Member
0 Kudos

Hello, good morning!

I need to create a routine but i don't have any experience in ABAP so i'm stuck.

I have a key figure that makes a time calculation, but i can't use in my query as the user wants to so I need to "convert" that key figure into a characteristic... as there's no way to do that, i came up with the Idea of creating a routine that makes the calculation needed.

Below the requirement:

-Client needs a report that shows a Date Range, #Document generated below 15 minutes, #Document generated above 15 minutes.

#Document is a characteristic, and i'm not able to restrict it with my key figure (that's why i thought of a routine)

So, i created a new InfoObject type Char which will be populated with the records of the Key Figure. Once it is "a copy" of my KF, i can make an IF statement that will look like " IF char > 15, THEN 'X', ELSEIF 'Y' " so that the report will be as required. But I don't even know how to declare my variables and how to "copy" the data because it's not like PMMTIMDIF = PMMTIMCHAR.

I'll appreciate your help!

Thank you

Accepted Solutions (1)

Accepted Solutions (1)

ccc_ccc
Active Contributor
0 Kudos

Hi Fernanda,

You can do it with the help of "exception aggregation" in BEx designer.

Please refer below links and search for options for "Exception aggregation"

Example of Exception Aggregation: Enhanced Counting - Business Intelligence - SAP Library

Examples of Exception Aggregation: Last Value and Average - Business Intelligence - SAP Library

Thank you,

Nanda

Former Member
0 Kudos

Hello,

Thank you for you response.

However, this solution did not help me with this requirement but it did help with another one

I created a little routine and it's working fine now!

Answers (1)

Answers (1)

Loed
Active Contributor
0 Kudos

Hi Fernanda,

Can you explain your problem with sample data?

Regards,

Loed

Former Member
0 Kudos

Thank you, but i solved the issue!

Thanks for responding.

Loed
Active Contributor
0 Kudos

Hi Fernanda,

You may now mark this thread as CLOSED..You may click the ASSUMED AS ANSWERED..

Regards,

Loed