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

Abap questions

Former Member
0 Likes
1,226

Hi !

I wanted to ask few Abap questions :

1. How do i show a calendar on select options date field ?

2. what is the name of the function for changes currencies of field ? for example i need to change from type Usd to Euro ?

3. What is the function for abstract , adding dates fields ? ( not to take in account a Saturday and not working days ).

thanks

moshe

8 REPLIES 8
Read only

Former Member
0 Likes
1,150

HI MOshe,

Declare the date parameters like below

parameters: p_date like RM07I-ZLDAT.

sorry!!! that should be select-options

TABLES: RM071

SELECT-OPTIONs: p_date FOR RM07I-ZLDAT.

Message was edited by: Ravi Kanth Talagana

Read only

Former Member
0 Likes
1,150

1. select-options: s_date for sy-datum.

Read only

0 Likes
1,150

2. CONVERT_TO_FOREIGN_CURRENCY

CONVERT_TO_LOCAL_CURRENCY

Read only

athavanraja
Active Contributor
0 Likes
1,150

1. at selection-screen on value request for <parameter name>

call function F4_DATE_CONTROL

Regards

Raja

Read only

Former Member
0 Likes
1,150

Hi,

1)to get calender use the following code

select-options s_date for sy-datum.

2) Use Function Currency_convert or

CURRENCY_CONVERT_TO_EURO

Regards

Amole

Read only

Lakshmant1
Active Contributor
0 Likes
1,150

Hi Moshe,

For Calender if you any field to which the domain DATUM is assigned it shows calender.

for eg,

select-options date for P0000_AF-hiredate.

You can try the function module to add the days WDKAL_DATE_ADD_FKDAYS.

One of the function modules to convert currency is HR_ECM_CONVERT_CURRENCY

Thanks

Lakshman

Read only

0 Likes
1,150

Hi Moshe,

for your 3rd question, the work days depend on the factory calendar..

Use RM_GO_BACK_N_DAYS to subtarct days & WDKAL_DATE_ADD_FKDAYS to add days.

Regards,

Suresh Datti

Read only

0 Likes
1,150

Hi Lakshman !

First thanks for the answer HR_ECM_CONVERT_CURRENCY

is good, however i need a function like HR_ECM_CONVERT_CURRENC, but with mor acurate result.

( rezlution of XXX.XX )

thanks

moshe