Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Using FM

Former Member
0 Likes
712

iam using call function 'IDWT_READ_MONTH_TEXT'

How to declare the output parameter T247 .

5 REPLIES 5
Read only

Former Member
0 Likes
634

Hi,

Sorry to say ..but can you confirm the name. I tried to go to this FM in my dev and it is saying that this FM does not exist. Or can you write in which mod can i get this

Regards,

Sameer

Read only

Former Member
0 Likes
634

Hi Ram

Maybe below code can help you:

data: it_t247 type table of t247, ---> <b>Contents of Internal Table</b>

wa_t247 type t247. ---> <b>Work Area</b>

CALL FUNCTION 'MONTH_NAMES_GET'

  • EXPORTING

  • LANGUAGE = SY-LANGU

  • IMPORTING

  • RETURN_CODE =

TABLES

MONTH_NAMES = it_t247

EXCEPTIONS

MONTH_NAMES_NOT_FOUND = 1

OTHERS = 2.

Kind Regards

Eswar

Read only

Former Member
0 Likes
634

Hi,

Can You reconfirm the name of the FM which you have mentioned. i didnt find any FM with such name. Can You mention in which SAP release you are working.

Thanks,

sksingh

Read only

Former Member
0 Likes
634

Hello,

You can create an internal table for T247 and the work area for it and specify the internal table with the output parameter( as long as the output parameter has the type of a internal table - open up FM in se37 and check the import parameter tab)

Regards,

Shehryar Dahar

Read only

Former Member
0 Likes
634

Hi,

T247 is a structure :

SPRAS, type SPRAS, LANG[1] Language Key

MNR, type FCMNR NUMC[2] Month number

KTX, type FCKTX CHAR[3] Month short text

LTX, type FCLTX CHAR[10] Month long text

Hope that helps.

Dieu