‎2006 Jun 22 7:18 AM
Hi all..
1.Any one can help me to write a Form Procedure ( to add a logic without modifying the print pgm) for Quotation form (RVADOR01, PGM---RVORDER01). And tell me how can i add it to print pgm.
2.Tell me what is the Function Module to convert Amount into Word Format.
Thanks & Regards
Raj
‎2006 Jun 22 7:27 AM
In script write.
/: PERFORM INC_PAGE IN PROGRAM ZWA_FD_DFG_PRO_DDO_ALL_COLS
/:ENDPERFORM
in report write.
FORM inc_page tables in_tab structure itcsy out_tab structure itcsy.
page1 = page1 + 1.
ENDFORM.
Regards,
Wasim Ahmed
‎2006 Jun 22 7:23 AM
Hi Rajendra,
1) I think it is not possible to add form procedure with out modifying the driver program. To do this Just copy the standard program and add form procedure.This may solve your problem.
2)<b>SPELL_AMOUNT</b> will give currency in words in specific language.
Thanks,
Vinay
‎2006 Jun 22 7:44 AM
1):PERFORM get_date IN PROGRAM zreport
/:USING &SALESORDER&
/:CHANGING &S_DATE&
/:ENDPERFORM
Now you can print S_DATE.
Write this code in the new ABAP program would be
REPORT zreport.
FORM get_date TABLES in_tab STRUCTURE ITCSY
out_tab STRUCTURE ITCSY .
READ TABLE in_tab INDEX 1.
SELECT some_date FROM ztab
WHERE salesorder = in_tab-value.
IF sy-subrc EQ 0.
READ TABLE out-tab INDEX 1.
MOVE ztab-somedate TO out_tab-value
MODIFY out_tab INDEX 1.
ENDIF.
ENDFORM.
2)fm SPELL_AMOUNT will give currency in words in specific language
‎2006 Jun 22 7:25 AM
1. I am not sure wihtout modifying the standard print program if you can add your own logic. Usually you copy the standard program and do the changes and use the new program.
2. Use the SPELL_AMOUNT function.
Regards,
Ravi
Note : Please mark the helpful answers
‎2006 Jun 22 7:27 AM
In script write.
/: PERFORM INC_PAGE IN PROGRAM ZWA_FD_DFG_PRO_DDO_ALL_COLS
/:ENDPERFORM
in report write.
FORM inc_page tables in_tab structure itcsy out_tab structure itcsy.
page1 = page1 + 1.
ENDFORM.
Regards,
Wasim Ahmed