on 08-01-2007 6:50 AM
friends...
i have designed a form z_pm_common..which i have copied from standard.pm_common. i have made some changes to the layout.
now at the header i have a field :
DURATION OF JOB :&AFVGD-ARBEI& &AFVGD-ARBEH&
AFVGD-ARBEI IS WORK DURATION.I.E 6.3
AFVGD-ARBEH IS UNIT. IN HOURS.
THE WORK ENTERED IN IW33 ARE 1.0 , 2.0 , 6.3 AND UNIT IS H(hours)
WHEN IAM USING &AFVGD-ARBEI& &AFVGD-ARBEH&
IAM GETTING ONLY THE LAST WORK I.E ( 6.3 H ).
WHT I WANT TO DO IS CALCULATE 1.0 + 2.0 + 6.3 = 9.3. AND I WANT THE UNIT TO BE IN MINUTES. I.E THE O/P SHOULD BE LIKE 09:03 M(MINUTES).
NOW HOW DO I MAKE THIS POSSIBLE ALSO HOW DO I PERFORM SUBROUTINE IN THIS CASE..PLZ TELL ME THE COMPLETE STEPS WITH CODING.
I GUESS IT WOULD BE PERFORM Z_PM_COMMON IN PROGRAM ZPMINCLUDE USING &WHAT& CHANGING &WHAT?&
THEN IN SUBROUTINE IT WOULD BE
FORM Z_PM_COMMON WORKCONV_UNIT
TABLES IN_TAB STRUCTURE ITCSY OUT_TAB STRUCTURE ITCSY.
NOW WHT DO I DO....
PLEASE SEND ME THE COMPLETE CODE....WHICH WORKS.......I WOULD BE GREATFULLL.
I'LL GIVE U FULL POINTS IF I GET THE RIGHT SOLUTION..PLEASE HURRY.
REGARDS
ESSAM (essamsaud@yahoo.co.in)
Hi
You can try the following
Code in Sapscript
-
PERFORM Z_PM_COMMON IN PROGRAM ZPMINCLUDE USING &AFVGD-ARBEI& CHANGING &AFVGD-ARBEI& &AFVGD-ARBEH&..
&AFVGD-ARBEI& &AFVGD-ARBEH&.
code inside the perform
-
data : temp type AFVGD-ARBEI,
value type AFVGD-ARBEI.
clear temp.
FORM Z_PM_COMMON tables int_cond structure itcsy
out_cond structure itcsy.
Read int_cond table with KEY name = AFVGD-ARBEI.
clear value.
value = int_cond-value.
temp = temp + value.
Read out_cond table with KEY name = AFVGD-ARBEI.
out_cond-value = temp.
Modify out_cond index 1.
Read out_cond table with KEY name = AFVGD-ARBEH.
out_cond-value = 'M'.
Modify out_cond index 2.
ENDFORM.
-
If your query is resolved kindly close the thread and award points
cheers
shafiq
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Khan,
It is difficut to provide the entire coading, instead that i am giving the links to write a perform in the SCRIPT, it is having an example program, just gothrough this example program, it is very sime to understand, then implement that code
http://help.sap.com/saphelp_47x200/helpdata/en/d1/803279454211d189710000e8322d00/content.htm
http://help.sap.com/saphelp_40b/helpdata/en/d1/803279454211d189710000e8322d00/content.htm
Regards
Sudheer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.