Skip to Content
0
Former Member
Aug 31, 2006 at 06:13 AM

Retrieve hard currency figures from SKC1A

68 Views

Hi,

I have an issue that has been bothering me for a while. I need to be able to get hard currency figures from SKC1A. I am using logical database SDF, with no variant of the selection screen. For functionality reasons, I have added the currency key field (CURTP) as a SELECT-OPTION to the selection screen. To get data from SKC1A I use

Get skc1a.
CHECK SELECT-OPTIONS.

In addition to this, I am trying to manipulate the SD_CURTP parameter that seems to control the currency key selection like this:

SD_CURTP = s_curtp. " s_curtp is the SELECT-OPTION value.

So my code looks like this:

SD_CURTP = s_curtp. " s_curtp is the SELECT-OPTION value.
Get skc1a.
CHECK SELECT-OPTIONS.

I have successfully managed to do the same manipulation with SD_STIDA previously (however, not in this program), so I do not understand why it should not work in the same way with SD_CURTP.

However, this seems to have no effect on the currency type that is returned from SKC1A. When I select local currency in the selection field (in our config that value is '10'), I get the correct figures, but when I select hard currency (40), I get only 0's. It seems to be that no records are returned from get Get statement into my internal table storing the result.

Does anyone have any bright ideas on how to get the hard currency figures from SKC1A?

Help is greatly appreciated!

Regards,

Thomas

Message was edited by: Thomas Kjelsrud

Message was edited by: Thomas Kjelsrud