REPORT y_exemple.
TABLES : ttdtg.
DATA : gv_day TYPE p,
gv_day_num(2) TYPE n,
gv_name_var(20) VALUE '%%SAPSCRIPT_DDDD_00'.
* Saisie date
parameters : p_date like sy-datum obligatory.
* Récupération du no du jour de la semaine
CALL FUNCTION 'DAY_IN_WEEK'
EXPORTING
datum = p_date
IMPORTING
wotnr = gv_day.
* Tranduction de ce no en jour
* Dans la table TTDTG, on a toutes les chaines de caractères utilisées
* par SAPscript pour traduire les dates, on les utilise pour notre ex
IF sy-subrc = 0.
gv_day_num = gv_day.
gv_name_var+17(2) = gv_day_num.
CLEAR ttdtg.
SELECT SINGLE * FROM ttdtg
WHERE spras = sy-langu
AND varname = gv_name_var.
WRITE : /'La date du ', p_date, 'correspond à un', ttdtg-varvalue.
ENDIF.
Saturday, August 29, 2009
sample program1
Subscribe to:
Post Comments (Atom)
Automation Testing
- Manual and Automation testing Challenges
- What you need to know about BVT (Build Verification Testing)
- BVT types
- Learning basics of QTP automation tool and preparation of QTP interview questions
- QuickTest Pro - QTP Functional testing tool review
- Tips you should read before automating your testing work
- Choosing Automation tool for your organization
Blog Archive
-
▼
2009
(14)
-
▼
August
(14)
- Convert month value of a date to text
- Convert month value of a date to text
- Add n number of working days to date
- Add n number of working days to date (using SAP pe...
- Add n number of working days to date
- Pop a Date in ABAP Report Selection Screens
- ABAP Date Time Variables and Addressing Subfields
- Different method of Converting Date in ABAP
- Understanding Date Selections Using the HR Logical...
- sample program1
- Substring in SAP's ABAP programming
- Date and Time Calculations
- Program 1
- Program2
-
▼
August
(14)
No comments:
Post a Comment